Php has a page for sending a message by clicking and sending it. my public account is like a user who has specified to follow the public account change. for example, if the boss sends a notification like an employee, the employee opens the page and accepts it. The boss can know that he has read this kind of database. how to design php? there is a page for sending a message by clicking and sending it. my public account will be like someone who has specified to pay attention to the change to the public account, if the boss sends a notification like an employee, the employee opens and accepts the notification. The boss can know how to design this database.
Reply content:
Php has a page for sending a message by clicking and sending it. my public account is like a user who has specified to follow the public account change. for example, if the boss sends a notification like an employee, the employee opens the page and accepts it. The boss can know how to design this database.
Field (numeric) id message show showid
Pay attention to the flute product
The focus of this question is not on table design. when you ask how to design a table, I guess you may have just been in touch with this development. there are still many questions waiting for you.
If you only consider tables, you can store messages in a message table and read the message table to check whether the user has read the message table.
Is there an api for "reading messages" currently available? If not, you cannot implement this function.
Group sending is restricted. In addition, if a message is sent, the other party must trigger an event that can initiate a reply message. Read the development document of the public account.
The process is when the user opens the link to read, the server finds the user information through the user's openid, and sends the template information to the boss's openid (Template information interface: http://mp.weixin.qq.com/wiki/5/6dde9eaa909f83354e0094dc3ad99e05.html ). if you want to record specific operations, you can define a status field in the notification table (0 none 1 read 2 pushed) to follow up the notification status.
There is a switch in the background. after entering the chat interface, the location information is uploaded every 5 seconds.
You can achieve "read messages" in a less perfect way ".