CN108111397B - Method and device for processing forwarding notification message - Google Patents

Method and device for processing forwarding notification message Download PDF

Info

Publication number
CN108111397B
CN108111397B CN201711353133.7A CN201711353133A CN108111397B CN 108111397 B CN108111397 B CN 108111397B CN 201711353133 A CN201711353133 A CN 201711353133A CN 108111397 B CN108111397 B CN 108111397B
Authority
CN
China
Prior art keywords
forwarding
message
account
notification message
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711353133.7A
Other languages
Chinese (zh)
Other versions
CN108111397A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711353133.7A priority Critical patent/CN108111397B/en
Publication of CN108111397A publication Critical patent/CN108111397A/en
Application granted granted Critical
Publication of CN108111397B publication Critical patent/CN108111397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • 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/212Monitoring or handling of messages using filtering or selective blocking
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Abstract

The embodiment of the disclosure provides a processing method and a device for forwarding a notification message, which relate to the technical field of computers, wherein the method is used for logging in a client with a first account, and comprises the following steps: receiving a forwarding notification message, wherein the forwarding notification message is used for notifying that a target message sent by the first account is forwarded by a second account; determining whether a forwarding level of the target message is greater than a preset threshold, wherein the forwarding level is the number of forwarding nodes which are passed by the first account as a forwarding starting point and are forwarded to the second account; and when the forwarding level is greater than the preset threshold value, canceling the message prompt of the forwarding notification message. Because the more forwarding levels are, the weaker the association degree between the second account and the first account sending the target message is, and the lower the probability that the user pays attention to the first account to forward the target message is, the received forwarding notification message is shielded, so that resources consumed when the client performs message prompting can be saved, and the user is not disturbed.

Description

