Message sending method and device, electronic equipment and storage medium

By updating the message declaration status and regrouping in the mapping table during message transmission, the problems of missed and incorrect transmissions when submitting cross-border transaction information messages in batches are solved, thereby improving the accuracy and reliability of message transmission.

CN119484377BActive Publication Date: 2026-01-02CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411593005.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2026-01-02
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

When submitting cross-border transaction information messages in batches, existing technologies are prone to issues such as missed or incorrect messages, resulting in insufficient accuracy and reliability of message transmission.

Method used

The message content is determined by the business data of the message associated with the first sequence number to be declared. When the threshold is exceeded, the declaration status of the message in the mapping table is updated to failure. The messages are then regrouped and the third sequence number corresponding to each group is determined. The message is sent after the content is less than or equal to the threshold.

Benefits of technology

This effectively avoids missed or incorrect messages during transmission, improving the accuracy and reliability of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484377B_ABST
    Figure CN119484377B_ABST
Patent Text Reader

Abstract

The present disclosure provides a message sending method and device, electronic equipment and storage medium, and relates to the technical field of data processing. First, based on the service data of the message associated with the first serial number to be declared currently, the message content to be declared currently is determined, and in the case that the message content is greater than a threshold, the declaration state of the message associated with the first serial number and each second serial number located after the first serial number in the first mapping table is updated to declaration failure, then each message with the declaration state of declaration failure in the first mapping table is regrouped, the third serial number corresponding to each group of messages is determined, and finally based on the service data of the message associated with the first third serial number in the first mapping table, the operation of determining the message content to be declared currently is executed until the determined message content is less than or equal to the threshold, and the determined message content is sent. Therefore, the situation of missing and wrong sending of message sending is effectively avoided, and the accuracy and reliability of message sending are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of data processing, and particularly relates to a message sending method and device, electronic equipment and storage medium. BACKGROUND

[0002] Currently, cross-border transaction information messages can be batch-declared through a system direct connection method. However, the number of messages declared each time is relatively large, and in the declaration process, the situation of missed sending or wrong sending is prone to occur. How to improve the accuracy and reliability of message sending in the message declaration process is a problem to be solved at present. SUMMARY

[0003] The present disclosure provides a message sending method and device, electronic equipment and storage medium to solve the problem of how to improve the accuracy and reliability of message sending in the message declaration process.

[0004] According to an aspect of the present disclosure, a message sending method is provided, comprising:

[0005] Based on the service data of the message associated with the first sequence number to be declared currently, determining the message content to be declared currently;

[0006] In the case where the message content is greater than a threshold, updating the declaration state of the message associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table to declaration failure respectively;

[0007] Re-grouping each message with a declaration state of declaration failure in the first mapping table, and determining a third sequence number corresponding to each group of messages, wherein the number of messages associated with the third sequence number is less than the number of messages associated with the first sequence number;

[0008] Based on the service data of the message associated with the first third sequence number in the first mapping table, returning to perform the operation of determining the message content to be declared currently until the determined message content is less than or equal to the threshold, and sending the determined message content.

[0009] According to another aspect of the present disclosure, a message sending device is provided, comprising:

[0010] A first determining module is configured to determine the message content to be declared currently based on the service data of the message associated with the first sequence number to be declared currently;

[0011] An updating module is configured to update the declaration state of the message associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table to declaration failure respectively in the case where the message content is greater than a threshold;

[0012] The second determining module is configured to re-group the messages with the report state of failure in the first mapping table, and determine a third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number.

[0013] The processing module is configured to return to performing the operation of determining the message content to be reported currently based on the service data of the message associated with the first third serial number in the first mapping table, and send the determined message content when the determined message content is less than or equal to the threshold.

[0014] According to another aspect of the present disclosure, an electronic device is provided, comprising:

[0015] at least one processor;

[0016] and a memory connected to the at least one processor in communication;

[0017] wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the above embodiments.

[0018] According to another aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to perform the method according to the above embodiments.

[0019] The present disclosure provides a message sending method and device, an electronic device and a storage medium. First, the message content to be reported currently is determined based on the service data of the message associated with the first serial number to be reported currently. When the message content is greater than a threshold, the report state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to failure. Then, the messages with the report state of failure in the first mapping table are re-grouped, and a third serial number corresponding to each group of messages is determined. Finally, the operation of determining the message content to be reported currently is returned to be performed based on the service data of the message associated with the first third serial number in the first mapping table, and the determined message content is sent when the determined message content is less than or equal to the threshold. Thus, when the message content associated with the first serial number to be reported currently is greater than the threshold, the report state of the message associated with the first serial number and each second serial number after the first serial number in the mapping table is updated to failure, and the messages are re-grouped to determine the third serial number corresponding to each group. The operation of determining the message content to be reported currently is returned to be performed, and the corresponding message content is sent when the message content is less than the threshold. Thus, the situation of missing and wrong sending in the message sending process is effectively avoided, and the accuracy and reliability of message sending are improved. BRIEF DESCRIPTION OF DRAWINGS

[0020] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.

[0021] Figure 1 A flowchart of a packet sending method provided by an embodiment of the present disclosure;

[0022] Figure 2 A flowchart of a packet sending method provided by an embodiment of the present disclosure;

