How to generate non-repeatable pickup codes?



:   

clipboard.png

Mar.29,2021

you can add userid or other unique data encryption to the front ~


  

you can refer to the scheme of generating unique user random uid
1. Mr. Cheng sends a large number of pick-up codes to the database and generates a queue of pick-up codes
2. Database makes a unique index on the pick-up code
3. Check the queue length of the meal code regularly, and add the queue if the length is not enough
4. When a user picks up a meal, he or she can pop a meal code from the queue

.
Menu