Method and device for processing forwarding notification message
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a forwarding notification message.
Background
Microblog (also called micro blog) is a social network platform for sharing messages in real time in a broadcast manner. The microblog has a message forwarding function, wherein the message forwarding function refers to a function that the message sent by the first account is sent again by the second account. The message sent by the first account is a message issued by the first account or a message forwarded by the first account.
After the second account directly or indirectly forwards the target message sent by the first account, the server sends a forwarding notification message to the client logging in the first account, wherein the forwarding notification message is used for notifying the client that the target message is forwarded by the second account. The client terminal logging in the first account receives the forwarding notification message, and carries out message prompt according to the forwarding notification message, wherein the message prompt is used for prompting the client terminal to receive the forwarding notification message to the user using the first account. The message prompt may be at least one of a pop-up window, a vibration, a warning tone, and a signal light.
The indirect forwarding means that the second account forwards the target message sent by the first account by forwarding the target message of other accounts. Such as: the account 1 sends the message 1, the account 2 forwards the message 1, and the account 3 forwards the message 1 issued by the node 2, so that the account 3 indirectly forwards the message 1 sent by the account 1.
With the increase of the times of forwarding (including direct forwarding and indirect forwarding) the message, the number of forwarding notification messages received by the first account is increased, and further the times of message prompting performed by the first account is increased.
Disclosure of Invention
The embodiment of the disclosure provides a processing method of a forwarding notification message, a sending method of a forwarding notification message and a device, which can solve the problems that when a target message is forwarded for multiple times, a client performs message prompt on the forwarding notification message for multiple times, and consumed resources are more. The technical scheme is as follows:
according to a first aspect of the present disclosure, a processing method for forwarding a notification message is provided, where the processing method is used in a client logged in with a first account, and the method includes:
receiving a forwarding notification message, wherein the forwarding notification message is used for notifying that a target message sent by the first account is forwarded by a second account;
determining whether a forwarding level of the target message is greater than a preset threshold, wherein the forwarding level is the number of forwarding nodes which are passed by the first account as a forwarding starting point and are forwarded to the second account;
and when the forwarding level is greater than the preset threshold value, canceling the message prompt of the forwarding notification message.
Optionally, the determining whether the forwarding level of the target message is greater than a preset threshold includes:
acquiring a forwarding path for forwarding the target message by the second account, wherein the forwarding path represents a forwarding node for forwarding the target message;
determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
detecting whether the forwarding level is greater than the preset threshold.
Optionally, when the forwarding level is greater than the preset threshold, the method further includes:
aggregating and displaying the forwarding notification message and a first history notification message to the same display position of a message receiving list, wherein the first history notification message is the forwarding notification message which is received before the forwarding notification message and has the forwarding level larger than the preset threshold value;
jumping from the message reception list to a detail page in which the forwarding notification message and the first history notification message are displayed, upon receiving an operation signal acting on the display position.
Optionally, when the forwarding level is greater than the preset threshold, the method further includes:
acquiring a first message quantity of the forwarding notification message and a first historical notification message, wherein the first historical notification message is the forwarding notification message which is received before the forwarding notification message and has a forwarding level larger than the preset threshold value;
and when the first message quantity is a multiple of a first threshold value, outputting an aggregated message prompt, wherein the aggregated message prompt is used for prompting that the forwarding notification message of the first message quantity is received.
Optionally, when the forwarding level is greater than the preset threshold, the method further includes:
determining whether the second account is in a binding relationship with the first account;
and when the second account and the first account are not in the binding relationship, executing the step of canceling the message prompt of the forwarding notification message.
Optionally, the method further comprises:
acquiring a second message quantity corresponding to the forwarding notification message and a second history notification message, wherein the second history notification message is the forwarding notification message of the target message received before the forwarding notification message;
when the second message quantity is larger than or equal to a second threshold value, the step of determining whether the forwarding level of the target message is larger than a preset threshold value is executed.
Optionally, when the forwarding level is less than or equal to the preset threshold, the method further includes:
acquiring a third message quantity of the forwarding notification message and a third history notification message, wherein the third history notification message is the forwarding notification message of which the forwarding level received before the forwarding notification message is smaller than or equal to the preset threshold;
and when the third message quantity is larger than or equal to a third threshold value, canceling the message prompt of the forwarding notification message.
According to a second aspect of the present disclosure, there is provided a method for processing a forwarding notification message, the method including:
receiving a forwarding request sent by a second account, wherein the forwarding request is used for requesting to forward a target message, and the target message is a message sent by a first account;
determining whether a forwarding level of the target message is greater than a preset threshold, wherein the forwarding level is the number of forwarding nodes which are passed by the first account as a forwarding starting point and are forwarded to the second account;
and when the forwarding level is greater than the preset threshold value, canceling to send a forwarding notification message to the client logged in with the first account, wherein the forwarding notification message is used for notifying that the target message sent by the first account is forwarded by the second account.
Optionally, the determining whether the forwarding level of the target message is greater than a preset threshold includes:
updating a forwarding path of the target message according to the second account, wherein the forwarding path represents a forwarding node for forwarding the target message;
determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
detecting whether the forwarding level is greater than the preset threshold.
According to a third aspect of the present disclosure, there is provided a processing apparatus for forwarding a notification message, configured to log in a client with a first account, the apparatus including:
a message receiving module configured to receive a forwarding notification message, where the forwarding notification message is used to notify that a target message sent by the first account is forwarded by a second account;
a level determining module configured to determine whether a forwarding level of a target message corresponding to the forwarding notification message obtained by the message receiving module is greater than a preset threshold, where the forwarding level is a number of forwarding nodes experienced by forwarding the target message to the second account with the first account as a forwarding starting point;
a message processing module configured to cancel message prompting of the forwarding notification message when the forwarding hierarchy acquired by the hierarchy determination module is greater than the preset threshold.
Optionally, the hierarchy determining module includes:
a path obtaining unit, configured to obtain a forwarding path for the second account to forward the target message, where the forwarding path represents a forwarding node to which the target message is forwarded;
a level obtaining unit configured to determine a number of forwarding nodes using the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
a level detection unit configured to detect whether the forwarding level is greater than the preset threshold.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes:
a message aggregation module configured to display the forwarding notification message and a first history notification message in an aggregation manner to the same display position of a message receiving list, wherein the first history notification message is a forwarding notification message which is received before the forwarding notification message and has a forwarding level larger than the preset threshold;
a message display module configured to jump from the message reception list to a detail page in which the forwarding notification message and the first history notification message are displayed, upon receiving an operation signal acting on the display position.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes:
a first obtaining module configured to obtain the forwarding notification message and a first message number of a first history notification message, where the first history notification message is a forwarding notification message whose forwarding level received before the forwarding notification message is greater than the preset threshold;
a prompt output module configured to output an aggregated message prompt when the first message number is a multiple of a first threshold, where the aggregated message prompt is used to prompt that a forwarding notification message of the first message number is received.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes:
a relationship determination module configured to determine whether the second account is in a binding relationship with the first account;
the message processing module is further configured to execute the step of canceling the message prompt for the forwarding notification message when the second account is not in the binding relationship with the first account.
Optionally, the apparatus further comprises:
a second obtaining module configured to obtain a second message number corresponding to the forwarding notification message and a second history notification message, wherein the second history notification message is a forwarding notification message of the target message received before the forwarding notification message;
the level determination module is further configured to perform the step of determining whether the forwarding level of the target message is greater than a preset threshold value when the second message number is greater than or equal to a second threshold value.
Optionally, when the forwarding level is less than or equal to the preset threshold, the apparatus further includes:
a third obtaining module configured to obtain a third message number of the forwarding notification message and a third history notification message, where the third history notification message is a forwarding notification message whose forwarding level received before the forwarding notification message is less than or equal to the preset threshold;
the message processing module is further configured to cancel the message prompt of the forwarding notification message when the third message number is greater than or equal to a third threshold.
According to a fourth aspect of the present disclosure, there is provided a processing apparatus for forwarding a notification message, the apparatus including:
a request receiving module configured to receive a forwarding request sent by a second account, where the forwarding request is used to request for forwarding a target message, and the target message is a message sent by a first account;
a level determining module configured to determine whether a forwarding level of the target message indicated by the forwarding request obtained by the request receiving module is greater than a preset threshold, where the forwarding level is a number of forwarding nodes experienced by forwarding the target message to the second account with the first account as a forwarding starting point;
and the message processing module is configured to cancel sending a forwarding notification message to the client logged in with the first account when the forwarding level determined by the level determining module is greater than the preset threshold, where the forwarding notification message is used to notify that a target message sent by the first account is forwarded by the second account.
Optionally, the hierarchy determining module includes:
a path updating unit configured to update a forwarding path of the target message according to the second account, where the forwarding path represents a forwarding node to which the target message is forwarded;
a level obtaining unit configured to determine a number of forwarding nodes using the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
a level detection unit configured to detect whether the forwarding level is greater than the preset threshold.
According to a fifth aspect of the present disclosure, there is provided a terminal, which includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method for processing a forwarding notification message according to the first aspect of the embodiments of the present disclosure.
According to a sixth aspect of the present disclosure, there is provided a server, which includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method for processing a forwarding notification message according to the second aspect of the embodiments of the present disclosure.
According to a seventh aspect of the present disclosure, there is provided a computer-readable storage medium, having at least one instruction stored therein, where the instruction is loaded and executed by a processor to implement the processing method for forwarding a notification message according to the first aspect of the embodiments of the present disclosure; or, the processing method for forwarding notification messages according to the second aspect of the embodiment of the present disclosure is implemented.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that:
the method comprises the steps of determining whether the forwarding level of a target message is greater than a preset threshold value or not when the forwarding level is received, and canceling message prompt of the forwarding notification message when the forwarding level is greater than the preset threshold value.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic structural diagram of a message forwarding system according to an exemplary embodiment of the present disclosure;
fig. 2 is a schematic diagram of an indirect forwarding flow provided by an exemplary embodiment of the present disclosure;
fig. 3 is a schematic diagram of a direct forwarding flow provided by an exemplary embodiment of the present disclosure;
fig. 4 is a flowchart of a processing method for forwarding a notification message according to an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating obtaining a preset threshold provided by an exemplary embodiment of the present disclosure;
fig. 6 is a flowchart of a processing method for forwarding a notification message according to another exemplary embodiment of the present disclosure;
FIG. 7 is a diagram illustrating a display forward notification message, provided by an exemplary embodiment of the present disclosure;
FIG. 8 is a schematic diagram of an outgoing message prompt provided by an exemplary embodiment of the present disclosure;
fig. 9 is a flowchart of a processing method for forwarding a notification message according to another exemplary embodiment of the present disclosure;
fig. 10 is a schematic diagram of a forwarding path provided by another exemplary embodiment of the present disclosure;
fig. 11 is a block diagram of a processing device for forwarding a notification message according to an exemplary embodiment of the disclosure;
fig. 12 is a block diagram of a processing device for forwarding a notification message according to another exemplary embodiment of the present disclosure;
fig. 13 is a structural frame diagram of a terminal provided in an exemplary embodiment of the present disclosure;
fig. 14 is a structural framework diagram of a server provided in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic structural diagram of a message forwarding system provided in an exemplary embodiment of the present disclosure, where the system includes: client 110, client 120, and server 130.
The client 110 and the client 120 are the same client, which is a social network platform supporting real-time sharing of messages in a broadcast manner, and the client has a message forwarding function. The message forwarding function refers to a function that a message sent by a first account is sent again by a second account.
Alternatively, clients 110 and 120 may be microblog clients; or, the client may also support real-time sharing of the message and the message forwarding function in a broadcast manner, which is not limited in this embodiment.
Illustratively, a first account is registered in the client 110 and a second account is registered in the client 120. The first account and the second account are registered in the server 130 in advance, and the client having the account logged in has the authority to share the message. Of course, at least two accounts may be registered in the client 110 and the client 120, which is not limited in this embodiment.
Alternatively, the client 110 and the client 120 run in different terminals, which may be: mobile phones, tablet computers, wearable devices, Virtual Reality (VR) devices, Augmented Reality (AR) devices, smart home devices, laptop portable computers, desktop computers, and other electronic devices having a communication function.
Optionally, the client 110 and the client 120 may include other functions besides the function of sharing messages in a broadcast manner and the message forwarding function, such as: video shooting function, instant messaging function, electronic transaction function, etc., which are not listed in this embodiment.
The client 110 and the client 120 establish a communication connection with the server 130 through a wireless network mode or a wired network mode.
Server 130 may be a standalone server host; alternatively, the server may be a server cluster including a plurality of server hosts, which is not limited in the present embodiment. Server 130 is operative to provide a service for client 110 to forward notification messages.
Optionally, this embodiment takes the example that the client 120 forwards the target message sent by the client 110 as an example. In actual implementation, the client receiving the forwarding notification message is the client 110, and the client performing message forwarding is the client 120.
The client 120 forwards the target message sent by the client 110, which includes two cases, the first case is: the client 120 indirectly forwards the target message sent by the client 110; and the second method comprises the following steps: the client 120 directly forwards the target message sent by the client 110. These two cases will be described separately below.
Referring to fig. 2, the first: the client 120 indirectly forwards the target message sent by the client 110.
201. Client 110 sends the targeted message to server 120 through a communication connection with server 130. Optionally, the target message may be issued by the first account in the client 110, or may also be obtained by forwarding a message issued by another account by the first account, and this embodiment takes the example that the target message is issued by the first account in the client 110 as an example.
202. Server 130 stores the target message and the forwarding path for the target message.
Alternatively, when the target message is obtained by forwarding the target message issued by another account by the first account, the server 130 may not perform the step of storing the target message because the server 130 already stores the target message.
Optionally, the recording, by the server 130, the forwarding path of the target message includes: and establishing a corresponding relation between the target message and the first account.
203. The server 130 broadcasts a target message issued by the first account.
Alternatively, the server 130 may broadcast the targeted message only to other accounts that are interested in the first account; alternatively, the server 130 broadcasts the targeted message to all other accounts.
204. At least one other client receives the target message, and other clients log in other accounts.
205. When other accounts need to forward the target message, a forwarding request is sent to the server 130.
Optionally, the forwarding request carries the identifier of the other account and the target message.
206. Server 130 receives the forwarding request and updates the forwarding path of the targeted message.
Optionally, the updating, by the server 130, the forwarding path of the target message includes: and adding other accounts in the corresponding relation between the target message and the first account to obtain the corresponding relation between the target message, the first account and other accounts.
207. The server 130 broadcasts a target message issued by other accounts and sends a forwarding notification message to the client 110.
The forwarding notification message is used for notifying that the target message sent by the first account is forwarded by other accounts.
Alternatively, the server 130 may broadcast the targeted message only to accounts that are interested in other accounts; alternatively, the server 130 broadcasts the targeted message to all accounts.
208. The client 120 receives the target message, and the client 120 logs in the second account.
209. When the second account needs to forward the target message, a forwarding request is sent to the server 130.
Optionally, the forwarding request carries the identifier of the second account and the target message.
210. Server 130 receives the forwarding request and updates the forwarding path of the targeted message.
Optionally, the updating, by the server 130, the forwarding path of the target message includes: and adding a second account in the corresponding relation among the target message, the first account and other accounts to obtain the corresponding relation among the target message, the first account, other accounts and the second account.
211. The server 130 broadcasts a target message issued by the second account and sends a forwarding notification message to the client 110 and other clients.
The forwarding notification message is used for notifying that the target message sent by the first account is forwarded by other accounts.
Alternatively, the server 130 may broadcast the targeted message only to the account with the focus on the second account; alternatively, the server 130 broadcasts the targeted message to all accounts.
According to the above process, the second account forwards the target message sent by the first account by forwarding the target message of other accounts, so that the second account indirectly forwards the target message sent by the first account.
Referring to fig. 3, second: the client 120 directly forwards the target message sent by the client 110.
301. Client 110 sends the targeted message to server 120 through a communication connection with server 130. Optionally, the target message may be issued by the first account in the client 110, or may also be obtained by forwarding a message issued by another account by the first account, and this embodiment takes the example that the target message is issued by the first account in the client 110 as an example.
302. Server 130 stores the target message and the forwarding path for the target message.
Alternatively, when the target message is obtained by forwarding the target message issued by another account by the first account, the server 130 may not perform the step of storing the target message because the server 130 already stores the target message.
Optionally, the recording, by the server 130, the forwarding path of the target message includes: and establishing a corresponding relation between the target message and the first account.
303. The server 130 broadcasts a target message issued by the first account.
Alternatively, the server 130 may broadcast the targeted message only to other accounts that are interested in the first account; alternatively, the server 130 broadcasts the targeted message to all other accounts.
304. The client 120 receives the target message, and the client 120 logs in the second account.
305. When the second account needs to forward the target message, a forwarding request is sent to the server 130.
Optionally, the forwarding request carries the identifier of the second account and the target message.
306. Server 130 receives the forwarding request and updates the forwarding path of the targeted message.
Optionally, the updating, by the server 130, the forwarding path of the target message includes: and adding a second account in the corresponding relation between the target message and the first account to obtain the corresponding relation between the target message, the first account and the second account.
307. The server 130 broadcasts a target message issued by the second account and sends a forwarding notification message to the client 110.
The forwarding notification message is used for notifying that the target message sent by the first account is forwarded by other accounts.
Alternatively, the server 130 may broadcast the targeted message only to the account with the focus on the second account; alternatively, the server 130 broadcasts the targeted message to all accounts.
According to the above process, the second account does not forward the target message sent by the first account through other accounts, so the second account directly forwards the target message sent by the first account.
Optionally, in this application, the forwarding notification message sent by the server 130 to the client 110 may further include a message input by the client 120 in the forwarding target message.
The Network is typically the Internet, but may be any Network including, but not limited to, a local Area Network (L cal Area Network, L AN), a Metropolitan Area Network (Metropolisan Area Network, MAN), a Wide Area Network (WAN), a mobile, wireline, or wireless Network, a private Network, or any combination of Virtual private networks.
As can be seen from the message forwarding process shown in fig. 2, when the second account indirectly forwards the target message sent by the first account, the client logged in with the first account still receives the forwarding notification message generated by the server, the number of times of forwarding the notification message received by the first account increases as the number of forwarding nodes in the forwarding path increases, and if the client logged in with the first account receives the forwarding notification message each time and outputs a message prompt, the number of times of outputting the message prompt by the client increases, which results in a large resource consumption by the client and may disturb the user.
Based on the technical problem, the present disclosure provides the following technical solutions.
Fig. 4 is a flowchart of a processing method for forwarding a notification message according to an exemplary embodiment of the present disclosure, where this embodiment takes an execution main body of each step as an example of a client, where the client logs in a first account, and the client may be the client 110 in fig. 1, and the method includes the following steps:
in step 401, a forwarding notification message is received, where the forwarding notification message is used to notify that a target message sent by a first account is forwarded by a second account.
Optionally, the forwarding notification message is generated when the server directly forwards the target message sent by the first account in the second account; or, the forwarding notification message is generated when the server indirectly forwards the target message sent by the first account in the second account.
Optionally, the target message sent by the first account is a target message issued by the first account; or the target message sent by the first account is the target message forwarded by the first account.
In step 402, it is determined whether a forwarding level of the target message is greater than a preset threshold, where the forwarding level is a number of forwarding nodes that are passed by the target message when the target message is forwarded to the second account using the first account as a forwarding starting point.
The forwarding node refers to an account for forwarding the target message, and the forwarding node that forwards the target message to the second account with the first account as the forwarding starting point includes the second account but does not include the first account.
Optionally, the preset threshold is set by default in the client; or, a setting control is set in the client, and the preset threshold is received through the setting control.
Optionally, taking an example that the preset threshold is received through the setting control, the client displays the setting control; and receiving a preset threshold value input through the setting control.
Optionally, the client displays the setting control when receiving a control operation for triggering display of the setting control.
Illustratively, referring to fig. 5, after receiving a control operation acting on the control 501, the client displays a setting control 502, and receives a preset threshold value input by a user through an input box in the setting control 502; the preset threshold is obtained upon receipt of a confirmation operation acting on a confirmation option in the settings control 502.
It should be added that the input manner of the preset threshold shown in fig. 5 is only illustrative, and in actual implementation, the client may also obtain the preset threshold by other manners, such as: by displaying the preset threshold in the form of a scroll wheel in the setting control 502, the preset threshold and the like are acquired upon receiving a confirmation operation acting on a confirmation option in the setting control 502.
Optionally, the forwarding hierarchy of the target message is obtained from the forwarding notification message; alternatively, the forwarding hierarchy is sent by the server carried in other messages.
Optionally, the client determines whether the forwarding level of the target message is greater than a preset threshold, including but not limited to the following ways:
the first mode is as follows: the client acquires a forwarding path of a second account forwarding target message; determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain a forwarding level; detecting whether the forwarding level is greater than a preset threshold.
Optionally, the forwarding notification message includes a forwarding path of the second account forwarding target message. At this time, the client analyzes the forwarding notification message to obtain the forwarding path.
Optionally, the forwarding path is used to represent a forwarding node to which the target message is forwarded. The forwarding path includes: a publishing node of the target message and a forwarding node of the target message. The publishing node of the target message refers to an account for publishing the target message, and the publishing node can be a first account; alternatively, other account numbers may be used, which are not limited in this embodiment. The forwarding node of the target message refers to the account for forwarding the target message, and the forwarding node comprises a second account. Optionally, the forwarding node may also include other account numbers (for example, in indirect forwarding), which is not limited in this embodiment.
Illustratively, the format of the forward notification message is as follows:
second account// …// other accounts n// first account: targeted message
Wherein n is a natural number. n is used for indicating the number of other accounts, when n is 0, the number of other accounts is 0, and at the moment, the second account directly forwards the target message issued by the first account; and when n is not 0, the number of other accounts is not 0, and at the moment, the second account indirectly forwards the target message issued by the first account.
According to the format of the forwarding notification message, the forwarding path of the target message is: first account- > other accounts n- > … - > second account. The first account is a publishing node, and the second accounts of the other accounts n … behind the first account are forwarding nodes.
Optionally, the larger the forwarding hierarchy, the weaker the association of the second account with the first account.
The second mode is as follows: the forwarding notification message includes a forwarding hierarchy. At this time, the client reads the forwarding level from the forwarding notification message, and detects whether the number is greater than a preset threshold.
Optionally, when the forwarding level is greater than the preset threshold, step 403 is performed.
In step 403, when the forwarding level is greater than the preset threshold, the message prompt for the forwarding notification message is cancelled.
The message prompt support prompts a user corresponding to the client that the client receives the forwarding notification message when the client is not operated in the foreground of the terminal.
Optionally, the message alert includes, but is not limited to: at least one of a pop-up window, a vibration, a warning sound and a signal lamp.
In summary, in the processing method for forwarding notification messages provided in this embodiment, it is determined whether the forwarding level of the target message is greater than the preset threshold when the forwarding notification message is received, and the message prompt for forwarding the notification message is cancelled when the forwarding level is greater than the preset threshold, because the more forwarding levels, the weaker the association degree between the second account and the first account sending the target message is, the lower the probability that the user pays attention to the first account for forwarding the target message is, therefore, by not performing the message prompt on the forwarding notification message, that is, shielding the received forwarding notification message, resources consumed by the client when outputting the message prompt can be saved, and the user can be prevented from being disturbed.
Optionally, fig. 6 is a flowchart of a processing method for forwarding a notification message according to an exemplary embodiment of the present disclosure, where this embodiment takes an execution subject of each step as an example to describe, where the client may be the client 110 in fig. 1, and based on the embodiment shown in fig. 4, after step 402, when a forwarding level is greater than a preset threshold, the method further includes the following steps:
step 601, aggregating and displaying the forwarding notification message and the first history notification message to the same display position of the message receiving list.
Wherein the first history notification message is a forwarding notification message received before the forwarding notification message and having a forwarding level greater than a preset threshold. The forwarding level corresponding to the first history notification message is the forwarding level of the target message; and/or, the forwarding hierarchy of other messages sent by the first account is not limited in this embodiment.
Optionally, the message reception list further includes a third history notification message, which is a forwarding notification message received before the forwarding notification message and having a forwarding level less than or equal to a preset threshold. The forwarding level corresponding to the third history notification message is the forwarding level of the target message; and/or, the forwarding hierarchy of other messages sent by the first account is not limited in this embodiment.
Alternatively, the display position occupies the same space in the message receipt list as the third history notification message occupies in the message receipt list.
And step 602, when receiving the operation signal acting on the display position, jumping from the message receiving list to a detail page, and displaying the forwarding notification message and the first history notification message in the detail page.
Such as: referring to fig. 7, a display position 701 of a message reception list in which a forwarding notification message and a first history notification message are aggregated, other display positions of the message reception list in which a third history notification message 702 is displayed, and upon receiving a trigger operation acting on the display position 701, a client jumps to a detail page 703 to be displayed, the detail page 703 including a forwarding notification message 7031 and a first history notification message 7032.
In summary, in the embodiment, the forwarding notification messages with the forwarding levels larger than the preset threshold are displayed in the message receiving list in the form of aggregated messages, and because the probability that the user pays attention to the forwarding notification messages with the forwarding levels larger than the preset threshold is low, the forwarding notification messages are displayed in an aggregated manner, so that the space occupied by the forwarding notification messages in the message receiving list can be reduced, and the efficiency of viewing the forwarding notification messages with the forwarding levels smaller than or equal to the preset threshold in the message receiving list is improved.
Optionally, in the embodiment shown in fig. 4 and/or fig. 6, in step 403, when the forwarding level is greater than the preset threshold, the client may further obtain a first message number of the forwarding notification message and the first history notification message; and when the first message quantity is a multiple of the first threshold value, outputting an aggregated message prompt, wherein the aggregated message prompt is used for prompting that the forwarding notification messages of the first message quantity are received.
Alternatively, the first threshold may be set by default at the client; or the client may also receive the information through a human-computer interaction interface, which is not limited in this embodiment.
In summary, in this embodiment, when the first number of the forwarding notification messages and the first history notification messages is a multiple of the first threshold, the aggregation message prompt is output to prompt the user that the number of the forwarding notification messages of which the forwarding levels are greater than the preset threshold is large, so that the user can know the forwarding heat of the target message according to the prompt, and the aggregation message prompt is output only when the first number of the messages is the multiple of the first threshold, thereby reducing the number of times that the client outputs the aggregation message prompt, reducing the resources consumed by the client when the client outputs the aggregation message prompt, and avoiding disturbing the user.
Optionally, in at least one of the foregoing method embodiments, step 403 may be replaced by that, when the forwarding level is greater than a preset threshold, the client determines whether the second account and the first account are in a binding relationship; and when the second account is not in the binding relation with the first account, canceling the message prompt of the forwarding notification message.
Optionally, when the second account is in a binding relationship with the first account, the client outputs a message prompt.
Alternatively, the binding relationship may be that the first account and the second account concern each other; or, the first account and the second account may be friends with each other, and the type of the binding relationship is not limited in this embodiment.
Because the probability that the user corresponding to the first account pays attention to the second account to forward the target message is higher when the first account and the second account are in the binding relationship with each other, the message prompt is prohibited from being output only when the first account and the second account are not in the binding relationship, so that the problem that the client shields the forwarding notification message paid attention to by the user can be avoided, and the accuracy of the client in shielding the forwarding notification message is improved.
Optionally, in at least one of the foregoing method embodiments, before step 402, the client obtains and forwards a second message number of the notification message and the second history notification message; when the second number of messages is greater than or equal to the second threshold, step 402 is performed.
Alternatively, the second number threshold may be a client default setting; or the client may also receive the information through a human-computer interaction interface, which is not limited in this embodiment.
Wherein the second history notification message is a forward notification message of the target message received before the forward notification message. The forwarding level corresponding to the second history notification message is the forwarding level of the target message; and/or, the forwarding hierarchy of other messages sent by the first account is not limited in this embodiment.
In the embodiment, when the second message quantity of the forwarding notification messages related to the target message reaches the second threshold, the forwarding notification messages of which the forwarding levels are greater than the preset threshold are shielded, so that the client only starts the function of shielding the forwarding notification messages when the forwarding heat of the target message is high, and does not need to start the function of shielding the forwarding notification messages when the forwarding heat of the target message is low, thereby improving the flexibility of starting the function of shielding the forwarding notification messages by the client.
Optionally, in at least one of the above method embodiments, after the step 403, when the forwarding level is less than or equal to a preset threshold, the client outputs a message prompt.
Such as: referring to fig. 8, a message prompt output by the client is displayed in the screen locking interface in a text form, and the message prompt includes a second account 801 and a target message 802. Of course, the message prompt may also include other content, such as: a forwarding path, a message 803 received by the second account when forwarding the target message, and the like, which are not limited in this embodiment.
Optionally, in at least one of the foregoing method embodiments, after the step 403, when the forwarding level is less than or equal to the preset threshold, the client obtains a third message number of the forwarding notification message and the third history notification message; and when the third message quantity is larger than or equal to a third threshold value, canceling the message prompt of the forwarding notification message.
Optionally, when the third number of messages is smaller than the third threshold, a message prompt for forwarding the notification message is output.
Alternatively, the third threshold may be set by default at the client; or the client may also receive the information through a human-computer interaction interface, which is not limited in this embodiment.
In this embodiment, when the number of the forwarding notification messages of which the forwarding levels are less than or equal to the preset threshold is large, the message prompt is shielded, so that the frequency of outputting the message prompt by the client can be reduced, and resources consumed by the client when outputting the message prompt are reduced.
Fig. 9 is a flowchart of a processing method for forwarding a notification message according to another exemplary embodiment of the present disclosure, where this embodiment takes an execution subject of each step as an example of a server, which may be the server 130 in fig. 1, and the method includes the following steps:
in step 901, a forwarding request sent by the second account is received, where the forwarding request is used to request to forward a target message.
The target message is a message sent by the first account. The target message may be issued by the first account; alternatively, the first account may be forwarded.
Optionally, the forwarding request carries the second account, the identifier of the target message, and the forwarded account.
Alternatively, the identification of the target message may be the content of the target message; alternatively, the first m characters of the target message may be used, where m is a positive integer, and the identifier of the target message is not limited in this embodiment.
Optionally, the forwarded account refers to an account to which the target message is forwarded by the second account, and the forwarded account may be the first account; alternatively, other accounts are possible.
In step 902, it is determined whether the forwarding level of the target message is greater than a preset threshold.
The forwarding level is the number of forwarding nodes that the first account passes through when being forwarded to the second account as a forwarding starting point.
The forwarding node refers to an account for forwarding the target message, and the forwarding node that forwards the target message to the second account with the first account as the forwarding starting point includes the second account but does not include the first account.
Optionally, the preset threshold is set by default in the server; alternatively, the client that logs in to the first account is sent to the server, which is not limited in this embodiment.
Optionally, determining whether the forwarding level of the target message is greater than a preset threshold includes: updating the forwarding path of the target message according to the second account in the forwarding request; determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain a forwarding level; it is detected whether the forwarding level is greater than a preset threshold.
Optionally, the forwarding path is used to represent a forwarding node to which the target message is forwarded. The forwarding path includes: a publishing node of the target message and a forwarding node of the target message. The publishing node of the target message refers to an account for publishing the target message, and the publishing node can be a first account; alternatively, other account numbers may be used, which are not limited in this embodiment. The forwarding node of the target message refers to the account for forwarding the target message, and the forwarding level includes the second account. Optionally, the forwarding node may also include other account numbers (for example, in indirect forwarding), which is not limited in this embodiment.
Optionally, the forwarding request includes an identifier of the target message and the forwarded account. At this time, the server updates the forwarding path of the target message according to the second account in the forwarding request, including: and determining a forwarding path to which the target message belongs according to the identifier of the target message and the forwarded account, and adding the second account to the tail of the forwarding path to obtain the forwarding path for forwarding the target message by the second account.
Such as: referring to the forwarding path stored in the server shown in fig. 10, if the target message is message 1 and the forwarded account is 123456, the forwarding path to which the target message belongs is: 111- >1123- >123456, if the second account is 1234567, the forwarding path of the second account for forwarding the target message is: 111- >1123- >123456- > 1234567. Wherein 111 is a publishing node, and 1123, 123456 and 1234567 are forwarding nodes.
Optionally, the larger the forwarding hierarchy, the weaker the association of the second account with the first account.
In step 903, when the forwarding level is greater than the preset threshold, the forwarding notification message is cancelled from being sent to the client logged in with the first account.
The forwarding notification message is used for notifying that the target message sent by the first account is forwarded by the second account.
Illustratively, the format of the forward notification message is as follows:
second account// …// other accounts n// first account: targeted message
Wherein n is a natural number. n is used for indicating the number of other accounts, when n is 0, the number of other accounts is 0, and at the moment, the second account directly forwards the target message issued by the first account; and when n is not 0, the number of other accounts is not 0, and at the moment, the second account indirectly forwards the target message issued by the first account.
Optionally, when the forwarding level is less than or equal to a preset threshold, a forwarding notification message is sent to the client logged in with the first account.
In summary, in the processing method for forwarding notification messages provided in this embodiment, it is determined whether a forwarding level of a target message is greater than a preset threshold when a forwarding request is received, and when the forwarding level is greater than the preset threshold, a forwarding notification message is not sent to a client that logs in a first account that issues the target message, because the more forwarding levels of the target message, the weaker the association degree between a second account and the first account is, and the lower the probability that a user pays attention to the first account to forward the target message is, therefore, by not sending the forwarding notification message, transmission resources of a server can be saved, and it can be avoided that the client performs message prompting on the forwarding notification message after receiving the forwarding notification message, so as to disturb the user.
Fig. 11 is a block diagram illustrating a configuration of a processing apparatus for forwarding a notification message according to an exemplary embodiment of the present disclosure, where as shown in fig. 11, the processing apparatus for forwarding a notification message is used in a client logged in with a first account, and the apparatus includes: a message receiving module 1110, a hierarchy determining module 1120, and a message processing module 1130.
A message receiving module 1110 configured to receive a forwarding notification message, where the forwarding notification message is used to notify that a target message sent by a first account is forwarded by a second account;
a level determining module 1120, configured to determine whether a forwarding level of a target message corresponding to the forwarding notification message obtained by the message receiving module 1110 is greater than a preset threshold, where the forwarding level is a number of forwarding nodes that are experienced when the first account is taken as a forwarding starting point and forwarded to a second account;
a message processing module 1130 configured to cancel the message prompt for the forwarding notification message when the forwarding hierarchy obtained by the hierarchy determining module 1120 is greater than a preset threshold.
Optionally, the hierarchy determining module 1120 includes: a path acquisition unit, a hierarchy acquisition unit, and a hierarchy detection unit.
A path obtaining unit configured to obtain a forwarding path for forwarding the target message by the second account, where the forwarding path indicates a forwarding node to which the target message is forwarded;
the hierarchy acquisition unit is configured to determine the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain a forwarding hierarchy;
a level detection unit configured to detect whether a forwarding level is greater than a preset threshold.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes: the message aggregation module and the message display module.
A message aggregation module configured to display a forwarding notification message and a first history notification message in an aggregated manner to the same display position of a message reception list, wherein the first history notification message is a forwarding notification message received before the forwarding notification message and has a forwarding level greater than a preset threshold;
and a message display module configured to jump from the message reception list to a detail page in which the forwarding notification message and the first history notification message are displayed, upon receiving an operation signal acting on the display position.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes: the device comprises a first acquisition module and a prompt output module.
The first obtaining module is configured to obtain the forwarding notification messages and a first message quantity of first historical notification messages, wherein the first historical notification messages are the forwarding notification messages with the forwarding levels larger than a preset threshold value and received before the forwarding notification messages;
and the prompt output module is configured to output an aggregated message prompt when the first message quantity is a multiple of the first threshold, wherein the aggregated message prompt is used for prompting that the forwarding notification message of the first message quantity is received.
Optionally, when the forwarding level is greater than the preset threshold, the apparatus further includes: a relationship determination module.
The relationship determination module is configured to determine whether the second account and the first account are in a binding relationship;
and the message processing module is also configured to execute the step of canceling the message prompt of the forwarding notification message when the second account is not in the binding relation with the first account.
Optionally, the apparatus further comprises: and a second obtaining module.
A second obtaining module configured to obtain and forward the notification message and a second message number of a second history notification message, the second history notification message being a forwarding notification message of a target message received before the forwarding notification message;
the level determining module is further configured to execute the step of determining whether the forwarding level of the target message is greater than a preset threshold value when the second message number is greater than or equal to a second threshold value.
Optionally, when the forwarding level is less than or equal to the preset threshold, the apparatus further includes: and a third obtaining module.
A third obtaining module configured to obtain a third message number of the forwarding notification message and a third history notification message, where the third history notification message is a forwarding notification message whose forwarding level received before the forwarding notification message is less than or equal to a preset threshold;
and the message processing module is also configured to cancel the message prompt of the forwarding notification message when the third message quantity is greater than or equal to a third threshold value.
For further details, reference is made to the above-described method embodiments performed by the client.
Fig. 12 is a block diagram illustrating a structure of a processing apparatus for forwarding a notification message according to an exemplary embodiment of the present disclosure, where as shown in fig. 12, the processing apparatus for forwarding a notification message is used in a server, and the apparatus includes: a request receiving module 1210, a hierarchy determining module 1220, and a message processing module 1230.
A request receiving module 1210 configured to receive a forwarding request sent by a second account, where the forwarding request is used to request to forward a target message, and the target message is a message sent by a first account;
a level determining module 1220, configured to determine whether a forwarding level of a target message indicated by the forwarding request obtained by the request receiving module 1210 is greater than a preset threshold, where the forwarding level is a number of forwarding nodes that are experienced when the first account is forwarded to a second account as a forwarding starting point;
the message processing module 1230 is configured to cancel sending a forwarding notification message to the client logged in with the first account when the forwarding level determined by the level determining module 1220 is greater than a preset threshold, where the forwarding notification message is used to notify that a target message sent by the first account is forwarded by the second account.
Optionally, the hierarchy determining module 1220 includes: the device comprises a path updating unit, a hierarchy acquiring unit and a hierarchy detecting unit.
A path updating unit configured to update a forwarding path of the target message according to the second account, where the forwarding path indicates a forwarding node to which the target message is forwarded;
the hierarchy acquisition unit is configured to determine the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain a forwarding hierarchy;
a level detection unit configured to detect whether a forwarding level is greater than a preset threshold.
Reference is made in relevant detail to the above-described embodiments of the method performed by the server.
Fig. 13 is a block diagram illustrating a terminal 1300 according to an exemplary embodiment of the present invention, where the terminal 1300 may be a portable mobile terminal, such as a smart phone, a tablet pc, an MP3 player (Moving Picture experts Group Audio L layer III, mpeg 3), an MP4 player (Moving Picture experts Group Audio L layer IV, mpeg 4), and the terminal 1300 may also be referred to as a user equipment, a portable terminal, or other names.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
The processor 1301 may include a main processor and a coprocessor, the main processor being a processor for Processing data in a wake-up state, also referred to as a Central Processing Unit (CPU), the coprocessor being a low power processor for Processing data in a standby state, the processor 1301 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content to be displayed on the display screen 1301, and in some embodiments, the processor may also include an intelligent processor (AI) for learning operations related to AI (Artificial Intelligence processor) learning.
The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the processing method of forwarding notification messages provided herein.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, touch display 1305, camera 1306, audio circuitry 1307, positioning component 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
Touch Display 1305 is used to Display a UI (User Interface), which may include graphics, text, icons, video, and any combination thereof, touch Display 1305 also has the ability to capture touch signals on or over the surface of touch Display 1305, which may be input as control signals to processor 1301, touch Display 1305 is used to provide virtual buttons and/or a virtual keyboard, also known as soft buttons and/or a soft keyboard.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 is used to provide an audio interface between the user and the terminal 1300. The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for locating the current geographic location of the terminal 1300 to implement navigation or L BS (L geographic based Service). the positioning component 1308 can be a positioning component based on the united states GPS (global positioning System), the chinese beidou System, or the russian galileo System.
Power supply 1309 is used to provide power to various components in terminal 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 1309 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1301 may control the touch display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to acquire a 3D motion of the user with respect to the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1313 may be disposed on a side bezel of terminal 1300 and/or underlying touch display 1305. When the pressure sensor 1313 is provided on the side frame of the terminal 1300, a user's grip signal on the terminal 1300 can be detected, and left-right hand recognition or shortcut operation can be performed based on the grip signal. When the pressure sensor 1313 is disposed on the lower layer of the touch display 1305, it is possible to control an operability control on the UI interface according to a pressure operation of the user on the touch display 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user to identify the identity of the user according to the collected fingerprint, when the identity of the user is identified as a trusted identity, the user is authorized by the processor 1301 to perform relevant sensitive operations, such as unlocking a screen, viewing encrypted information, downloading software, paying and changing settings, and the like, the fingerprint sensor 1314 can be arranged on the front side, the back side or the side of the terminal 1300, and when a physical key or a manufacturer L ogo is arranged on the terminal 1300, the fingerprint sensor 1314 can be integrated with the physical key or the manufacturer L ogo.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch display screen 1305 according to the intensity of the ambient light collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch display 1305 is turned down. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front face of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the processor 1301 controls the touch display 1305 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually decreases; the touch display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually becomes larger.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Referring to fig. 14, a structural framework diagram of a server according to an embodiment of the present invention is shown. The server may be the server 120 in the processing system that forwards the notification message. Specifically, the method comprises the following steps: the server 1400 includes a Central Processing Unit (CPU)1401, a system memory 1404 including a Random Access Memory (RAM)1402 and a Read Only Memory (ROM)1403, and a system bus 1405 connecting the system memory 1404 and the central processing unit 1401. The server 1400 also includes a basic input/output system (I/O system) 1406 that facilitates transfer of information between devices within the computer, and a mass storage device 1407 for storing an operating system 1413, application programs 1414, and other program modules 1415.
The basic input/output system 1406 includes a display 1408 for displaying information and an input device 1409, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1408 and input device 1409 are both connected to the central processing unit 1401 via an input-output controller 1410 connected to the system bus 1405. The basic input/output system 1406 may also include an input/output controller 1410 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1410 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1407 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable media provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1404 and mass storage device 1407 described above may collectively be referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 1401, the one or more programs containing instructions for implementing the processing method of the forwarding notification message described above, and the central processing unit 1401 executes the one or more programs to implement the processing method of the forwarding notification message provided by the various method embodiments described above.
The server 1400 may also operate in conjunction with remote computers connected to a network via a network, such as the internet, according to various embodiments of the invention. That is, the server 1400 may be connected to the network 1412 through the network interface unit 1411 coupled to the system bus 1405, or the network interface unit 1411 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include steps executed by the management system 140 for performing the graphic code display method provided by the embodiment of the present invention.
The embodiment of the present disclosure further provides a computer-readable storage medium, where at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is loaded and executed by the processor to implement the processing method for forwarding a notification message provided in the foregoing method embodiments.
The embodiment of the present disclosure further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded and executed by the processor to implement the processing method for forwarding a notification message provided in the foregoing method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

