CN109600301B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN109600301B
CN109600301B CN201811405062.5A CN201811405062A CN109600301B CN 109600301 B CN109600301 B CN 109600301B CN 201811405062 A CN201811405062 A CN 201811405062A CN 109600301 B CN109600301 B CN 109600301B
Authority
CN
China
Prior art keywords
message
server
mobile terminal
display state
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811405062.5A
Other languages
Chinese (zh)
Other versions
CN109600301A (en
Inventor
吴伟江
罗彧成
刘衍才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201811405062.5A priority Critical patent/CN109600301B/en
Publication of CN109600301A publication Critical patent/CN109600301A/en
Application granted granted Critical
Publication of CN109600301B publication Critical patent/CN109600301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message processing method and device, and belongs to the technical field of networks. The method comprises the following steps: receiving a sending instruction of at least one message; displaying the at least one message on the display screen in a first display state; sending a message displayed in the first display state to the server; receiving package data sent by a server, wherein the package data comprises a target message; changing the display state of the target message from the first display state to a second display state. The invention changes the display state of the currently displayed target message when receiving the message returned by the server, instead of directly displaying the message returned by the server, thereby avoiding the problem of repeated display of the same message.

Description

Message processing method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for processing a message.
Background
With the development of network technology, communication modes between users tend to be networked more and more, for example, a user can chat with a friend on a network, which often involves processing processes such as sending, receiving and displaying of messages.
At present, a mobile terminal generally sends an HTTP (HyperText Transfer Protocol) request to a server at a certain time interval, where the HTTP request is used to obtain a plurality of latest messages from the server, the server returns a certain number of latest messages to the mobile terminal after receiving the HTTP request, and the mobile terminal displays the plurality of messages when receiving the plurality of messages.
In the above technology, the mobile terminal acquires the message from the server in an HTTP manner, and the mobile terminal directly displays the plurality of messages acquired from the server without processing, and if the plurality of messages include a message that the mobile terminal has currently displayed, the same message is repeatedly displayed.
Disclosure of Invention
The embodiment of the invention provides a message processing method and a message processing device, which can solve the problem of repeated display of the same message in the related technology. The technical scheme is as follows:
in one aspect, a message processing method is provided, where the method is applied to a mobile terminal including a display screen, and the method includes:
receiving a sending instruction of at least one message;
displaying the at least one message on the display screen in a first display state, the first display state indicating that the displayed message was not successfully sent to a server;
sending a message displayed in the first display state to the server;
receiving package data sent by a server, wherein the package data comprises a target message, and the target message is a message in the messages displayed in the first display state;
changing the display state of the target message from the first display state to a second display state, the second display state indicating that the displayed message has been successfully sent to the server.
In one aspect, a message processing method is provided, where the method is applied to a server, and the method includes:
receiving at least one message sent by a mobile terminal;
sending back packet data to the mobile terminal, the packet data including a target message, the target message being a message among messages displayed in a first display state on a display screen of the mobile terminal, the first display state indicating that the displayed messages have not been successfully sent to the server, the packet data indicating that all messages included in the packet data have been successfully sent to the server.
In one aspect, a message processing apparatus is provided and applied to a mobile terminal, where the mobile terminal includes a display screen, and the apparatus includes:
the receiving module is used for receiving a sending instruction of at least one message;
a display module for displaying the at least one message on the display screen in a first display state, the first display state indicating that the displayed message was not successfully sent to the server;
a sending module, configured to send a message displayed in the first display state to the server;
the receiving module is also used for receiving the repacking data sent by the server, wherein the repacking data comprises a target message, and the target message is a message in the messages displayed in the first display state;
the display module is further configured to change the display state of the target message from the first display state to a second display state, where the second display state is used to indicate that the displayed message has been successfully sent to the server.
In one aspect, a message processing apparatus is provided, which is applied to a server, and includes:
the receiving module is used for receiving at least one message sent by the mobile terminal;
a sending module, configured to send packet data back to the mobile terminal, where the packet data includes a target message, where the target message is a message in messages displayed in a first display state on a display screen of the mobile terminal, the first display state is used to indicate that the displayed messages are not successfully sent to the server, and the packet data is used to indicate that all messages included in the packet data have been successfully sent to the server.
In one aspect, a mobile terminal is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the operations performed by the above-mentioned message processing method.
In one aspect, a server is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, at least one program, a set of codes, or a set of instructions is loaded and executed by the processor to implement the operations performed by the above-mentioned message processing method.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, code set, or set of instructions is stored, which is loaded and executed by a processor to implement the operations performed by the message processing method as described above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the method comprises the steps of displaying at least one message on a display screen of the mobile terminal in a first display state after receiving a sending instruction of the at least one message, sending the at least one message to the server, acquiring a target message displayed in the first display state currently in the repackaged data if the repackaged data is received, and changing the display state of the target message into a second display state to identify that the target message is successfully sent to the server. According to the scheme, when the message returned by the server is received, the display state of the currently displayed target message is changed instead of directly displaying the message returned by the server, so that the problem of repeated display of the same message can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a message processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a messaging process provided by an embodiment of the invention;
fig. 4 is a schematic diagram of a push message provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal 900 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a message processing method according to an embodiment of the present invention, and referring to fig. 1, the implementation environment may include:
at least one server 101 and at least one mobile terminal 102. The server 101 is configured to provide services, such as a message service, for the mobile terminal 102, and specifically, the server 101 may provide services to the mobile terminal through an application installed on the mobile terminal 102. The mobile terminal 102 is used to run an application provided by the server 101 and implement various functions based on the application. In addition, the server 101 may be configured with at least one database, such as a message database, a user database, and the like. The message database is used for storing messages sent by the mobile terminal, and the user database is used for storing personal data such as user names, passwords and user relationship chains of users served by the server 101. The application provided by the embodiment of the invention can realize the message processing method of the invention through the interaction with the server under the condition of network connection, and the specific network environment is not limited herein.
Fig. 2 is a flowchart of a message processing method according to an embodiment of the present invention. The embodiment of the present invention is described by taking an implementation environment in which the message processing method is applied to the embodiment shown in fig. 1 as an example, and referring to fig. 2, the message processing method includes:
201. the mobile terminal receives a sending instruction of at least one message, and displays the at least one message on the display screen in a first display state, wherein the first display state is used for indicating that the displayed message is not successfully sent to the server.
The mobile terminal comprises a display screen, and the mobile terminal can display the message through the display screen.
In the embodiment of the invention, each time a sending instruction for any message is received, the mobile terminal can display the message on the display screen in the first display state, so that if the mobile terminal receives the sending instruction for at least one message, the at least one message can be displayed on the display screen in the first display state.
For each message of the at least one message, the instruction to send the message may be triggered by a user operating on the mobile terminal. For example, the user may input a message to be sent in an input box of a message page of the mobile terminal, and then click a send button to trigger a send instruction for the message, for example, the message page may be a chat page. When the mobile terminal receives a sending instruction of the message, the message is immediately displayed on the display screen in a first display state, such as a message page, but the mobile terminal does not send the message to the server at this time, the message is only displayed but is not successfully sent to the server, and the display state of the message can be recorded as the first display state by the mobile terminal.
202. The mobile terminal transmits a message displayed in the first display state to the server.
In the embodiment of the invention, when the mobile terminal receives the sending instruction of the message, the mobile terminal can send the message to the server besides displaying the message in time. For example, the mobile terminal may send the message to the server by carrying the message in an HTTP request, where the HTTP request may specifically be a CGI (Common Gateway Interface) request.
Referring to fig. 3, a schematic diagram of a messaging process is provided, as shown in fig. 3, a mobile terminal may send a new message to a server, for example, the mobile terminal may send a CGI request to the server, where the CGI request includes specific content of the message.
In a possible implementation manner, when the mobile terminal sends a message to the server, a unique identifier of the message, such as a clientkey, may also be generated, where the unique identifier is a local id that is globally unique for marking the message, and after the unique identifier of the message is generated, the unique identifier of the message is sent to the server at the same time when the message is sent to the server. The unique identification of the message is sent to the server, so that the server can distinguish the received messages.
In one possible implementation manner, when the mobile terminal sends the message currently displayed in the first display state to the server, the mobile terminal may generate a state identifier of the message, where the state identifier is used to indicate that the display state of the message is the first display state and a display order of the message in all messages displayed in the first display state. For example, the mobile terminal may generate a status identifier, such as a clientno, for each message sent, indicating that the message is not currently delivered to the server, and indicating the display order of the message in all messages not delivered to the server.
203. When at least one message sent by the mobile terminal is received, the server sends packet data back to the mobile terminal, wherein the packet data comprises a target message, the target message is a message in messages displayed in a first display state on a display screen of the mobile terminal, and the packet data is used for indicating that all messages contained in the packet data are successfully sent to the server.
In the embodiment of the present invention, after receiving at least one message sent by the receiving mobile terminal, the server may store the at least one message. As shown in fig. 3, when the server receives a message transmitted by the mobile terminal, the received message may be stored in a database. For the case that the mobile terminal sends the message and the unique identifier of the message to the server together, the server may store the message and the unique identifier correspondingly.
In a possible implementation manner, after receiving at least one message sent by the mobile terminal, the server may perform incremental numbering on the at least one message, where a number of a message received first is smaller than a number of a message received later. As shown in fig. 3, the server may incrementally number received messages, with different messages numbered differently and the same message numbered differently. The server may number each message, as represented by seqno, with the order guarantee being incremented. Thus, if the same two messages are received before and after the server, the two messages are numbered differently, and if the same two messages are received before and after the server, the two messages are numbered differently.
In one possible implementation manner, after receiving at least one message sent by the mobile terminal, the server may generate a timestamp of the at least one message; the at least one message is ordered according to the timestamp of the at least one message. As shown in fig. 3, for any message in the at least one message, the server may further generate a timestamp of the message after receiving the message; and sequencing the messages according to the time stamps of the messages. By time-stamping each message, each message has its own time stamp, so that the messages can be arranged in time sequence.
In the embodiment of the invention, after receiving any message, the server can return the repackaging data of the message to the mobile terminal, wherein the repackaging data can contain a plurality of latest messages, the messages contain one or more messages displayed in the first display state at present at the mobile terminal, and the one or more messages are also target messages. In one possible implementation, the number of the plurality of messages may be a specified number. The specified number may be configured to be smaller, such as 50, and may be modified by an administrator based on messaging. The server may simultaneously transmit the timestamp of the message to the mobile terminal when transmitting the packet-back data of the message to the mobile terminal. The mobile terminal can determine the display sequence of each message according to the time stamp of each message by sending the time stamp of each message to the mobile terminal.
For example, after receiving a message, storing the message and generating a timestamp of the message, the server may select the message with the earliest timestamp, select another message with the timestamp closest to the timestamp of the message, select a message with the timestamp closest to the timestamp of the another message, and so on until a specified number of messages are selected to form a piece of packet data, and send the packet data to the mobile terminal as the packet data of the currently received message. For the case that the server stores the received message and the unique identifier of the message in correspondence in step 202, when the server sends the packet data of the message to the mobile terminal, the server may send the unique identifier of the message in the packet data to the mobile terminal at the same time, for example, the server may transmit the unique identifier of the message in the packet data to the mobile terminal, so that when the mobile terminal receives the packet data of the message, the server may also receive the unique identifier of the message at the same time, and determine which messages have been successfully sent to the server according to the received unique identifier.
204. When receiving the packet data transmitted by the server, the mobile terminal changes the display state of the target message from the first display state to a second display state, wherein the second display state is used for indicating that the displayed message is successfully transmitted to the server.
In the embodiment of the present invention, the messages currently displayed by the mobile terminal may include a message displayed in the first display state and a message displayed in the second display state, and since the reply packet data returned by the server to the mobile terminal includes the latest messages, the messages may include a message displayed in the first display state and a message displayed in the second display state. In the related art, after receiving the packet data, the mobile terminal directly displays the messages in the packet data, and the messages are already displayed on the mobile terminal, so that repeated display is caused. For example, the mobile terminal sends two messages msg1 and msg2 to the server, the packet data of msg1 contains the latest N messages, N is a natural number greater than 1, the N messages may already contain msg2, and if the above-mentioned deduplication processing is not performed, the mobile terminal repeatedly displays msg1 and msg 2.
In the embodiment of the present invention, the mobile terminal may perform deduplication on the repeated messages, for example, the server sends the unique identifier of the message in the packet data to the mobile terminal in step 203, and the mobile terminal may perform deduplication by using the unique identifier, and only change the display state of the target message in the packet data without repeatedly displaying the displayed message. For this, when receiving the packet back data transmitted by the server, the mobile terminal may first determine a target message in the packet back data.
In one possible implementation manner, the mobile terminal can utilize the unique identification of the message in the callback data and the display state of the message on the mobile terminal, acquire one or more messages currently displayed in the first display state on the mobile terminal from the callback data, and take the messages as target messages. The server may then update the display status of the targeted messages to identify that the messages have been delivered to the server.
It should be noted that, in this step 204, the mobile terminal is described by taking an example of changing the display state of the target message, and obviously, the mobile terminal may also replace the content of the message currently displayed in the first display state with the content of the target message in the repackaged data, and at this time, the mobile terminal needs to determine the display order of each target message. While for the mobile terminal generating the status identifier of the message in step 202, in step 204, when the mobile terminal receives the packet data, the display status of the target message may be changed to the second display status, and then the display order of the target message in all messages in the second display status may be determined according to the display order of the target message in all messages in the first display status indicated by the status identifier of the target message.
For example, when the mobile terminal sends a message to the server, the message may be displayed in the first display state in time, the display order between messages displayed in the first display state may indicate the order in which the mobile terminal sends the message, after the message is confirmed to reach the server, the mobile terminal may change the display state of the message from the first display state to the second display state in time, and the display order between messages displayed in the second display state may be determined according to the display order between messages displayed in the first display state. For example, after transmitting msg1 and msg2 in sequence, the mobile terminal may display the two messages in a first display state in time, e.g., msg1 is displayed before msg 2. When the callback data of the received message contains msg1 and msg2, the mobile terminal may confirm that msg1 and msg2 have been successfully delivered to the server, at which time, the mobile terminal may modify the display states of msg1 and msg2 to the second display state, replace msg1 and msg2 currently displayed on the mobile terminal with the contents of msg1 and msg2 in the callback data, and at which time, msg1 is still displayed before msg 2.
The above steps 201 to 204 are processes in which the mobile terminal actively sends a message to the server. Optionally, the mobile terminal may also actively pull the message from the server, and the process of the mobile terminal pulling the message from the server is referred to the following steps 205 to 208.
205. And the mobile terminal sends a message acquisition request to the server, wherein the message acquisition request carries a time stamp.
In the embodiment of the invention, a user can operate on the mobile terminal, for example, the message page of the mobile terminal is subjected to message pulling operation, such as pulling the current page or pulling the current page upwards, and the mobile terminal is triggered to send a message acquisition request to the server. For example, the mobile terminal may send an HTTP request to the server, the HTTP request carrying a timestamp. As shown in fig. 3, the mobile terminal may pull a message from the server, for example, the mobile terminal may send a CGI request to the server, the CGI request carrying a timestamp a. The server can search backwards according to the timestamp by carrying the timestamp in the message acquisition request and return the message which is later than the timestamp to the mobile terminal.
In one possible implementation manner, the timing for the mobile terminal to send the message acquisition request to the server may be, but is not limited to, the following timings:
and at the first time, when the next page of the current page is loaded, the mobile terminal sends a message acquisition request to the server, wherein the message acquisition request carries the timestamp of the last message displayed on the current page.
The user can perform message pull-down operation on the mobile terminal to trigger the mobile terminal to load the next page, and when the mobile terminal loads the next page, the mobile terminal can transmit the timestamp of the last message of the previous page to the server.
Sending a message acquisition request to the server at a second time interval; and when the current page is detected to be closed, stopping sending the message acquisition request to the server.
The mobile terminal may pull the message from the server at certain time intervals, such as 1 second, for example, send a message acquisition request to the server to acquire the latest message returned by the server. As shown in fig. 3, the mobile terminal may start a timer, and the timer may be refreshed after the mobile terminal pulls the message from the server every time, and the message is actively pulled from the server after a period of time. In this way, if the user leaves the current page, the mobile terminal does not pull the message any more, that is, the message is not pulled if the page is not perceived by the user, so that resource consumption caused by unnecessary message pulling operation can be avoided.
It should be noted that the specified time interval is not constant, and for frequent messaging, the mobile terminal may increase the pull time interval to ensure performance. For example, the mobile terminal originally pulls a message from the server every 1 second, and when the message is frequently sent and received, the mobile terminal may pull a message from the server every 10 seconds, and the specified time interval is changed from 1 second to 10 seconds.
And at the third time, when a push prompt sent by the server is received, sending a message acquisition request to the server, wherein the push prompt is used for prompting to acquire a new message from the server.
Specifically, when a push prompt sent by the server is received and the new message does not exist in the local cache or the local database, the mobile terminal sends the message acquisition request to the server. The server sends the push prompt to the mobile terminal, so that the mobile terminal can pull a new message from the server in time, and the real-time performance of the message is guaranteed.
Referring to fig. 4, a schematic diagram of a push message is provided, as shown in fig. 4, when a push prompt (push in) arrives, the mobile terminal determines whether a new message to be pushed is in a local Cache (Cache), if so, it indicates that the mobile terminal currently displays the latest message, and the mobile terminal may not pull the message from the server, that is, does not send a message acquisition request to the server; if not, the mobile terminal can request a local database (db database) to judge whether a new message to be pushed exists in the local database, and if the new message to be pushed does not exist in the local database, the mobile terminal can splice related parameters and then send the spliced related parameters to the server, wherein the related parameters can include parameters such as a timestamp and user information, and the like, and the spliced related parameters are carried in the message acquisition request.
In one possible implementation, to ensure the real-time performance of the message, the mobile terminal may establish a long connection with the server, and based on the long connection, send the message to the server and receive the message sent by the server. For example, the mobile terminal may establish wns a long connection with the server for data exchange with the server, which means that the link between the mobile terminal and the server is always present without breaking the connection each time the message is sent. The real-time performance of the message between the mobile terminal and the server can be guaranteed through long connection and third-party push (push).
206. And after receiving a message acquisition request sent by the mobile terminal, the server sends a specified number of messages to the mobile terminal, wherein the time stamps of the specified number of messages are later than the time stamps carried by the message acquisition request.
In the embodiment of the invention, when the server receives the message acquisition request sent by the mobile terminal, the server can acquire the specified number of messages from the database according to the timestamp carried in the message acquisition request. For example, the server may select a message with the earliest timestamp from the database, select another message with the timestamp closest to the timestamp of the message, select a message with the timestamp closest to the timestamp of the another message, and so on until a specified number of messages are selected and sent to the mobile terminal. As shown in fig. 3, the server may obtain a plurality of messages with a timestamp later than the timestamp a, and send the messages in pages, for example, 100 messages with a timestamp later than the timestamp a, and the server only sends 20 messages to the mobile terminal at a time.
In the embodiment of the invention, when the server receives the message acquisition request of the mobile terminal, a specified number of messages can be sent to the server according to the timestamp carried in the message acquisition request. For example, for the first timing at which the mobile terminal sends the message acquisition request to the server in step 205, the message acquisition request received by the mobile terminal may carry the timestamp of the last message of the last page on the mobile terminal, so that the server may send a plurality of messages after the timestamp of the last message to the mobile terminal, thereby avoiding the message fault problem in the related art, where the message fault refers to that the mobile terminal can only pull a part of messages from the server, but not all messages.
When the mobile terminal pulls the message each time, the server only returns the latest specified number of messages to the mobile terminal, and the user pulls down the mobile terminal to load more messages, and the mobile terminal pulls more messages from the server, so that the problem that the receiving and sending effects of the messages are influenced by overlarge packet data when a large number of new messages are provided is avoided.
In one possible implementation manner, for the third opportunity that the mobile terminal sends the message obtaining request to the server in step 205, before the server receives the message obtaining request sent by the mobile terminal, the server may send a push prompt to the mobile terminal, where the push prompt is used for prompting to obtain a new message from the server.
207. And the mobile terminal receives the messages of the specified number sent by the server, and the time stamps of the messages of the specified number are later than the time stamps carried by the message acquisition request.
In the embodiment of the present invention, the mobile terminal may receive the specified number of messages sent by the server in step 206. As shown in fig. 3, the mobile terminal may receive a plurality of messages having a timestamp later than timestamp a.
In a possible implementation manner, for the mobile terminal in step 205, after receiving the push prompt sent by the server, sending the message acquisition request to the server, and when the mobile terminal receives a new message sent by the server and the received new message carries specified field information, clearing the local database and storing the push message in the local cache and the local database. As shown in fig. 4, after receiving a new message returned by the server, the mobile terminal may determine whether the message returned by the server carries specified field information, such as "hasMore" field information, and if so, empty the local database and store the message returned by the server in the local cache and the local database.
In one possible implementation, the data structure of the mobile terminal storage session (session) may be as follows:
struct Session{
0optional string session _ id; unique identification of session
1optional userinnfo user; chat user information for session
2optional agent 32_ t new _ msg _ cnt; number of unread messages in session
3optional agent 32_ t sort _ time; // session sort time
4optional PravatemSpgnew _ msg; information of the latest message attached to session
};
The data structure of the mobile terminal storing the message may be as follows:
structPrivateMsg{
0optional string id; // message unique identification
1optional agent 32_ t time; // message generation time
2optional agent 32_ t state; // status of message (for background)
3optional string tips; // message attached prompt
4optional string client _ key; // transparent client (mobile terminal), client de-reuse
5optional agent 32_ t result; //0 successful 1Bannertips 2 bubble
6optional agent 32_ t data _ type; data type 1 text 2 single song 3 album of message.
7optional MetaDatameta _ data; // metadata of messages
8optional userinnfofffrom _ user; // message sender information
9optional agent 64_ t sequence; v/background (Server) generated message increment sequence number
10optional string schema;
};
208. And the mobile terminal displays the messages of the specified number after removing the duplicate according to the currently displayed messages. In the embodiment of the invention, after receiving the specified number of messages returned by the server, the mobile terminal can perform duplication elimination on the specified number of messages according to the currently displayed messages, such as deleting the currently displayed messages. Further, the mobile terminal may display the currently displayed message and the at least one new message after sorting, for example, the mobile terminal may sort according to the timestamps of the messages, and the earlier the timestamp, the earlier the message is sorted.
In the embodiment of the present invention, the sequence of the steps 201 to 204 and the steps 205 to 208 is not limited, and the steps 201 to 204 may be executed first, and then the steps 205 to 208 may be executed, or the steps 205 to 208 may be executed first, and then the steps 201 to 204 may be executed, or the steps 201 to 204 and the steps 205 to 208 may be executed in parallel.
It should be noted that the steps 205 to 208 are optional steps, that is, the embodiment of the present invention may only include the steps 201 to 204.
Compared with the related technology, the technical scheme provided by the embodiment of the invention can realize paging pull of the message by the mobile terminal by paging sending the message; effective duplicate removal of the message can be realized by carrying out duplicate removal processing when the packet data of the message is received; when the next page is loaded, the timestamp of the last message of the previous page is carried in the message acquisition request sent to the server, so that the server can send the message after the timestamp of the last message to the mobile terminal, and the problem of message fault in the related technology is avoided. In addition, multi-machine roaming can be realized, namely, the same message can be simultaneously transmitted and received on a plurality of mobile phones. In the application of the technical scheme, the number of messages sent per day can be more than 10 thousands, the number of sessions reaches more than 3 thousands, and the extranet user has no abnormal feedback.
The method provided by the embodiment of the invention comprises the steps of displaying at least one message on a display screen of a mobile terminal in a first display state after receiving a sending instruction of the at least one message, sending the at least one message to a server, acquiring a target message displayed in the first display state currently in the repackaged data if the repackaged data is received, and changing the display state of the target message into a second display state to mark that the target message is successfully sent to the server. According to the scheme, when the message returned by the server is received, the display state of the currently displayed target message is changed instead of directly displaying the message returned by the server, so that the problem of repeated display of the same message can be avoided.
Fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes:
a receiving module 501, configured to receive a sending instruction for at least one message;
a display module 502 for displaying the at least one message on a display screen in a first display state, the first display state indicating that the displayed message was not successfully sent to the server;
a sending module 503, configured to send a message displayed in the first display state to the server;
the receiving module 501 is further configured to receive a packet data sent by a server, where the packet data includes a target message, and the target message is a message in the message displayed in the first display state;
the display module 502 is further configured to change the display status of the targeted message from the first display status to a second display status, the second display status indicating that the displayed message has been successfully sent to the server.
In one possible implementation of the method according to the invention,
the sending module 503 is further configured to send a message obtaining request to the server, where the message obtaining request carries a timestamp;
the receiving module 501 is further configured to receive a specified number of messages sent by the server, where timestamps of the specified number of messages are later than a timestamp carried by the message obtaining request.
In a possible implementation manner, the sending module 503 is configured to send the message obtaining request to the server when a next page of the current page is loaded, where the message obtaining request carries a timestamp of a last message displayed on the current page.
In a possible implementation manner, the sending module 503 is configured to send the message obtaining request to the server at a specified time interval; and when the current page closing is detected, stopping sending the message acquisition request to the server.
In a possible implementation manner, the sending module 503 is configured to send the message obtaining request to the server when receiving a push prompt sent by the server, where the push prompt is used to prompt to obtain a new message from the server.
In a possible implementation manner, the sending module 503 is configured to send the message obtaining request to the server when the push prompt is received and the new message does not exist in the local cache or the local database.
In the embodiment of the invention, after receiving a sending instruction of at least one message, the at least one message is displayed on a display screen of the mobile terminal in a first display state and sent to the server, if the repackaged data is received, a target message displayed in the first display state in the repackaged data is acquired, and the display state of the target message is changed into a second display state to identify that the target message has been successfully sent to the server. According to the scheme, when the message returned by the server is received, the display state of the currently displayed target message is changed instead of directly displaying the message returned by the server, so that the problem of repeated display of the same message can be avoided.
Fig. 6 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention. Referring to fig. 6, the apparatus includes:
a receiving module 601, configured to receive at least one message sent by a mobile terminal;
a sending module 602, configured to send packet data back to the mobile terminal, where the packet data includes a target message, where the target message is a message in messages displayed in a first display state on a display screen of the mobile terminal, the first display state is used to indicate that the displayed messages are not successfully sent to the server, and the packet data is used to indicate that all messages included in the packet data have been successfully sent to the server.
In one possible implementation, referring to fig. 7, the apparatus further includes:
a storage module 603, configured to store the at least one message;
the numbering module 604 is configured to number the at least one message incrementally, where a number of a first received message is smaller than a number of a second received message.
In one possible implementation, referring to fig. 8, the apparatus further includes:
a generating module 605 for generating a timestamp of the at least one message;
a sorting module 606 configured to sort the at least one message according to the timestamp of the at least one message.
In a possible implementation manner, the receiving module is further configured to receive a message acquisition request sent by the mobile terminal, where the message acquisition request carries a timestamp;
the sending module is further configured to send a specified number of messages to the mobile terminal, where timestamps of the specified number of messages are later than the timestamp carried by the message acquisition request.
In a possible implementation manner, the sending module is further configured to send a push prompt to the mobile terminal, where the push prompt is used to prompt to obtain a new message from the server.
In the embodiment of the invention, after at least one message is received, the packet data is sent back to the server, and the packet data comprises the target message which is currently displayed in the first display state at the mobile terminal, so that the display state of the target message can be changed into the second display state after the mobile terminal receives the packet data, so as to identify that the target message is successfully sent to the server. By the scheme, when the mobile terminal receives the message returned by the server, the display state of the currently displayed target message is changed instead of directly displaying the message returned by the server, so that the problem of repeated display of the same message can be avoided.
It should be noted that: in the message processing apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated in the foregoing, and in practical applications, the functions may be distributed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the message processing apparatus and the message processing method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 9 is a schematic structural diagram of a mobile terminal 900 according to an embodiment of the present invention. The mobile terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Mobile terminal 900 may also be referred to by other names such as user equipment, a portable mobile terminal, a laptop mobile terminal, a desktop mobile terminal, and so on.
In general, mobile terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement the message processing methods provided by method embodiments herein.
In some embodiments, mobile terminal 900 may also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 904, display screen 905, camera 906, audio circuitry 907, positioning component 908, and power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other mobile terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 905 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 905 may be one, providing the front panel of the mobile terminal 900; in other embodiments, the number of the display screens 905 may be at least two, and the display screens are respectively disposed on different surfaces of the mobile terminal 900 or in a folding design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or on a folded surface of the mobile terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of a mobile terminal, and a rear camera is disposed at a rear surface of the mobile terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. The microphones may be provided in a plurality for stereo sound collection or noise reduction, and are respectively disposed at different portions of the mobile terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the mobile terminal 900 for navigation or LBS (Location Based Service). The Positioning component 908 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 909 is used to supply power to various components in the mobile terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, mobile terminal 900 also includes one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the mobile terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the touch display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the mobile terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the mobile terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed in a side bezel of the mobile terminal 900 and/or under the touch display 905. When the pressure sensor 913 is disposed on the side frame of the mobile terminal 900, the holding signal of the user to the mobile terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the touch display 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the mobile terminal 900. When a physical key or vendor Logo is provided on the mobile terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the touch display 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 905 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
A proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of the mobile terminal 900. The proximity sensor 916 is used to collect a distance between a user and a front surface of the mobile terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the mobile terminal 900 gradually decreases, the processor 901 controls the touch display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the mobile terminal 900 becomes gradually larger, the processor 901 controls the touch display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is not intended to be limiting of the mobile terminal 900, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Embodiments of the present invention provide a server, which may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) and one or more memories, where at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processors to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer readable storage medium is also provided, such as a memory including at least one instruction, at least one program, set of codes, or set of instructions that can be loaded and executed by a processor to perform the message processing method in the above embodiments. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random-Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent replacements, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (24)

