search

Home  >  Q&A  >  body text

php - How to realize the demand for one-yuan cloud shopping

One-yuan lottery, a 129-yuan lottery. When the number of copies purchased reaches 129, it will automatically enter the next round.
How can we automatically enter the next round, including generating a new round of order numbers and purchase queues.
The lottery is considered concurrent. Many people buy at the same time, so I really can’t figure out how to control which round they bought.

为情所困为情所困2794 days ago534

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 13:04:16

    129 keeps decrementing by one. When it reaches zero, the data is inserted into the new one, and another period is 129, and the cycle continues. You can lock the operation in the middle

    reply
    0
  • Cancelreply