CN112769683A - Unread message processing method and device, electronic equipment and storage medium - Google Patents

Unread message processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112769683A
CN112769683A CN202110126019.0A CN202110126019A CN112769683A CN 112769683 A CN112769683 A CN 112769683A CN 202110126019 A CN202110126019 A CN 202110126019A CN 112769683 A CN112769683 A CN 112769683A
Authority
CN
China
Prior art keywords
message
category
messages
dimension
unread
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.)
Pending
Application number
CN202110126019.0A
Other languages
Chinese (zh)
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.)
Lianren Healthcare Big Data Technology Co Ltd
Original Assignee
Lianren Healthcare Big Data Technology 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 Lianren Healthcare Big Data Technology Co Ltd filed Critical Lianren Healthcare Big Data Technology Co Ltd
Priority to CN202110126019.0A priority Critical patent/CN112769683A/en
Publication of CN112769683A publication Critical patent/CN112769683A/en
Pending legal-status Critical Current

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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H80/00ICT specially adapted for facilitating communication between medical practitioners or patients, e.g. for collaborative diagnosis, therapy or health monitoring
    • 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]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Abstract

The embodiment of the invention discloses an unread message processing method, an unread message processing device, electronic equipment and a storage medium, wherein the unread message processing method comprises the following steps: receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state; determining a target message associated with an online user according to a user identifier of the online user at a message receiving end; classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category; sending the number of the target messages under each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category; wherein the dimension category comprises a business scenario category. Through the technical scheme of the embodiment of the invention, the purposes of separately counting and prompting the unread messages with different dimensions are realized, and the efficiency of obtaining the effective messages by the user is improved.

Description