1. A message processing method applied to a mobile terminal including a display screen, the method comprising:
receiving a sending instruction of at least one message;
displaying the at least one message on the display screen in a first display state, the first display state indicating that the displayed message was not successfully sent to a server;
sending a message displayed in the first display state to the server;
receiving package data sent by a server, wherein the package data comprises a target message, and the target message is a message in the messages displayed in the first display state;
and replacing the content of the message currently displayed in the first display state with the content of the target message in the packet data, and changing the display state of the target message from the first display state to a second display state, wherein the second display state is used for indicating that the displayed message is successfully sent to the server.
2. The method of claim 1, further comprising:
sending a message acquisition request to the server, wherein the message acquisition request carries a timestamp;
and receiving a specified number of messages sent by the server, wherein the time stamps of the specified number of messages are later than the time stamps carried by the message acquisition request.
3. The method of claim 2, wherein sending a message fetch request to the server comprises:
and when the next page of the current page is loaded, sending the message acquisition request to the server, wherein the message acquisition request carries the timestamp of the last message displayed on the current page.
4. The method of claim 2, wherein sending a message fetch request to the server comprises:
sending the message acquisition request to the server by adopting a specified time interval;
and when the current page is detected to be closed, stopping sending the message acquisition request to the server.
5. The method of claim 2, wherein sending a message fetch request to the server comprises:
and when a push prompt sent by the server is received, sending the message acquisition request to the server, wherein the push prompt is used for prompting the server to acquire a new message.
6. The method of claim 5, wherein sending a message acquisition request to the server when receiving a push prompt sent by the server comprises:
and when the push prompt is received and the new message does not exist in the local cache and the local database, sending the message acquisition request to the server.
7. A message processing method is applied to a server and comprises the following steps:
receiving at least one message sent by a mobile terminal;
and sending back packet data to the mobile terminal, wherein the packet data comprises a target message, the target message is a message in messages displayed in a first display state on a display screen of the mobile terminal, the first display state is used for indicating that the displayed messages are not successfully sent to the server, the packet data is used for replacing the content of the messages currently displayed in the first display state with the content of the target message in the packet data by the mobile terminal, and the display state of the target message is changed from the first display state to a second display state, and the second display state is used for indicating that the displayed messages are successfully sent to the server.
8. The method according to claim 7, wherein after receiving at least one message sent by the mobile terminal, the method further comprises:
storing the at least one message;
and carrying out incremental numbering on the at least one message, wherein the number of the message received firstly is smaller than that of the message received later.
9. The method according to claim 7, wherein after receiving at least one message sent by the mobile terminal, the method further comprises:
generating a timestamp for the at least one message;
and sequencing the at least one message according to the timestamp of the at least one message.
10. The method of claim 7, further comprising:
receiving a message acquisition request sent by the mobile terminal, wherein the message acquisition request carries a timestamp;
and sending a specified number of messages to the mobile terminal, wherein the time stamps of the specified number of messages are later than the time stamp carried by the message acquisition request.
11. The method according to claim 10, wherein before receiving the message acquisition request sent by the mobile terminal, the method further comprises:
and sending a push prompt to the mobile terminal, wherein the push prompt is used for prompting to acquire a new message from the server.
12. A message processing apparatus applied to a mobile terminal including a display screen, the apparatus comprising:
the receiving module is used for receiving a sending instruction of at least one message;
a display module for displaying the at least one message on the display screen in a first display state, the first display state indicating that the displayed message was not successfully sent to the server;
a sending module, configured to send a message displayed in the first display state to the server;
the receiving module is also used for receiving the repacking data sent by the server, wherein the repacking data comprises a target message, and the target message is a message in the messages displayed in the first display state;
the display module is further configured to replace the content of the message currently displayed in the first display state with the content of the target message in the repackaged data, and change the display state of the target message from the first display state to a second display state, where the second display state is used to indicate that the displayed message has been successfully sent to the server.
13. The apparatus of claim 12,
the sending module is further configured to send a message acquisition request to the server, where the message acquisition request carries a timestamp;
the receiving module is further configured to receive a specified number of messages sent by the server, where timestamps of the specified number of messages are later than a timestamp carried by the message acquisition request.
14. The apparatus according to claim 13, wherein the sending module is configured to send the message obtaining request to the server when a page next to a current page is loaded, and the message obtaining request carries a timestamp of a last message displayed on the current page.
15. The apparatus according to claim 13, wherein the sending module is configured to send the message acquisition request to the server at specified time intervals; and when the current page is detected to be closed, stopping sending the message acquisition request to the server.
16. The apparatus of claim 13, wherein the sending module is configured to send the message obtaining request to the server when receiving a push prompt sent by the server, and the push prompt is used to prompt a server to obtain a new message.
17. The apparatus of claim 16, wherein the sending module is configured to send the message obtaining request to the server when the push prompt is received and the new message does not exist in both a local cache and a local database.
18. A message processing apparatus, applied to a server, the apparatus comprising:
the receiving module is used for receiving at least one message sent by the mobile terminal;
the sending module is used for sending back packet data to the mobile terminal, the packet data comprises a target message, the target message is a message in messages displayed in a first display state on a display screen of the mobile terminal, the first display state is used for indicating that the displayed messages are not successfully sent to the server, the packet data is used for replacing the content of the messages currently displayed in the first display state with the content of the target message in the packet data by the mobile terminal, and the display state of the target message is changed from the first display state to a second display state, and the second display state is used for indicating that the displayed messages are successfully sent to the server.
19. The apparatus of claim 18, further comprising:
a storage module for storing the at least one message;
and the numbering module is used for numbering the at least one message in an increasing mode, and the number of the message received firstly is smaller than that of the message received later.
20. The apparatus of claim 18, further comprising:
a generating module for generating a timestamp of the at least one message;
and the sequencing module is used for sequencing the at least one message according to the timestamp of the at least one message.
21. The apparatus of claim 18,
the receiving module is further configured to receive a message acquisition request sent by the mobile terminal, where the message acquisition request carries a timestamp;
the sending module is further configured to send a specified number of messages to the mobile terminal, where timestamps of the specified number of messages are later than a timestamp carried by the message acquisition request.
22. The apparatus of claim 21, wherein the sending module is further configured to send a push prompt to the mobile terminal, and wherein the push prompt is used to prompt to obtain a new message from the server.
23. A mobile terminal, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the message processing method according to any of claims 1 to 6.
24. A server, comprising a processor and a memory, wherein at least one instruction, at least one program, set of codes, or set of instructions is stored in the memory, and wherein the at least one instruction, at least one program, set of codes, or set of instructions is loaded and executed by the processor to implement the message processing method according to any one of claims 7 to 11.
CN201811405062.5A 2018-11-23 2018-11-23 Message processing method and device Active CN109600301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811405062.5A CN109600301B (en) 2018-11-23 2018-11-23 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811405062.5A CN109600301B (en) 2018-11-23 2018-11-23 Message processing method and device