[0023] Figure 3 A flowchart of a packet sending method provided by an embodiment of the present disclosure;

[0024] Figure 4 A flowchart of a packet sending method provided by an embodiment of the present disclosure;

[0025] Figure 5 A flowchart of a packet sending method provided by an embodiment of the present disclosure;

[0026] Figure 6 A structural diagram of a packet sending device provided by an embodiment of the present disclosure;

[0027] Figure 7 A structural diagram of an electronic device provided by an embodiment of the present disclosure.

[0028] The specific embodiments of the present disclosure have been shown through the above drawings, and will be described in more detail hereinafter. These drawings and descriptions are not intended to limit the scope of the concept of the present disclosure in any way, but to illustrate the concept of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0029] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The same numbers are used in different drawings to represent the same or similar elements. The following exemplary embodiments are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0030] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0031] It should be noted that the acquisition, transmission, storage, use, processing and the like of data in the technical solutions of the present disclosure comply with relevant provisions of national laws and regulations.

[0032] It should be noted that in the embodiments of the present disclosure, some existing industry solutions may be mentioned, such as certain software, components, models, etc., which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present disclosure, but it does not mean that the applicant has or will necessarily use the solution.

[0033] The packet sending method of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0034] Figure 1 A flowchart of a packet sending method provided by the embodiments of the present disclosure is shown.

[0035] As shown in Figure 1 , the method comprises:

[0036] Step 101, determining the content of the current reportable packet based on the service data of the packet associated with the first serial number.

[0037] The first serial number can be the report group serial number of the packet, which can be associated with the service data of multiple packets, and the present disclosure does not limit it.

[0038] It should be noted that the service data of the packet can be any service data. For example, the service data of the packet can be cross-border transaction service data, etc., and the present disclosure does not limit it.

[0039] It should be noted that the determined content of the current reportable packet can be a packet file composed of the service data of the packet associated with the first serial number, and the present disclosure does not limit it.

[0040] In the present disclosure, before sending the packet, the content of the current reportable packet can be determined based on the service data of the packet associated with the first serial number, thereby providing conditions for improving the success rate and reliability of packet sending.

[0041] Optionally, in the case where the first serial number is less than or equal to the maximum serial number in the first mapping table, it can be determined that there is a reportable packet identifier in the first mapping table, and at this time, the content of the current reportable packet can be determined based on the service data of the packet associated with the first serial number, thereby improving the reliability of packet sending.

[0042] The first mapping table can be a mapping table for storing the main packet identifier to be reported and the sub-packet identifier contained therein.

[0043] It should be noted that the number of the to-be-declared message identifiers contained in the first mapping table and / or the grouping method of the to-be-declared messages are different, and the maximum sequence number in the first mapping table can be different, and the present disclosure does not limit this.

[0044] It should be noted that the present disclosure can also store the service data associated with the first sequence number through a preset service table, and the present disclosure does not limit this.

[0045] In step 102, in the case that the message content is greater than the threshold, the declaration state of the message associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table is updated to declaration failure.

[0046] The threshold can be a specification requirement for judging whether the message corresponding to the first sequence number can be successfully declared, and it can be pre-set. For example, the threshold can be that the data amount of the message content is less than or equal to 2 megabytes (MB), and the present disclosure does not limit this.

[0047] The second sequence number can be the grouping sequence number of the subsequent message associated with the current to-be-declared message in the first mapping table, that is, the message identifier associated with the second sequence number and the message identifier associated with the first sequence number belong to the same main message identifier, and the present disclosure does not limit this.

[0048] In the present disclosure, after determining the message content of the current to-be-declared message, in the case that the message content is greater than the threshold, it can be determined that the message content of the current to-be-declared message does not meet the specification requirement, at this time, the declaration state of the message associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table can be updated to declaration failure, thereby ensuring the accuracy of message sending.

[0049] In step 103, each message with the declaration state of declaration failure in the first mapping table is regrouped to determine the third sequence number corresponding to each group of messages, wherein the number of messages associated with the third sequence number is less than the number of messages associated with the first sequence number.

[0050] In the present disclosure, after updating the declaration state of the message associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table to declaration failure, when the message associated with the first sequence number and each second sequence number is re-sent, the message with the declaration state of declaration failure in the first mapping table can be regrouped first, and the third sequence number corresponding to each group of messages is determined. Since the number of messages associated with the third sequence number is less than the number of messages associated with the first sequence number, the success rate of message sending is improved.

[0051] In step 104, based on the service data of the message associated with the first third serial number in the first mapping table, the operation of determining the content of the current message to be declared is returned to be executed until the determined message content is less than or equal to the threshold, and the determined message content is sent.

[0052] In the present disclosure, after determining the third serial number corresponding to each group of messages, the operation of determining the content of the current message to be declared is returned to be executed based on the service data of the message associated with the first third serial number in the first mapping table until the determined message content is less than or equal to the threshold, and the determined message content is sent by calling the preset message declaration interface, thereby effectively avoiding the situation of missing and wrong sending in the message sending process, and improving the reliability and accuracy of message sending.