Unread message processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an unread message processing method and device, electronic equipment and a storage medium.
Background
IM (Instant Messaging) is the most popular communication mode on the internet at present, and most of APP applications develop or integrate an IM module.
At present, when a conversation is carried out through IM, namely after a user logs in successfully, when chatting with another login user through an APP, all information of the current user chatting with the other user is displayed in the same chatting interface of the APP. And when there are unread messages, the number of all unread messages is also prompted at the same icon.
However, when the services are complicated, such as consultation services, review services or medical consultation services in the medical industry, the chat information about different services between the doctor and the same user is not desired to be displayed on the same chat interface, which is not beneficial to the doctor to quickly obtain effective information and reduces the communication efficiency between the doctor and the user. Meanwhile, if the number of all unread messages is prompted at the same icon, the user is not facilitated to know the service category to which the unread message belongs in time, and the user is also not facilitated to quickly acquire effective information.
Disclosure of Invention
The embodiment of the invention provides an unread message processing method, an unread message processing device, electronic equipment and a storage medium, which achieve the purposes of separate statistics and prompt of unread messages with different dimensions and are beneficial to improving the efficiency of obtaining effective messages by a user.
In a first aspect, an embodiment of the present invention provides an unread message processing method, which is applied to a message server, and the method includes:
receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state;
determining a target message associated with an online user according to a user identifier of the online user at a message receiving end;
classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category;
sending the number of the target messages under each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
wherein the dimension category comprises a business scenario category.
In a second aspect, an embodiment of the present invention further provides an unread message processing apparatus, which is integrated in a message service end, and the apparatus includes:
the receiving module is used for receiving the messages sent by all the message sending ends and setting the state of the messages to be an unread state;
the determining module is used for determining a target message associated with the online user according to the user identification of the online user at the message receiving end;
the classification module is used for classifying the target messages according to the dimension category identification associated with the online user so as to determine the number of the target messages under each dimension category;
the sending module is used for sending the number of the target messages under each dimension category to the message receiving end so that the message receiving end can display the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
wherein the dimension category comprises a business scenario category.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the unread message processing method steps, as provided by any of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the unread message processing method provided in any of the embodiments of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
the method comprises the steps of receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state; determining a target message associated with an online user according to a user identifier of the online user at a message receiving end; classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category; the method and the device have the advantages that the number of the target messages under each dimension category is sent to the message receiving end, so that the message receiving end can display the number of the unread messages under the corresponding dimension category at the associated position of the corresponding mark of each dimension category, the purpose of separately counting and prompting the unread messages of different dimensions is achieved, and the efficiency of obtaining effective messages by a user is improved.
Drawings
Fig. 1 is a flowchart of an unread message processing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for processing the number of unread messages according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an unread message processing method according to a second embodiment of the present invention;
FIG. 4 is a schematic chain link diagram of a dimension category interface according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating an unread message processing method executed by a message receiving end according to a second embodiment of the present invention;
fig. 6 is a flowchart of a code implementation for processing a message when the message is sent according to a second embodiment of the present invention;
fig. 7 is a schematic view of an unread message processing flow of a message sending end, a message receiving end, and a message server end working in cooperation with each other according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of an unread message processing apparatus according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an unread message processing method according to an embodiment of the present invention, where the technical solution of this embodiment is applied to a message server, and a system working in cooperation with the message server further includes a message receiving end and a message sending end, and a message sent by the message sending end reaches the message receiving end through message server relay and certain preprocessing. The message receiving end or the message sending end can be APP of a certain consultation class specifically, for example, APP of an online consultation class in the medical industry, the APP can be installed on a mobile phone or a computer of a patient (which can be understood as a user), APP matched with the APP at the patient end is also installed on the mobile phone or the computer of a doctor, the patient can initiate instant chat with the doctor through the APP of the mobile phone or the computer of the patient, and the doctor communicates with the patient through the APP of the mobile phone or the computer of the doctor.
Referring to fig. 1, the unread message processing method provided in this embodiment specifically includes the following steps:
step 110, receiving the messages sent by each message sending end, and setting the state of the messages to be an unread state.
Usually, the APPs developed by the same service party correspond to the same message service end. For example, the APP installed on the zhang san mobile phone and the APP installed on the li si mobile phone can be regarded as two message sending terminals or message receiving terminals, and when the APP of the zhang san mobile phone or the APP of the li si mobile phone communicates with an online doctor, the sent message reaches the message service terminal first, and then the message service terminal distributes the message to the APP corresponding to the online doctor. Similarly, the message replied by the online doctor also reaches the message server first, the message server distributes the message related to Zhang III to the APP of Zhang III mobile phone, and distributes the message related to Li IV to the APP of Li IV mobile phone. Therefore, the message server receives messages from many message senders. Because the message reaches the message service end preferentially and then reaches the message receiving end, when the message reaches the message service end, the state of the message is obviously unread and is not received and read by the other side.
And step 120, determining a target message associated with the online user according to the user identification of the online user at the message receiving end.
The online user refers to a user logging in the APP, and the target message associated with the online user refers to a message needing to be sent to the APP of the online user. Each user (registered user) of the APP corresponds to one mark token, the user acquires the unique mark token after logging in successfully, and all sent and received messages correspond to the mark token uniquely. Therefore, a message associated with the online user, which is referred to as a target message, can be screened from a plurality of messages based on the token of each online user.
And step 130, classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages in each dimension category.
The dimension category identification associated with the online user may refer to a service scenario category related to the online user and a user category of the online user. For example, the online user carries out medical consultation on the condition that acne grows on the skin of the online user by three needles, and the related service scene is classified as 'medical consultation service'. If Zhang III is a registered user of APP, the user category is 'valid user', and if APP registered by Zhang III of children performs medical consultation aiming at acne growing condition of skin, the user category can be 'father of Zhang III of valid user'.
Illustratively, the dimension categories include business scenario categories including at least one of: medical consultation service, medical consultation service and medical consultation service. The medical consultation service may refer to a service related to a first visit of a patient, in this service scenario, symptoms, discomfort, and the like of the patient usually relate to the patient, and a doctor may provide an examination order for the patient, for example, an examination order for B-mode ultrasound or an examination order for blood test. Medical review service may refer to a consultation of a patient within a few days after the first visit, which can be colloquially understood as a review, where the patient communicates with the same physician regarding the same condition based on the previous visit record. The medical consultation service can refer to information consultation in the aspect of health care, and no disease usually exists in the service scene.
The dimension categories may also include user categories. The "user category" can be understood through a scenario that, for example, zhang san installs a medical consultation APP on a mobile phone thereof, zhang san uses own identity information to register and log in, zhang san is an effective user of the APP, zhang san performs medical consultation on the condition of skin acne of oneself through zhang san and a doctor lie si, zhang san is a specific user category, and a corresponding service scenario category is a medical consultation service. Meanwhile, Zhang three or Zhang three mothers have performed medical consultation on the matters with high blood pressure of Zhang three mothers and doctor Li four through the APP on Zhang three mobile phones, inquiring about the attention matters at ordinary times, and then Zhang three mothers are also in a specific user category, and the corresponding business scene category is medical consultation business. It should be noted that, since the APP registered with the identity information of zhangsan is used to communicate with the doctor lie four with respect to the personal situation of zhangsan mother, zhangsan mother is not an effective user of the APP, but zhangsan mother is a specific user category, and zhangsan mother can be understood as a branch user of zhangsan of the effective user.
By classifying the target messages according to the dimension category identification associated with the online user, the number of the target messages in each dimension category can be determined, and the APP can display the number of the target messages in each dimension category at the corresponding position of the APP. For example, it is determined through statistics that the number of target messages under the dimension category "zhang san-jia consultation service" is 10, and the number of target messages under the dimension category "zhang san mother-jia consultation service" is 8, and then a corresponding unread message prompt icon, which may be, for example, "10" in red, is displayed at a position associated with a first icon corresponding to the dimension category "zhang san-jia consultation service" in the display interface of zhang san APP; and displaying a corresponding unread message prompt icon, such as '8' which can be red, at the associated position of a second icon corresponding to the dimension category 'Zusanmi-medical consultation service' in the display interface of Zusanmp.
Step 140, sending the number of the target messages in each dimension category to the message receiving end, so that the message receiving end displays the number of the unread messages in the corresponding dimension category at the associated position of the identifier corresponding to each dimension category. Wherein the dimension category comprises a business scenario category; the traffic scenario category includes at least one of: medical consultation service, medical consultation service and medical consultation service.
Specifically, the identifier corresponding to each dimension category may be an icon, for example, an icon 1 corresponding to the third principal in a medical consultation service scenario, an icon 2 corresponding to the third principal in a medical review service scenario, an icon 3 corresponding to the third principal in a medical consultation service scenario, an icon 4 corresponding to the third mother in a medical consultation service scenario, and the like. Different patients correspond to different icons under different service scene categories, the number of corresponding unread messages can be displayed at the upper right corner or the upper left corner of the corresponding icon, the corresponding chat interface can be activated by triggering the corresponding icon, and the corresponding messages are displayed on the chat interface, so that independent display is realized according to the service scene category to which the messages belong and the user category, doctors or patients can conveniently capture the content transmitted by the messages in time, and the purpose of improving the communication efficiency is achieved.
Further, the unread message processing method further includes:
when receiving the identification of the specific dimension category, recording the current receiving time;
and setting the state of the message under the specific dimension category and before the current receiving time as a read state, so that the message receiving end updates the number of unread messages shown at the associated position of the identifier corresponding to the specific dimension category.
Further, if the target online user enters or exits the chat interface corresponding to the specific dimension category, the message receiving end of the target online user sends the identifier of the specific dimension category to the message service end.
Exemplarily, referring to a flow diagram of a method for processing the number of unread messages shown in fig. 2, the method specifically includes: the user passes through cell-phone APP, the instant messaging IM message is sent to cloud ware to the message sending end promptly, cloud ware is responsible for distributing the message, specifically distribute to the APP customer end of matching, the message receiving end promptly, carry out step A simultaneously, the setting is with the message route to the business server of extra setting (this server can have, also can not, set up according to specific business side demand), APP ware promptly, APP ware carries out the preliminary treatment to the message of routing coming, mainly be responsible for step B, classify and set up the quantity of message under every kind to the message. And step C, the mobile phone APP obtains the unread number of the corresponding dimension messages from the APP server, and the message list of the general APP is uniformly managed in one interface, so that the business server can inquire the unread number of the relevant messages according to the dimension related to the login user and return the unread number to the user. And the APP prompts the unread messages according to the unread number of the corresponding dimension messages. For example, because a certain APP needs to show only the unread number of the first-dimension messages, it is determined whether the unread message of the medical consultation service or the unread message of the medical consultation service is the unread message of the medical consultation service according to the service number, and the number of the unread messages is respectively displayed in the upper right corner of the corresponding icon. And D, if the operation of entering the chat interface is detected, setting the message state of the corresponding dimension as read. When a user enters an IM chat interface (namely a chat interface), the APP sends the dimension identification of the current chat interface to the service server, the service server sets the corresponding message to be read, the message state of the message before the current time point is changed into the read message, and the message state after the current time point is unchanged. And E, if the operation of quitting the chat interface is detected, setting the message state of the corresponding dimension as read. And when the user quits the IM chat interface, the dimension identification of the IM chat interface is sent to the service server, the service server sets the corresponding message to be read, the message state before the current time point is changed, and the message state after the current time point is unchanged. The message state is changed when the IM chat interface is exited, so that the message routed to the service server after the IM chat interface is entered is prevented from being counted into the number of unread messages. And F, acquiring the number of unread messages each time a message is received and no IM chat interface is activated. When the user opens the APP or quits the IM chat interface, the received message is an unread message, the message is set to be in an unread state, and the APP displays an unread red dot on a corresponding icon. For example, if there is an unread number, the upper right corner of the tab at the bottom of the Home interface of the APP has a small red point prompt, and in the message list, after receiving the message, the service server is requested, and the unread number of the double-diagnosis service or the medical consultation service is judged according to the service dimension, and corresponding UI update is performed. And processing other service entrances: sometimes, entering the IM chat interface is not from the IM list, and sometimes from an interface not related to the service, such as pushed status information, and the logic of jumping may be: determining the dimension category to which the message belongs according to the extension field of the message, and then jumping to an IM chat interface of the corresponding dimension category.
In summary, the whole process of the unread message processing method is described, and according to the method, logical dimension separation can be established on the functions of the existing IM module, and the bottom layer is the actual point-to-point communication of IM. The method has very little immersion to the original project architecture, and the separation rule can be set by self, can be 1-dimensional, 2-dimensional or multidimensional, and can filter messages according to the own business requirements as long as the dimension and the rule are registered, and the messages in different dimensions are displayed in an isolated manner.
According to the technical scheme, the purpose of classifying and counting the unread messages according to the dimension categories is achieved, the APP can separately prompt the number of the unread messages under each dimension category, and the use experience of a user is improved.
Example two
On the basis of the technical solution of the foregoing embodiment, referring to another flow diagram of an unread message processing method shown in fig. 3, this embodiment further refines step 130 "classify the target messages according to the dimension category identifier associated with the online user to determine the number of target messages in each dimension category," and specifically provides an optional implementation manner. Wherein explanations of the same or corresponding terms as those of the above-described embodiments are omitted.
Referring to fig. 3, the unread message processing method provided in this embodiment specifically includes the following steps:
and 310, receiving the messages sent by the message sending ends, and setting the states of the messages to be unread.
And step 320, determining a target message associated with the online user according to the user identifier of the online user at the message receiving end.
Step 330, analyzing the target message to obtain the extended field data of the target message; and determining the number of target messages in each dimension type according to the extended field data and the dimension type identification associated with the online user.
When the message is sent by a message sending end, data for identifying the dimension category to which the message belongs is added to the extension field of the message. The APPs of different service parties may set different category identifiers, and for example, a level of 4 indicates that the service scenario category is medical consultation service, and a level of 7 indicates that the service scenario category is medical consultation service. The user category may be represented by a targetId, for example, a targetId of 1 represents a valid user of APP (for example, zhang san mentioned above), a targetId of 1.1 represents a mother of the valid user, and a targetId of 1.2 represents a father of the valid user. targetId 1.1 and level 7 represent a message for mr. zhang regarding medical counseling. The dimension category identifier associated with the online user may be, for example, targetId 1.1 and level 7, which indicates that three mothers are currently communicating with the medical consultation service.
Specifically, when APP development is performed, classification rules of messages are pre-established, and generally include dimension categories and filtering rules. For example, two interfaces are defined, one of which is a dimension category interface, and several dimensions, such as two dimensions of a service scene category and a user category, are divided according to the actual situation of the service.
The code implementation of the dimension category interface may specifically be:
(Level<T):+opration():return T
-leve:int
-next:Level
the chain linking of the dimension category interfaces may be as described with reference to FIG. 4.
The code implementation of the filtering rule interface may specifically be:
(Rule<T):+computeRule(T t):return boolean
the implementation class of the filtering rule corresponds to the dimension category, and the filtering rules corresponding to different dimension categories may be different, for example, the filtering rule corresponding to the first dimension — the service scenario category may be:
Rule1<Bean1>:+computeRule(Bean1 t):return boolean
and judging the service number according to the parameters of the incoming String type, if the current service number is 4, representing that the current message is the message of the medical consultation service, if the type is equal to curType, returning to true, and if the type is not equal to curType, returning to false. Therefore, if the returned result is true, the message is displayed if the returned result is the same as the service scene category of the current chat interface, and if the returned result is false, the message is different from the service scene category of the current chat interface, and the program is terminated.
The second dimension-the filtering rule for the user category may be:
Rule2<Bean>:+computeRule(Bean t):return boolean
the filtering rule of the dimension is to judge whether the user ID targetId is the same as the ID of the current user, if so, the message is sent to the current user, the program continues, otherwise, the program is terminated.
The criteria of several dimensions are predefined, several layers are judged accordingly, and only if all are satisfied, the message is displayed to the user. As shown in fig. 5, a flow diagram of an unread message processing method executed by a message receiving end is shown, when a message is received, an extension field extra of the message is converted into a Level object, a rule method corresponding to the Level object is obtained by a rule manager, whether the message satisfies a filtering condition is determined by the rule method, if not, a program is ended, and if so, the message is displayed. The extra field of the message is an extension field, the message receiving end acquires the message and then stores the message in a local database, the action of displaying the message is in an adapter-like method, therefore, when adding the message to the adapter class, the message filtering is performed, and the filtering rule is a boolean value returned by the filtering method for judging two dimensions, for example, if the chat interface is the interface of the medical review service of the effective user Zhang III, if the level value in the returned boolean values is 1 (representing the first dimension) and the service number is 4 (representing the service scenario class as a medical review service scenario), the level value is 2 (representing the second dimension) and the targetId (representing the user class identification) is the current user id, then a message may be added to the adapter class for display on the current chat interface, if the above conditions are not met, no message is added to the adapter class, i.e. no message is displayed at the current chat interface.
Registering the classification rules in global variables of the application APP, defining a global rule manager RuleManager, which may have a structure as follows:
RuleManager:+rules:Map<Level<T>.class,Rule<T>>=new HashMap()
+getRule(Level<T>.class I):Rule<T>
-registeRule(Level<T>.class I,Rule<T>r)
generally, the message classification rule of the APP is preset, so that it is only necessary to register a corresponding dimension and filter rule object in the Application of the APP, where the bytecode of the filter dimension category is taken as a key to obtain an object instance of the corresponding filter rule.
When the message is sent, the message can be processed in two modes, wherein one mode is that a classification rule is added into an extension field of the message when the message is sent every time, a plurality of dimensions are defined according to business requirements, a plurality of dimension objects are added into the extension field of the message, and a next field of each dimension object designates one dimension object. The second way is to process the message in the message preprocessing method, and usually, the message is preprocessed to a certain extent when the message is sent, specifically, the preprocessing interface is called to implement the preprocessing, so that the operation of adding the classification rule in the extension field can be set in the preprocessing method, the classification rule is added to the extension field of the message when the message is preprocessed, at this time, the message does not need to be concerned about whether the type of the message is a character, a picture or a voice, only the extension field is concerned about, and the processing efficiency and the stability are high.
The code implementation flow chart for processing the message when sending the message can be as shown in fig. 6, converting the specific classification rule into json, and then assigning to the extra field of the message.
And 340, sending the number of the target messages in each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages in the corresponding dimension category at the associated position of the corresponding identifier of each dimension category.
Wherein the dimension category comprises a business scenario category and/or a user category. Further, referring to a schematic diagram of an unread message processing flow of a message sending end, a message receiving end, and a message service end that cooperate with each other shown in fig. 7, the method specifically includes:
step 301, formulating a rule for message classification, which is mainly divided into a dimension and a filtering rule;
step 302, registering rules in global variables of the application;
step 303, adding the rule information into the extension field when sending the message;
step 304, processing the extension field of the message when receiving the message;
step 305, clicking the skipping processing of the notification bar;
step 306, displaying rules of the IM chat interface;
step 307, processing of historical message inquiry;
step 308, processing the quantity of unread messages;
step 309, processing of other service portals.
Step 307, the processing of history message query specifically means that when the APP replaces the mobile phone and then logs in the APP of a new mobile phone, there is no chat data in the local database, at this time, the chat message is pulled from the remote server, the processing method is also that the chat message is stored in the local database, at this time, the chat message is not classified, then, like step 306, whether to display the chat message or not and how to display the chat message are determined according to the dimension and the filtering rule, specifically, the dimension category to which the message belongs is determined according to the extension field of the message, and then the message is displayed in the IM chat interface of the corresponding dimension category.
According to the technical scheme, the dimension type of the message is determined according to the extended field data of the message, then the dimension type of the message is compared with the dimension type identification associated with the online user, the number of the unread messages under the dimension type associated with the online user is determined, the purpose of classifying and counting the unread messages is achieved, the APP separately prompts the number of the unread messages under each dimension type, and the use experience of the user is improved.
The following is an embodiment of an unread message processing apparatus provided in an embodiment of the present invention, which belongs to the same inventive concept as the unread message processing methods in the above embodiments, and details that are not described in detail in the embodiment of the unread message processing apparatus may refer to the embodiment of the unread message processing method.
EXAMPLE III
Fig. 8 is a schematic structural diagram of an unread message processing apparatus according to a third embodiment of the present invention, the apparatus is integrated in a message server, and as shown in fig. 8, the apparatus specifically includes: a receiving module 810, a determining module 820, a classifying module 830, and a transmitting module 840.
The receiving module 810 is configured to receive a message sent by each message sending end, and set a state of the message to an unread state; a determining module 820, configured to determine, according to a user identifier of an online user at a message receiving end, a target message associated with the online user; a classification module 830, configured to classify the target message according to the dimension category identifier associated with the online user, so as to determine the number of target messages in each dimension category; a sending module 840, configured to send the number of target messages in each dimension category to a message receiving end, so that the message receiving end displays the number of unread messages in the corresponding dimension category at the associated position of the identifier corresponding to each dimension category; the dimension category comprises a business scene category and/or a user category; the traffic scenario category includes at least one of: medical consultation service, medical consultation service and medical consultation service.
Further, the apparatus further comprises:
the recording module is used for recording the current receiving time when the identification of the specific dimension category is received;
and the setting module is used for setting the state of the message under the specific dimension category and before the current receiving time as a read state so as to enable the message receiving end to update the quantity of the unread messages shown at the associated position of the identifier corresponding to the specific dimension category.
Further, if the target online user enters or exits the chat interface corresponding to the specific dimension category, the message receiving end of the target online user sends the identifier of the specific dimension category to the message service end.
Further, the classification module 830 includes:
the analysis unit is used for analyzing the target message to acquire the extended field data of the target message;
and the determining unit is used for determining the number of the target messages in each dimension type according to the extended field data and the dimension type identification associated with the online user.
Further, the dimension category further includes: a user category.
According to the technical scheme, the purpose of classifying and counting the unread messages according to the dimension categories is achieved, the APP separately prompts the number of the unread messages under each dimension category, and the use experience of a user is improved.
The unread message processing device provided by the embodiment of the invention can execute the unread message processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the unread message processing method.
Example four
Fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 9 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, the electronic device 12 is embodied in the form of a general purpose computing electronic device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and unread message processing by executing programs stored in the system memory 28, for example, implementing the steps of an unread message processing method provided by the embodiment of the present invention, the method includes:
receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state;
determining a target message associated with an online user according to a user identifier of the online user at a message receiving end;
classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category;
sending the number of the target messages under each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
the dimension category comprises a business scene category and/or a user category;
the traffic scenario category includes at least one of: medical consultation service, medical consultation service and medical consultation service.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the unread message processing method provided by any embodiment of the present invention.
EXAMPLE five
This fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the unread message processing method provided by any of the embodiments of the present invention, the method including:
receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state;
determining a target message associated with an online user according to a user identifier of the online user at a message receiving end;
classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category;
sending the number of the target messages under each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
the dimension category comprises a business scene category and/or a user category;
the traffic scenario category includes at least one of: medical consultation service, medical consultation service and medical consultation service.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the unread message processing method provided by any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An unread message processing method is applied to a message server side, and is characterized by comprising the following steps:
receiving messages sent by all message sending ends, and setting the state of the messages to be an unread state;
determining a target message associated with an online user according to a user identifier of the online user at a message receiving end;
classifying the target messages according to the dimension category identification associated with the online user to determine the number of the target messages under each dimension category;
sending the number of the target messages under each dimension category to a message receiving end so that the message receiving end displays the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
wherein the dimension category comprises a business scenario category.
2. The method of claim 1, wherein the traffic scenario category comprises at least one of: medical consultation service, medical consultation service and medical consultation service.
3. The method of claim 1, further comprising:
when receiving the identification of the specific dimension category, recording the current receiving time;
and setting the state of the message under the specific dimension category and before the current receiving time as a read state, so that the message receiving end updates the number of unread messages shown at the associated position of the identifier corresponding to the specific dimension category.
4. The method of claim 3, wherein if a target online user enters or exits a chat interface corresponding to a specific dimension category, a message receiving end of the target online user sends an identifier of the specific dimension category to a message service end.
5. The method of any one of claims 1-4, wherein classifying the targeted messages according to the dimension category identification associated with the online user to determine the number of targeted messages under each dimension category comprises:
analyzing the target message to obtain the extended field data of the target message;
and determining the number of target messages in each dimension type according to the extended field data and the dimension type identification associated with the online user.
6. The method according to any of claims 1-4, wherein the dimension categories further comprise: a user category.
7. An unread message processing apparatus, integrated in a message server, comprising:
the receiving module is used for receiving the messages sent by all the message sending ends and setting the state of the messages to be an unread state;
the determining module is used for determining a target message associated with the online user according to the user identification of the online user at the message receiving end;
the classification module is used for classifying the target messages according to the dimension category identification associated with the online user so as to determine the number of the target messages under each dimension category;
the sending module is used for sending the number of the target messages under each dimension category to the message receiving end so that the message receiving end can display the number of the unread messages under the corresponding dimension category at the associated position of the corresponding identifier of each dimension category;
wherein the dimension category comprises a business scenario category.
8. The apparatus of claim 7, wherein the traffic scenario category comprises at least one of: medical consultation service, medical consultation service and medical consultation service.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the unread message processing method steps of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the unread message handling method steps of any of claims 1 to 6.
CN202110126019.0A 2021-01-29 2021-01-29 Unread message processing method and device, electronic equipment and storage medium Pending CN112769683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110126019.0A CN112769683A (en) 2021-01-29 2021-01-29 Unread message processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110126019.0A CN112769683A (en) 2021-01-29 2021-01-29 Unread message processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112769683A true CN112769683A (en) 2021-05-07