1. A processing method for forwarding a notification message is used in a client logged in with a first account, and the method includes:
receiving a forwarding notification message, wherein the forwarding notification message is used for notifying that a target message sent by the first account is forwarded by a second account;
determining whether a forwarding level of the target message is greater than a preset threshold, wherein the forwarding level is the number of forwarding nodes which are passed by the first account as a forwarding starting point and are forwarded to the second account;
and when the forwarding level is greater than the preset threshold value, canceling the message prompt of the forwarding notification message.
2. The method of claim 1, wherein the determining whether the forwarding level of the target message is greater than a preset threshold comprises:
acquiring a forwarding path for forwarding the target message by the second account, wherein the forwarding path represents a forwarding node for forwarding the target message;
determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
detecting whether the forwarding level is greater than the preset threshold.
3. The method of claim 1, wherein when the forwarding hierarchy is greater than the preset threshold, the method further comprises:
aggregating and displaying the forwarding notification message and a first history notification message to the same display position of a message receiving list, wherein the first history notification message is the forwarding notification message which is received before the forwarding notification message and has the forwarding level larger than the preset threshold value;
jumping from the message reception list to a detail page in which the forwarding notification message and the first history notification message are displayed, upon receiving an operation signal acting on the display position.
4. The method according to any of claims 1 to 3, wherein when the forwarding hierarchy is greater than the preset threshold, the method further comprises:
acquiring a first message quantity of the forwarding notification message and a first historical notification message, wherein the first historical notification message is the forwarding notification message which is received before the forwarding notification message and has a forwarding level larger than the preset threshold value;
and when the first message quantity is a multiple of a first threshold value, outputting an aggregated message prompt, wherein the aggregated message prompt is used for prompting that the forwarding notification message of the first message quantity is received.
5. The method according to any of claims 1 to 3, wherein when the forwarding hierarchy is greater than the preset threshold, the method further comprises:
determining whether the second account is in a binding relationship with the first account;
and when the second account and the first account are not in the binding relationship, executing the step of canceling the message prompt of the forwarding notification message.
6. The method of any of claims 1 to 3, further comprising:
acquiring a second message quantity corresponding to the forwarding notification message and a second history notification message, wherein the second history notification message is the forwarding notification message of the target message received before the forwarding notification message;
when the second message quantity is larger than or equal to a second threshold value, the step of determining whether the forwarding level of the target message is larger than a preset threshold value is executed.
7. The method according to any of claims 1 to 3, wherein when the forwarding hierarchy is less than or equal to the preset threshold, the method further comprises:
acquiring a third message quantity of the forwarding notification message and a third history notification message, wherein the third history notification message is the forwarding notification message of which the forwarding level received before the forwarding notification message is smaller than or equal to the preset threshold;
and when the third message quantity is larger than or equal to a third threshold value, canceling the message prompt of the forwarding notification message.
8. A method for processing a forwarding notification message, which is used for a server, the method comprising:
receiving a forwarding request sent by a second account, wherein the forwarding request is used for requesting to forward a target message, and the target message is a message sent by a first account;
determining whether a forwarding level of the target message is greater than a preset threshold, wherein the forwarding level is the number of forwarding nodes which are passed by the first account as a forwarding starting point and are forwarded to the second account;
and when the forwarding level is greater than the preset threshold value, canceling to send a forwarding notification message to the client logged in with the first account, wherein the forwarding notification message is used for notifying that the target message sent by the first account is forwarded by the second account.
9. The method of claim 8, wherein the determining whether the forwarding level of the target message is greater than a preset threshold comprises:
updating a forwarding path of the target message according to the second account, wherein the forwarding path represents a forwarding node for forwarding the target message;
determining the number of forwarding nodes taking the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
detecting whether the forwarding level is greater than the preset threshold.
10. A processing apparatus for forwarding a notification message, the apparatus being configured to log in a client having a first account, the apparatus comprising:
a message receiving module configured to receive a forwarding notification message, where the forwarding notification message is used to notify that a target message sent by the first account is forwarded by a second account;
a level determining module configured to determine whether a forwarding level of the target message corresponding to the forwarding notification message obtained by the message receiving module is greater than a preset threshold, where the forwarding level is a number of forwarding nodes experienced when the first account is used as a forwarding starting point and the target message is forwarded to the second account;
a message processing module configured to cancel message prompting of the forwarding notification message when the forwarding hierarchy acquired by the hierarchy determination module is greater than the preset threshold.
11. The apparatus of claim 10, wherein the hierarchy determining module comprises:
a path obtaining unit, configured to obtain a forwarding path for the second account to forward the target message, where the forwarding path represents a forwarding node to which the target message is forwarded;
a level obtaining unit configured to determine a number of forwarding nodes using the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
a level detection unit configured to detect whether the forwarding level is greater than the preset threshold.
12. The apparatus of claim 10, wherein when the forwarding hierarchy is greater than the preset threshold, the apparatus further comprises:
a message aggregation module configured to display the forwarding notification message and a first history notification message in an aggregation manner to the same display position of a message receiving list, wherein the first history notification message is a forwarding notification message which is received before the forwarding notification message and has a forwarding level larger than the preset threshold;
a message display module configured to jump from the message reception list to a detail page in which the forwarding notification message and the first history notification message are displayed, upon receiving an operation signal acting on the display position.
13. The apparatus according to any of claims 10 to 12, wherein when the forwarding hierarchy is greater than the preset threshold, the apparatus further comprises:
a first obtaining module configured to obtain the forwarding notification message and a first message number of a first history notification message, where the first history notification message is a forwarding notification message whose forwarding level received before the forwarding notification message is greater than the preset threshold;
a prompt output module configured to output an aggregated message prompt when the first message number is a multiple of a first threshold, where the aggregated message prompt is used to prompt that a forwarding notification message of the first message number is received.
14. The apparatus according to any one of claims 10 to 12, wherein when the forwarding hierarchy is greater than the preset threshold, the apparatus further comprises:
a relationship determination module configured to determine whether the second account is in a binding relationship with the first account;
the message processing module is further configured to execute the step of canceling the message prompt for the forwarding notification message when the second account is not in the binding relationship with the first account.
15. The apparatus of any one of claims 10 to 12, further comprising:
a second obtaining module configured to obtain a second message number corresponding to the forwarding notification message and a second history notification message, wherein the second history notification message is a forwarding notification message of the target message received before the forwarding notification message;
the level determination module is further configured to perform the step of determining whether the forwarding level of the target message is greater than a preset threshold value when the second message number is greater than or equal to a second threshold value.
16. The apparatus according to any one of claims 10 to 12, wherein when the forwarding hierarchy is less than or equal to the preset threshold, the apparatus further comprises:
a third obtaining module configured to obtain a third message number of the forwarding notification message and a third history notification message, where the third history notification message is a forwarding notification message whose forwarding level received before the forwarding notification message is less than or equal to the preset threshold;
the message processing module is further configured to cancel the message prompt of the forwarding notification message when the third message number is greater than or equal to a third threshold.
17. A processing apparatus for forwarding a notification message, the apparatus being used for a server and comprising:
a request receiving module configured to receive a forwarding request sent by a second account, where the forwarding request is used to request for forwarding a target message, and the target message is a message sent by a first account;
a level determining module configured to determine whether a forwarding level of the target message indicated by the forwarding request obtained by the request receiving module is greater than a preset threshold, where the forwarding level is a number of forwarding nodes experienced by forwarding the target message to the second account with the first account as a forwarding starting point;
and the message processing module is configured to cancel sending a forwarding notification message to the client logged in with the first account when the forwarding level determined by the level determining module is greater than the preset threshold, where the forwarding notification message is used to notify that a target message sent by the first account is forwarded by the second account.
18. The apparatus of claim 17, wherein the hierarchy determining module comprises:
a path updating unit configured to update a forwarding path of the target message according to the second account, where the forwarding path represents a forwarding node to which the target message is forwarded;
a level obtaining unit configured to determine a number of forwarding nodes using the first account as a forwarding starting point from the forwarding path to obtain the forwarding level;
a level detection unit configured to detect whether the forwarding level is greater than the preset threshold.
19. A terminal, characterized in that the terminal comprises a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to implement the processing method for forwarding notification messages according to any of claims 1 to 7.
20. A server, characterized in that the server comprises a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the processing method for forwarding notification messages according to claim 8 or 9.
21. A computer-readable storage medium having stored thereon at least one instruction, which is loaded and executed by a processor to implement the method of processing a forwarding notification message according to any one of claims 1 to 7; or, implementing the processing method of forwarding notification messages according to claim 8 or 9.
CN201711353133.7A 2017-12-15 2017-12-15 Method and device for processing forwarding notification message Active CN108111397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711353133.7A CN108111397B (en) 2017-12-15 2017-12-15 Method and device for processing forwarding notification message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711353133.7A CN108111397B (en) 2017-12-15 2017-12-15 Method and device for processing forwarding notification message

