Learned to do a small program mall, plus the distribution function, is to let buyers in qr code (a specific commodity or the mall the small program) to their friends, their friends through his share of qr code to register to the share of people buy goods certain commissions,
Logic thinking,
At present is to consider in the qr code link and share person id related background through correlation to calculate the relevant data, don't know the ideas right, there is no better way?