search

Home  >  Q&A  >  body text

How to write a voice reminder that the time is up or there is an order?

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

DukeDuke1723 days ago1439

reply all(4)I'll reply

  • 对方正在输入....

    对方正在输入....2020-05-14 18:44:33

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

    reply
    0
  • 微笑°

    微笑°2020-03-09 10:46:04

    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,

    reply
    0
  • Duke

    Duke2020-03-08 23:44:16

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

    reply
    0
  • 夏天来了

    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

    夏天来了 · 2020-03-09 01:00:25
  • Cancelreply