[0053] In the present disclosure, first, based on the service data of the message associated with the first serial number to be declared, the content of the current message to be declared is determined, and in the case that the message content is greater than the threshold, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to declaration failure, and then each message with the declaration state of declaration failure in the first mapping table is re-grouped to determine the third serial number corresponding to each group of messages. Finally, based on the service data of the message associated with the first third serial number in the first mapping table, the operation of determining the content of the current message to be declared is returned to be executed until the determined message content is less than or equal to the threshold, and the determined message content is sent. Thus, in the case that the content of the message associated with the first serial number to be declared is greater than the threshold, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the mapping table is updated to declaration failure, and the message grouping is re-performed to determine the third serial number corresponding to each group, and the operation of determining the content of the current message to be declared is returned to be executed, and in the case that the message content is less than the threshold, the corresponding message content is sent. Thus, the situation of missing and wrong sending in the message sending process is effectively avoided, and the accuracy and reliability of message sending are improved.

[0054] Figure 2 A flowchart of a message sending method provided by an embodiment of the present disclosure is shown.

[0055] As shown in Figure 2 , the method comprises:

[0056] In step 201, the first main message identifier and the first sub-message identifier corresponding to the first user in the current declaration period are determined.

[0057] The declaration period can be pre-set. For example, the declaration period can be a month, and the present disclosure does not limit this.

[0058] The main message identifier can be used to represent the main message, and the sub-message identifier can be used to represent the sub-message. The main message identifier and the sub-message identifier can be any form of identifier set in advance. For example, the main message identifier and the sub-message identifier can be the primary key value of the main message and the primary key value of the sub-message, respectively, and the present disclosure does not limit this.

[0059] In the present disclosure, when sending a message, in order to improve the reliability of message sending, the first main message identifier and the first sub-message identifier corresponding to the first user in the current reporting period can be determined first.

[0060] In step 202, the first main message identifier and the first sub-message identifier are sequentially stored in the first mapping table.

[0061] In the present disclosure, after determining the first main message identifier and the first sub-message identifier corresponding to the first user in the current reporting period, the first main message identifier and the first sub-message identifier can be sequentially stored in the first mapping table, thereby providing conditions for improving the accuracy of message sending.

[0062] In step 203, based on the number of each group of messages corresponding to the second user that has been reported, each message identifier in the first mapping table is sequentially numbered to determine the serial number corresponding to each group of messages.

[0063] In the present disclosure, after storing the first main message identifier and the first sub-message identifier in the first mapping table, in order to improve the success rate of message reporting, based on the number of each group of messages corresponding to the second user that has been reported, each message identifier in the first mapping table can be sequentially numbered to determine the serial number corresponding to each group of messages.

[0064] In step 204, in the case where the first serial number to be reported is greater than the maximum serial number in the first mapping table, the reporting state of each message in the first mapping table is determined.

[0065] In the present disclosure, after determining the serial number corresponding to each group of messages in the first mapping table, in the case where the first serial number to be reported is greater than the maximum serial number in the first mapping table, it can be determined that the first main message and the first sub-message of the first user in the first mapping table have been applied. In order to determine whether the first main message and the first sub-message are successfully applied, the reporting state of each message in the first mapping table can be determined first.

[0066] In step 205, in the case where the reporting state of each message in the first mapping table is reporting success, the first main message identifier and the first sub-message identifier in the first mapping table are deleted, and the reporting state in the first mapping table is updated to a to-be-reported state.

[0067] In the disclosure, after determining the declaration state of each message in the first mapping table, in the case that the declaration state of each message in the first mapping table is all successful, it can be determined that the first main message and the first sub-message of the first user have been successfully declared, at this time, the first main message identifier and the first sub-message identifier in the first mapping table can be deleted, and the declaration state in the first mapping table can be updated to the state of being to be declared, thereby ensuring the accuracy and reliability of message declaration.

[0068] It should be noted that after updating the declaration state in the first mapping table to the state of being to be declared, the main message identifier and the sub-message identifier to be declared of the next user can be stored in the first mapping table, thereby performing message declaration of the user, which is not limited in the disclosure.

[0069] In the embodiment of the disclosure, first, the first main message identifier and the first sub-message identifier corresponding to the first user in the current declaration period are determined, and then the first main message identifier and the first sub-message identifier are sequentially stored in the first mapping table, then based on the number of each group of messages corresponding to the second user that has been declared, the message identifiers in the first mapping table are sequentially grouped and numbered to determine the serial number corresponding to each group of messages, in the case that the first serial number to be currently declared is greater than the maximum serial number in the first mapping table, the declaration state of each message in the first mapping table is determined, and finally in the case that the declaration state of each message in the first mapping table is all successful, the first main message identifier and the first sub-message identifier in the first mapping table are deleted, and the declaration state in the first mapping table is updated to the state of being to be declared. Therefore, after storing the main message identifier and the sub-message identifier of the user in the current declaration period in the mapping table, based on the number of each group of messages corresponding to the user that has been declared, the message identifiers in the mapping table are grouped and numbered, and in the case that the serial number corresponding to the message to be currently declared is greater than the maximum serial number, and the declaration state of each message is all successful, the main message identifier and the sub-message identifier in the mapping table are deleted, and the declaration state in the mapping table is updated to the state of being to be declared, thereby improving the reliability and accuracy of message sending.

[0070] Figure 3 A flowchart of a message sending method provided in the embodiment of the disclosure.

[0071] As shown in Figure 3 , the method comprises:

