CN116149881A - Notification message sending method, device, equipment and storage medium - Google Patents

Notification message sending method, device, equipment and storage medium Download PDF

Info

Publication number
CN116149881A
CN116149881A CN202310247103.7A CN202310247103A CN116149881A CN 116149881 A CN116149881 A CN 116149881A CN 202310247103 A CN202310247103 A CN 202310247103A CN 116149881 A CN116149881 A CN 116149881A
Authority
CN
China
Prior art keywords
node
sending
notification message
target
nodes
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.)
Withdrawn
Application number
CN202310247103.7A
Other languages
Chinese (zh)
Inventor
李良斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Shengzhi Internet Technology Co ltd
Original Assignee
Hainan Shengzhi Internet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Shengzhi Internet Technology Co ltd filed Critical Hainan Shengzhi Internet Technology Co ltd
Priority to CN202310247103.7A priority Critical patent/CN116149881A/en
Publication of CN116149881A publication Critical patent/CN116149881A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for sending notification messages, and belongs to the technical field of computers. The method comprises the following steps: for the unfinished target event on the terminal, the occurrence time of the target event in the last stage is sequentially matched with a plurality of nodes which are sequentially arranged on a task chain, and the nodes indicate different sending time and sending modes of the notification message; responding to a first node matched with the plurality of nodes, and sending a target notification message indicated by the first node to the terminal based on a sending mode indicated by the first node, wherein the sending time indicated by the first node is matched with the occurrence time of a target event in the last stage, and the first node is the first matched node; and if the feedback message of the terminal is received, adjusting the sequence of the first node on the task chain, wherein the feedback message is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification message. The method improves the effectiveness of notification message transmission.

Description

