A message sending method and related device
By verifying the consistency of the version type and basic information of the basic information before sending the message, the problem of message sending errors in the existing technology is solved, the accuracy and safety of the message sending are achieved, and the error rate is reduced.
Patent Information
- Application Number
- CN202111350156.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-11-15
AI Technical Summary
The existing business system lacks a verification process when sending messages such as text messages and emails, which often results in messages being sent to the wrong recipients, causing customer distress, leaking important information, and affecting corporate image.
Before sending the message, determine the version type of the application through the IP address, and verify the consistency of the version type and basic information (such as recipients, subjects, content, and attachments) to ensure that the information is accurate before sending.
Through consistency verification, the probability of incorrect message transmission is reduced, the accuracy and security of message transmission are ensured, and the corporate image and customer privacy are protected.
Smart Images

Figure CN113938313B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field, and in particular to a message sending method and related devices. Background Art
[0002] When existing business systems send text messages, emails and other messages, they are generally sent directly without a verification process. As a result, messages are often sent to the wrong recipients, causing trouble for customers, leaking important information, and affecting the corporate image. Summary of the invention
[0003] In view of the above-mentioned deficiencies in the prior art, the purpose of the present application is to provide a message sending method and related devices, aiming to provide verification before the message is sent and reduce the message error rate.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, an embodiment of the present application provides a message sending method, which is applied to a server, and is characterized in that the method includes:
[0006] Receiving a first message from a first terminal device, wherein the first message includes an IP address;
[0007] Determining, according to the IP address, a version type of the application program that sends the first message, where the version type is used to indicate a version of the application program;
[0008] Performing a consistency check on the version type and basic information of the first message according to the version type to obtain a check result, wherein the basic information includes at least one of the following: recipient, subject, content, and attachment;
[0009] If it is detected that the verification result is consistent, the first message is sent to the second terminal device corresponding to the recipient in the first message.
[0010] In a second aspect, an embodiment of the present application provides a message sending method, which is applied to a first terminal device, and the method includes:
[0011] Adding an IP address in the first message, where the IP address is used to indicate a version type of the application to which the first message belongs;
[0012] Sending a first message to the server;
[0013] receiving a processing result from the server, wherein the processing result is generated when the server performs a consistency check on the version type and basic information of the first message and determines that the consistency check fails;
[0014] Sending feedback regarding the processing result to the server.
[0015] In a third aspect, an embodiment of the present application provides a message sending device, which is applied to a server, and the device includes:
[0016] A message processing unit, configured to receive a first message from a first terminal device, wherein the first message includes an IP address;
[0017] a determining unit, configured to determine a version type of an application program that sends the first message according to the IP address, wherein the version type is used to indicate a version of the application program;
[0018] a verification unit, configured to perform consistency verification of the version type and basic information of the first message according to the version type to obtain a verification result, wherein the basic information includes at least one of the following: a recipient, a subject, content, and an attachment;
[0019] The output processing unit sends the first message to the second terminal device corresponding to the recipient in the first message if it is detected that the verification result is consistent.
[0020] In a fourth aspect, an embodiment of the present application provides an electronic device, characterized in that it includes a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, and the program includes instructions for executing the steps in the method described in the first aspect.
[0021] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute instructions for the steps in the method described in the first aspect.
[0022] In a sixth aspect, an embodiment of the present application provides a computer program product, comprising a computer program or computer instructions, characterized in that when the computer program or the computer instructions are executed by a processor, the steps in the method described in the first aspect are implemented.
[0023] The implementation of the embodiments of the present application has the following beneficial effects:
[0024] It can be seen that the message sending method and related apparatus described in the embodiment of the present application can receive a first message from a first terminal device, wherein the first message includes an IP address; determine the version type of the application that sends the first message based on the IP address, and the version type is used to indicate the version of the application; perform a consistency check on the basic information of the first message based on the version type, and obtain a verification result, wherein the basic information includes at least one of the following: recipient, subject, content, and attachments; if the verification result is detected to be consistent, the first message is sent to the second terminal device corresponding to the recipient in the first message. The present application reduces the probability of wrong message sending by performing a consistency check when sending a message to ensure that the basic information of the message to be sent is accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1a It is a structural diagram of a server provided in an embodiment of the present application;
[0027] Figure 1b This is a schematic diagram of interaction between a server and a terminal device provided in an embodiment of the present application;
[0028] Figure 2 It is a flowchart of a message sending method provided in an embodiment of the present application;
[0029] Figure 3 It is a flowchart of another message sending method provided in an embodiment of the present application;
[0030] Figure 4 This is a block diagram of the functional units of a message sending device provided in an embodiment of the present application;
[0031] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] 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 are within the scope of protection of this application.
[0033] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] "At least one" in this application refers to one or more, and "a plurality" refers to two or more. In this application, "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where each of a, b, c can be an element itself, or a set containing one or more elements.
[0036] It should be pointed out that the equal to involved in the embodiments of the present application can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. It should be noted that when equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than. In the embodiments of the present application, "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be pointed out that when the distinction is not emphasized, the meanings to be expressed are consistent.
[0037] First, some nouns involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0038] 1. Message center refers to message queue. Message queue has gradually become the core means of internal communication in enterprise IT systems. It has a series of functions such as low coupling, reliable delivery, broadcasting, flow control, and eventual consistency, and has become one of the main means of asynchronous RPC. There are many mainstream message middleware on the market today. "Message" is a unit of data transmitted between two computers. Messages can be very simple, such as containing only text strings; or more complex, possibly containing embedded objects. Messages are sent to queues. "Message queue" is a container that stores messages during the transmission of messages. The message queue manager acts as an intermediary when relaying messages from its source to its destination. The main purpose of the queue is to provide routing and ensure the delivery of messages; if the receiver is unavailable when the message is sent, the message queue will retain the message until it can be successfully delivered.
[0039] At present, when existing business systems send text messages, emails and other messages, they are generally sent directly without a verification process. As a result, they are often sent to the wrong recipients, causing trouble for customers, leakage of important information, and affecting the corporate image.
[0040] In view of the above problems, the present application provides a message sending method and related devices, which are described in detail below.
[0041] like Figure 1a As shown, Figure 1aA structural diagram of a server 10 provided for the present application. The server 10 includes a processor, a memory, and the like. Specifically, a message management system is maintained in the server 10, and the management system includes a message center 11 and a notification center 12. The message center 11 is a message queue, which is used to receive a first message, and send the first message to the notification center 12 in sequence according to the receiving time. The notification center 12 is used to uniformly process the first message sent by the message center 11, and specifically perform integrity check, consistency check, rule check, and the like on the first message. The notification center 12 mainly includes the following functions: application management, rule management, email sending, SMS sending, in-site letter sending, WeChat sending, notification task JOB management, and the like.
[0042] See also Figure 1b , Figure 1b A schematic diagram of the interaction between a server 10 and a terminal device provided in the present application. The server 10 communicates with a first terminal device 20, a second terminal device 30, and a third terminal device 40 respectively. The first terminal device 20 is a device for sending a first message, the second terminal device 30 is a message receiving device, and the third terminal is a supervisor device for monitoring and managing the entire sending process. It can be understood that the first message sent by a first terminal device 20 can be received by multiple second terminal devices 30.
[0043] The first terminal device 20, the second terminal device 30 and the third terminal device 40 may be a mobile phone, a tablet computer (pad), a desktop computer, a laptop computer, an all-in-one computer, a vehicle-mounted terminal, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a wearable device, a terminal device in a future mobile communication network or a future evolved public mobile land network (PMN) The terminal equipment in the network (PLMN) is not limited here.
[0044] The message sending method provided in this application is described below with reference to a specific embodiment.
[0045] like Figure 2 As shown, the present application provides a message sending method, which is applied to Figure 1a or Figure 1b The server in the method comprises:
[0046] Step 201: receiving a first message from a first terminal device, wherein the first message includes an IP address;
[0047] By way of example, the first message may be a text message, a WeChat message, an email, an internal communication of the system, etc., and is not limited to uniqueness herein.
[0048] For example, the IP address is a physical address of a first terminal device to which an application sending the first message belongs.
[0049] Specifically, the first message from the first terminal device is received by the message center in the server, and the IP address information is detected. Then, the message center sends the first message and the IP address information to the notification center in the server in sequence according to the time sequence of receiving each first message.
[0050] Step 202: Determine the version type of the application that sends the first message according to the IP address, where the version type is used to indicate the version of the application;
[0051] For example, the version types include a formal version and an informal version. The formal version and the informal version belong to different first terminal devices, so the IP addresses of the two are also different.
[0052] Step 203: Perform a consistency check of the version type and basic information of the first message according to the version type to obtain a check result, wherein the basic information includes at least one of the following: recipient, subject, content and attachment;
[0053] In a possible embodiment, the consistency check of the version type and the basic information of the first message is performed according to the version type, including: when the version type is an informal version, the recipient of the first message is modified to a preset tester; when the version type is a formal version, the following checks are performed on the first message: determining whether the recipient is a customer; determining whether the first customer name associated with the recipient's receiving address is consistent with the second customer name in the subject; determining whether the subject name and the attachment name are consistent.
[0054] For example, the official version includes a public beta version, an open version, a released version, and other versions that can be publicly available to the outside world and internally and are normally used, and no uniqueness limitation is made here.
[0055] For example, the informal version includes test versions, development versions, and other versions that are in the development and testing stages, and no uniqueness limitation is made here.
[0056] In a specific implementation, when the version type is an informal version, it indicates that the first message does not need to be interacted with externally, so the recipient of the first message can be directly modified to a preset tester; in addition, it is also possible to first detect whether the recipient of the first message is a preset tester, and if not, then modify the recipient of the first message to the preset tester. When the version type is a formal version, it indicates that the first message needs to be interacted with externally, so it is necessary to determine whether the recipient, subject, attachment and other information in the first message are correct, so the above-mentioned verification is required.
[0057] It can be seen that in this embodiment, different checks are performed on the first message according to different version types, so that the check process is targeted.
[0058] Step 204: If it is detected that the verification result is consistent, the first message is sent to the second terminal device corresponding to the recipient in the first message.
[0059] In a possible embodiment, if it is detected that the verification result is consistent, after sending the first message to the second terminal device corresponding to the recipient in the first message, the method further includes:
[0060] If the recipient is not a customer, the process node is returned to the first terminal device or the third terminal device, and a first modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient, wherein the third terminal device is the terminal device corresponding to the supervisor;
[0061] If the first customer name is inconsistent with the second customer name, the process node is returned to the first terminal device or the third terminal device, and a second modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient;
[0062] If the subject name and the attachment name are inconsistent, the process node is returned to the first terminal device or the third terminal device, and a third modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or supervisor to modify the subject or attachment.
[0063] In a specific implementation, the entire message management system includes multiple process nodes from receiving to finishing the processing of the first message, and each process node performs different processing. The process node in this embodiment is specifically a process node when the version type is an informal version and the verification of the first message fails. When the verification fails, the node will be directly returned to the first terminal device or the third terminal device, and a corresponding error will be prompted for modification or supplement by the message sender or supervisor.
[0064] It is understandable that in this embodiment, the next process node may be directly entered without verification, and no uniqueness limitation is made here.
[0065] It can be seen that in this embodiment, the process node is returned when the verification fails to prompt the message sender or supervisor to make modifications or supplements, avoiding errors in the recipient, subject, attachment, message content, etc.
[0066] In a possible embodiment, before performing consistency verification on the version type and basic information of the first message according to the version type, the method also includes: checking the integrity of the basic information of the first message; if the basic information is complete, determining whether rules have been configured for the application; if the basic information is incomplete, returning the process node to the first terminal device or the third terminal device, and sending an information supplement prompt to the first terminal device or the third terminal device to prompt the message sender or the supervisor to supplement the basic information, the third terminal device being the terminal device corresponding to the supervisor.
[0067] For example, the integrity check includes determining whether fields such as the sender, recipient, and subject in the first message are empty, and determining whether files such as email templates and attachments exist.
[0068] It is understandable that the integrity check can be flexibly set according to the specific message structure, and no uniqueness limitation is made here. For example, some message structures only include sender, recipient and email content, then only the sender, recipient and email content are checked to see if they are empty; some message structures include sender, recipient, email template and attachments, then the sender and recipient are checked to see if they are empty, and whether the email template and attachment exist.
[0069] It can be seen that, in this embodiment, an integrity check on the basic information of the first message is implemented.
[0070] In a possible embodiment, after determining whether rules have been configured for the application, the method further includes: if rules have been configured for the application, performing a rule check on the first message according to the rules; if rules have not been configured, sending a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to a supervisor; receiving a processing instruction for the confirmation message sent by the first terminal device or the third terminal device, and processing the first message according to the processing instruction, wherein the processing instruction includes any one of cancelling sending, immediately sending, and scheduled sending.
[0071] In a specific implementation, for each application, the user can configure the corresponding rules for the application in the message management system, so as to perform a rule check on the first message sent by the application according to the rule. Therefore, after the information integrity check, if it is determined that the application corresponding to the first message currently being processed has been configured with a rule, the first message is checked according to the rule; if it is determined that the first message corresponding to the first message currently being processed has not been configured with a rule, the supervisor or the information sender needs to determine whether to continue sending, so as to provide a secondary confirmation mechanism and reduce the probability of wrong sending.
[0072] The user may be the supervisor or the person sending the information, and no unique limitation is made here.
[0073] It can be seen that in this embodiment, when the application has been configured with rules, a secondary check of the first message is implemented, and when the application has not been configured with rules, a secondary confirmation of the first message is implemented.
[0074] In a possible embodiment, sending the first message to a second terminal device corresponding to the recipient in the first message includes:
[0075] Perform the following operations on the first message that passes the consistency check:
[0076] Determine whether the number of recipients exceeds the preset number; when the number of recipients exceeds the preset number, the process node returns to the first terminal device or the third terminal device, and sends an approval prompt message to the first terminal device or the third terminal device to prompt the message sender or the supervisor to approve whether to send the first message, and the third terminal device is the terminal device corresponding to the supervisor; if the approval is passed, the first message is sent to the second terminal device corresponding to the recipient; if the approval is not passed, the sending of the first message is canceled.
[0077] For example, the preset number of people can be set freely, for example, according to the message sending rules, counting the number of recipients each time the message is sent, obtaining the average value, and setting the preset number of people as the average value; or setting the largest number of recipients in the history as the preset number; it can also be set according to the version type of the application, and no uniqueness limitation is made here.
[0078] In a specific implementation, if the number of recipients exceeds the preset number, in order to reduce the probability of mis-delivery or missed delivery, the message sender or supervisor needs to review again. If the review is passed, the message can be sent. If the review is not passed, the first message is canceled. In addition, after canceling the first message, the process node can be returned to the message sender for modification. After the modification, the above operation can be performed again on the first message.
[0079] It can be seen that in this embodiment, a preset number of people is set as a threshold. When the number of recipients exceeds the threshold, the message sender or supervisor will review and approve it to reduce the probability of mis-sending or missing.
[0080] In a possible embodiment, sending the first message to a second terminal device corresponding to the recipient in the first message includes:
[0081] Perform the following operations on the first message that passes the consistency check:
[0082] Determining whether the first message includes a preset field;
[0083] When the first message includes a preset field, the first message is delayed for a preset time.
[0084] For example, the preset fields include "delay", "timing", a specific company name, etc., which can be freely set without any uniqueness limitation.
[0085] In a specific implementation, for some important first messages, a preset field is added to delay the sending of the important first messages. In this way, the content of the important first messages can be checked on the message management system and sent if correct. At the same time, the sending can also be canceled.
[0086] It can be seen that in this embodiment, the delayed sending of important messages is implemented to reserve time for checking the message content.
[0087] In a possible embodiment, after delaying the first message for a preset time, the method further includes:
[0088] Sending a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to the supervisor;
[0089] Receive a processing instruction sent by the first terminal device or the third terminal device, and process the first message according to the processing instruction, wherein the processing instruction includes any one of canceling sending, sending immediately, and sending at a scheduled time.
[0090] For example, the confirmation message may be sent at the beginning of the delay, or after a period of delay, or after the end of the delay, or at other times, and no unique limitation is made here.
[0091] In a specific implementation, when the first message enters delay, it indicates that the first message is an important message, and therefore a confirmation message needs to be sent to the first terminal device or the third terminal device to prompt the message sender or supervisor to reconfirm the first message to reduce the probability of wrong sending or missing sending.
[0092] It can be seen that in this embodiment, reconfirmation of the first message is achieved, reducing the probability of wrong sending or missing sending.
[0093] In summary, the message sending method and related apparatus described in the embodiments of the present application can receive a first message from a first terminal device, wherein the first message includes an IP address; determine the version type of the application that sends the first message based on the IP address, and the version type is used to indicate the version of the application; perform a consistency check on the basic information of the first message based on the version type, and obtain a verification result, wherein the basic information includes at least one of the following: recipient, subject, content, and attachments; if the verification result is detected to be consistent, the first message is sent to the second terminal device corresponding to the recipient in the first message. The present application reduces the probability of wrong message sending by performing a consistency check when sending a message to ensure that the basic information of the message to be sent is accurate.
[0094] The above mainly introduces the method of the embodiment of the present application from the perspective of the server side. The following introduces the method of the embodiment of the present application based on the execution process of the method on the terminal side.
[0095] See also Figure 3 The embodiment of the present application further provides another message sending method, which is applied to a first terminal device, and the method includes:
[0096] Step 301: Add an IP address to a first message, where the IP address is used to indicate the version type of the application to which the first message belongs;
[0097] Step 302: Send a first message to the server;
[0098] Step 303: receiving a processing result from the server, wherein the processing result is generated when the server performs a consistency check on the version type and basic information of the first message and determines that the consistency check fails;
[0099] Step 304: Send feedback regarding the processing result to the server.
[0100] In a specific implementation, before sending the first message, the first terminal device first adds the IP address of the device to the first message to mark the version type of the application sending the first message. Figure 1a or Figure 1b The server sends the first message. Afterwards, if the first message fails to pass the verification or inspection of the server, the process will be returned to the first terminal device, and the first terminal device will send a corresponding prompt message. After the message sender operates the first terminal device according to the prompt message to solve the corresponding problem, the first terminal generates feedback on the processing result and sends the feedback to the server.
[0101] It is understandable that since the processing process on the server side has been described in detail above, it will not be repeated here.
[0102] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the server includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0103] The embodiment of the present application can divide the server into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0104] See also Figure 4 The embodiment of the present application further provides a message sending device 40, which is applied to a server, and the device includes:
[0105] The message processing unit 410 is configured to receive a first message from a first terminal device, wherein the first message includes an IP address;
[0106] A determining unit 420, configured to determine a version type of an application that sends the first message according to the IP address, where the version type is used to indicate a version of the application;
[0107] The verification unit 430 is used to perform a consistency check of the version type and the basic information of the first message according to the version type to obtain a verification result, wherein the basic information includes at least one of the following: recipient, subject, content and attachment;
[0108] The output processing unit 440 sends the first message to the second terminal device corresponding to the recipient in the first message if it is detected that the verification result is consistent.
[0109] In a possible embodiment, before performing consistency verification on the version type and basic information of the first message according to the version type, the verification unit 430 is also used to: check the integrity of the basic information of the first message; if the basic information is complete, determine whether rules have been configured for the application; if the basic information is incomplete, return the process node to the first terminal device or the third terminal device, and send an information supplement prompt to the first terminal device or the third terminal device to prompt the message sender or the supervisor to supplement the basic information, and the third terminal device is the terminal device corresponding to the supervisor.
[0110] In a possible embodiment, after determining whether rules have been configured for the application, the verification unit 430 is specifically used to: if rules have been configured for the application, perform a rule check on the first message according to the rules; if rules have not been configured, send a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to the supervisor; receive a processing instruction for the confirmation message sent by the first terminal device or the third terminal device, and process the first message according to the processing instruction, wherein the processing instruction includes any one of cancelling sending, sending immediately, and sending at a scheduled time.
[0111] In a possible embodiment, in terms of performing consistency verification of the version type and basic information of the first message according to the version type, the verification unit 430 is also used to: when the version type is an informal version, modify the recipient of the first message to a preset tester; when the version type is a formal version, perform the following verification on the first message: determine whether the recipient is a customer; determine whether the first customer name associated with the recipient's receiving address is consistent with the second customer name in the subject; determine whether the subject name and the attachment name are consistent.
[0112] In a possible embodiment, if it is detected that the verification result is consistent, then after sending the first message to the second terminal device corresponding to the recipient in the first message, the output processing unit 440 is specifically used to: if the recipient is not a customer, return the process node to the first terminal device or the third terminal device, and send a first modification prompt to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient, wherein the third terminal device is the terminal device corresponding to the supervisor; if the first customer name is inconsistent with the second customer name, return the process node to the first terminal device or the third terminal device, and send a second modification prompt to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient; if the subject name and the attachment name are inconsistent, return the process node to the first terminal device or the third terminal device, and send a third modification prompt to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the subject or attachment.
[0113] In a possible embodiment, in terms of sending the first message to the second terminal device corresponding to the recipient in the first message, the output processing unit 440 is also used to: perform the following operations on the first message that has passed the consistency check: determine whether the number of recipients exceeds the preset number; when the number of recipients exceeds the preset number, the process node returns to the first terminal device or the third terminal device, and sends an approval prompt message to the first terminal device or the third terminal device to prompt the message sender or the supervisor to approve whether to send the first message, and the third terminal device is the terminal device corresponding to the supervisor; if the approval is passed, the first message is sent to the second terminal device corresponding to the recipient; if the approval is not passed, the sending of the first message is canceled.
[0114] In a possible embodiment, in terms of sending the first message to the second terminal device corresponding to the recipient in the first message, the output processing unit 440 is also used to: perform the following operations on the first message that passes the consistency check: determine whether the first message includes a preset field; when the first message includes the preset field, delay the first message for a preset time.
[0115] In a possible embodiment, after delaying the first message for a preset time, the output processing unit 440 is further used to: send a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is the terminal device corresponding to the supervisor; receive a processing instruction sent by the first terminal device or the third terminal device, and process the first message according to the processing instruction, wherein the processing instruction includes any one of cancelling sending, immediately sending, and scheduled sending.
[0116] Among them, the message processing unit 410, the judgment unit 420, the verification unit 430 and the output processing unit 440 can all be processors or controllers, such as a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0117] The present application also provides a computer program product, including a computer program or a computer instruction, characterized in that when the computer program or the computer instruction is executed by a processor, the steps in the method described in the above embodiment are implemented. Specifically, in this embodiment, the computer program product can be used as an application for sending the above first message in the first terminal device.
[0118] The present application also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the method described in the above embodiment.
[0119] The present application also provides an electronic device 50, such as Figure 5 As shown, it includes at least one processor 51; a display screen 52; and a memory 53, and may also include a communications interface 54 and a bus 55. The processor 51, the display screen 52, the memory 53 and the communications interface 54 may communicate with each other through the bus 55. The display screen 52 is configured to display a preset user guide interface in the initial setting mode. The communications interface 54 may transmit information. The processor 51 may call the logic instructions in the memory 53 to execute the method in the above embodiment.
[0120] Optionally, the electronic device 50 may be the server or the first terminal device mentioned above, or other terminal devices, which are not limited to uniqueness herein.
[0121] In addition, the logic instructions in the above-mentioned memory 53 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0122] The memory 53, as a computer-readable storage medium, can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 51 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 53, that is, implementing the methods in the above embodiments.
[0123] The memory 53 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device 50, etc. In addition, the memory 53 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0124] In addition, the specific process of loading and executing the plurality of instructions in the storage medium and the processor in the mobile terminal has been described in detail in the method above, and will not be described one by one here.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A message sending method, applied to a server, characterized in that: The method comprises: Receiving a first message from a first terminal device, wherein the first message includes an IP address; Determining, according to the IP address, a version type of the application program that sends the first message, where the version type is used to indicate a version of the application program; Checking the integrity of basic information of the first message; wherein the integrity check at least includes determining whether the sender, recipient, and subject fields in the first message are empty, and determining whether the email template and attachment exist; If the basic information is complete, determining whether rules have been configured for the application; If a rule has been configured for the application, performing a rule check on the first message according to the rule; If the application is not configured with a rule, a confirmation message is sent to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to the supervisor; receiving a processing instruction for the confirmation message sent by the first terminal device or the third terminal device, and processing the first message according to the processing instruction, wherein the processing instruction includes any one of canceling sending, sending immediately, and sending at a scheduled time; Performing consistency check of the version type and basic information of the first message according to the version type to obtain a check result, including: when the version type is an informal version, directly changing the recipient of the first message to a preset tester; or first detecting whether the recipient of the first message is a preset tester, and if not, changing the recipient of the first message to a preset tester; wherein the basic information includes at least one of the following: recipient, subject, content and attachment; If it is detected that the verification result is consistent, the first message is sent to the second terminal device corresponding to the recipient in the first message.
2. The method according to claim 1, characterized in that Before performing consistency check of the version type and the basic information of the first message according to the version type, the method further includes: If the basic information is incomplete, the process node will be returned to the first terminal device or the third terminal device, and an information supplement prompt will be sent to the first terminal device or the third terminal device to prompt the message sender or the supervisor to supplement the basic information. The third terminal device is the terminal device corresponding to the supervisor.
3. The method according to claim 1, characterized in that The performing consistency check of the version type and the basic information of the first message according to the version type includes: When the version type is a formal version, the following verification is performed on the first message: Determine whether the recipient is a customer; Determine whether the first customer name associated with the recipient's receiving address is consistent with the second customer name in the subject; Check if the subject name and attachment name are consistent.
4. The method according to claim 3, characterized in that If it is detected that the verification result is consistent, after sending the first message to the second terminal device corresponding to the recipient in the first message, the method further includes: If the recipient is not a customer, the process node is returned to the first terminal device or the third terminal device, and a first modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient, wherein the third terminal device is the terminal device corresponding to the supervisor; If the first customer name is inconsistent with the second customer name, the process node is returned to the first terminal device or the third terminal device, and a second modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or the supervisor to modify the recipient; If the subject name and the attachment name are inconsistent, the process node is returned to the first terminal device or the third terminal device, and a third modification prompt is sent to the first terminal device or the third terminal device to prompt the message sender or supervisor to modify the subject or attachment.
5. The method according to claim 1, characterized in that The sending the first message to the second terminal device corresponding to the recipient in the first message includes: Perform the following operations on the first message that passes the consistency check: Determine whether the number of recipients exceeds the preset number; When the number of recipients exceeds the preset number, the process node returns to the first terminal device or the third terminal device, and sends an approval prompt message to the first terminal device or the third terminal device to prompt the message sender or the supervisor to approve whether to send the first message. The third terminal device is the terminal device corresponding to the supervisor; If the approval is passed, sending the first message to the second terminal device corresponding to the recipient; If the approval is not passed, the sending of the first message is cancelled.
6. The method according to claim 1, characterized in that The sending the first message to the second terminal device corresponding to the recipient in the first message includes: Perform the following operations on the first message that passes the consistency check: Determining whether the first message includes a preset field; When the first message includes a preset field, the first message is delayed for a preset time.
7. The method according to claim 6, characterized in that After delaying the first message for a preset time, the method further includes: Sending a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to the supervisor; Receive a processing instruction sent by the first terminal device or the third terminal device, and process the first message according to the processing instruction, wherein the processing instruction includes any one of canceling sending, sending immediately, and sending at a scheduled time.
8. A message sending method, applied to a first terminal device, characterized in that: The method comprises: Adding an IP address in the first message, where the IP address is used to indicate a version type of the application to which the first message belongs; Sending a first message to the server; Receive a processing result from a server, the processing result is generated when the server performs a consistency check on the version type and basic information of the first message and determines that the consistency check fails; wherein, the server performs a consistency check on the version type and basic information of the first message, including: when the version type is an informal version, directly modifying the recipient of the first message to a preset tester; or, first detecting whether the recipient of the first message is a preset tester, and if not, modifying the recipient of the first message to a preset tester; wherein, the basic information includes at least one of the following: recipient, subject, content and attachments; if it is detected that the verification result is consistent, then The first message is sent to the second terminal device corresponding to the recipient in the first message; the consistency check also includes an integrity check before the consistency check, and the integrity check at least includes determining whether the sender, recipient, and subject fields in the first message are empty, and determining whether the email template and attachment exist; after the integrity check is completed, it also includes an application configuration rule check, and the application configuration rule check refers to the server determining whether the rule has been configured for the application. If the rule has been configured for the application, the first message is checked according to the rule. If the application has not been configured with a rule, a confirmation message is sent to the first terminal device or a third terminal device, and the third terminal device is a terminal device corresponding to the supervisor; The first terminal device sends a processing instruction for the confirmation message to the server, where the processing instruction is used to instruct the server to process the first message according to the processing instruction, wherein the processing instruction includes any one of canceling sending, sending immediately, and sending at a scheduled time; Sending feedback regarding the processing result to the server.
9. A message sending device, applied to a server, characterized in that: The device comprises: A message processing unit, configured to receive a first message from a first terminal device, wherein the first message includes an IP address; a determining unit, configured to determine a version type of an application program that sends the first message according to the IP address, wherein the version type is used to indicate a version of the application program; a verification unit, configured to check the integrity of basic information of the first message; wherein the integrity check at least includes determining whether the sender, recipient, and subject fields in the first message are empty, and determining whether the mail template and attachments exist; if the basic information is complete, determining whether rules have been configured for the application; if rules have been configured for the application, performing a rule check on the first message according to the rules; if the rules have not been configured, sending a confirmation message to the first terminal device or the third terminal device, wherein the third terminal device is a terminal device corresponding to the supervisor; and receiving a confirmation message sent by the first terminal device or the third terminal device for the confirmation message The processing instruction of the first message is to process the first message according to the processing instruction, wherein the processing instruction includes any one of canceling sending, sending immediately and sending at a scheduled time; the basic information of the first message is checked for consistency between the version type and the basic information according to the version type, and a verification result is obtained, including: when the version type is an informal version, the recipient of the first message is directly changed to a preset tester; or, firstly check whether the recipient of the first message is a preset tester, and if not, change the recipient of the first message to a preset tester; wherein the basic information includes at least one of the following: recipient, subject, content and attachment; The output processing unit sends the first message to the second terminal device corresponding to the recipient in the first message if it is detected that the verification result is consistent.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute instructions of the steps in the method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program or computer instructions, characterized in that When the computer program or the computer instruction is executed by a processor, the steps in the method according to any one of claims 1 to 8 are implemented.