[0072] Step 301, based on the service data of the message associated with the first serial number to be currently declared, the content of the message to be currently declared is determined.

[0073] Step 302, in the case that the message content is greater than the threshold value, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to the state of being to be declared.

[0074] Step 303, re-grouping each message with a declaration state of declaration failure in the first mapping table to determine a third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number.

[0075] Step 304, returning to perform an operation of determining the content of the current message to be declared based on the service data of the message associated with the first third serial number in the first mapping table, until the determined message content is less than or equal to the threshold, and sending the determined message content.

[0076] The specific implementation forms of steps 301 to 304 can refer to the detailed description in other embodiments of the present disclosure, which will not be repeated here.

[0077] Step 305, receiving a declaration receipt.

[0078] The declaration receipt can be a receipt for indicating the declaration result of the message.

[0079] In the present disclosure, after sending the determined message content, in order to determine whether the message content is sent successfully and avoid the situation of missing or wrong sending of the message, the declaration receipt of the message can be received, thereby improving the reliability of the message declaration.

[0080] Step 306, in the case that the declaration receipt indicates a declaration failure, sending the determined message content and the declaration failure indication information to a preset server to check the determined message content.

[0081] In the present disclosure, after receiving the declaration receipt, in the case that the declaration receipt indicates a declaration failure, it can be determined that the message content sending fails, at this time, the determined message content and the declaration failure indication information can be sent to the preset server to check the determined message content, thereby improving the reliability of the message sending.

[0082] It should be noted that the declaration failure indication information in the declaration receipt can indicate any declaration failure reason. For example, the declaration indication information can indicate that the size of the currently determined message content exceeds the specification requirement size, etc., which is not limited in the present disclosure.

[0083] It should be noted that when the reason for the declaration failure of the determined message content is that the size of the message content exceeds the specification requirement size, the subsequent message associated with the message content will no longer continue to be declared, and the message content of the declaration failure can be sent to the relevant checking personnel for checking, which is not limited in the present disclosure.

[0084] Step 307, updating the declaration state of each message with a declaration state of to-be-declared in the first mapping table to a declaration failure.

[0085] In the present disclosure, after sending the determined message content and the report failure indication information to the preset server, the report states of all messages in the first mapping table whose report states are in the to-be-reported state are updated to the report failure, thereby improving the reliability of message reporting.

[0086] Optionally, after updating the report states of all messages in the first mapping table whose report states are in the to-be-reported state to the report failure, indication information is sent to the server, where the indication information is used to indicate suspension of reporting of the determined message content, so that the server can temporarily store the received message content, and when the determined message content is reported again, only the message content whose report state is in the report failure state is sent to the server, thereby effectively avoiding the situation of missing or incorrect sending of the message content during reporting of the message content, and improving the reliability and efficiency of sending of the message content.

[0087] In the embodiment of the present disclosure, first, based on the service data of the message associated with the first sequence number in the to-be-reported state, the message content to be reported at present is determined, and in the case where the message content is greater than a threshold, the report states of the messages associated with the first sequence number and each second sequence number located after the first sequence number in the first mapping table are updated to the report failure. Then, the messages whose report states are in the report failure state in the first mapping table are re-grouped, the third sequence number corresponding to each group of messages is determined, and based on the service data of the message associated with the first third sequence number in the first mapping table, the operation of determining the message content to be reported at present is performed until the determined message content is less than or equal to the threshold. In the case where the determined message content is less than or equal to the threshold, the determined message content is sent, and then a report receipt is received. In the case where the report receipt indicates the report failure, the determined message content and the report failure indication information are sent to the preset server for checking of the determined message content. Finally, the report states of all messages in the first mapping table whose report states are in the to-be-reported state are updated to the report failure. Thus, after sending the determined message content, in the case where the received report receipt indicates the report failure, the determined message content and the report failure indication information are sent to the server for checking, and the report states of the messages in the mapping table whose report states are in the to-be-reported state are updated to the report failure, thereby improving the reliability and accuracy of sending of the message content.

[0088] Figure 4 A flowchart of a message sending method provided by the embodiment of the present disclosure is shown.

[0089] As shown in Figure 4 , the method comprises:

[0090] Step 401, based on the service data of the message associated with the first sequence number in the to-be-reported state, the message content to be reported at present is determined.

[0091] Step 402, in the case that the message content is greater than the threshold value, the declaration state of the message associated with the first serial number and each second serial number located after the first serial number in the first mapping table is updated to declaration failure.

[0092] Step 403, re-grouping each message with the declaration state of declaration failure in the first mapping table to determine the third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number.

[0093] Step 404, based on the service data of the message associated with the first third serial number in the first mapping table, returning to perform the operation of determining the current message content to be declared until the determined message content is less than or equal to the threshold value, and sending the determined message content.

[0094] Step 405, receiving a declaration receipt.

[0095] Step 406, in the case that the declaration receipt indicates declaration failure, sending the determined message content and the declaration failure indication information to the preset server to check the determined message content.

[0096] Step 407, updating the declaration state of each message with the declaration state of to-be-declared in the first mapping table to declaration failure.

[0097] The specific implementation form of steps 401 to 407 can refer to the detailed description in other embodiments of the present disclosure, which will not be repeated here.

