Interaction message sending method and device, storage medium and electronic device
The service-side interactive messages are received through the messaging middle platform and the approval object is determined. The problem of message interaction capabilities and service-side docking in the prior art is solved, and the complete encapsulation of message interaction capabilities and the flexibility of service-side docking is realized.
Patent Information
- Application Number
- CN202411418323.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-02-11
AI Technical Summary
In the prior art, the integration of message interaction capabilities with the business layer approval logic leads to an increase in the customization of message interaction logic, destroying the complete encapsulation and publicity of message interaction capabilities, increasing development and maintenance costs, and failing to effectively resolve message interaction. The issue of connection between capabilities and business side.
The message middle platform provides the first interface to receive interactive messages sent by the service side, uses the first message index to determine the first approval object, and sends the interactive message to the third approval object that has not been received in the second approval object, realizing message interaction Connection between capabilities and business side.
It realizes that the message interaction capability is connected to the business side without customized development while ensuring the complete encapsulation of message interaction capabilities, which reduces development and maintenance costs and improves the flexibility and scalability of the system.
Smart Images

Figure CN119415281A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a method and device for sending interactive messages, a storage medium, and an electronic device. Background Art
[0002] In the related technology, after the message interaction capability is integrated with the business layer approval logic, the message interaction logic is customized and added in the business layer approval, which destroys the complete encapsulation and public nature of the message interaction capability and increases the development and maintenance costs.
[0003] Regarding the related technologies, no effective solutions have been proposed for how to achieve the connection between message interaction capabilities and the business side (ie, business layer) while ensuring the complete encapsulation of message interaction capabilities and without customized development.
[0004] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention
[0005] The embodiments of the present application provide a method and device for sending interactive messages, a storage medium and an electronic device, so as to at least solve the problem in the related art of how to realize the connection between message interaction capability and business side while ensuring the complete encapsulation of message interaction capability and without customized development.
[0006] According to one aspect of an embodiment of the present application, a method for sending an interactive message is provided, comprising: receiving an interactive message sent by a business side through a first interface, wherein the first interface is an interface provided by a message center for the business side; determining a first approval object through a first message index of the interactive message, wherein the message center records a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message; and sending the interactive message to a third approval object among the second approval objects that has not received the interactive message.
[0007] In an exemplary embodiment, receiving an interaction message sent by a business side through a first interface includes: providing a tool class to the business side, wherein the tool class is used for the business side to generate the first message index; and receiving the interaction message with the first message index sent by the business side through the first interface.
[0008] In an exemplary embodiment, sending the interaction message to a third approval object among the second approval objects that has not received the interaction message includes: sending the interaction message to the business approval side through a second interface provided by the message middle platform for the business approval side; instructing the business approval side to construct a message card based on the interaction message, and sending the message card to the third approval object.
[0009] In an exemplary embodiment, after sending the interactive message to a third approval object among the second approval objects that has not received the interactive message, the method further includes: receiving a second message index of the message card fed back by the business approval side; establishing a first mapping relationship between the first message index and the second message index, and establishing a second mapping relationship between the first message index and the third approval object; and storing the first mapping relationship and the second mapping relationship in a preset storage area of the message middle station.
[0010] In an exemplary embodiment, determining the first approval object through the first message index of the interaction message includes: reading a third mapping relationship from the preset storage area according to the first message index, wherein the third mapping relationship is a mapping relationship between the first message index and the first approval object; parsing the third mapping relationship to determine the first approval object.
[0011] In an exemplary embodiment, after storing the first mapping relationship and the second mapping relationship in a preset storage area of the message middle station, the method also includes: when an update message sent by the business side is received through a third interface, obtaining the first mapping relationship from the preset storage area through a first message index, wherein the update message is used to update the interaction message, the update message carries the first message index, and the third interface is an update interface provided by the message middle station for the business side; according to the first mapping relationship, the update message is sent to the business approval side through the second interface to instruct the business approval side to update the message card through the update message.
[0012] In an exemplary embodiment, before sending the interaction message to a third approval object in the second approval object that has not received the interaction message, the method further includes: in a case where a list of approvers sent by the business side is received through the first interface, determining the third approval object through the list of approvers and the first approval object, wherein the reception time of the list of approvers is the same as the reception time of the interaction message, and the list of approvers records a fourth approval object that is allowed to approve the interaction message; in a case where the list of approvers sent by the business side is not received through the first interface, determining the third approval object through the second approval object and the first approval object.
[0013] According to another aspect of an embodiment of the present application, a device for sending an interactive message is also provided, including: a receiving module, used to receive an interactive message sent by a business side through a first interface, wherein the first interface is an interface provided by a message center for the business side; a determining module, used to determine a first approval object through a first message index of the interactive message, wherein the message center records a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message; a sending module, used to send the interactive message to a third approval object among the second approval objects that has not received the interactive message.
[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for sending an interactive message when running.
[0015] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for sending the interactive message through the computer program.
[0016] According to another aspect of an embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method for sending the above-mentioned interaction message is implemented.
[0017] Through this application, the interactive message sent by the business side is received through the first interface, wherein the first interface is an interface provided by the message center for the business side; the first approval object is determined through the first message index of the interactive message, wherein the message center records the second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is the approval object in the second approval object that has received the interactive message, and all the interactive messages include: the interactive message; the interactive message is sent to the third approval object in the second approval object that has not received the interactive message. Therefore, the above technical solution is adopted to solve the problem of how to realize the docking of the message interaction capability with the business side under the premise of ensuring the complete encapsulation of the message interaction capability and not carrying out customized development in the related technology; and the technical effect of receiving the interactive message from the business side and sending the interactive message to the approval object for approval is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 It is a hardware environment diagram of an optional method for sending an interactive message according to an embodiment of the present application;
[0021] Figure 2 is a flowchart of an optional method for sending an interactive message according to an embodiment of the present application;
[0022] Figure 3 This is a flow chart of an optional method for sending an interactive message according to an embodiment of the present application (I);
[0023] Figure 4 This is a flow chart of an optional method for sending an interactive message according to an embodiment of the present application (II);
[0024] Figure 5 It is a flowchart of an optional method for sending an interactive message according to an embodiment of the present application (III);
[0025] Figure 6 It is a structural block diagram of an optional interactive message sending device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] According to one aspect of an embodiment of the present application, a method for sending an interactive message is provided. The method for sending an interactive message is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned method for sending an interactive message can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a plurality of terminal devices 102 and a server 104 are formed. Figure 1 As shown, the server 104 is connected to multiple terminal devices 102 via a network, and can be used to provide services (such as application services, etc.) for the terminals or clients installed on the terminals. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0029] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0030] In this embodiment, a method for sending an interactive message is provided, including but not limited to being applied to a message middle station that fully encapsulates message interaction capabilities. Figure 2 : is a flowchart of a method for sending an interactive message according to an embodiment of the present application, and the process includes the following steps:
[0031] Step S202: receiving an interactive message sent by the service side through a first interface, wherein the first interface is an interface provided by the message center for the service side;
[0032] Optionally, the message middleware fully encapsulates the message interaction capability.
[0033] Step S204: determining a first approval object through a first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message;
[0034] Step S206: Send the interaction message to a third approval object among the second approval objects that has not received the interaction message.
[0035] Through the above steps, the interactive message sent by the business side is received through the first interface, wherein the first interface is an interface provided by the message middle station for the business side; the first approval object is determined through the first message index of the interactive message, wherein the message middle station records the second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is the approval object that has received the interactive message in the second approval object, and the all interactive messages include: the interactive message; the interactive message is sent to the third approval object that has not received the interactive message in the second approval object. That is to say, the message middle station that is fully encapsulated with the message interaction capability provides the first interface to the business side to receive the interactive message sent by the business side and send the interactive message to the third approval object. Therefore, the above technical solution is adopted to solve the problem of how to realize the docking of the message interaction capability with the business side under the premise of ensuring the complete encapsulation of the message interaction capability and not carrying out customized development in the related technology; and the technical effect of receiving the interactive message from the business side and sending the interactive message to the approval object for approval is achieved.
[0036] In an exemplary embodiment, receiving an interaction message sent by a business side through a first interface includes: providing a tool class to the business side, wherein the tool class is used for the business side to generate the first message index; and receiving the interaction message with the first message index sent by the business side through the first interface.
[0037] The message center can provide a tool class to the business side in advance or in real time, so that the business side generates an interactive message based on the tool class; and receives the interactive message through the first interface. Optionally, the message center can provide different first interfaces for different business sides, so as to receive interactive messages from different business sides through different first interfaces; or the interactive messages from different business sides can be sent to the message center through the same first interface.
[0038] In an exemplary embodiment, sending the interaction message to a third approval object among the second approval objects that has not received the interaction message includes: sending the interaction message to the business approval side through a second interface provided by the message middle platform for the business approval side; instructing the business approval side to construct a message card based on the interaction message, and sending the message card to the third approval object.
[0039] It can be understood that the interactive message is sent from the message middle station to the business approval side, and the business approval side constructs a message card according to the interactive message and sends the message card to the third approval object.
[0040] In an exemplary embodiment, after sending the interactive message to a third approval object among the second approval objects that has not received the interactive message, the method further includes: receiving a second message index of the message card fed back by the business approval side; establishing a first mapping relationship between the first message index and the second message index, and establishing a second mapping relationship between the first message index and the third approval object; and storing the first mapping relationship and the second mapping relationship in a preset storage area of the message middle station.
[0041] Optionally, the message card generated by the business approval side has a second message index, and the business approval side feeds back the second message index to the message middle station through the second interface. The message middle station establishes a second mapping relationship between the first message index and the third approval object to at least mark that the third approval object has received the interactive message; and the message middle station also establishes a second mapping relationship between the first message index and the second message index to at least indicate the association between the interactive message and the message card of the business approval test.
[0042] In an exemplary embodiment, determining the first approval object through the first message index of the interaction message includes: reading a third mapping relationship from the preset storage area according to the first message index, wherein the third mapping relationship is a mapping relationship between the first message index and the first approval object; parsing the third mapping relationship to determine the first approval object.
[0043] It can be understood that the preset storage area stores the third mapping relationship between all approval objects (i.e., the first approval object) that have received the interaction message and the first message index of the interaction message; thus, after obtaining the third mapping relationship, the first approval object can be determined according to the third mapping relationship.
[0044] In an exemplary embodiment, after storing the first mapping relationship and the second mapping relationship in a preset storage area of the message middle station, the method also includes: when an update message sent by the business side is received through a third interface, obtaining the first mapping relationship from the preset storage area through a first message index, wherein the update message is used to update the interaction message, the update message carries the first message index, and the third interface is an update interface provided by the message middle station for the business side; according to the first mapping relationship, the update message is sent to the business approval side through the second interface to instruct the business approval side to update the message card through the update message.
[0045] That is, when an update message of the interactive message is received from the service side, the message card can be updated through the first mapping relationship between the first message index of the interactive message recorded in the preset storage area and the second message index of the message card of the interactive message.
[0046] Optionally, the update message may record an update range, which may be, for example, a timestamp range, for indicating that the update message needs to update the interactive message sent by the service side to the message middle station between the first time and the second time, wherein the first time is earlier than the second time.
[0047] In an exemplary embodiment, before sending the interaction message to a third approval object in the second approval object that has not received the interaction message, the method further includes: in a case where a list of approvers sent by the business side is received through the first interface, determining the third approval object through the list of approvers and the first approval object, wherein the reception time of the list of approvers is the same as the reception time of the interaction message, and the list of approvers records a fourth approval object that is allowed to approve the interaction message; in a case where the list of approvers sent by the business side is not received through the first interface, determining the third approval object through the second approval object and the first approval object.
[0048] That is, when the business side provides a list of approvers, the third approval object is determined by the list of approvers and the first approval object; when the business side does not provide a list of approvers, the third approval object is determined by the second approval object and the first approval object recorded in the message that are allowed to receive all interactive messages.
[0049] Obviously, the embodiments described above are only some embodiments of the present application, not all embodiments. In order to better understand the above-mentioned method for sending interactive messages, the above-mentioned process is described below in conjunction with embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application, specifically:
[0050] After the message interaction capability is integrated with the business layer approval logic, the customized message interaction logic is added in the business layer approval, which destroys the complete encapsulation and commonality of the message interaction capability and increases the development and maintenance costs. To address this problem, the message interaction capability is decoupled from the business layer approval logic and independently encapsulated to reduce the development and maintenance costs.
[0051] The specific implementation logic includes:
[0052] 1. The message center provides a tool class for the business side to generate the business side messageId (equivalent to the first message index) and the interaction information of the interaction button.
[0053] 1) Construct the messageId method: Provide three parameters for the business side: interaction type, interaction context type, and interaction context id to ensure global uniqueness.
[0054] Among them, the interaction type is used to indicate the main purpose of this interaction: such as business demand resource approval, demand review confirmation, demand rejection confirmation, business acceptance, PRD review, etc.
[0055] Among them, the interaction context type is used to indicate the main goal of this interaction: such as product requirements and business requirements;
[0056] Among them, the interaction context id is used to represent the id of the interaction target: such as product requirement id, business requirement id.
[0057] 2) Construct the interactive information method of the interactive button: provide five parameters for the business side: interaction type, interaction context type, interaction context ID, interaction instruction, and custom attributes.
[0058] Among them, interactive instructions: used to indicate consent or refusal, and other instructions can also be defined;
[0059] Among them, custom attributes are used to store other information that the business side must obtain when calling back the business side, and are freely defined by the business side.
[0060] It should be noted that the interaction information here is different from the interaction message in the above embodiment. The interaction message is an interaction message generated by the business side through the tool class, and may include the messageId. The interaction information is interaction information used to build an interaction button on the business approval side. In an optional solution, the interaction message may include the interaction information.
[0061] 2. The message center provides the business side with an interface for sending interactive messages (equivalent to the first interface).
[0062] Parameters: The business side needs to pass the business side messageId, message content (equivalent to interactive message), and message recipient list to the message center.
[0063] Main logic: After the message center receives the interactive message sent by the business side, it will first query the message mapping information (equivalent to the third mapping relationship) that is the same as the business side messageId (equivalent to the first message index), exclude the recipients who have already received the message (equivalent to the first approval object, here it is convenient for the business side to no longer filter the personnel who have been sent), and then send the interactive message to the personnel who have not received the message (equivalent to the third approval object), and save the messageId (equivalent to the second message index) returned by iHaier (equivalent to the business approval side) and the mapping relationship between the message recipient (equivalent to the third approval object) corresponding to the messageId returned by iHaier and the business side messageId (including the first mapping relationship and the second mapping relationship).
[0064] 3. The message center provides the business side with an updated interactive message interface (equivalent to the third interface).
[0065] Parameters: 1) The business side needs to pass the business side messageId and message content to the message center.
[0066] 2) The business side can decide whether to pass in the message recipient list:
[0067] If a message recipient list (equivalent to a list of approvers) is passed in, the message center will find the available iHaier side messageId corresponding to the incoming recipient list among the message recipients associated with the business side messageId, and modify the content of these interactive messages.
[0068] If the message recipient list is not passed in, the message center will find all available iHaier-side messageIds corresponding to the business-side messageId (equivalent to the message index corresponding to the second approval object) and modify the content of these interactive messages.
[0069] 3) The business side can mark whether the message updated this time is available: if it is marked as unavailable, the business side will no longer be able to update these interactive messages after this update is completed. This makes it convenient for the business side to update messages without considering the previously marked unavailable messages.
[0070] Main logic: After the message center receives the request to update the interactive message from the business side, it determines whether the business side has passed in the message recipient list. If the message recipient list is passed in, obtain the available iHaier side messageId corresponding to the message recipient list from the message recipients associated with the business side messageId. If the message recipient list is not passed in, obtain all available iHaier side messageIds corresponding to the business side messageId. If the business side passes in an unavailable mark, update these approval message cards to unavailable, and finally send a request to iHaier to update the content of these interactive messages.
[0071] 4. The message center provides iHaier with a message card callback interface.
[0072] Parameter: a string in json format.
[0073] Main logic: After the message middle station obtains the callback request from iHaier, it extracts the messageId on the iHaier side (equivalent to the second message index) from the string in json format to determine whether the message is available. If it is available, the message recipient, the interaction type, interaction instruction, interaction context type, interaction context Id, custom attributes defined on the business side, and the queried messageId on the business side extracted from the string in json format are packaged together and sent to send the approval interaction message event.
[0074] 5. The business side needs to subscribe to the approval interaction message events of the message center and consume the events. According to the interaction type, interaction instruction, interaction context type, interaction context ID, and custom attributes returned by the event, the business side makes logical judgments and executes its own business logic.
[0075] In summary, the approval process of the embodiment of the present application is as follows: Figure 3 As shown, including:
[0076] Step 301: The project manager selects the maintenance requirement approver on the business side;
[0077] Step 302: The business side calculates the personnel who need to be reviewed and confirmed;
[0078] Step 303: The business side constructs a messageId (equivalent to the first message index), constructs an interactive message and sends it to the message middle station;
[0079] Step 304: the message center feeds back messageId (equivalent to the second message index);
[0080] Step 305: The business side constructs an interactive button;
[0081] Step 306: The message center feeds back the interactive button value;
[0082] Step 307: The business side constructs the message card content;
[0083] Step 308: The business side calls and sends an interactive message interface;
[0084] Step 309: the message center calls the send message card interface (equivalent to the second interface);
[0085] Step 310: The business approval side sends a pending review confirmation message card to the review participants (equivalent to the third review object);
[0086] Step 311: the business approval side feeds back a message card id (equivalent to the second message index) to the message center;
[0087] Step 312: The message center saves a one-to-many association relationship between the messageId on the application side and the messageId on the iHaier side (equivalent to the first mapping relationship).
[0088] Step 313: The reviewer clicks the review confirmation button;
[0089] Step 313: Call the message card callback interface of the message center;
[0090] Step 314: The message center queries the messageId and better message on the application side according to the messageId on the iHaier side;
[0091] Step 315: The message center sends an iHaier message callback event to the business side;
[0092] Step 316: The business side determines that the event is a review confirmation callback event, obtains the remaining approvers, and if there are no approvers to be approved, drives the demand status flow;
[0093] Step 317: The business side calls the update interaction message interface of the message center;
[0094] Step 318: The message center determines the messageId of the business side, queries the interactive message information of all approvers, and updates the message of the specified recipient if the recipient ID list is passed in the input parameter. If the recipient ID list is not passed in the input parameter, updates the interactive messages of all approvers under the messageId.
[0095] Step 319: Call the update message card interface;
[0096] Step 320: Update the pending review confirmation message card to reviewed and confirmed.
[0097] Furthermore, the process of sending approval messages is as follows Figure 4 As shown, including:
[0098] Step 401: The project manager maintains the requirements reviewers;
[0099] Step 402: Calculate the personnel who need to be reviewed and confirmed;
[0100] Step 403: construct message card content;
[0101] Step 404: calling the message center to send an interactive message interface;
[0102] Step 405: Send an interactive message;
[0103] Step 406: The message center queries the message mapping information that is the same as the messageId on the application side, and excludes recipients who have already received the message;
[0104] Step 407: Call iHaier to send a message card interface;
[0105] Step 408: iHaier sends an approval notification to each recipient;
[0106] Step 409: The message center obtains the messageId returned by iHaier, and encapsulates a one-to-many association between the messageId on the application side and the messageId on the iHaier side of each recipient;
[0107] Step 410: Save to the interaction message table.
[0108] It should be noted that the interactive message table is stored in a preset storage area of the message center. The interactive message table can be used to store the first mapping relationship, the second mapping relationship, the third mapping relationship, etc. in the above embodiment.
[0109] Furthermore, the process of updating the approval message is as follows Figure 5 As shown, including:
[0110] Step 501: The approving personnel confirms the approval;
[0111] Step 502: Call the message middle station interactive callback interface;
[0112] Step 503: The message center receives the interactive message callback and parses the parameters returned by iHaier from the interactive message callback (for example Figure 5 According to the messageId on the iHaier side, the messageId on the business side is found from the interactive message table of the message center, the message event content is assembled, and the interactive message callback event is published to the business side.
[0113] Step 504: The business side consumes the interactive message callback event, parses the message event content, determines the interactive heart, and obtains the remaining approvers. Determine whether it exists or is signed. If so, construct the message content: someone has approved it on your behalf; if not, determine whether other people are required to approve it. If other people are required to approve it, construct the message content: Confirmed approval. If other people are not required to approve it, drive the demand status flow and construct the message content: Confirmed approval. Finally, call the message center to update the interactive message interface according to the constructed message content;
[0114] Step 505: The message center receives the updated interactive message and queries all the associated available interactive messages according to the messageId of the business side. It determines whether the business side has passed in the recipient list. If so, it filters out the messageId of the iHaier side of the recipient list; if not, it determines all the messageIds of the iHaier side; based on the parameters passed in by the user, it marks whether the interactive message is available in the interactive message table;
[0115] Step 506: Update the message content corresponding to the messageId on the iHaier side.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0117] In this embodiment, a device for sending an interactive message is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0118] Figure 6 : is a structural block diagram of an optional device for sending an interactive message according to an embodiment of the present application, the device comprising:
[0119] A receiving module 62, configured to receive an interactive message sent by a service side through a first interface, wherein the first interface is an interface provided by the message center for the service side;
[0120] The determining module 64 is configured to determine a first approval object through a first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message;
[0121] The sending module 66 is configured to send the interaction message to a third approval object among the second approval objects that has not received the interaction message.
[0122] Through the above device, the interactive message sent by the business side is received through the first interface, wherein the first interface is an interface provided by the message middle station for the business side; the first approval object is determined through the first message index of the interactive message, wherein the message middle station records the second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is the approval object that has received the interactive message in the second approval object, and the all interactive messages include: the interactive message; the interactive message is sent to the third approval object that has not received the interactive message in the second approval object. That is to say, the message middle station that is fully encapsulated with the message interaction capability provides the first interface to the business side to receive the interactive message sent by the business side and send the interactive message to the third approval object. Therefore, the above technical solution is adopted to solve the problem of how to realize the docking of the message interaction capability with the business side under the premise of ensuring the complete encapsulation of the message interaction capability and not carrying out customized development in the related technology; and the technical effect of receiving the interactive message from the business side and sending the interactive message to the approval object for approval is achieved.
[0123] In an exemplary embodiment, the receiving module 62 is also used to: provide a tool class to the business side, wherein the tool class is used by the business side to generate the first message index; and receive the interactive message with the first message index sent by the business side through the first interface.
[0124] In an exemplary embodiment, the sending module 66 is also used to: send the interactive message to the business approval side through the second interface provided by the message middle platform for the business approval side; instruct the business approval side to build a message card based on the interactive message, and send the message card to the third approval object.
[0125] In an exemplary embodiment, after sending the interactive message to a third approval object among the second approval objects that has not received the interactive message, the device also includes a storage module, which is used to: receive a second message index of the message card fed back by the business approval side; establish a first mapping relationship between the first message index and the second message index, and establish a second mapping relationship between the first message index and the third approval object; and store the first mapping relationship and the second mapping relationship in a preset storage area of the message center.
[0126] In an exemplary embodiment, the determination module 64 is also used to: read a third mapping relationship from the preset storage area according to the first message index, wherein the third mapping relationship is a mapping relationship between the first message index and the first approval object; and parse the third mapping relationship to determine the first approval object.
[0127] In an exemplary embodiment, after storing the first mapping relationship and the second mapping relationship in a preset storage area of the message middle station, the device also includes an update module, which is used to: when an update message sent by the business side is received through a third interface, obtain the first mapping relationship from the preset storage area through a first message index, wherein the update message is used to update the interaction message, the update message carries the first message index, and the third interface is an update interface provided by the message middle station for the business side; according to the first mapping relationship, the update message is sent to the business approval side through the second interface to instruct the business approval side to update the message card through the update message.
[0128] In an exemplary embodiment, the determination module 64 is further used to: in a case where the approver list sent by the business side is received through the first interface, determine the third approval object through the approver list and the first approval object, wherein the reception time of the approver list is the same as the reception time of the interactive message, and the approver list records a fourth approval object that is allowed to approve the interactive message; in a case where the approver list sent by the business side is not received through the first interface, determine the third approval object through the second approval object and the first approval object.
[0129] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0130] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0131] S1, receiving an interactive message sent by a service side through a first interface, wherein the first interface is an interface provided by a message center for the service side;
[0132] S2, determining a first approval object through a first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message;
[0133] S3: Send the interaction message to a third approval object among the second approval objects that has not received the interaction message.
[0134] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0135] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0136] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0137] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0138] S1, receiving an interactive message sent by a service side through a first interface, wherein the first interface is an interface provided by a message center for the service side;
[0139] S2, determining a first approval object through a first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message;
[0140] S3: Send the interaction message to a third approval object among the second approval objects that has not received the interaction message.
[0141] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0142] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0143] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0144] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0145] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0146] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0147] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for sending an interactive message, characterized in that: include: Receiving an interactive message sent by the service side through a first interface, wherein the first interface is an interface provided by the message center for the service side; The first approval object is determined by the first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message; The interaction message is sent to a third approval object among the second approval objects that has not received the interaction message.
2. The method for sending an interactive message according to claim 1, characterized in that: Receiving an interaction message sent by the service side through the first interface includes: Providing a tool class to the business side, wherein the tool class is used by the business side to generate the first message index; The interaction message with the first message index sent by the service side is received through the first interface.
3. The method for sending an interactive message according to claim 1, characterized in that: Sending the interaction message to a third approval object among the second approval objects that has not received the interaction message includes: Sending the interaction message to the business approval side through a second interface provided by the message center for the business approval side; Instruct the business approval side to construct a message card according to the interactive message, and send the message card to the third approval object.
4. The method for sending an interactive message according to claim 3, characterized in that: After sending the interaction message to a third approval object among the second approval objects that has not received the interaction message, the method further includes: Receive a second message index of the message card fed back by the business approval side; Establishing a first mapping relationship between the first message index and the second message index, and establishing a second mapping relationship between the first message index and the third approval object; The first mapping relationship and the second mapping relationship are stored in a preset storage area of the message center.
5. The method for sending an interactive message according to claim 4, characterized in that: Determining a first approval object by using a first message index of the interaction message includes: Reading a third mapping relationship from the preset storage area according to the first message index, wherein the third mapping relationship is a mapping relationship between the first message index and the first approval object; The third mapping relationship is parsed to determine the first approval object.
6. The method for sending an interactive message according to claim 4, characterized in that: After storing the first mapping relationship and the second mapping relationship in a preset storage area of the message center, the method further includes: In the case where an update message sent by the service side is received through the third interface, the first mapping relationship is obtained from the preset storage area through the first message index, wherein the update message is used to update the interaction message, the update message carries the first message index, and the third interface is an update interface provided by the message center for the service side; The update message is sent to the business approval side through the second interface according to the first mapping relationship, so as to instruct the business approval side to update the message card through the update message.
7. The method for sending an interactive message according to claim 1, characterized in that: Before sending the interaction message to a third approval object among the second approval objects that has not received the interaction message, the method further includes: In case that the approver list sent by the service side is received through the first interface, the third approval object is determined through the approver list and the first approval object, wherein the approval list is received at the same time as the interaction message, and the approver list contains a fourth approval object that is allowed to approve the interaction message; In the case that the approver list sent by the service side is not received through the first interface, the third approval object is determined through the second approval object and the first approval object.
8. A device for sending an interactive message, characterized in that: include: A receiving module, configured to receive an interactive message sent by a service side through a first interface, wherein the first interface is an interface provided by the message center for the service side; a determination module, configured to determine a first approval object through a first message index of the interactive message, wherein the message contains a second approval object that is allowed to receive all interactive messages, the second approval object is used to approve all the interactive messages, the first approval object is an approval object among the second approval objects that has received the interactive message, and the all interactive messages include: the interactive message; The sending module is used to send the interaction message to a third approval object among the second approval objects that has not received the interaction message.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.