How to write a voice reminder that the time is up or there is an order?
Duke
Duke 2020-03-08 23:41:57
0
4
1478

I have been learning PHP for a while, and now I am very curious about how to achieve two functions using a database.

  1. Expiration voice reminder

  2. Order reminder

Duke
Duke

reply all(3)
对方正在输入....

Workerman has a long connection, and the scheduled task checks the database expiration every second and can actively send messages to the front end.

微笑°

Use js to write a scheduled task, ajax asynchronous request, and the data returned each time is stored in the client. Then judge. This is a personal opinion. There are many ways,

Duke

The time interval can be query every 5-10 minutes.

  • reply 1. Time: Refresh the page every 5 minutes and query the database. If the order status is unprocessed, it will be marked red/a dialog box will pop up/a voice reminder will be triggered. 2 New order After generating a new order, voice reminder
    夏天来了 author 2020-03-09 01:00:25
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template