Notification message sending method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for sending a notification message.
Background
For an incomplete event that occurs at the terminal, the platform typically sends a notification message to the terminal in a fixed manner to prompt the terminal to continue processing the event. For example, for a shopping event, after a commodity is added to a shopping cart and not paid for 12 hours, a short message notification message is sent to prompt payment; for another example, after the customer receives the goods for 24 hours, a mail notification message is sent to prompt evaluation of the purchased goods. However, such a fixed-based transmission of notification messages is inflexible, reducing the effect of the transmission of notification messages.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for sending notification messages, which can improve the effectiveness of sending the notification messages. The technical scheme is as follows:
in one aspect, a method for sending a notification message is provided, where the method includes:
for an unfinished target event on a terminal, sequentially matching the occurrence time of the target event in the last stage with a plurality of nodes which are sequentially arranged on a task chain, wherein the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting the terminal to process the target event in the next stage;
Responding to a first node matched with the plurality of nodes, and based on a sending mode indicated by the first node, sending a target notification message indicated by the first node to the terminal, wherein the sending time indicated by the first node is matched with the occurrence time of the target event in the last stage, and the first node is the first matched node;
and if a feedback message of the terminal is received, adjusting the sequence of the first node on the task chain, wherein the feedback message is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification message.
In some embodiments, the adjusting the order of the first node on the task chain if the feedback message of the terminal is received includes:
if a feedback message of the terminal is received, adjusting a score of the first node, wherein the score is used for indicating a historical condition based on the fact that the first node is matched with an event and the feedback message is received;
and if the adjusted score of the first node is larger than the score of any second node, adjusting the first node to be before the second node, wherein the second node is the node ordered before the first node.
In some embodiments, if the adjusted score of the first node is greater than the score of any second node, before adjusting the first node to the second node, the method includes:
and responding to the sequence adjustment time points of the current time reaching the plurality of nodes, and executing the step of adjusting the first node to the second node if the adjusted score of the first node is larger than the score of any second node.
In some embodiments, the method further comprises:
and if the number of times the first node is matched reaches the preset number of times, adjusting the score of the first node.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event at the previous stage, the method further comprising:
for each node in the plurality of nodes, if the score of the node is greater than a first score, splitting the interval duration indicated by the target sending opportunity into a plurality of sub-durations, wherein the target sending opportunity is the sending opportunity indicated by the node;
based on the multiple sub-durations, splitting the node into multiple sub-nodes, wherein the sending time indicated by the multiple sub-nodes is respectively spaced by the multiple sub-durations.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event at the previous stage, the method further comprising:
for each node in the plurality of nodes, if the score of the node is smaller than a second score, merging the interval duration indicated by the target sending opportunity to the interval duration indicated by the adjacent sending opportunity to obtain the target duration, wherein the target sending opportunity is the sending opportunity indicated by the node, and the adjacent sending opportunity is the sending opportunity indicated by the adjacent node of the node;
and deleting the node, and updating the interval duration of the adjacent sending opportunity indication based on the target duration.
In some embodiments, the method further comprises:
for each node in the plurality of nodes, acquiring the sending condition of the notification message indicated by the node;
if the sending condition indicates that the sending of the notification message fails, the number of times of the failure is smaller than or equal to the preset number of times, and the time interval between the last sending time and the current time is longer than the preset duration, the notification message is resent, and if the resending of the notification message fails, the number of times of the failure corresponding to the node is increased by 1;
And if the failure times are greater than the preset times, marking a first identifier for the node, wherein the first identifier is used for indicating the node to stop sending the notification message.
In some embodiments, the method further comprises:
and if the sending condition indicates that the sending of the notification message is successful, marking a second identifier for the node, wherein the second identifier is used for indicating that the node can send the notification message.
In some embodiments, the method further comprises:
and determining the task chain from a plurality of candidate task chains based on the event type of the target event, wherein the plurality of candidate task chains correspond to different event types, and the event type corresponding to the task chain is matched with the event type of the target event.
In another aspect, there is provided a transmission apparatus of a notification message, the apparatus including:
the matching module is used for sequentially matching the occurrence time of an unfinished target event on the terminal with a plurality of nodes which are arranged in sequence on a task chain, wherein the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting the terminal to process the next stage of the target event;
A sending module, configured to send, to the terminal, a target notification message indicated by a first node based on a sending manner indicated by the first node in response to the first node being matched to the plurality of nodes, where a sending occasion indicated by the first node is matched with an occurrence time of the target event in a previous stage, and the first node is a first matched node;
and the adjusting module is used for adjusting the sequence of the first node on the task chain if receiving a feedback message of the terminal, wherein the feedback message is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification message.
In some embodiments, the adjustment module is configured to:
if a feedback message of the terminal is received, adjusting a score of the first node, wherein the score is used for indicating a historical condition based on the fact that the first node is matched with an event and the feedback message is received;
and if the adjusted score of the first node is larger than the score of any second node, adjusting the first node to be before the second node, wherein the second node is the node ordered before the first node.
In some embodiments, the adjustment module is configured to: and responding to the sequence adjustment time points of the current time reaching the plurality of nodes, and executing the step of adjusting the first node to the second node if the adjusted score of the first node is larger than the score of any second node.
In some embodiments, the adjustment module is further configured to: and if the number of times the first node is matched reaches the preset number of times, adjusting the score of the first node.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event in the previous stage, the apparatus further comprising:
a duration splitting module, configured to split, for each node in the plurality of nodes, an interval duration indicated by a target transmission opportunity into a plurality of sub-durations if a score of the node is greater than a first score, where the target transmission opportunity is a transmission opportunity indicated by the node;
and the node splitting module is used for splitting the node into a plurality of sub-nodes based on the plurality of sub-lengths, and the sending occasions indicated by the plurality of sub-nodes are respectively spaced by the plurality of sub-lengths.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event in the previous stage, the apparatus further comprising:
The merging module is used for merging the interval duration indicated by the target sending opportunity to the interval duration indicated by the adjacent sending opportunity to obtain the target duration for each node in the plurality of nodes if the score of the node is smaller than the second score, wherein the target sending opportunity is the sending opportunity indicated by the node, and the adjacent sending opportunity is the sending opportunity indicated by the adjacent node of the node;
and the updating module is used for deleting the node and updating the interval duration indicated by the adjacent sending opportunity based on the target duration.
In some embodiments, the apparatus further comprises:
the acquisition module is used for acquiring the sending condition of the notification message indicated by each node in the plurality of nodes;
a retransmission module, configured to retransmit the notification message if the transmission condition indicates that the notification message fails to be transmitted, the number of times of failure is less than or equal to a preset number of times, and a time interval between previous transmission time intervals is greater than a preset duration, and if the retransmission of the notification message fails, add 1 to the number of times of failure corresponding to the node;
and the marking module is used for marking a first mark for the node if the failure times are larger than the preset times, wherein the first mark is used for indicating the node to stop sending the notification message.
In some embodiments, the marking module is further configured to mark the node with a second identifier, where the second identifier is used to indicate that the node is capable of sending the notification message if the sending situation indicates that the sending of the notification message is successful.
In some embodiments, the apparatus further comprises:
the determining module is used for determining the task chain from a plurality of candidate task chains based on the event type of the target event, the plurality of candidate task chains correspond to different event types, and the event type corresponding to the task chain is matched with the event type of the target event.
In another aspect, a computer device is provided, where the computer device includes one or more processors and one or more memories, where at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method for sending a notification message according to any of the above implementations.
In another aspect, a computer readable storage medium is provided, where at least one program code is stored, where the at least one program code is loaded and executed by a processor, to implement a method for sending a notification message according to any of the foregoing implementation manners.
In another aspect, a computer program product is provided, the computer program product comprising computer program code, the computer program code being stored in a computer readable storage medium, the computer program code being read from the computer readable storage medium by a processor of a computer device, the processor executing the computer program code, causing the computer device to perform the method of sending a notification message according to any of the above implementations.
The embodiment of the application provides a notification message sending method, which adjusts the sequence of a node on a task chain after a terminal processes an event in the next stage based on the notification message sent by the node, so that the sequence of the node can be adjusted forward, and as a plurality of nodes on the task chain are arranged in sequence, when the event is matched with the plurality of nodes in sequence, the notification message can be preferentially matched with the node, so that the notification message can be preferentially sent to the terminal based on the node with good feedback effect, the terminal is convenient to feedback the notification message, and the effectiveness of the notification message sending is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by embodiments of the present application;
fig. 2 is a flowchart of a method for sending a notification message according to an embodiment of the present application;
fig. 3 is a flowchart of another method for sending a notification message according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a task chain provided by an embodiment of the present application;
fig. 5 is a block diagram of a sending device of a notification message provided in an embodiment of the present application;
fig. 6 is a block diagram of a terminal provided in an embodiment of the present application;
fig. 7 is a block diagram of a server provided in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the drawings, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprising," "including," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may alternatively include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, the messages (including but not limited to user equipment messages, user personal messages, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals referred to in this application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of the relevant countries and regions. For example, incomplete events referred to in this application are all acquired with sufficient authorization.
The method for sending the notification message provided in the embodiment of the application can be executed by a computer device, and in the embodiment of the application, the computer device is provided as a server. Referring to fig. 1, the implementation environment includes a terminal 10 and a server 20, a target application is installed on the terminal 10, and the terminal 10 performs processing of an event through the target application. The server 20 may be a background server for the target application. In some embodiments, the server 20 acquires an event that is not completed on the terminal 10, and after the server 20 is configured to reach a sending opportunity of a notification message of the event, sends the notification message to the terminal 10 to prompt the terminal 10 to perform a next stage of processing on the event.
The terminal 10 is at least one of a mobile phone, a tablet computer, a PC (Personal Computer ) device, a smart speaker, a smart television, and the like. Server 20 may be at least one of a server, a server cluster consisting of a plurality of servers, a cloud server, a cloud computing platform, and a virtualization center. The terminal 10 and the server 20 can be directly or indirectly connected through wired or wireless communication, and the present application is not limited thereto. In some embodiments, the server 20 takes on primary computing work and the terminal 10 takes on secondary computing work; alternatively, the server 20 takes on secondary computing work and the terminal 10 takes on primary computing work; alternatively, a distributed computing architecture is employed between the server 20 and the terminal 10 for collaborative computing.
Fig. 2 is a flowchart of a method for sending a notification message according to an embodiment of the present application, where the method is performed by using a computer device as an execution body, and the method includes:
201. the method comprises the steps that for an unfinished target event on a terminal, the computer equipment sequentially matches the occurrence time of the target event at the previous stage with a plurality of nodes which are arranged in sequence on a task chain, the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting the terminal to process the target event at the next stage.
In this embodiment of the present application, matching the occurrence time of the target event with the node at the previous stage refers to determining whether the interval duration between the current time and the occurrence time reaches the interval duration of the transmission opportunity indication.
In the embodiment of the present application, the sending manner includes, but is not limited to, a manner of sending a notification message through a short message, a mail, and instant messaging software. At least one of transmission timing and transmission scheme indicated by the plurality of nodes is different.
For example, the target event is a shopping event, and the sending timings and sending manners indicated by the plurality of nodes may be respectively: the notification message is sent through a short message at 12 hours after commodity ordering, the notification message is sent through instant messaging software at 24 hours after commodity ordering, and the notification message is sent through mail at 36 hours after commodity ordering.
202. The computer equipment responds to the first node matched with the plurality of nodes, and sends a target notification message indicated by the first node to the terminal based on the sending mode indicated by the first node, wherein the sending time indicated by the first node is matched with the occurrence time of the target event in the last stage, and the first node is the first matched node.
In the embodiment of the application, the computer equipment matches the plurality of nodes sequentially from beginning to end according to the sequence of the plurality of nodes, and stops matching the rest nodes in response to the matching to the first node.
In the embodiment of the present application, notification messages of multiple nodes may be the same or different. The notification message is associated with the transaction of the event at the next stage. For example, the notification message transmitted at 12 hours after the commodity is placed is a message prompting payment for the commodity.
203. If the computer equipment receives the feedback information of the terminal, the computer equipment adjusts the sequence of the first node on the task chain, wherein the feedback information is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification information.
In this embodiment of the present application, adjusting the order of the first node on the task chain refers to adjusting the order of the first node forward, so that the nodes with good feedback effects are ordered forward.
The embodiment of the application provides a notification message sending method, which adjusts the sequence of a node on a task chain after a terminal processes an event in the next stage based on the notification message sent by the node, so that the sequence of the node can be adjusted forward, and as a plurality of nodes on the task chain are arranged in sequence, when the event is matched with the plurality of nodes in sequence, the notification message can be preferentially matched with the node, so that the notification message can be preferentially sent to the terminal based on the node with good feedback effect, the terminal is convenient to feedback the notification message, and the effectiveness of the notification message sending is improved.
Fig. 2 illustrates the basic flow of sending a notification message, and the flow of sending a notification message is described in further detail below based on fig. 3. Referring to fig. 3, fig. 3 is a flowchart of a method for sending a notification message according to an embodiment of the present application, where the method is performed by using a server as an execution body, and includes:
301. the server determines a task chain from a plurality of candidate task chains based on event types of unfinished target events on the terminal, wherein the plurality of candidate task chains correspond to different event types, and the event types corresponding to the task chains are matched with the event types of the target events.
In the embodiment of the present application, the process of obtaining the incomplete target event on the terminal by the server includes the following two implementation manners: in one implementation, the terminal actively sends its outstanding target events to the server. In another implementation, the server detects an incomplete event on the terminal to obtain an incomplete target event on the terminal, which is not specifically limited herein.
In the embodiment of the application, the event types include, but are not limited to, shopping event, service event and the like, and the service event refers to an event requiring evaluation of a service process of the service event after the service event occurs based on the terminal.
In the embodiment of the application, for any event type, the event type further includes at least one sub-event type. For example, for a shopping event, the sub-event types below include picking up virtual resources, adding items to a shopping cart, ordering items, and the like. In some embodiments, the sub-event type may be further subdivided, e.g., for a sub-event type of an order commodity, the sub-event type may be further divided into an order higher-priced commodity, an order lower-priced commodity, etc., based on the price of the commodity. In the embodiment of the application, the task chain can be finely divided based on the finely divided event types, so that the pertinence and the efficiency of matching can be improved when the task chain is matched with the nodes in the task chain.
In some embodiments, the server establishes a correspondence between the event type and the task chain ID (Identity Document, identity) in advance, so that the task chain ID corresponding to the event type can be found based on the correspondence later, and further, a corresponding task chain can be quickly obtained based on the task chain ID.
In the embodiment of the application, the task chain is matched based on the event type of the event, so that the matching is performed based on the nodes in the task chain, and the pertinence and the efficiency of the matching can be improved.
302. The server sequentially matches the occurrence time of the target event in the previous stage with a plurality of nodes which are arranged in sequence on a task chain, the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting a terminal to process the target event in the next stage.
In the embodiment of the application, the plurality of nodes on the task chain are arranged in sequence, each node has a score, and the score of any node is used for indicating that the sequence of each node is positively related to the score of the node based on the history of the node matching to the event and receiving the feedback message, that is, the greater the score of the node, the earlier the sequence of the node.
For example, referring to fig. 4, fig. 4 is a schematic diagram of a task chain provided in an embodiment of the present application, where the task chain includes a plurality of nodes arranged in sequence, and the plurality of nodes indicate different sending timings and sending manners of notification messages. The task chain further comprises a task chain head and a task chain tail, the server is sequentially matched with the plurality of nodes according to the sequence from the task chain head to the task chain tail, correspondingly, the matching priority of the nodes sequenced in front is high, and the plurality of nodes can be divided into a first-stage node, a second-stage node, a third-stage node and the like with sequentially reduced priorities based on the sequence of the plurality of nodes.
In this embodiment of the present application, the server periodically performs matching between the event and the node, that is, performs step 301 once on the target event that is not completed on the terminal, every preset duration.
303. The server responds to the first node matched with the plurality of nodes, and sends a target notification message indicated by the first node to the terminal based on the sending mode indicated by the first node, wherein the sending time indicated by the first node is matched with the occurrence time of the target event in the last stage, and the first node is the first matched node.
In this embodiment of the present application, if any node of the plurality of nodes is not matched, that is, the time for sending the notification message for the target event has not yet arrived is described, the processing of the target event in the current matching period is stopped, and step 301 is executed again in the next matching period to reprocess the target event.
In some embodiments, for a target event that does not match to a node, the server stores the target event so that the target event is directly re-matched in the next matching cycle.
304. If the server receives the feedback information of the terminal, the server adjusts the score of the first node, wherein the feedback information is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification information, and the score is used for indicating the historical condition of event matching and feedback information receiving based on the first node.
In the embodiment of the present application, adjusting the score of the first node refers to increasing the score of the first node.
In some embodiments, the server may also determine a degree of adjustment of the score of the first node based on the time at which the feedback message was received. Alternatively, the time when the server receives the feedback message is positively correlated with the adjustment degree of the score, that is, the shorter the time when the notification message is sent at intervals when the feedback message is received, the greater the increase degree of the score. The embodiment realizes flexible dynamic adjustment of the score, so that the score can also indicate timeliness of the terminal to event processing based on the notification message.
In the embodiment of the present application, the processing matters of the multiple stages of any event may be set and changed as required, and are not particularly limited herein. For example, the processing item in the next stage of the commodity ordering stage may be payment, and the processing item in the next stage of the commodity payment stage may be repurchase.
In the embodiment of the present application, if the server does not receive the feedback message from the terminal, it is indicated that the target notification message is ignored on the terminal, and the score of the first node does not need to be adjusted.
In some embodiments, if the server receives a negative feedback message from the terminal, the server decreases the score of the first node, the negative feedback message being used to indicate that the terminal does not wish to receive the notification message or that the terminal no longer needs to be notified. In this embodiment, if the negative feedback message is received based on the first node, it is indicated that the sent notification message interferes with the object using the terminal, and then the score of the first node is correspondingly reduced, so that reasonable and effective adjustment of the score of the first node is achieved, and subsequently, the frequency of sending the notification message based on the node can be reduced, and the interference on the object using the terminal is reduced.
In some embodiments, the server asynchronously records feedback messages for each of the plurality of nodes for subsequent adjustment of the order of the plurality of nodes based on the feedback messages. In some embodiments, the plurality of nodes each have a respective node ID, facilitating determining the matched nodes based on the node IDs and adjusting the order of the nodes.
In some embodiments, the server adjusts the score of the first node if the number of times the first node is matched reaches a preset number of times. In the embodiment, as any node is matched for a plurality of times, the sending time and the sending mode of the notification message indicated by the node are common, the applicability is high, the node score is adjusted, and the reasonable and effective adjustment of the node score is realized.
In some embodiments, any node is matched to refer to the node being first matched to, such that the number of times matched is quickly obtained based on previous matching processes. In other embodiments, the server matches events with multiple nodes, respectively, to multiple nodes, any node being matched to a finger in any order, i.e., not limited to the first being matched.
In the embodiment of the application, the notification message can be sent only based on the first matched node, or can be respectively matched with a plurality of nodes, if the notification message is matched with the plurality of nodes, the notification message is respectively sent based on the plurality of nodes, so that the probability of receiving the notification message by the terminal can be improved, and the probability of the terminal making feedback based on the notification message can be improved.
305. If the adjusted score of the first node is greater than the score of any second node, the server adjusts the first node to the second node, and the second node is the node ordered before the first node.
In some embodiments, the order of the plurality of nodes on the task chain is periodically adjusted, that is, the order adjustment is performed once every preset time, and accordingly, the server responds to the order adjustment time point when the current time reaches the plurality of nodes, and performs the step before adjusting the first node to the second node if the adjusted score of the first node is greater than the score of any second node, thereby avoiding frequent adjustment of the nodes on the task chain, improving the regularity of the order adjustment, and reducing the resource loss caused by the order adjustment.
If the scores of the nodes other than the first node in the plurality of nodes are also changed, optionally, the server adjusts the sequence of the other nodes in the task chain based on the adjustment mode of the first node; alternatively, the server reorders the plurality of nodes based on the latest scores of the respective nodes, the latest order of each node being positively correlated with the latest score of the node. Therefore, the plurality of nodes are uniformly adjusted at the sequence adjustment time point, the condition of frequent sequence adjustment caused by adjusting the sequence of the single node is avoided, and the adjustment efficiency is improved.
In this embodiment of the present application, the procedure of adjusting the order of the first node on the task chain if the feedback message of the terminal is received is implemented through the steps 304 to 305, so that, based on the order of the score adjusting nodes, the node with the high score can be placed at the head of the task chain to be preferentially matched and operated, and because the score indicates that the node is matched to the event and the history condition of receiving the feedback message, the notification message can be preferentially sent based on the node with the high score, so that the terminal can make effective feedback based on the notification message sent by the node, and the effectiveness of sending the notification message is improved.
It should be noted that, the steps 304-305 are only one alternative implementation manner of adjusting the order of the first node, and the order of the first node may be adjusted by other alternative implementations, which is not limited herein. For example, if a feedback message from the terminal is received, the order of the first node is adjusted by at least one bit.
306. For each node in a plurality of nodes, if the score of the node is larger than a first score, splitting the interval duration indicated by the target sending opportunity into a plurality of sub-durations by the server, wherein the target sending opportunity is the sending opportunity indicated by the node; the server splits the node into a plurality of sub-nodes based on the plurality of sub-lengths, and the sending occasions indicated by the plurality of sub-nodes are respectively separated by the plurality of sub-lengths.
In this embodiment of the present application, a plurality of sub-nodes are arranged in order, the plurality of sub-nodes respectively correspond to the plurality of sub-durations, and the number of the plurality of sub-durations is the same as the number of the plurality of sub-nodes, and the number can be set and changed according to needs, which is not specifically limited herein. The respective durations of the plurality of sub-durations may be set and changed as needed, and are not particularly limited herein, for example, the durations of the plurality of sub-durations are the same.
For example, when the transmission opportunity indicated by a certain node is 24 hours which are not paid after the ordering, that is, the interval time is 23 hours, the multiple sub-time periods can be split into 11 hours and 12 hours, correspondingly, the node is split into a first sub-node and a second sub-node, the transmission opportunity indicated by the first sub-node is 11 hours apart from the transmission opportunity indicated by the previous node, the transmission opportunity indicated by the first sub-node is 12 hours apart from the transmission opportunity indicated by the second sub-node, correspondingly, the transmission opportunity indicated by the first sub-node is 12 hours which are not paid after the ordering, and the transmission opportunity indicated by the second sub-node is 12 hours to 24 hours which are not paid after the ordering.
In some embodiments, the interval duration of the transmission opportunity indication is two, the former interval duration is smaller than the latter interval duration, the former interval duration is the interval duration of the transmission opportunity indication of the previous node, the latter interval duration is the interval duration of the transmission opportunity indication of the node, for example, the transmission opportunity indicated by a certain node is 24 hours to 36 hours of unpaid after the ordering, that is, the notification message is sent at 36 hours.
Correspondingly, splitting the interval duration of the target sending opportunity indication into a plurality of sub-durations, namely splitting the difference between two interval durations into a plurality of sub-durations, wherein the previous interval duration of the first sending opportunity indication is the previous interval duration of the sending opportunity indication of the node, the next interval duration of the first sending opportunity indication is the sum of the previous interval duration of the sending opportunity indication of the node and the first sub-duration, and the first sending opportunity refers to the sending opportunity indicated by the first sub-node. The previous interval duration of the last transmission opportunity indication is the next interval duration of the previous transmission opportunity indication, and the next interval duration of the last transmission opportunity indication is the next interval duration of the transmission opportunity indication indicated by the node.
For example, when the transmission time indicated by a certain node is 24 hours to 36 hours which are not paid after the ordering, based on the difference of the interval time lengths, the obtained two sub-time lengths can be 6 hours and 6 hours respectively, and accordingly, the first transmission time is 24 hours to 30 hours which are not paid after the ordering, and the last transmission time is 30 hours to 36 hours which are not paid after the ordering.
In the embodiment of the application, if the score of any node is greater than the first score, the fact that the node is matched with and sends notification messages quite frequently is indicated, the node is further divided, the node can be refined, accurate nodes with high scores can be further found, and the effectiveness of sending the notification messages is further achieved.
307. The server merges the interval duration indicated by the target sending opportunity into the interval duration indicated by the adjacent sending opportunity to obtain the target duration if the score of each node is smaller than the second score, wherein the target sending opportunity is the sending opportunity indicated by the node, and the adjacent sending opportunity is the sending opportunity indicated by the adjacent node; the server deletes the node and updates the interval duration of the adjacent transmission opportunity indication based on the target duration.
For example, when the transmission timing indicated by any node is 24 hours to 30 hours which are not paid after the ordering, the adjacent transmission timing is 30 hours to 36 hours which are not paid after the ordering, and the updated adjacent transmission timing is 24 hours to 36 hours which are not paid after the ordering. In the embodiment of the application, the node combination avoids the waste of invalid nodes, and each node can be effectively utilized.
It should be noted that, since the order of the plurality of nodes may be adjusted, the transmission timing indicated by the neighboring node may not be consistent with the transmission timing of the node. Correspondingly, if the adjacent transmission opportunity is consistent with the target transmission opportunity, the server executes step 307; if the adjacent sending time is not consistent with the target sending time, the server selects the node with the consistent sending time from the plurality of nodes to combine, so that the rationality and the effectiveness of the node combination are ensured.
In the embodiment of the present application, the sequence numbers of steps 306-307 are only for convenience of description, and are not used to limit the execution sequence of the two. In some embodiments, the server starts the auto-tuning function of the task chain before performing steps 306-307, after which the server performs steps 306-307. In the embodiment of the present application, the server may perform steps 306-307 after each adjustment of the score, or may periodically perform steps 306-307, which is not specifically limited herein.
In some embodiments, the server also marks the success or failure of the node to send the notification message. Correspondingly, the server acquires the sending condition of the notification message indicated by each node in the plurality of nodes; if the sending condition indicates that the sending of the notification message fails, the number of times of the sending is smaller than or equal to the preset number of times, the time interval between the last sending time and the current time is longer than the preset duration, the notification message is resent, and if the resending of the notification message fails, the number of times of the sending corresponding to the node is increased by 1; if the failure times are greater than the preset times, marking a first identifier for the node, wherein the first identifier is used for indicating the node to stop sending the notification message.
In the embodiment of the application, the sending situation can be marked based on the failure identifier and the success identifier. The preset times can be set and changed according to the needs, for example, 5 times. The preset time length can be set and changed according to the needs, for example, the preset time length is 10 minutes, and frequent failures caused by a certain time point are avoided by controlling the time interval between the sending time and the current time, so that the rationality and the accuracy of determining the sending failure can be improved.
In the embodiment of the application, the failure of the node is marked only when the node fails to send the notification message for many times, so that the failure caused by accidents is avoided, the reliability of marking the first identifier for the node is improved, and the node can be directly skipped when the node is matched by marking the first identifier for the node, so that the effective sending of the node interference notification message is avoided.
It should be noted that, the server may also send the node marked with the first identifier to the manager, so that the manager pays attention to the node and repairs the node, so that the node can operate normally subsequently.
In some embodiments, if the sending condition indicates that the sending of the notification message is successful, the node is marked with a second identifier, where the second identifier is used to indicate that the node can send the notification message. In this embodiment, by marking the second identifier for the node, the node is not scanned as a node with failed transmission, and further the notification message is not repeatedly transmitted based on the node, thereby ensuring the reliability of transmitting the notification message.
In the embodiment of the present application, the second identifier may be the successful identifier. The sending condition indicates that the notification message is sent successfully, including the sending condition in the process of sending the notification message at any time before the failure times reach the preset times.
In the embodiment of the application, the server can automatically split or combine the nodes in the task chain; the server may also generate a report for analysis and send it to the terminal used by the manager, where the report includes detailed information of each node in the task chain, the number of times each node is matched to, and feedback information received based on each node, so that the manager can manually adjust the nodes in the task chain.
The embodiment of the application provides an engine for sending notification messages, the basic function is to form a task chain according to the sending time and the sending mode of the configured notification messages, the task chain can be continuously expanded, the node can be effectively matched, the function of dynamically adjusting the node according to the feedback result is provided, the matching record and the statistical result of the node are improved, and the effectiveness of sending the notification messages can be further improved.
According to the notification message sending method, the nodes can be flexibly configured, the nodes are automatically and elastically adjusted according to feedback of the subsequent terminal, the sending condition of the notification message and the effect of the touch terminal are provided for the manager, so that the workload of the manager can be effectively reduced, the nodes are not manually matched, the matching degree of all the nodes can be fed back to the manager, the nodes are reliably executed after the matching success of each node is ensured, the functions of the intelligent adjustment nodes are improved, the nodes and the nodes with low merging efficiency can be effectively refined, and the effectiveness of sending the notification message is further improved.
The embodiment of the application provides a notification message sending method, which adjusts the sequence of a node on a task chain after a terminal processes an event in the next stage based on the notification message sent by the node, so that the sequence of the node can be adjusted forward, and as a plurality of nodes on the task chain are arranged in sequence, when the event is matched with the plurality of nodes in sequence, the notification message can be preferentially matched with the node, so that the notification message can be preferentially sent to the terminal based on the node with good feedback effect, the terminal is convenient to feedback the notification message, and the effectiveness of the notification message sending is improved.
The embodiment of the application also provides a device for sending the notification message, referring to fig. 5, the device includes:
the matching module 501 is configured to match, in sequence, an occurrence time of a last stage of a target event with a plurality of nodes sequentially arranged on a task chain for the target event that is not completed on the terminal, where the plurality of nodes indicate different sending occasions and sending modes of notification messages, and the target event includes a plurality of stages of event processing, and the notification messages are used to prompt the terminal to process a next stage of the target event;
a sending module 502, configured to send, in response to a first node of the plurality of nodes being matched, a target notification message indicated by the first node to the terminal based on a sending manner indicated by the first node, where a sending opportunity indicated by the first node matches an occurrence time of a target event in a previous stage, and the first node is a first matched node;
And the adjusting module 503 is configured to adjust the order of the first node on the task chain if a feedback message of the terminal is received, where the feedback message is used to indicate that the terminal has performed a next stage of processing on the target event based on the target notification message.
In some embodiments, the adjustment module 503 is configured to:
if feedback information of the terminal is received, adjusting a score of the first node, wherein the score is used for indicating a historical condition based on the fact that the first node is matched with an event and the feedback information is received;
if the adjusted score of the first node is greater than the score of any second node, the second node is the node ordered before the first node is adjusted to the second node.
In some embodiments, the adjustment module 503 is configured to: and executing the step before the first node is adjusted to the second node if the adjusted score of the first node is greater than the score of any second node in response to the current time reaching the sequence adjustment time points of the plurality of nodes.
In some embodiments, the adjusting module 503 is further configured to adjust the score of the first node if the number of times the first node is matched reaches a preset number of times.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event in the previous stage, and the apparatus further comprises:
The time length splitting module is used for splitting the interval time length indicated by the target sending time into a plurality of sub-time lengths if the score of each node is larger than the first score, and the target sending time is the sending time indicated by the node;
the node splitting module is used for splitting the node into a plurality of sub-nodes based on a plurality of sub-time lengths, and the sending time indicated by the plurality of sub-nodes is respectively separated by a plurality of sub-time lengths.
In some embodiments, the transmission opportunity indicates a duration of an interval between the occurrence time of the event in the previous stage, and the apparatus further comprises:
the merging module is used for merging the interval duration indicated by the target sending opportunity to the interval duration indicated by the adjacent sending opportunity to obtain the target duration if the score of each node is smaller than the second score, wherein the target sending opportunity is the sending opportunity indicated by the node, and the adjacent sending opportunity is the sending opportunity indicated by the adjacent node;
and the updating module is used for deleting the node and updating the interval duration of the adjacent sending opportunity indication based on the target duration.
In some embodiments, the apparatus further comprises:
the acquisition module is used for acquiring the sending condition of the notification message indicated by the node for each node in the plurality of nodes;
A retransmission module, configured to retransmit the notification message if the transmission condition indicates that the notification message fails to be transmitted, the number of times of failure is less than or equal to a preset number of times, and a time interval between the previous transmission time interval and the current time is greater than a preset duration, and if the notification message fails to be retransmitted, add 1 to the number of times of failure corresponding to the node;
and the marking module is used for marking the first mark for the node if the failure times are larger than the preset times, and the first mark is used for indicating the node to stop sending the notification message.
In some embodiments, the marking module is further configured to mark the node with a second identifier if the sending situation indicates that the sending of the notification message is successful, where the second identifier is used to indicate that the node can send the notification message.
In some embodiments, the apparatus further comprises:
the determining module is used for determining a task chain from a plurality of candidate task chains based on the event type of the target event, wherein the plurality of candidate task chains correspond to different event types, and the event type corresponding to the task chain is matched with the event type of the target event.
The embodiment of the application provides a notification message sending device, which adjusts the sequence of a node on a task chain after a terminal processes an event in the next stage based on the notification message sent by the node, so that the sequence of the node can be adjusted forward, and as a plurality of nodes on the task chain are arranged in sequence, when the event is matched with the plurality of nodes in sequence, the notification message can be preferentially matched with the node, and thus the notification message can be preferentially sent to the terminal based on the node with good feedback effect, the terminal is convenient to feedback the notification message, and the effectiveness of notification message sending is improved.
It should be noted that: the notification message sending device provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the sending device of the notification message provided in the foregoing embodiment and the sending method embodiment of the notification message belong to the same concept, and the specific implementation process of the sending device of the notification message is detailed in the method embodiment, which is not described herein again.
In some embodiments, the computer device is provided as a terminal. Fig. 6 shows a block diagram of a terminal 600 according to an exemplary embodiment of the present application. The terminal 600 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 600 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 600 includes: a processor 601 and a memory 602.
Processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 601 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and rendering of content that the display screen is required to display. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 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 602 is used to store at least one program code for execution by processor 601 to implement the method of sending notification messages provided by the method embodiments herein.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 604, a display 605, a camera assembly 606, audio circuitry 607, and a power supply 608.
Peripheral interface 603 may be used to connect at least one Input/Output (I/O) related peripheral to processor 601 and memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 601, memory 602, and peripheral interface 603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 604 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 604 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited in this application.
The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 605 is a touch display, the display 605 also has the ability to collect touch signals at or above the surface of the display 605. The touch signal may be input as a control signal to the processor 601 for processing. At this point, the display 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 605 may be one, disposed on the front panel of the terminal 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folded design; in other embodiments, the display 605 may be a flexible display, disposed on a curved surface or a folded surface of the terminal 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 605 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth 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 and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing, or inputting the electric signals to the radio frequency circuit 604 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be respectively disposed at different portions of the terminal 600. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 607 may also include a headphone jack.
The power supply 608 is used to power the various components in the terminal 600. The power source 608 may be alternating current, direct current, disposable or rechargeable. When the power source 608 includes 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, the terminal 600 further includes one or more sensors 609. The one or more sensors 609 include, but are not limited to: acceleration sensor 610, gyroscope sensor 611, pressure sensor 612, optical sensor 613, and proximity sensor 614.
The acceleration sensor 610 may detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 610 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 610. The acceleration sensor 610 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 611 may detect a body direction and a rotation angle of the terminal 600, and the gyro sensor 611 may collect a 3D motion of the user to the terminal 600 in cooperation with the acceleration sensor 610. The processor 601 may implement the following functions based on the data collected by the gyro sensor 611: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 612 may be disposed at a side frame of the terminal 600 and/or at a lower layer of the display 605. When the pressure sensor 612 is disposed at a side frame of the terminal 600, a grip signal of the user to the terminal 600 may be detected, and the processor 601 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 612. When the pressure sensor 612 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 613 is used to collect the intensity of ambient light. In one embodiment, processor 601 may control the display brightness of display 605 based on the intensity of ambient light collected by optical sensor 613. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 605 is turned up; when the ambient light intensity is low, the display brightness of the display screen 605 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 613.
A proximity sensor 614, also known as a distance sensor, is typically provided on the front panel of the terminal 600. The proximity sensor 614 is used to collect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 614 detects that the distance between the user and the front of the terminal 600 gradually decreases, the processor 601 controls the display 605 to switch from the bright screen state to the off screen state; when the proximity sensor 614 detects that the distance between the user and the front surface of the terminal 600 gradually increases, the processor 601 controls the display screen 605 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the terminal 600 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In some embodiments, the computer device is provided as a server, fig. 7 is a block diagram of a server provided in the embodiments of the present application, where the server 700 may be relatively different due to configuration or performance, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, where the memories 702 are used to store executable program codes, and the processors 701 are configured to execute the executable program codes to implement the sending methods of the notification messages provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a storage medium is also provided, including a program code, for example, a memory 702 including a program code, which is executable by the processor 701 of the server 700 to complete the above-described transmission method of the notification message. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, a ROM (Read-Only Memory), a RAM (Random Access Memory ), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the application also provides a computer readable storage medium, wherein at least one program code is stored in the computer readable storage medium, and the at least one program code is loaded and executed by a processor to realize the method for sending the notification message in any implementation manner.
The embodiment of the application also provides a computer program product, the computer program product comprises computer program code, the computer program code is stored in a computer readable storage medium, a processor of the computer device reads the computer program code from the computer readable storage medium, and the processor executes the computer program code, so that the computer device executes the method for sending the notification message in any implementation manner.
In some embodiments, the computer program product according to the embodiments of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
The foregoing is merely an alternative embodiment of the present application and is not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are intended to be included in the scope of the present application.

