1: In the Member registration record table, you can find the member information within a certain period of time through the settlement time, and then settle the members within these periods of time.
2: Get the details of a member, including the member ID, member name, member placement, member recommender, the member's layer, and the member's position on the layer.
3: Find the contact member ID and the parent node ID of the resettlement person in the job_users table,
4: You can find the existing placement award for all resettlement personnel by the parent node ID of all resettlement personnel.
5. Step 2 shows whether the Member is in the region of its parent node on the left or right. Purpose: The system requires that all the Members to be in the same region, for example: for the left region, both members must be in the left region. The area on the right is the same.
6: Get the ID of all the Members that touch the parent node through step 2. These IDS will be the parent nodes that the member generates in the same layer. Therefore, these IDs are crucial. By querying these IDs, you can find out whether the Members that have a collision with this member on this layer exist in the system. If yes, a collision occurs. Otherwise, no collision occurs.
7. You can view the storage information of the contact member on the parent node through the query. By comparing the information of the resettlement person on the parent node of the member, you will find that the resettlement person has the same ID, then, the first place with the same placement ID is the ID of the winner of the collision award. we can update this user's collision bonus.
8: You can repeat Step 6-7 to complete the collision of members at this layer, and update the bonus of the corresponding members.
9: when updating the bonus of a member, we must pay attention to the number of daily bonus caps of the member. If the number of Members reaches this threshold, the member's bonus will not be updated.