CN107302493B - Message processing method, message processing device and intelligent terminal - Google Patents

Message processing method, message processing device and intelligent terminal Download PDF

Info

Publication number
CN107302493B
CN107302493B CN201710520730.8A CN201710520730A CN107302493B CN 107302493 B CN107302493 B CN 107302493B CN 201710520730 A CN201710520730 A CN 201710520730A CN 107302493 B CN107302493 B CN 107302493B
Authority
CN
China
Prior art keywords
red packet
message
electronic red
conversation
electronic
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.)
Expired - Fee Related
Application number
CN201710520730.8A
Other languages
Chinese (zh)
Other versions
CN107302493A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710520730.8A priority Critical patent/CN107302493B/en
Publication of CN107302493A publication Critical patent/CN107302493A/en
Application granted granted Critical
Publication of CN107302493B publication Critical patent/CN107302493B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • 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/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • 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/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Abstract

The invention discloses a message processing method, a message processing device, an intelligent terminal and a computer readable storage medium, wherein the message processing method comprises the following steps: when an application program receives a message, detecting whether the currently received message is an electronic red packet message; if the currently received message is an electronic red packet message, detecting whether the application program currently has a session associated with the electronic red packet message; if the session does not exist, creating the session; and outputting the currently received electronic red packet message in the conversation. The technical scheme provided by the invention can improve the efficiency of the user in robbing the electronic red envelope.

Description