Claims (13)

1. A method for sending a notification message, the method comprising:
for an unfinished target event on a terminal, sequentially matching the occurrence time of the target event in the last stage with a plurality of nodes which are sequentially arranged on a task chain, wherein the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting the terminal to process the target event in the next stage;
Responding to a first node matched with the plurality of nodes, and based on a sending mode indicated by the first node, sending a target notification message indicated by the first node to the terminal, wherein the sending time indicated by the first node is matched with the occurrence time of the target event in the last stage, and the first node is the first matched node;
and if a feedback message of the terminal is received, adjusting the sequence of the first node on the task chain, wherein the feedback message is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification message.
2. The method according to claim 1, wherein adjusting the order of the first node on the task chain if the feedback message of the terminal is received comprises:
if a feedback message of the terminal is received, adjusting a score of the first node, wherein the score is used for indicating a historical condition based on the fact that the first node is matched with an event and the feedback message is received;
and if the adjusted score of the first node is larger than the score of any second node, adjusting the first node to be before the second node, wherein the second node is the node ordered before the first node.
3. The method of claim 2, wherein the adjusting the first node to the second node if the adjusted score of the first node is greater than the score of any second node comprises:
and responding to the sequence adjustment time points of the current time reaching the plurality of nodes, and executing the step of adjusting the first node to the second node if the adjusted score of the first node is larger than the score of any second node.
4. The method according to claim 2, wherein the method further comprises:
and if the number of times the first node is matched reaches the preset number of times, adjusting the score of the first node.
5. The method of claim 2, wherein the transmission opportunity indicates a duration of an interval between the occurrence of the event at the previous stage, the method further comprising:
for each node in the plurality of nodes, if the score of the node is greater than a first score, splitting the interval duration indicated by the target sending opportunity into a plurality of sub-durations, wherein the target sending opportunity is the sending opportunity indicated by the node;
based on the multiple sub-durations, splitting the node into multiple sub-nodes, wherein the sending time indicated by the multiple sub-nodes is respectively spaced by the multiple sub-durations.
6. The method of claim 2, wherein the transmission opportunity indicates a duration of an interval between the occurrence of the event at the previous stage, the method further comprising:
for each node in the plurality of nodes, if the score of the node is smaller than a second score, merging the interval duration indicated by the target sending opportunity to the interval duration indicated by the adjacent sending opportunity to obtain the target duration, wherein the target sending opportunity is the sending opportunity indicated by the node, and the adjacent sending opportunity is the sending opportunity indicated by the adjacent node of the node;
and deleting the node, and updating the interval duration of the adjacent sending opportunity indication based on the target duration.
7. The method according to claim 1, wherein the method further comprises:
for each node in the plurality of nodes, acquiring the sending condition of the notification message indicated by the node;
if the sending condition indicates that the sending of the notification message fails, the number of times of the failure is smaller than or equal to the preset number of times, and the time interval between the last sending time and the current time is longer than the preset duration, the notification message is resent, and if the resending of the notification message fails, the number of times of the failure corresponding to the node is increased by 1;
And if the failure times are greater than the preset times, marking a first identifier for the node, wherein the first identifier is used for indicating the node to stop sending the notification message.
8. The method of claim 7, wherein the method further comprises:
and if the sending condition indicates that the sending of the notification message is successful, marking a second identifier for the node, wherein the second identifier is used for indicating that the node can send the notification message.
9. The method according to claim 1, wherein the method further comprises:
and determining the task chain from a plurality of candidate task chains based on the event type of the target event, wherein the plurality of candidate task chains correspond to different event types, and the event type corresponding to the task chain is matched with the event type of the target event.
10. A transmission apparatus of a notification message, the apparatus comprising:
the matching module is used for sequentially matching the occurrence time of an unfinished target event on the terminal with a plurality of nodes which are arranged in sequence on a task chain, wherein the nodes indicate different sending occasions and sending modes of notification messages, the target event comprises a plurality of stages of event processing, and the notification messages are used for prompting the terminal to process the next stage of the target event;
A sending module, configured to send, to the terminal, a target notification message indicated by a first node based on a sending manner indicated by the first node in response to the first node being matched to the plurality of nodes, where a sending occasion indicated by the first node is matched with an occurrence time of the target event in a previous stage, and the first node is a first matched node;
and the adjusting module is used for adjusting the sequence of the first node on the task chain if receiving a feedback message of the terminal, wherein the feedback message is used for indicating that the terminal carries out the next stage of processing on the target event based on the target notification message.
11. A computer device comprising one or more processors and one or more memories, the one or more memories having stored therein at least one program code loaded and executed by the one or more processors to implement the method of sending a notification message as claimed in any of claims 1 to 9.
12. A computer readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor to implement the method of sending a notification message according to any of claims 1 to 9.
13. A computer program product, characterized in that the computer program product comprises computer program code, which is stored in a computer-readable storage medium, from which computer program code a processor of a computer device reads, which processor executes the computer program code, so that the computer device performs the method of sending a notification message according to any of claims 1 to 9.
CN202310247103.7A 2023-03-14 2023-03-14 Notification message sending method, device, equipment and storage medium Withdrawn CN116149881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310247103.7A CN116149881A (en) 2023-03-14 2023-03-14 Notification message sending method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310247103.7A CN116149881A (en) 2023-03-14 2023-03-14 Notification message sending method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116149881A true CN116149881A (en) 2023-05-23