Publications (2)

Publication Number Publication Date
CN108111397A CN108111397A (en) 2018-06-01
CN108111397B true CN108111397B (en) 2020-08-04

Family

ID=62217362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711353133.7A Active CN108111397B (en) 2017-12-15 2017-12-15 Method and device for processing forwarding notification message

Country Status (1)

Country Link
CN (1) CN108111397B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196950B (en) * 2019-02-28 2023-10-24 腾讯科技(深圳)有限公司 Processing method and device for propagating account
US11082378B2 (en) * 2019-04-10 2021-08-03 Microsoft Technology Licensing, Llc Tracing messages within a message chain
CN112286608B (en) * 2020-10-28 2022-03-18 腾讯科技(深圳)有限公司 Message forwarding method and device, computer equipment and storage medium
CN113127792B (en) * 2021-06-18 2021-10-01 每日互动股份有限公司 Layered message distribution method, electronic device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387126A (en) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 Method, server, client and system for converging single microblog message
CN102750341A (en) * 2012-06-06 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying micro-blog
CN103001850A (en) * 2012-01-16 2013-03-27 陈晓亮 System and method for forwarding messages
CN103379019A (en) * 2012-04-20 2013-10-30 腾讯科技(深圳)有限公司 Microblog message pushing method, device and system
CN105120065A (en) * 2015-07-15 2015-12-02 腾讯科技(深圳)有限公司 Message processing method and device
CN105227425A (en) * 2014-05-26 2016-01-06 腾讯科技(北京)有限公司 The method of syndication message, equipment and network social intercourse system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160112358A1 (en) * 2014-01-30 2016-04-21 Entefy Inc. Apparatus and method for intelligent suppression of incoming multi-format multi-protocol communications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387126A (en) * 2010-09-01 2012-03-21 腾讯科技(深圳)有限公司 Method, server, client and system for converging single microblog message
CN103001850A (en) * 2012-01-16 2013-03-27 陈晓亮 System and method for forwarding messages
CN103379019A (en) * 2012-04-20 2013-10-30 腾讯科技(深圳)有限公司 Microblog message pushing method, device and system
CN102750341A (en) * 2012-06-06 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying micro-blog
CN105227425A (en) * 2014-05-26 2016-01-06 腾讯科技(北京)有限公司 The method of syndication message, equipment and network social intercourse system
CN105120065A (en) * 2015-07-15 2015-12-02 腾讯科技(深圳)有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN108111397A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN111327953B (en) Live broadcast voting method and device and storage medium
CN111614549B (en) Interaction processing method and device, computer equipment and storage medium
CN108111397B (en) Method and device for processing forwarding notification message
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN112764608B (en) Message processing method, device, equipment and storage medium
CN109246228B (en) Resource acquisition method, resource allocation method, device, equipment and storage medium
CN111949879A (en) Method and device for pushing message, electronic equipment and readable storage medium
CN111131392A (en) Method, device, electronic equipment and medium for processing message
CN111669640B (en) Virtual article transfer special effect display method, device, terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN114816600B (en) Session message display method, device, terminal and storage medium
CN110912830A (en) Method and device for transmitting data
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110380956B (en) Method, device and system for transmitting instant communication message
CN110971692B (en) Method and device for opening service and computer storage medium
CN107948171B (en) User account management method and device
CN108310767B (en) Information display method, device, equipment and computer readable storage medium
CN111444289A (en) Incidence relation establishing method
CN111131490A (en) State updating method and device, computer equipment and storage medium
CN111158780A (en) Method, device, electronic equipment and medium for storing application data
CN111490979B (en) Information interaction method and device and storage medium
CN113064537B (en) Media resource playing method, device, equipment, medium and product

Legal Events

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