Family

ID=75703674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110126019.0A Pending CN112769683A (en) 2021-01-29 2021-01-29 Unread message processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112769683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065656A (en) * 2022-05-31 2022-09-16 北京京东拓先科技有限公司 Message processing method and device, electronic equipment and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080077772A (en) * 2007-02-21 2008-08-26 엘지전자 주식회사 Method and terminal for displaying received message to icon
US20110231499A1 (en) * 2010-03-22 2011-09-22 Research In Motion Limited Management and display of grouped messages on a communication device
CN106325674A (en) * 2016-08-18 2017-01-11 北京小米移动软件有限公司 Message prompting method and equipment
CN107181668A (en) * 2017-04-13 2017-09-19 合肥市群智科技有限公司 A kind of message display method and device
US20170351385A1 (en) * 2016-06-01 2017-12-07 Facebook, Inc. Methods and Systems for Distinguishing Messages in a Group Conversation
CN109039877A (en) * 2018-09-21 2018-12-18 北京达佳互联信息技术有限公司 A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity
US20190124024A1 (en) * 2017-10-20 2019-04-25 Clinomicsmd Ltd. Categorized electronic messaging
CN111651106A (en) * 2020-05-27 2020-09-11 维沃移动通信有限公司 Unread message prompting method, unread message prompting device, unread message prompting equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080077772A (en) * 2007-02-21 2008-08-26 엘지전자 주식회사 Method and terminal for displaying received message to icon
US20110231499A1 (en) * 2010-03-22 2011-09-22 Research In Motion Limited Management and display of grouped messages on a communication device
US20170351385A1 (en) * 2016-06-01 2017-12-07 Facebook, Inc. Methods and Systems for Distinguishing Messages in a Group Conversation
CN106325674A (en) * 2016-08-18 2017-01-11 北京小米移动软件有限公司 Message prompting method and equipment
CN107181668A (en) * 2017-04-13 2017-09-19 合肥市群智科技有限公司 A kind of message display method and device
US20190124024A1 (en) * 2017-10-20 2019-04-25 Clinomicsmd Ltd. Categorized electronic messaging
CN109039877A (en) * 2018-09-21 2018-12-18 北京达佳互联信息技术有限公司 A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity
CN111651106A (en) * 2020-05-27 2020-09-11 维沃移动通信有限公司 Unread message prompting method, unread message prompting device, unread message prompting equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065656A (en) * 2022-05-31 2022-09-16 北京京东拓先科技有限公司 Message processing method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
US10673683B2 (en) Data network notification bar processing system
US20200027543A1 (en) Merging messages into cache and generating user interface using the cache
US11587669B2 (en) Passing authentication token to authorize access to rest calls via web sockets
US11870741B2 (en) Systems and methods for a metadata driven integration of chatbot systems into back-end application services
CN110808855B (en) Internet technology architecture, management method and device, electronic equipment and medium
CN111444992A (en) User information checking method and system based on information code
CN113268336A (en) Service acquisition method, device, equipment and readable medium
CN115437933A (en) Automatic testing method and device, computer equipment and storage medium
US10250531B2 (en) Bot monitoring
CN112769683A (en) Unread message processing method and device, electronic equipment and storage medium
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN112787910A (en) Message processing method and device, electronic equipment and storage medium
US9455946B1 (en) Server for providing unified communications
CN116360735A (en) Form generation method, device, equipment and medium
CN112769682A (en) Message display method, message processing device, electronic equipment and storage medium
US20210006557A1 (en) Sensor-based authentication, notification, and assistance systems
CN109542646A (en) Method and apparatus for calling application programming interface
US20230282319A1 (en) Method and system for automated population outreach
US20210306808A1 (en) Systems and methods for digital contact tracing
CN112068917B (en) Interface presentation method, device, electronic equipment and computer readable medium
US20230290115A1 (en) Method, apparatus and non-transitory computer readable medium
US20220142619A1 (en) Method and system for managing coronavirus screening operations
US20240028745A1 (en) System and method for hunt, incident response, and forensic activities on an agnostic platform
JP2022077503A (en) Computer program, system and method for providing diagnostic service to client system over network
CN114398437A (en) User information processing method and device, electronic equipment and computer readable medium

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