Message processing method, message processing device and intelligent terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message processing method, a message processing apparatus, an intelligent terminal, and a computer-readable storage medium.
Background
At present, most intelligent terminals, such as mobile phones, tablet computers and the like, can install various application programs, such as WeChat, Paibao, QQ and the like. The user can use the social and payment functions of these applications, as well as other additional functions of these applications, such as the send/grab electronic red envelope function.
However, in the electronic red packet robbing process, if the electronic red packet messages exist in a plurality of sessions, the user needs to switch back and forth among the sessions, and the electronic red packet dismantling operation is performed in each session, which causes time waste and leads to missed electronic red packet robbery.
Disclosure of Invention
In view of this, the present invention provides a message processing method, a message processing apparatus, a terminal device and a computer readable storage medium, and aims to improve efficiency of a user in grabbing an electronic red packet.
A first aspect of the present invention provides a message processing method, where the message processing method includes:
when an application program receives a message, detecting whether the currently received message is an electronic red packet message;
if the currently received message is an electronic red packet message, detecting whether the application program currently has a session associated with the electronic red packet message;
if the session does not exist, creating the session;
and outputting the currently received electronic red packet message in the conversation.
Based on the first aspect of the present invention, in a first possible implementation manner, after the currently received electronic red packet message is output in the session, the message processing manner further includes:
detecting whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
and if the electronic red packet message is detected not to be in a red packet robbable state for the login user of the application program, updating the session so that the user can know that the electronic red packet message is not robbable through the session.
Based on the first possible implementation manner of the first aspect of the present invention, in a second possible implementation manner, the detecting whether the electronic red packet message is in a red packet robbable state for a login user of the application program includes:
detecting whether a red packet robbing control associated with the electronic red packet message is triggered by the login user, wherein the red packet robbing control is used for providing an interface for robbing the electronic red packet;
if detecting that the red envelope robbing control associated with the electronic red envelope message is triggered by the login user, judging that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program;
if detecting that the red envelope robbing control associated with the electronic red envelope message is not triggered by the login user, detecting whether the number of the remaining electronic red envelopes currently associated with the electronic red envelope message is 0;
if the number of the remaining electronic red packages associated with the electronic red package message is not 0, judging that the electronic red package message is in a red package robbable state for the login user of the application program;
and if the number of the remaining electronic red packages associated with the electronic red package message is detected to be 0, judging that the electronic red package message is not in a red package robbable state for the login user of the application program.
Based on the first possible implementation manner of the first aspect of the present invention, in a third possible implementation manner, the updating the session includes:
and deleting the electronic red packet message from the conversation.
Based on the first aspect of the present invention, or the first possible implementation manner of the first aspect of the present invention, or the second possible implementation manner of the first aspect of the present invention, or the third possible implementation manner of the first aspect of the present invention, in a fourth possible implementation manner, the outputting the currently received electronic red packet message in the session includes:
determining the sequencing position of the electronic red packet message in the conversation according to a preset sequencing condition;
and outputting the electronic red packet message to the determined sequencing position in the conversation.
A second aspect of the present invention provides a message processing apparatus, including:
the message detection unit is used for detecting whether the currently received message is an electronic red packet message or not when the application program receives the message;
the conversation detection unit is used for detecting whether the application program has a conversation related to the electronic red packet message currently or not when the currently received message is the electronic red packet message;
a session creating unit configured to create the session when the session does not exist;
and the message output unit is used for outputting the currently received electronic red packet message in the conversation.
Based on the second aspect of the present invention, in a first possible implementation manner, the message processing apparatus further includes:
a state detection unit, configured to detect whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
and the session updating unit is used for updating the session when detecting that the electronic red packet message is not in a red packet robbable state for the login user of the application program, so that the user knows that the electronic red packet message is not robbable through the session.
In a second possible implementation manner, based on the first possible implementation manner of the second aspect of the present invention, the state detection unit includes:
a control trigger detection subunit, configured to detect whether a red envelope robbing control associated with the electronic red envelope message has been triggered by the login user, where the red envelope robbing control is configured to provide an interface for robbing the electronic red envelope;
a state determining subunit, configured to determine that the electronic red packet message is not in a red packet preemptible state for the login user of the application program when the control trigger detecting subunit detects that the red packet preempting control associated with the electronic red packet message has been triggered by the login user;
a red packet number detection subunit, configured to, when the control trigger detection subunit detects that the red packet robbing control associated with the electronic red packet message is not triggered by the login user, detect whether a remaining electronic red packet number currently associated with the electronic red packet message is 0;
the status determining subunit is further configured to determine that the electronic red packet message is in a red packet preemptible status for the login user of the application program when detecting that the remaining number of electronic red packets currently associated with the electronic red packet message is not 0, and determine that the electronic red packet message is not in a red packet preemptible status for the login user of the application program when detecting that the remaining number of electronic red packets currently associated with the electronic red packet message is 0.
Based on the first possible implementation manner of the second aspect of the present invention, in a third possible implementation manner, the session updating unit is specifically configured to delete the electronic red packet message from the session.
Based on the second aspect of the present invention, or the first possible implementation manner of the second aspect of the present invention, or the second possible implementation manner of the second aspect of the present invention, or the third possible implementation manner of the second aspect of the present invention, in a fourth possible implementation manner, the message output unit includes:
a sequencing position determining subunit, configured to determine a sequencing position of the electronic red packet message in the session according to a preset sequencing condition;
and the output determining position subunit is used for outputting the electronic red packet message to the determined sequencing position in the conversation.
A third aspect of an embodiment of the present invention provides an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the message processing method mentioned in the first aspect or any possible implementation manner of the first aspect when executing the computer program.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the message processing method mentioned in the first aspect or any of the possible implementations of the first aspect.
As can be seen from the above, in the solution of the present invention, when an application receives a message, it detects whether the currently received message is an electronic red packet message, if the currently received message is an electronic red packet message, it continues to detect whether the application currently has a session associated with the electronic red packet message, and when the session does not exist, it creates the session, and finally outputs the currently received electronic red packet message in the session. By the method and the device, when the user needs to perform electronic red packet robbing operation in different sessions, the electronic red packet messages received in the different sessions are unified into one session, so that the user does not need to switch among the sessions, the electronic red packet robbing operation of the user is reduced, and the electronic red packet robbing efficiency of the user is improved.
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 embodiments or the prior art descriptions will be briefly described 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 inventive exercise.
FIG. 1 is a schematic flow chart illustrating an implementation of an embodiment of a message processing method provided by the present invention;
FIG. 2 is a schematic flow chart of another embodiment of a message processing method provided by the present invention;
fig. 3 is a flowchart of a specific implementation of step S205 of the message processing method provided in the present invention;
FIG. 4 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an embodiment of the intelligent terminal provided by the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a message processing method according to an embodiment of the present invention is described below, where the message processing method according to the embodiment of the present invention includes:
in step S101, when the application receives a message, detecting whether the currently received message is an electronic red packet message;
in the embodiment of the invention, the application program in the intelligent terminal can be monitored, and when the application program is detected to receive the message, whether the currently received message is the electronic red packet message is detected. The application program is an application program that is already installed in the intelligent terminal and can perform electronic red packet operation, and includes but is not limited to WeChat, Paibao, and QQ, and is not limited herein. Optionally, the user may select an application program that needs to be monitored according to actual needs. These applications typically have instant messaging capabilities and are capable of receiving a variety of messages such as electronic red envelope messages, web page link messages, voice messages, text messages, picture messages, video messages, and the like. In this step, the received message is further processed only when the message received by the application program is an electronic red packet message. Specifically, the received messages include messages received by all sessions in the application program, where the all sessions include a single contact session and a multiple contact session.
It should be noted that, when the intelligent terminal enters a preset state, for example, a screen-off state or a screen-locking state, the user may select whether to execute the step S101. When the user selects "yes" or does not make a selection, after the intelligent terminal enters a preset state, it may be periodically and automatically detected whether the application receives a new message in the background, and when it is detected that the application receives a new message, the step S101 is executed.
In step S102, if the currently received message is an electronic red packet message, detecting whether a session associated with the electronic red packet message currently exists in the application program, if not, performing step S103, and if so, performing step S104;
in the embodiment of the present invention, when it is determined that the message currently received in step S101 is an electronic red packet message, it is continuously detected whether a session associated with the electronic red packet message exists in the application program. In the above-mentioned conversation related to the electronic red packet message, only the electronic red packet message is output, and other messages are not output, and it can be considered that the above-mentioned conversation related to the electronic red packet message is an electronic red packet conversation. The electronic red packet removing/robbing operation performed by the user on each electronic red packet message output in the above-mentioned session can be equal to the electronic red packet removing/robbing operation performed on each electronic red packet message in the original session of each electronic red packet message, that is, the user can perform the electronic red packet removing/robbing operation on each output electronic red packet message in the session associated with the electronic red packet message without returning to the original session to perform the electronic red packet removing/robbing operation.
In step S103, a conversation associated with the electronic red envelope message is created;
in the embodiment of the present invention, when it is detected in step S102 that the application program does not currently have a session associated with the electronic red packet message, the session is created. Specifically, the user may be prompted that a session associated with the electronic red envelope does not exist currently, and the session is created after a creation instruction input by the user is received; or, the application may be triggered to actively create the session, which is not limited herein. Optionally, before creating the session, the number of electronic red packet messages received in the application program may also be detected; and when the number of the received electronic red packet messages in the application program exceeds a preset number threshold, the conversation is created again. After the above-described session is created, step S104 is performed.
In step S104, the currently received electronic red envelope message is output in the above-described conversation associated with the electronic red envelope message.
In an embodiment of the present invention, the currently received electronic red packet message may be output in the above-mentioned conversation associated with the electronic red packet message. Optionally, the conversation may be displayed in a form of a list in a foreground of the intelligent terminal, and the user may directly perform an electronic red packet removing/robbing operation on each electronic red packet message output in the conversation in the foreground of the intelligent terminal.
Optionally, the step S104 includes:
determining the sequencing position of the electronic red packet message in the conversation according to a preset sequencing condition;
and outputting the electronic red packet message to the determined sequencing position in the conversation.
The preset ordering condition includes, but is not limited to, a time when the electronic red packet message is received. For example, when the conversation outputs each electronic red envelope message in the form of a list, the newly received electronic red envelope message may be put on top of the list and output each time. Or, the preset sorting condition may also be a total amount of the electronic red packet, that is, a sorting position of the electronic red packet message in the session is determined according to a total amount of the red packet associated with the received electronic red packet message, where the higher the total amount of the red packet associated with the electronic red packet message is, the farther the sorting position is, and this is not limited herein. Of course, the sequencing position of the electronic red packet message in the conversation can be determined according to the receiving time of the electronic red packet message and the total amount of the red packet associated with the electronic red packet message. After the sequencing position of the electronic red packet message is determined, the electronic red packet message can be output to the determined sequencing position in the conversation, so that a user can conveniently determine which electronic red packet message needs to be disassembled/robbed first.
It should be noted that the message processing method in the embodiment of the present invention may be applied to a message processing apparatus, and the message processing apparatus may be a stand-alone device, or may also be integrated in an intelligent terminal or other devices, which is not limited herein.
As can be seen from the above, in the embodiments of the present invention, when an application receives a message, it is detected whether the currently received message is an electronic red packet message, if the currently received message is an electronic red packet message, it is continuously detected whether a session associated with the electronic red packet message currently exists in the application, and when the session does not exist, the session is created, and finally, the currently received electronic red packet message is output in the session. Therefore, as long as the electronic red packet message received by the application program is uniformly output in one electronic red packet session in the application program, when the electronic red packet messages exist in a plurality of sessions in the application program, the user does not need to switch among the sessions, the operation of the user for grabbing the electronic red packet is reduced, and the efficiency of the user for grabbing the electronic red packet is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example two
On the basis of the first embodiment, another message processing method provided in the embodiment of the present invention is described below, with reference to fig. 2, where the message processing method in the embodiment of the present invention includes:
in step S201, when a message is received based on an application, detecting whether the currently received message is an electronic red packet message;
in the embodiment of the present invention, the step S201 is the same as the step S101, and specific reference may be made to the related description of the step S101, which is not repeated herein.
In step S202, if the currently received message is an electronic red packet message, detecting whether a session associated with the electronic red packet message currently exists in the application program, if not, performing step S203, and if so, performing step S204;
in the embodiment of the present invention, the step S202 is the same as the step S102, and reference may be specifically made to the related description of the step S102, which is not repeated herein.
In step S203, a conversation associated with the electronic red envelope message is created;
in the embodiment of the present invention, the step S203 is the same as the step S103, and specific reference may be made to the related description of the step S103, which is not repeated herein.
In step S204, outputting the currently received electronic red packet message in the session associated with the electronic red packet message;
in the embodiment of the present invention, the step S204 is the same as the step S104, and reference may be specifically made to the related description of the step S103, which is not repeated herein.
In step S205, it is detected whether the electronic red envelope message is in a red envelope robbable state for the login user of the application program;
in the embodiment of the invention, after the electronic red packet is sent by a certain contact in a conversation, each contact in the conversation can carry out red packet robbing operation, and because the sent electronic red packet is usually limited by the number and the amount of money, the situation that the electronic red packet is completely robbed by other contacts can occur within a period of time after the electronic red packet is sent, so that the login user of the application program can not carry out the electronic red packet dismantling/robbing operation on the electronic red packet. In order to avoid the waste of the user time, after the currently received electronic red packet message is output in the session, it may be periodically detected whether the electronic red packet message is in a red packet robbable state for the login user of the application program.
In step S206, if it is detected that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program, the session is updated.
In the embodiment of the invention, when the electronic red packet message is detected not to be in the red packet robbable state for the login user of the application program, the session is updated, so that the user can know that the electronic red packet message is not robbable through the updated session, and the user is prevented from performing meaningless electronic red packet robbing operation. Optionally, the conversation may be updated by deleting the electronic red packet message from the conversation; alternatively, the conversation may be updated by marking the electronic red packet message, which is not limited herein. When each electronic red packet message in the session is marked, the electronic red packet message in the red packet preemptible state for the login user of the application program and the message not in the red packet preemptible state for the login user of the application program may be marked by different characters, different colors or different shades, which is not limited herein.
Further, fig. 3 shows a specific implementation flow of the step S205, which is detailed as follows:
in step S301, detecting whether the red envelope grabbing control associated with the electronic red envelope message has been triggered by the logged-in user, if the red envelope grabbing control associated with the electronic red envelope message has been triggered by the logged-in user, executing step S302, and if the red envelope grabbing control associated with the electronic red envelope message has not been triggered by the logged-in user, executing step S303;
in the embodiment of the present invention, when detecting whether the electronic red packet message is in a red packet preemptible state for the login user of the application program, it may be detected first whether a red packet preemptive control associated with the electronic red packet message has been triggered by the login user, where the red packet preemptive control is used to provide an interface for preempting the electronic red packet. Because the same user can not repeatedly detach the electronic red packet from the same electronic red packet message, whether the user can perform electronic red packet rescuing on the electronic red packet message can be determined by detecting whether the red packet rescuing control associated with the electronic red packet message is triggered by the login user. If the red packet robbing control associated with the electronic red packet message is triggered by the login user, determining that the electronic red packet message is not in a red packet robbable state for the login user of the application program, and if the red packet robbable control associated with the electronic red packet message is not triggered by the login user, determining that the electronic red packet message is in a red packet robbable state for the login user of the application program;
in step S302, it is determined that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program;
in the embodiment of the present invention, when the user logged in the application has performed the operation of removing the electronic red packet on the electronic red packet message, the determination result in step S301 is yes, and then it is determined in step S302 that the electronic red packet message is not in a red packet preemptible state for the logged user of the application, at this time, the step S206 may be continuously performed, so as to update the session.
In step S303, if it is detected that the red packet robbing control associated with the electronic red packet message is not triggered by the login user, detecting whether the remaining number of electronic red packets currently associated with the electronic red packet message is 0, if so, performing step S304, and if not, performing step S305;
in the embodiment of the present invention, when the user logged in by the application program has not performed the operation of removing the electronic red packet to the electronic red packet message, it may be further detected whether the number of the electronic red packets associated with the electronic red packet message is 0, that is, it is known whether the electronic red packet associated with the electronic red packet message has been snatched by other users, if the number of the electronic red packets associated with the electronic red packet message is 0, it is determined that the electronic red packet associated with the electronic red packet message has been snatched by other users, and if the number of the electronic red packets associated with the electronic red packet message is not 0, it is determined that the electronic red packet associated with the electronic red packet message has not been snatched by other users.
In step S304, it is determined that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program;
in the embodiment of the present invention, since it is detected in step S303 that the number of electronic red packets associated with the electronic red packet message is 0, that is, the electronic red packet associated with the electronic red packet message is already robbed by other users, at this time, it may be determined that the electronic red packet message is not in a red packet robbable state for the login user of the application program, and step S206 may be continuously executed to update the session.
In step S305, it is determined that the electronic red envelope message is in a red envelope robbable state for the logged-in user of the application program.
In the embodiment of the present invention, since it is detected in step S303 that the number of electronic red packets associated with the electronic red packet message is not 0, that is, the electronic red packet associated with the electronic red packet message is not robbed by other users, the login user may perform an electronic red packet removal/robbery operation on the electronic red packet message, and thus it may be determined that the electronic red packet message is in a red packet robbable state for the login user of the application program.
As can be seen from the above, in the embodiments of the present invention, when an application receives a message, it is detected whether the currently received message is an electronic red packet message, if the currently received message is an electronic red packet message, it is continuously detected whether a session associated with the electronic red packet message currently exists in the application, and when the session does not exist, the session is created, and finally, the currently received electronic red packet message is output in the session. Therefore, all electronic red packet messages received by one application program are uniformly output in one electronic red packet session in the application program, so that when electronic red packet messages exist in a plurality of sessions in the application program, a user does not need to switch among the sessions, the operation of the user for grabbing the electronic red packet is reduced, and the efficiency of the user for grabbing the electronic red packet is improved. And the electronic red packet message displayed in the conversation can be updated according to the state of the electronic red packet message, so that the user cannot waste time on the electronic red packet which cannot be robbed.
EXAMPLE III
An embodiment of the present invention further provides a message processing apparatus, and as shown in fig. 4, a message processing apparatus 400 in the embodiment of the present invention includes:
a message detection unit 401, configured to detect whether a currently received message is an electronic red packet message when an application receives the message;
a session detecting unit 402, configured to detect whether a session associated with an electronic red packet message currently exists in the application program when the currently received message is the electronic red packet message;
a session creating unit 403, configured to create the session when the session does not exist;
a message output unit 404, configured to output the currently received electronic red envelope message in the session.
Optionally, the message processing apparatus 400 further includes:
a state detection unit, configured to detect whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
and the session updating unit is used for updating the session when detecting that the electronic red packet message is not in a red packet robbable state for the login user of the application program, so that the user knows that the electronic red packet message is not robbable through the session.
Optionally, the state detecting unit includes:
a control trigger detection subunit, configured to detect whether a red envelope robbing control associated with the electronic red envelope message has been triggered by the login user, where the red envelope robbing control is configured to provide an interface for robbing the electronic red envelope;
a state determining subunit, configured to determine that the electronic red packet message is not in a red packet preemptible state for the login user of the application program when the control trigger detecting subunit detects that the red packet preempting control associated with the electronic red packet message has been triggered by the login user;
a red packet number detection subunit, configured to, when the control trigger detection subunit detects that the red packet robbing control associated with the electronic red packet message is not triggered by the login user, detect whether a remaining electronic red packet number currently associated with the electronic red packet message is 0;
the status determining subunit is further configured to determine that the electronic red packet message is in a red packet preemptible status for the login user of the application program when detecting that the remaining number of electronic red packets currently associated with the electronic red packet message is not 0, and determine that the electronic red packet message is not in a red packet preemptible status for the login user of the application program when detecting that the remaining number of electronic red packets currently associated with the electronic red packet message is 0.
Optionally, the conversation updating unit is specifically configured to delete the electronic red packet message from the conversation.
Optionally, the message output unit 402 includes:
a sequencing position determining subunit, configured to determine a sequencing position of the electronic red packet message in the session according to a preset sequencing condition;
and the output determining position subunit is used for outputting the electronic red packet message to the determined sequencing position in the conversation.
It should be noted that the message processing apparatus in the embodiment of the present invention may be a stand-alone device, or may also be integrated in an intelligent terminal or other devices, which is not limited herein.
As can be seen from the above, in the embodiment of the present invention, when an application receives a message, a message processing apparatus detects whether the currently received message is an electronic red packet message, and if the currently received message is an electronic red packet message, continues to detect whether a session associated with the electronic red packet message currently exists in the application, and when the session does not exist, creates the session, and finally outputs the currently received electronic red packet message in the session. Therefore, all electronic red packet messages received by one application program are uniformly output in one electronic red packet session in the application program, so that when electronic red packet messages exist in a plurality of sessions in the application program, a user does not need to switch among the sessions, the operation of the user for grabbing the electronic red packet is reduced, and the efficiency of the user for grabbing the electronic red packet is improved. And the electronic red packet message displayed in the conversation can be updated according to the state of the electronic red packet message, so that the user cannot waste time on the electronic red packet which cannot be robbed.
Example four
Referring to fig. 5, an intelligent terminal according to an embodiment of the present invention includes: a memory 501, one or more processors 502 (only one shown in fig. 5), and a computer program stored on the memory 501 and executable on the processors. Wherein: the memory 501 is used for storing software programs and modules, and the processor 502 executes various functional applications and data processing by running the software programs and units stored in the memory 501, so as to acquire resources corresponding to the preset events. Specifically, the processor 502 realizes the following steps by running the above-mentioned computer program stored in the memory 501:
when an application program receives a message, detecting whether the currently received message is an electronic red packet message;
if the currently received message is an electronic red packet message, detecting whether the application program currently has a session associated with the electronic red packet message;
if the session does not exist, creating the session;
and outputting the currently received electronic red packet message in the conversation.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the processor 502 further implements the following steps when executing the above computer program stored in the memory 501:
detecting whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
and if the electronic red packet message is detected not to be in a red packet robbable state for the login user of the application program, updating the session so that the user can know that the electronic red packet message is not robbable through the session.
In a third possible implementation manner provided based on the second possible implementation manner, the detecting whether the electronic red packet message is in a red packet preemptible state for the login user of the application program includes:
detecting whether a red packet robbing control associated with the electronic red packet message is triggered by the login user, wherein the red packet robbing control is used for providing an interface for robbing the electronic red packet;
if detecting that the red envelope robbing control associated with the electronic red envelope message is triggered by the login user, judging that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program;
if detecting that the red envelope robbing control associated with the electronic red envelope message is not triggered by the login user, detecting whether the number of the remaining electronic red envelopes currently associated with the electronic red envelope message is 0;
if the number of the remaining electronic red packages associated with the electronic red package message is not 0, judging that the electronic red package message is in a red package robbable state for the login user of the application program;
and if the number of the remaining electronic red packages associated with the electronic red package message is detected to be 0, judging that the electronic red package message is not in a red package robbable state for the login user of the application program.
In a fourth possible implementation manner provided on the basis of the second possible implementation manner, the updating the session includes:
and deleting the electronic red packet message from the conversation.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, or the fourth possible implementation manner, the outputting the currently received electronic red packet message in the conversation includes:
determining the sequencing position of the electronic red packet message in the conversation according to a preset sequencing condition;
and outputting the electronic red packet message to the determined sequencing position in the conversation.
Further, as shown in fig. 5, the intelligent terminal may further include: one or more input devices 503 (only one shown in fig. 5) and one or more output devices 504 (only one shown in fig. 4). The memory 501, processor 502, input device 503, and output device 504 are connected by a bus 505.
It should be understood that in the present embodiment, the Processor 502 may be a Central Processing Unit (CPU), and the Processor may be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 503 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 504 may include a display, a speaker, etc.
Memory 501 may include both read-only memory and random access memory and provides instructions and data to processor 502. Some or all of the memory 501 may also include non-volatile random access memory. For example, the memory 501 may also store device type information.
As can be seen from the above, in the embodiment of the present invention, when an application program of an intelligent terminal receives a message, it is detected whether the currently received message is an electronic red packet message, if the currently received message is an electronic red packet message, it is continuously detected whether a session associated with the electronic red packet message currently exists in the application program, and when the session does not exist, the session is created, and finally, the currently received electronic red packet message is output in the session. Therefore, all electronic red packet messages received by an application program in the intelligent terminal are uniformly output in one electronic red packet session in the application program, so that when electronic red packet messages exist in a plurality of sessions in the application program, a user does not need to switch among the sessions, the operation of grabbing the electronic red packet by the user is reduced, and the efficiency of grabbing the electronic red packet by the user is improved. In addition, the electronic red packet message displayed in the conversation can be updated, so that the user does not waste time on the electronic red packet which cannot be robbed.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A message processing method, characterized in that the message processing method comprises:
when an application program receives a message, detecting whether the currently received message is an electronic red packet message, wherein the application program is an application program which is specified by a user and needs to be monitored;
if the currently received message is an electronic red packet message, detecting whether the application program currently has a conversation associated with the electronic red packet message, wherein the conversation associated with the electronic red packet message is the electronic red packet conversation, and only the electronic red packet message is output in the conversation associated with the electronic red packet message, but other types of messages are not output; the electronic red packet dismantling/robbing operation of each electronic red packet message output in the conversation by the user is equal to the electronic red packet dismantling/robbing operation of each electronic red packet message in the original conversation of each electronic red packet message, namely, the user can dismantle/robbe the electronic red packet of each electronic red packet message output in the conversation related to the electronic red packet message without returning to the original conversation to dismantle/robbe the electronic red packet;
if the conversation related to the electronic red packet message does not exist, detecting the number of the received electronic red packet messages in the application program; when the number of the received electronic red packet messages in the application program exceeds a preset number threshold, creating the conversation related to the electronic red packet messages; outputting the currently received electronic red packet message in the conversation associated with the electronic red packet message;
if the conversation related to the electronic red packet message exists, outputting the currently received electronic red packet message in the conversation related to the electronic red packet message;
periodically detecting whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
if the electronic red packet message is detected not to be in a red packet robbable state for the login user of the application program, updating the session so that the user can know that the electronic red packet message is not robbable through the session; wherein said updating said session comprises:
and deleting the electronic red packet message from the conversation.
2. The message processing method of claim 1, wherein said detecting whether the electronic red envelope message is in a red envelope robbable state for a logged-on user of the application comprises:
detecting whether a red packet robbing control associated with the electronic red packet message has been triggered by the login user, wherein the red packet robbing control is used for providing an interface for robbing the electronic red packet;
if the red envelope robbing control associated with the electronic red envelope message is detected to be triggered by the login user, judging that the electronic red envelope message is not in a red envelope robbable state for the login user of the application program;
if detecting that the red envelope robbing control associated with the electronic red envelope message is not triggered by the login user, detecting whether the number of the remaining electronic red envelopes currently associated with the electronic red envelope message is 0;
if the number of the remaining electronic red packages associated with the electronic red package message is not 0, judging that the electronic red package message is in a red package preemptible state for the login user of the application program;
and if the number of the remaining electronic red packages associated with the electronic red package message is detected to be 0, judging that the electronic red package message is not in a red package preemptible state for the login user of the application program.
3. A message processing method according to any of claims 1 to 2, wherein said outputting a currently received electronic red envelope message in said conversation comprises:
determining the sequencing position of the electronic red packet message in the conversation according to a preset sequencing condition;
and outputting the electronic red packet message to the determined sequencing position in the conversation.
4. A message processing apparatus, characterized in that the message processing apparatus comprises:
the message detection unit is used for detecting whether the currently received message is an electronic red packet message or not when the application program receives the message, wherein the application program is an application program which is specified by a user and needs to be monitored;
the conversation detection unit is used for detecting whether the application program currently has a conversation associated with the electronic red packet message or not when the currently received message is the electronic red packet message, wherein the conversation associated with the electronic red packet message is the electronic red packet conversation, and only the electronic red packet message is output in the conversation associated with the electronic red packet message, and other types of messages are not output; the electronic red packet dismantling/robbing operation of each electronic red packet message output in the conversation by the user is equal to the electronic red packet dismantling/robbing operation of each electronic red packet message in the original conversation of each electronic red packet message, namely, the user can dismantle/robbe the electronic red packet of each electronic red packet message output in the conversation related to the electronic red packet message without returning to the original conversation to dismantle/robbe the electronic red packet;
a conversation creating unit, configured to detect the number of received electronic red packet messages in the application program when there is no conversation associated with the electronic red packet message; when the number of the received electronic red packet messages in the application program exceeds a preset number threshold, creating the conversation related to the electronic red packet messages;
a message output unit, configured to output a currently received electronic red packet message in the created conversation associated with the electronic red packet message when the conversation associated with the electronic red packet message does not exist; when the conversation associated with the electronic red packet message exists, outputting the currently received electronic red packet message in the conversation associated with the electronic red packet message;
the state detection unit is used for periodically detecting whether the electronic red packet message is in a red packet robbable state for a login user of the application program;
the conversation updating unit is used for updating the conversation when detecting that the electronic red packet message is not in a red packet robbable state for a login user of the application program, so that the user knows that the electronic red packet message is not robbable through the conversation; wherein said updating said session comprises:
and deleting the electronic red packet message from the conversation.
5. The message processing apparatus according to claim 4, wherein the state detection unit comprises:
the control triggering detection subunit is used for detecting whether a red packet robbing control associated with the electronic red packet message is triggered by the login user, wherein the red packet robbing control is used for providing an interface for robbing the electronic red packet;
a state determining subunit, configured to determine that the electronic red packet message is not in a red packet preemptible state for the login user of the application program when the control trigger detecting subunit detects that the red packet preempting control associated with the electronic red packet message has been triggered by the login user;
a red packet number detection subunit, configured to detect, when the control trigger detection subunit detects that the red packet robbing control associated with the electronic red packet message is not triggered by the login user, whether a remaining electronic red packet number currently associated with the electronic red packet message is 0;
the state determining subunit is further configured to determine that the electronic red packet message is in a red packet preemptible state for the login user of the application program when detecting that the remaining electronic red packet number currently associated with the electronic red packet message is not 0, and determine that the electronic red packet message is not in the red packet preemptible state for the login user of the application program when detecting that the remaining electronic red packet number currently associated with the electronic red packet message is 0.
6. An intelligent terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 3 are implemented when the computer program is executed by the processor.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN201710520730.8A 2017-06-30 2017-06-30 Message processing method, message processing device and intelligent terminal Expired - Fee Related CN107302493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710520730.8A CN107302493B (en) 2017-06-30 2017-06-30 Message processing method, message processing device and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710520730.8A CN107302493B (en) 2017-06-30 2017-06-30 Message processing method, message processing device and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107302493A CN107302493A (en) 2017-10-27
CN107302493B true CN107302493B (en) 2020-10-09