[0098] Step 408, in the case that the message content update instruction returned by the preset server is received, obtaining the updated message content.

[0099] In the present disclosure, after sending the determined message content and the declaration failure indication information to the server, in the case that the message content update instruction returned by the server is received, the message content can be updated and the updated message content can be obtained, thereby improving the success rate of message declaration.

[0100] It should be noted that when updating the message content, the message content can be updated by re-grouping the message content and reducing the number of messages in each group, which is not limited in the present disclosure.

[0101] Step 409, in the case that it is determined that there is no other message content being sent, sending the updated message content, and updating the declaration state of each message with the declaration state of declaration failure in the first mapping table to to-be-declared.

[0102] In the present disclosure, after obtaining the updated message content, in the case that there is no other message content being sent at present, the updated message content can be sent, and the declaration state of all messages with the declaration state of failure in the first mapping table is updated to be pending declaration, thereby improving the accuracy and success rate of message sending.

[0103] In the embodiment of the present disclosure, first, the message content to be declared at present is determined based on the service data of the message associated with the first serial number to be declared at present. In the case that the message content is greater than the threshold, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to be failure of declaration. Then, each message with the declaration state of failure of declaration in the first mapping table is regrouped, the third serial number corresponding to each group of messages is determined, and the operation of determining the message content to be declared at present is executed based on the service data of the message associated with the first third serial number in the first mapping table, until the determined message content is less than or equal to the threshold. In the case that the determined message content is less than or equal to the threshold, the determined message content is sent, and then the declaration receipt is received. In the case that the declaration receipt indicates failure of declaration, the determined message content and the indication information of failure of declaration are sent to the preset server, so as to check the determined message content, and the declaration state of all messages with the declaration state of pending declaration in the first mapping table is updated to be failure of declaration. In the case that the message content update instruction returned by the preset server is received, the updated message content is obtained. Finally, in the case that there is no other message content being sent at present, the updated message content is sent, and the declaration state of all messages with the declaration state of failure of declaration in the first mapping table is updated to be pending declaration. Thus, after the determined message content is sent, in the case that the declaration receipt indicates failure of declaration, the determined message content and the indication information of failure of declaration are sent to the server, the declaration state of the message with the declaration state of pending declaration in the mapping table is updated to be failure of declaration, and in the case that the message content update instruction returned by the server is received, the message content is updated, and in the case that there is no other message content being sent at present, the updated message content is sent, and the declaration state of the message with the declaration state of failure of declaration in the mapping table is updated to be pending declaration, thereby improving the success rate and reliability of message sending.

[0104] Figure 5 A flowchart of a message sending method provided by the embodiment of the present disclosure is shown in the figure.

[0105] As shown in the figure, the method comprises the following steps. Figure 5

[0106] In step 501, the message content to be declared at present is determined based on the service data of the message associated with the first serial number to be declared at present.

[0107] ​Step 502, in the case that the message content is greater than the threshold value, the declaration state of the message associated with the first serial number and each second serial number located after the first serial number in the first mapping table is updated to declaration failure.

[0108] Step 503, each message with the declaration state of declaration failure in the first mapping table is regrouped to determine the third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number.

[0109] Step 504, based on the service data of the message associated with the first third serial number in the first mapping table, the operation of determining the content of the current message to be declared is executed until the determined message content is less than or equal to the threshold value, and the determined message content is sent.

[0110] Step 505, a declaration receipt is received.

[0111] Step 506, in the case that the declaration receipt indicates declaration failure, the determined message content and the declaration failure indication information are sent to a preset server to check the determined message content.

[0112] Step 507, the declaration state of each message with the declaration state of to-be-declared in the first mapping table is updated to declaration failure.

[0113] The specific implementation forms of steps 501 to 507 can refer to the detailed description in other embodiments of the present disclosure, and will not be described in detail here.

[0114] Step 508, the second main message identifier and the second sub-message identifier corresponding to the third user in the current declaration period are determined.

[0115] In the present disclosure, after updating the declaration state of each message with the declaration state of to-be-declared in the first mapping table to declaration failure, in the case that there is a third user with to-be-declared messages in the current declaration period, the second main message identifier and the second sub-message identifier corresponding to the third user in the current declaration period can be determined first, thereby providing conditions for declaring the messages of the third user.

[0116] Step 509, a second mapping table is generated based on the second main message identifier and the second sub-message identifier.

[0117] In the present disclosure, after determining the second main message identifier and the second sub-message identifier corresponding to the third user, since there are un-declared message identifiers in the first mapping table, in order to avoid message sending disorder, and the message identifiers in the first mapping table may continue to be declared subsequently, at this time, a second mapping table can be generated based on the second main message identifier and the second sub-message identifier, thereby improving the efficiency and accuracy of message declaration.

[0118] At step 510, based on the number of each group of messages corresponding to the first user, the message identifiers in the second mapping table are sequentially numbered in groups to determine the sequence number corresponding to each group of messages.

[0119] In the present disclosure, after generating the second mapping table, in order to improve the success rate of sending the second primary message and the second sub-message of the third user, based on the number of each group of messages corresponding to the first user, the message identifiers in the second mapping table are sequentially numbered in groups to determine the sequence number corresponding to each group of messages.

