The automatic message reminder function recently used PHP + MYSQL to write a local applet that records the Coupon Information. I want to add a reminder feature in advance when the coupon expires, after each program is opened, you can receive a prompt on the homepage. please give me some ideas! Thank you! ------ Solution ------------------ you have already understood it. Each time a user logs on, the system checks whether a coupon exists. If yes, it determines the difference between the coupon expiration time and the current system time. the automatic message reminder function
Recently, I used PHP + MYSQL to write a local applet that records the Coupon Information. I want to add a reminder for the coupon expiration, after each program is opened, you can receive a prompt on the homepage. please give me some ideas! Thank you!
------ Solution --------------------
You have already understood it.
When a user logs on to the system each time, check whether there is a coupon. If yes, determine the difference between the coupon expiration time and the current system time. if it is less than or equal to a value, a message is displayed.
------ Solution --------------------
Check the expiration time on a regular basis. if the expiration time is reached, the desired reminder message will be displayed ~
------ Solution --------------------
If it is boot into the system, directly judge the time, if it is a real-time reminder, js persistent connection training
------ Solution --------------------
Reference:
You have already understood it.
When a user logs on to the system each time, check whether there is a coupon. If yes, determine the difference between the coupon expiration time and the current system time. if it is less than or equal to a value, a message is displayed.
+ 1 is the idea.
------ Solution --------------------
For details, please google "php js message push"