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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be61f7-317bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be61f7-317bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?