[0120] It should be noted that when the message identifiers in the second mapping table are sequentially numbered in groups based on the number of each group of messages corresponding to the first user, the number of messages contained in each group in the second mapping table can be less than or equal to the number of each group of messages corresponding to the first user, and the present disclosure does not limit this.

[0121] At step 511, based on the order of the group numbers in the second mapping table from small to large, the message content corresponding to each group number is sequentially sent.

[0122] In the present disclosure, after determining the sequence number corresponding to each group of messages in the second mapping table, based on the order of the group numbers in the second mapping table from small to large, the message content corresponding to each group number is sequentially sent, thereby effectively avoiding the situation of missing and wrong sending when sending messages, and improving the reliability of message sending.

[0123] In the embodiments of the present disclosure, first, the service data of the message associated with the first serial number to be reported is determined to determine the message content to be reported currently. In the case that the message content is greater than a threshold, the reporting state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to reporting failure. Then, each message with reporting failure in the first mapping table is regrouped to determine the third serial number corresponding to each group of messages. The service data of the message associated with the first third serial number in the first mapping table is returned to perform the operation of determining the message content to be reported currently until the determined message content is less than or equal to the threshold. In the case that the reporting reply indicates reporting failure, the determined message content and the reporting failure indication information are sent to the preset server to check the determined message content, and the reporting state of all messages with reporting state to be reported in the first mapping table is updated to reporting failure. Then, the second main message identifier and the second sub-message identifier corresponding to the third user in the current reporting period are determined, and the second mapping table is generated based on the second main message identifier and the second sub-message identifier. Finally, each message identifier in the second mapping table is sequentially grouped and numbered based on the number of each group of messages corresponding to the first user, the serial number corresponding to each group of messages is determined, and the message content corresponding to each grouping number is sequentially sent based on the order of the grouping number from small to large in the second mapping table. Thus, after the determined message content in the first mapping table is sent, in the case that the reporting reply received indicates reporting failure, the determined message content and the reporting failure indication information are sent to the server, and the reporting state of all messages to be reported in the first mapping table is updated to reporting failure. Then, the main message identifier and the sub-message identifier of other users in the current reporting period are determined, and the second mapping table is generated. Each message identifier in the second mapping table is grouped and numbered based on the number of each group of messages corresponding to the first user in the first mapping table, and the message content corresponding to each grouping number is sequentially sent, thereby effectively avoiding the missing and wrong sending of messages when sending messages, and improving the efficiency and reliability of message sending.

[0124] To implement the above-mentioned embodiments, the present disclosure further provides a message sending device.

[0125] Figure 6 A structural schematic diagram of a message sending device provided by the embodiments of the present disclosure.

[0126] As shown in Figure 6 , the message sending device 600 can include:

[0127] A first determining module 601 is configured to determine the message content to be reported currently based on the service data of the message associated with the first serial number to be reported.

[0128] The updating module 602 is configured to update the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table to a declaration failure when the message content is greater than the threshold value.

[0129] The second determining module 603 is configured to re-group each message with the declaration state of declaration failure in the first mapping table, and determine a third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number.

[0130] The processing module 604 is configured to return to perform an operation of determining the message content to be declared currently based on the service data of the message associated with the first third serial number in the first mapping table until the determined message content is less than or equal to the threshold value, and then send the determined message content.

[0131] Optionally, the first determining module 601 is specifically configured to:

[0132] In a case where the first serial number is less than or equal to the maximum serial number in the first mapping table, the service data of the message associated with the first serial number is used to determine the message content to be declared currently.

[0133] Optionally, the method further includes:

[0134] The third determining module (not shown in the figure) is configured to determine the first main message identifier and the first sub-message identifier corresponding to the first user in the current declaration period.

[0135] The storage module (not shown in the figure) is configured to sequentially store the first main message identifier and the first sub-message identifier in the first mapping table.

[0136] The grouping module (not shown in the figure) is configured to sequentially group and number each message identifier in the first mapping table based on the number of each group of messages corresponding to the second user that has completed declaration, and determine a serial number corresponding to each group of messages.

[0137] Optionally, the method further includes:

[0138] The fourth determining module (not shown in the figure) is configured to determine the declaration state of each message in the first mapping table in a case where the first serial number to be declared currently is greater than the maximum serial number in the first mapping table.

[0139] The updating module (not shown in the figure) is configured to delete the first main message identifier and the first sub-message identifier in the first mapping table and update the declaration state of each message in the first mapping table to a to-be-declared state in a case where the declaration state of each message in the first mapping table is all declaration success.

[0140] Optionally, the processing module 604 is further configured to:

[0141] receiving the declaration receipt;

[0142] In the case that the declaration receipt indicates a failed declaration, the determined message content and the failed declaration indication information are sent to the preset service end to check the determined message content.

[0143] The declaration status of all messages with the declaration status of to-be-declared in the first mapping table is updated to failed declaration.

[0144] Optionally, the processing module 604 is further configured to:

[0145] sending indication information, wherein the indication information is used to indicate suspension of declaration of the determined message content.

[0146] Optionally, the processing module 604 is further configured to:

[0147] In the case that the message content update instruction returned by the preset service end is received, the updated message content is obtained.

[0148] In the case that it is determined that there is no other message content being sent at present, the updated message content is sent, and the declaration status of all messages with the declaration status of failed declaration in the first mapping table is updated to to-be-declared.