Family

ID=60135689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710520730.8A Expired - Fee Related CN107302493B (en) 2017-06-30 2017-06-30 Message processing method, message processing device and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107302493B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943599A (en) * 2017-11-20 2018-04-20 珠海市魅族科技有限公司 Red packet based reminding method, device, computer installation and computer-readable recording medium
CN107784492A (en) * 2017-11-20 2018-03-09 珠海市魅族科技有限公司 Information processing method, device, computer installation and computer-readable recording medium
CN110874277B (en) * 2018-09-03 2022-05-27 Oppo广东移动通信有限公司 Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN110888660B (en) * 2018-09-11 2023-05-26 Oppo广东移动通信有限公司 Electronic red envelope detection strategy updating method and device and terminal equipment
WO2020087269A1 (en) * 2018-10-30 2020-05-07 深圳市欢太科技有限公司 Message loading method, message loading device and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099877A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Instant message processing method and device
CN106027361A (en) * 2016-04-27 2016-10-12 北京小米移动软件有限公司 Information display method and device
CN106817492A (en) * 2017-01-23 2017-06-09 北京小米移动软件有限公司 The method and apparatus that red packet activity is reminded

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378280B (en) * 2013-08-16 2018-09-04 腾讯科技(深圳)有限公司 Message method of sending and receiving, server, client and system
CN105933202A (en) * 2016-04-13 2016-09-07 郑州悉知信息科技股份有限公司 Message processing method and device
CN106412858B (en) * 2016-10-26 2019-10-22 深圳市金立通信设备有限公司 A kind of method and terminal for robbing red packet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099877A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Instant message processing method and device
CN106027361A (en) * 2016-04-27 2016-10-12 北京小米移动软件有限公司 Information display method and device
CN106817492A (en) * 2017-01-23 2017-06-09 北京小米移动软件有限公司 The method and apparatus that red packet activity is reminded