Publications (2)

Publication Number Publication Date
CN109600301A CN109600301A (en) 2019-04-09
CN109600301B true CN109600301B (en) 2021-12-31

Family

ID=65958798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811405062.5A Active CN109600301B (en) 2018-11-23 2018-11-23 Message processing method and device

Country Status (1)

Country Link
CN (1) CN109600301B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443674B (en) * 2019-06-27 2021-09-07 口碑(上海)信息技术有限公司 Order data pulling method and device, storage medium and computer equipment
CN111030918B (en) * 2019-11-19 2022-03-25 维沃移动通信有限公司 Message processing method, electronic equipment and server
CN113379495A (en) * 2021-06-10 2021-09-10 北京达佳互联信息技术有限公司 Information processing method and information processing apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747567A (en) * 2004-09-10 2006-03-15 华为技术有限公司 Message delivering method and system
CN101022606A (en) * 2007-04-10 2007-08-22 中兴通讯股份有限公司 Prompt method and device for short message state report
CN104468732A (en) * 2014-11-18 2015-03-25 东方通信股份有限公司 Method for realizing request state synchronization of subway joint scheduling system
CN104506416A (en) * 2014-12-17 2015-04-08 东软集团股份有限公司 Method, device and system for implementing stable message forwarding
CN105119816A (en) * 2015-09-16 2015-12-02 北京梅泰诺通信技术股份有限公司 Method and device for processing information sending state
CN105162693A (en) * 2015-09-16 2015-12-16 小米科技有限责任公司 Message display method and device
CN107666430A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 A kind of E-mail sending method, device and terminal
CN107800720A (en) * 2017-11-29 2018-03-13 广州酷狗计算机科技有限公司 Kidnap report method, device, storage medium and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7685239B2 (en) * 2000-06-28 2010-03-23 Canon Kabushiki Kaisha Image communication apparatus, image communication method, and memory medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747567A (en) * 2004-09-10 2006-03-15 华为技术有限公司 Message delivering method and system
CN101022606A (en) * 2007-04-10 2007-08-22 中兴通讯股份有限公司 Prompt method and device for short message state report
CN104468732A (en) * 2014-11-18 2015-03-25 东方通信股份有限公司 Method for realizing request state synchronization of subway joint scheduling system
CN104506416A (en) * 2014-12-17 2015-04-08 东软集团股份有限公司 Method, device and system for implementing stable message forwarding
CN105119816A (en) * 2015-09-16 2015-12-02 北京梅泰诺通信技术股份有限公司 Method and device for processing information sending state
CN105162693A (en) * 2015-09-16 2015-12-16 小米科技有限责任公司 Message display method and device
CN107666430A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 A kind of E-mail sending method, device and terminal
CN107800720A (en) * 2017-11-29 2018-03-13 广州酷狗计算机科技有限公司 Kidnap report method, device, storage medium and equipment

Also Published As

Publication number Publication date
CN109600301A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN110213153B (en) Display method, acquisition method, device, terminal and storage medium of unread messages
CN109327608B (en) Song sharing method, terminal, server and system
CN108093307B (en) Method and system for acquiring playing file
CN112764608B (en) Message processing method, device, equipment and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN109600301B (en) Message processing method and device
CN115378900A (en) Song list sharing method, device, terminal and storage medium
CN111949879A (en) Method and device for pushing message, electronic equipment and readable storage medium
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN111159604A (en) Picture resource loading method and device
CN111092991B (en) Lyric display method and device and computer storage medium
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN107800720B (en) Hijacking reporting method, device, storage medium and equipment
CN110971692B (en) Method and device for opening service and computer storage medium
CN113836426A (en) Information pushing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230529

Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Patentee after: TENCENT MUSIC ENTERTAINMENT (SHENZHEN) Co.,Ltd.

Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Patentee before: TENCENT MUSIC ENTERTAINMENT TECHNOLOGY (SHENZHEN) Co.,Ltd.