[0149] Optionally, the processing module 604 is further configured to:

[0150] determining the second main message identifier and the second sub-message identifier corresponding to the third user in the current declaration period;

[0151] generating a second mapping table based on the second main message identifier and the second sub-message identifier;

[0152] based on the number of each group of messages corresponding to the first user, sequentially grouping and numbering each message identifier in the second mapping table to determine a serial number corresponding to each group of messages;

[0153] based on the order of the group numbers in the second mapping table from small to large, sequentially sending the message content corresponding to each group number.

[0154] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, which will not be described here.

[0155] In the present disclosure, first, based on the service data of the message associated with the first serial number to be declared currently, the message content to be declared currently is determined, in the case that the message content is greater than a threshold, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table is updated to declaration failure respectively, then each message with the declaration state of declaration failure in the first mapping table is regrouped, the third serial number corresponding to each group of messages is determined, finally, based on the service data of the message associated with the first third serial number in the first mapping table, the operation of determining the message content to be declared currently is executed, until the determined message content is less than or equal to the threshold, the determined message content is sent. Thus, in the case that the message content associated with the first serial number to be declared currently is greater than the threshold, the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the mapping table is updated to declaration failure respectively, and the message grouping is performed again, the third serial number corresponding to each group is determined, the operation of determining the message content to be declared currently is executed, in the case that the message content is less than the threshold, the corresponding message content is sent. Thus, the situations of missing sending and wrong sending in the message sending process are effectively avoided, and the accuracy and reliability of the message sending are improved.

[0156] Figure 7 A block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure is shown.

[0157] Figure 7 The electronic device 12 shown is merely one example and should not be taken as limiting the scope of functionality or use of embodiments of the present disclosure.

[0158] As shown in Figure 7 The electronic device 12 is represented in the form of a general computing device. Components of the electronic device 12 can include, but are not limited to, one or more processors or processing units 16, a memory 28, a bus 18 that connects the different system components, including the memory 28 and the processing unit 16. The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or local bus using any of a variety of bus structures. Examples of such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0159] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that is accessible by electronic device 12 and includes both volatile and non-volatile media, removable and non-removable media.

[0160] Memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 7

[0161] Although Figure 7 In some embodiments, a magnetic hard disk drive (not shown) can be included for reading from, and writing to, a removable, non-volatile magnetic media (e.g., a "floppy disk"), and an optical disk drive can be included for reading from, and writing to, a removable, non-volatile optical disk (e.g., a Compact Disk Read Only Memory (CD-ROM), a Digital Video Disk (DVD), or other optical media). In these instances, each drive can be connected to the bus 18 by one or more data media interfaces. The memory 28 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

[0162] Program / utility 40, having a set (at least one) of program modules 42, can be stored in memory 28 by way of example, such as an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, can include implementation of a network environment. Program modules 42 generally carry out the functions and / or methodologies of embodiments of the disclosure as described herein.

[0163] ​The electronic device 12 can also communicate with one or more external devices 14 such as a keyboard or pointing device, a display 24, etc.; can also communicate with one or more devices that enable a human body to interact with the electronic device 12; and / or with any devices (e.g., a network card, a modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication can occur via Input / Output (I / O) interface 22. Still yet, the electronic device 12 can communicate with one or more networks (such as a Local Area Network (LAN), a Wide Area Network (WAN), and / or the Internet) through network adapter 20. As an example, network adapter 20 can enable the electronic device 12 to communicate with one or more devices on the Internet. The network adapter 20 can be any of a variety of modems, including cable modem, digital subscriber line (DSL), and / or the like. Furthermore, the network adapter 20 can be utilized to communicate with many other devices or systems. The network adapter 20 can be communicatively coupled to the other components of the electronic device 12 via bus 18. It should be appreciated that the network adapter 20 can be communicatively coupled to the other components of the electronic device 12 in a manner that is not shown in FIG. 1. It should be appreciated that various other hardware and / or software modules can be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0164] The processing unit 16 performs various functional applications and parameter information determinations by running programs stored in the memory 28, such as implementing the packet sending method mentioned in the foregoing embodiments.

[0165] To implement the above embodiments, the disclosure further proposes a non-transitory computer readable storage medium, having stored thereon a computer program, which when executed by a processor, implements the packet sending method as proposed in the foregoing embodiments of the disclosure.

[0166] To implement the above embodiments, the disclosure further proposes a computer program product, which when executed by a processor, implements the packet sending method as proposed in the foregoing embodiments of the disclosure.

[0167] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The disclosure is intended to cover any variations, uses or adaptations of the disclosure including its general principles and specific embodiments disclosed herein as well as its implementations and competitive implementations that incorporate the general principles and specific embodiments disclosed herein. The specification and examples given herein are to be considered illustrative and not restrictive. The scope of the disclosure is to be determined by the appended claims.

[0168] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims appended hereto.

[0169] It should be noted that in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise stated.

[0170] Any process or method descriptions in flow charts or described elsewhere herein can be understood as representing code modules, segments, or portions of code that include one or more executable instructions for implementing specific logic functions or other processes. The various embodiments of the present disclosure can include additional or fewer steps or processes, in other embodiments, the steps or processes can be performed in the same order as described or in an opposite order, in substantially simultaneous fashion, or in a different order.