Also Published As

Publication number Publication date
CN107302493A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN107302493B (en) Message processing method, message processing device and intelligent terminal
RU2635894C2 (en) Method and device for processing task event
CN106201409B (en) Processing method and system for application program operation interface
CN105550051A (en) Asynchronous processing method and device of business request
KR20170113614A (en) Information processing method, terminal and computer readable storage medium
CN107872494B (en) Message pushing method and device
CN107613091A (en) A kind of method and terminal for establishing communication
CN108572866B (en) Application program management method, application program management device and mobile terminal
CN105262881A (en) Communication control method and electronic equipment
EP2949083B1 (en) Receiving a communication event
CN112929254A (en) Message processing method and device and electronic equipment
US8922491B2 (en) Method and apparatus enabling keystroke acceleration
CN110912801B (en) Method, system and terminal device for detecting electronic red packet
CN110928600A (en) Cleaning method and device for terminal background application, mobile terminal and electronic equipment
CN107124353B (en) Message processing method and device, computer device and storage medium
CN112989323B (en) Process detection method, device, terminal and storage medium
CN106793173B (en) The method and mobile terminal of information processing
CN108595238A (en) The display control method and device of application interface
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN106302935B (en) Method and system for identifying communication information
CN104038631A (en) Communication initiating method and terminal device
CN107995645A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN110881001B (en) Electronic red packet detection method, system and terminal equipment
CN111049981A (en) Message identification method, device, user equipment and computer readable storage medium
CN110754076B (en) Method and device for determining brushing amount terminal

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201009

CF01 Termination of patent right due to non-payment of annual fee