Family

ID=86350739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310247103.7A Withdrawn CN116149881A (en) 2023-03-14 2023-03-14 Notification message sending method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116149881A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116781744A (en) * 2023-07-11 2023-09-19 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116781744A (en) * 2023-07-11 2023-09-19 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal
CN116781744B (en) * 2023-07-11 2024-03-01 北京和欣运达科技有限公司 Key event scanning method based on half-duplex bus, gateway and terminal

Similar Documents

Publication Publication Date Title
CN108024019B (en) Message display method and device
CN112163406B (en) Interactive message display method and device, computer equipment and storage medium
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN111510482B (en) Method and device for determining failed network request and computer storage medium
CN110147380B (en) Data updating method, device, server and storage medium
CN111083039B (en) Message unread mark processing method and device, storage medium and terminal
CN111949879A (en) Method and device for pushing message, electronic equipment and readable storage medium
US20210320995A1 (en) Conversation creating method and terminal device
CN109891388A (en) A kind of image processing method and device
CN110890969B (en) Method and device for mass-sending message, electronic equipment and storage medium
CN111192072B (en) User grouping method and device and storage medium
CN116149881A (en) Notification message sending method, device, equipment and storage medium
CN108762621B (en) Message display method and mobile terminal
CN111064657B (en) Method, device and system for grouping concerned accounts
CN111246231B (en) Live broadcast management method and device, server and computer readable storage medium
CN111061369B (en) Interaction method, device, equipment and storage medium
CN110535754B (en) Image sharing method and device
CN111897465A (en) Popup display method, device, equipment and storage medium
CN116418771A (en) Message display method, message processing method, device and electronic equipment
CN108495276B (en) Sharing method and device of digital business card
CN112311652B (en) Message sending method, device, terminal and storage medium
CN112529547A (en) Information notification method, device, equipment and storage medium
CN111444289A (en) Incidence relation establishing method
CN112749583A (en) Face image grouping method and device, computer equipment and storage medium
CN112700249B (en) Order information management method, device and system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230523