That is, each member generates a link, clicks the link and registers successfully, and adds a credit to the member. The infinite recursive sharing link is generated by each member. click the link and register it successfully, and add a credit to the member. Unlimited recursive sharing links
Reply content:
That is, each member generates a link, clicks the link and registers successfully, and adds a credit to the member. Unlimited recursive sharing links
The user's invitation code can be stored in the user table and carried and verified during the registration process.
The principle is the same as that of the unlimited menu. the recommended person stores the ID of the superior user, so that the tree structure can be constructed.
Generated link, url? Pid = 1. you can select encryption for specific parameters. Obtain this pid during registration and write it to the registered user's parentId. You can store parentId directly in the user table or create a user relationship table separately.