[0171] It should be understood that various parts of the present disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: discrete logic circuit with logic gate circuit for implementing logic functions on data signals, application specific integrated circuit with suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA), etc.

[0172] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiments can be completed by programs instructing relevant hardware, and the programs can be stored in a computer readable storage medium, and when executed, include one or a combination of steps of the method embodiments.

[0173] In addition, each functional unit in each embodiment of the present disclosure can be integrated in one processing module, or each unit can exist physically, or two or more units can be integrated in one module. The above-mentioned integrated module can be realized in the form of hardware or in the form of software function module. When the integrated module is realized in the form of software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0174] The above-mentioned storage medium can be read-only memory, magnetic disk or optical disk, etc.

[0175] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the specification, the illustrative expressions of the above terms do not necessarily mean the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0176] Although the embodiments of the present disclosure have been shown and described above, it is understood that the above-described embodiments are exemplary and are not to be construed as limiting the present disclosure, and those skilled in the art can make changes, modifications, replacements and variations to the above-described embodiments within the scope of the present disclosure.

Claims

1. A message sending method characterized by, The method comprises the following steps: determining the content of the message to be declared based on the service data of the message associated with the first serial number to be declared currently; updating the declaration status of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table to declaration failure if the content of the message is greater than a threshold value; re-grouping each message with declaration status of declaration failure in the first mapping table, and determining the third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number; returning to the operation of determining the content of the message to be declared based on the service data of the message associated with the first third serial number in the first mapping table until the determined content of the message is less than or equal to the threshold value, and then sending the determined content of the message.

2. The method of claim 1, wherein, The method further comprises the following steps: determining the content of the message to be declared based on the service data of the message associated with the first serial number to be declared currently; 3. The method of claim 1, wherein, updating the declaration status of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table to declaration failure if the content of the message is greater than a threshold value. The method further comprises the following steps: determining the first main message identifier and the first sub-message identifier corresponding to the first user in the current declaration period; storing the first main message identifier and the first sub-message identifier in the first mapping table in sequence; 4. The method of claim 3, wherein, grouping and numbering each message identifier in the first mapping table in sequence based on the number of each group of messages corresponding to the second user that has completed declaration, and determining the serial number corresponding to each group of messages. The method further comprises the following steps: determining the declaration status of each message in the first mapping table if the first serial number to be declared currently is greater than the maximum serial number in the first mapping table; 5. The method according to any one of claims 1 to 4, characterized in that, deleting the first main message identifier and the first sub-message identifier in the first mapping table and updating the declaration status of each message in the first mapping table to the state of to-be-declared if the declaration status of each message in the first mapping table is all declaration success. After sending the determined content of the message, the method further comprises the following steps: receiving a declaration receipt; sending the determined content of the message and the declaration failure indication information to a preset server to check the determined content of the message if the declaration receipt indicates declaration failure; 6. The method of claim 5, wherein, updating the declaration status of all messages with the state of to-be-declared in the first mapping table to the state of declaration failure. After updating the declaration status of all messages with the state of to-be-declared in the first mapping table to the state of declaration failure, the method further comprises the following steps:

7. The method of claim 5, wherein, sending indication information, wherein the indication information is used to indicate that the declaration of the determined content of the message is suspended. After updating the declaration status of all messages with the state of to-be-declared in the first mapping table to the state of declaration failure, the method further comprises the following steps: obtaining updated content of the message if a message content update instruction returned by the preset server is received; sending the updated content of the message and updating the declaration status of all messages with the state of declaration failure in the first mapping table to the state of to-be-declared if it is determined that there is no other message content being sent currently.

8. The method of claim 5, wherein, after the updating of the declaration states of the messages in the first mapping table whose declaration states are all to be declared as to be declared to the declared failed, further comprising: determining a second main message identifier and a second sub-message identifier corresponding to the third user in a current declaration period; generating a second mapping table based on the second main message identifier and the second sub-message identifier; grouping and numbering each message identifier in the second mapping table in sequence based on the number of each group of messages corresponding to the first user that has been declared, and determining a serial number corresponding to each group of messages; sending the message content corresponding to each group number in sequence based on the order of the group numbers in the second mapping table from small to large.

9. A packet transmitting apparatus characterized by comprising: comprising: a first determining module configured to determine current to-be-declared message content based on service data of a message associated with a first serial number to be declared; an updating module configured to update the declaration state of the message associated with the first serial number and each second serial number after the first serial number in the first mapping table to be declared to the declared failed in the case that the message content is greater than a threshold value; a second determining module configured to re-group each message whose declaration state is the declared failed in the first mapping table, and determine a third serial number corresponding to each group of messages, wherein the number of messages associated with the third serial number is less than the number of messages associated with the first serial number; a processing module configured to return to perform the operation of determining the current to-be-declared message content based on the service data of the message associated with the first third serial number in the first mapping table until the determined message content is less than or equal to the threshold value, and then send the determined message content.

10. An electronic device, comprising: comprising: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions likely to be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.

11. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method of any one of claims 1-8.

12. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-8.

12. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-8.

Citation Information

Patent Citations

  • Method and device for adjusting group size

    CN105939282A

  • Message playback method and device, electronic equipment and computer readable medium

    CN114124555A