[go: up one dir, main page]

CN114422967A - Short message processing method, device and equipment - Google Patents

Short message processing method, device and equipment Download PDF

Info

Publication number
CN114422967A
CN114422967A CN202011173742.6A CN202011173742A CN114422967A CN 114422967 A CN114422967 A CN 114422967A CN 202011173742 A CN202011173742 A CN 202011173742A CN 114422967 A CN114422967 A CN 114422967A
Authority
CN
China
Prior art keywords
short message
blockchain node
blockchain
node
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011173742.6A
Other languages
Chinese (zh)
Other versions
CN114422967B (en
Inventor
王九九
沈超
李�浩
杨昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011173742.6A priority Critical patent/CN114422967B/en
Publication of CN114422967A publication Critical patent/CN114422967A/en
Application granted granted Critical
Publication of CN114422967B publication Critical patent/CN114422967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a short message processing method, a short message processing device and short message processing equipment, which are applied to a block chain short message platform, wherein the block chain short message platform comprises a plurality of block chain nodes, and the method comprises the following steps: a first block chain node receives a first short message from a second block chain node, wherein the first short message comprises short message content and an identifier of the second block chain node; the first block chain node sends a first response message to the second block chain node, where the first response message includes indication information, an identifier of the second block chain node, and an identifier of the first block chain node, and the indication information is used to indicate that the first block chain node successfully receives the first short message or unsuccessfully receives the first short message. The accuracy rate of determining the problem of short message sending failure is improved.

Description

短信处理方法、装置及设备SMS processing method, device and equipment

技术领域technical field

本申请涉及通讯技术领域,尤其涉及一种短信处理方法、装置及设备。The present application relates to the field of communication technologies, and in particular, to a method, device and device for processing short messages.

背景技术Background technique

企业平台向用户终端发送短信时,通常会根据短信代理平台向用户终端发送短信。例如,短信代理平台接收到企业平台发送的短信后,向短信网关(运营商提供的短信发送入口)发送该短信,短信网关接收短信代理平台发送的短信后,再向用户终端发送该短信。When the enterprise platform sends a short message to a user terminal, it usually sends a short message to the user terminal according to the short message agent platform. For example, after receiving the short message sent by the enterprise platform, the short message proxy platform sends the short message to the short message gateway (the portal for sending short messages provided by the operator), and the short message gateway sends the short message to the user terminal after receiving the short message sent by the short message proxy platform.

目前,不同的短信代理平台之间存在短信代发送的现象,使得短信在发送过程中会经过多个短信代理平台的业务节点。例如,短信代理平台接收到企业发送的短信后,会向其他的短信代理平台发送该短信,进而通过其他的短信代理平台向短信网关发送该短信。然而,由于短信发送过程中只有发送端和接收端的两个业务节点之间可以进行数据交互,因此,短信网关仅能获取最后一个短信代理平台的业务节点信息,无法获取每个短信代理平台的业务节点信息,当短信发送失败时,无法准确的确定短信发送失败的问题。At present, there is a phenomenon of sending short messages on behalf of different short message proxy platforms, so that the short message will pass through the business nodes of multiple short message proxy platforms during the sending process. For example, after receiving the short message sent by the enterprise, the short message proxy platform will send the short message to other short message proxy platforms, and then send the short message to the short message gateway through other short message proxy platforms. However, since only the two service nodes of the sender and the receiver can exchange data during the SMS sending process, the SMS gateway can only obtain the service node information of the last SMS proxy platform, and cannot obtain the services of each SMS proxy platform. Node information, when SMS sending fails, it is impossible to accurately determine the problem of SMS sending failure.

发明内容SUMMARY OF THE INVENTION

本申请提供一种短信处理方法、装置及设备。提高确定短信发送失败的问题的准确率。The present application provides a method, device and device for processing short messages. Improves the accuracy of identifying issues with SMS delivery failures.

第一方面,本申请实施例提供一种短信处理方法,应用于区块链短信平台,所述区块链短信平台包括多个区块链节点,所述方法包括:In a first aspect, an embodiment of the present application provides a method for processing short messages, which is applied to a blockchain short message platform, where the blockchain short message platform includes a plurality of blockchain nodes, and the method includes:

第一区块链节点从第二区块链节点接收第一短信,所述第一短信包括短信内容和所述第二区块链节点的标识;The first blockchain node receives a first short message from the second blockchain node, and the first short message includes the content of the short message and the identifier of the second blockchain node;

所述第一区块链节点向所述第二区块链节点发送第一响应消息,所述第一响应消息中包括指示信息、所述第二区块链节点的标识和所述第一区块链节点的标识,所述指示信息用于指示所述第一区块链节点成功接收所述第一短信或者未成功接收所述第一短信。The first blockchain node sends a first response message to the second blockchain node, where the first response message includes indication information, the identifier of the second blockchain node and the first area The identifier of the blockchain node, and the indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message.

在一种可能的实施方式中,若所述第一短信为所述第二区块链节点从第三区块链节点接收到的,则所述第一短信还包括所述第三区块链节点的标识。In a possible implementation manner, if the first short message is received by the second blockchain node from a third blockchain node, the first short message further includes the third blockchain The ID of the node.

在一种可能的实施方式中,在所述第一响应消息中,所述第二区块链节点的标识和所述第一区块链节点的标识按照第一顺序排列,所述第一顺序用于指示所述短信内容所经过的设备的顺序。In a possible implementation manner, in the first response message, the identifier of the second blockchain node and the identifier of the first blockchain node are arranged in a first order, and the first order It is used to indicate the order of the devices that the short message content passes through.

在一种可能的实施方式中,若所述第一区块链节点未成功接收所述第一短信,所述第一响应消息中还包括失败信息,所述失败信息用于指示所述第一区块链未成功接收所述第一短信的原因。In a possible implementation, if the first blockchain node fails to receive the first short message, the first response message further includes failure information, where the failure information is used to indicate the first short message The reason why the blockchain did not successfully receive the first SMS.

在一种可能的实施方式中,若所述第一区块链节点成功接收所述第一短信,所述方法还包括:In a possible implementation, if the first blockchain node successfully receives the first short message, the method further includes:

所述第一区块链节点根据所述第一短信生成第二短信,所述第二短信包括所述短信内容、所述第二区块链节点的标识和所述第一区块链节点的标识;The first block chain node generates a second short message according to the first short message, and the second short message includes the content of the short message, the identifier of the second block chain node, and the identifier of the first block chain node. identification;

所述第一区块链节点向第一设备发送所述第二短信,所述第一设备为区块链节点或者用户设备。The first blockchain node sends the second short message to a first device, where the first device is a blockchain node or a user equipment.

在一种可能的实施方式中,所述第一设备为区块链节点;所述第一区块链节点向第一设备发送所述第二短信之后,还包括:In a possible implementation manner, the first device is a blockchain node; after the first blockchain node sends the second short message to the first device, the method further includes:

所述第一区块链节点接收所述第一设备发送的第二响应消息;receiving, by the first blockchain node, a second response message sent by the first device;

所述第一区块链节点向所述第二区块链节点发送所述第二响应消息。The first blockchain node sends the second response message to the second blockchain node.

在一种可能的实施方式中,所述第一设备为用户设备;所述第一区块链节点向第一设备发送所述第二短信之后,还包括:In a possible implementation manner, the first device is a user equipment; after the first blockchain node sends the second short message to the first device, the method further includes:

所述第一区块链节点向所述用户设备发送状态请求消息;sending, by the first blockchain node, a status request message to the user equipment;

所述第一区块链节点接收所述用户设备发送的状态信息,所述状态信息用于指示所述用户设备成功接收所述第二短信或者未成功接收所述第二短信;The first blockchain node receives status information sent by the user equipment, where the status information is used to indicate that the user equipment successfully receives the second short message or fails to receive the second short message;

所述第一区块链节点向所述第二区块链节点发送所述状态信息。The first blockchain node sends the state information to the second blockchain node.

第二方面,本申请实施例提供一种短信处理装置,应用于区块链短信平台,所述区块链短信平台包括多个区块链节点,所述装置包括:第一接收模块、发送模块,其中:In a second aspect, an embodiment of the present application provides a short message processing device, which is applied to a blockchain short message platform, where the blockchain short message platform includes a plurality of blockchain nodes, and the device includes: a first receiving module and a sending module ,in:

所述第一接收模块用于,第一区块链节点从第二区块链节点接收第一短信,所述第一短信包括短信内容和所述第二区块链节点的标识;The first receiving module is used for the first blockchain node to receive a first short message from the second blockchain node, where the first short message includes the content of the short message and the identifier of the second blockchain node;

所述发送模块用于,所述第一区块链节点向所述第二区块链节点发送第一响应消息,所述第一响应消息中包括指示信息、所述第二区块链节点的标识和所述第一区块链节点的标识,所述指示信息用于指示所述第一区块链节点成功接收所述第一短信或者未成功接收所述第一短信。The sending module is used for the first blockchain node to send a first response message to the second blockchain node, where the first response message includes indication information, the information of the second blockchain node. The identifier and the identifier of the first blockchain node, and the indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message.

在一种可能的实施方式中,若所述第一短信为所述第二区块链节点从第三区块链节点接收到的,则所述第一短信还包括所述第三区块链节点的标识。In a possible implementation manner, if the first short message is received by the second blockchain node from a third blockchain node, the first short message further includes the third blockchain The ID of the node.

在一种可能的实施方式中,在所述第一响应消息中,所述第二区块链节点的标识和所述第一区块链节点的标识按照第一顺序排列,所述第一顺序用于指示所述短信内容所经过的设备的顺序。In a possible implementation manner, in the first response message, the identifier of the second blockchain node and the identifier of the first blockchain node are arranged in a first order, and the first order It is used to indicate the order of the devices that the short message content passes through.

在一种可能的实施方式中,若所述第一区块链节点未成功接收所述第一短信,所述第一响应消息中还包括失败信息,所述失败信息用于指示所述第一区块链未成功接收所述第一短信的原因。In a possible implementation, if the first blockchain node fails to receive the first short message, the first response message further includes failure information, where the failure information is used to indicate the first short message The reason why the blockchain did not successfully receive the first SMS.

在另一种可能的实施方式中,所述装置还包括生成模块,所述生成模块用于:In another possible implementation manner, the apparatus further includes a generating module, and the generating module is configured to:

所述第一区块链节点根据所述第一短信生成第二短信,所述第二短信包括所述短信内容、所述第二区块链节点的标识和所述第一区块链节点的标识;The first block chain node generates a second short message according to the first short message, and the second short message includes the content of the short message, the identifier of the second block chain node, and the identifier of the first block chain node. identification;

所述第一区块链节点向第一设备发送所述第二短信,所述第一设备为区块链节点或者用户设备。The first blockchain node sends the second short message to a first device, where the first device is a blockchain node or a user equipment.

在另一种可能的实施方式中,所述装置还包括第二接收模块,所述第二接收模块用于:In another possible implementation manner, the apparatus further includes a second receiving module, and the second receiving module is configured to:

所述第一区块链节点接收所述第一设备发送的第二响应消息;receiving, by the first blockchain node, a second response message sent by the first device;

所述第一区块链节点向所述第二区块链节点发送所述第二响应消息。The first blockchain node sends the second response message to the second blockchain node.

在另一种可能的实施方式中,所述装置还包括第二发送模块,所述第二发送模块用于:In another possible implementation manner, the apparatus further includes a second sending module, and the second sending module is configured to:

所述第一区块链节点向所述用户设备发送状态请求消息;sending, by the first blockchain node, a status request message to the user equipment;

所述第一区块链节点接收所述用户设备发送的状态信息,所述状态信息用于指示所述用户设备成功接收所述第二短信或者未成功接收所述第二短信;The first blockchain node receives status information sent by the user equipment, where the status information is used to indicate that the user equipment successfully receives the second short message or fails to receive the second short message;

所述第一区块链节点向所述第二区块链节点发送所述状态信息。The first blockchain node sends the state information to the second blockchain node.

第三方面,本申请实施例提供一种短信处理设备,包括:存储器、处理器和通信接口,所述存储器用于存储程序指令,所述处理器用于调用存储器中的程序指令执行如第一方面任一项所述的短信处理方法。In a third aspect, an embodiment of the present application provides a short message processing device, including: a memory, a processor, and a communication interface, where the memory is used for storing program instructions, and the processor is used for calling the program instructions in the memory to execute the execution as in the first aspect Any one of the short message processing methods.

第四方面,本申请实施例提供一种可读存储介质,所述可读存储介质上存储有计算机程序;所述计算机程序用于实现如第一方面任一项所述的短信处理方法。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium; the computer program is used to implement the short message processing method according to any one of the first aspect.

本申请提供一种短信处理方法、装置及设备,应用于区块链短信平台,其中,区块链短信平台包括多个区块链节点。第一区块链节点从第二区块链节点接收第一短信,其中第一短信包括短信内容和第二区块链节点的标识。第一区块链节点向第二区块链节点发送第一响应消息,第一响应消息中包括指示信息、第二区块链节点的标识和第一区块链节点的标识,其中,指示信息用于指示第一区块链节点成功接收第一短信或者未成功接收第一短信。上述方法中,当短信发送失败时,根据第一响应消息中的指示信息和区块链节点的标识,可以准确的确定短信发送失败的节点,进而提高确定短信发送失败的问题的准确率。The present application provides a method, device and device for processing short messages, which are applied to a blockchain short message platform, wherein the blockchain short message platform includes a plurality of blockchain nodes. The first block chain node receives the first short message from the second block chain node, wherein the first short message includes the content of the short message and the identifier of the second block chain node. The first blockchain node sends a first response message to the second blockchain node, where the first response message includes indication information, the identity of the second blockchain node and the identity of the first blockchain node, wherein the indication information It is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message. In the above method, when the short message fails to be sent, according to the indication information in the first response message and the identifier of the blockchain node, the node that fails to send the short message can be accurately determined, thereby improving the accuracy of determining the problem of the failure to send the short message.

附图说明Description of drawings

图1为本申请提供的区块链短信平台的示意图;Fig. 1 is the schematic diagram of the block chain short message platform provided by this application;

图2为本申请实施例提供的一种应用场景示意图;2 is a schematic diagram of an application scenario provided by an embodiment of the present application;

图3为本申请实施例提供的另一种可能的应用场景;FIG. 3 provides another possible application scenario of the embodiment of the present application;

图4为本申请实施例提供的再一种可能的应用场景;Fig. 4 is another possible application scenario provided by the embodiment of the present application;

图5为本申请实施例提供的一种短信处理方法的流程示意图;5 is a schematic flowchart of a method for processing a short message according to an embodiment of the present application;

图6A为本申请实施例提供的一种第一区块链节点从第二区块链节点接收第一短信的示意图;6A is a schematic diagram of a first blockchain node receiving a first short message from a second blockchain node according to an embodiment of the present application;

图6B为本申请实施例提供的另一种第一区块链节点从第二区块链节点接收第一短信的示意图;6B is a schematic diagram of another first block chain node receiving a first short message from a second block chain node according to an embodiment of the present application;

图7为本申请实施例提供的一种发送第一响应消息的示意图;7 is a schematic diagram of sending a first response message according to an embodiment of the present application;

图8为本申请实施例提供的另一种发送第一响应消息的示意图;FIG. 8 is another schematic diagram of sending a first response message according to an embodiment of the present application;

图9为本申请实施例提供的另一种短信处理方法的流程示意图;9 is a schematic flowchart of another short message processing method provided by an embodiment of the present application;

图10为本申请实施例提供的生成第二短信的示意图;10 is a schematic diagram of generating a second short message according to an embodiment of the present application;

图11为本申请实施例提供的一种获取第一设备的信息的流程示意图;FIG. 11 is a schematic flowchart of acquiring information of a first device according to an embodiment of the present application;

图12为本申请实施例提供的一种发送第二响应消息的过程;FIG. 12 provides a process for sending a second response message according to an embodiment of the present application;

图13为本申请实施例提供的另一种获取第一设备的信息的流程示意图;FIG. 13 is another schematic flowchart of acquiring information of a first device according to an embodiment of the present application;

图14为本申请实施例提供的发送状态信息的过程;FIG. 14 is a process of sending status information provided by an embodiment of the present application;

图15为本申请实施例提供的一种短信处理方法的过程示意图;15 is a schematic process diagram of a method for processing a short message provided by an embodiment of the present application;

图16为本申请实施例提供的一种短信处理装置的结构示意图;FIG. 16 is a schematic structural diagram of a short message processing apparatus provided by an embodiment of the application;

图17为本申请实施例提供的另一种短信处理装置结构示意图;17 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application;

图18为本申请实施例提供的另一种短信处理装置结构示意图;FIG. 18 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application;

图19为本申请实施例提供的另一种短信处理装置结构示意图;FIG. 19 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application;

图20为本申请提供的短信处理设备的硬件结构示意图。FIG. 20 is a schematic diagram of the hardware structure of the short message processing device provided by the application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

为了便于理解,首先对本申请所涉及的概念进行介绍。For ease of understanding, the concepts involved in this application are first introduced.

区块链短信平台:基于区块链搭建的短信发送平台,其中,区块链包括分布式共享账本和数据库。例如,区块链可以由分布在不同地方的多个节点共同完成记账的过程,并且每一个节点记录的是完整的账目。区块链短信平台中包括多个区块链节点,每个区块链节点可以为区块链中的一个服务器。Blockchain short message platform: a short message sending platform based on blockchain, in which the blockchain includes distributed shared ledgers and databases. For example, the blockchain can be completed by multiple nodes distributed in different places to complete the accounting process, and each node records a complete account. The blockchain SMS platform includes multiple blockchain nodes, and each blockchain node can be a server in the blockchain.

下面结合图1,详细介绍本申请中的区块链短信平台。The following describes the blockchain short message platform in this application in detail with reference to FIG. 1 .

图1为本申请提供的区块链短信平台的示意图。请参见图1,区块链短信平台中包括短信代理平台、企业平台、用户终端、短信网关、服务器、网关节点、共识节点和数据存储。其中,网关节点用于提供区块链短信平台业务服务的接口服务,接收不同角色的区块链短信相关的请求,并转发至共识节点。例如,网关节点可以接收短信代理平台、企业平台、用户终端和短信网关的短信发送请求。共识节点为区块链短信平台底层结构,主要实现共识过程,并记录区块链短信相关数据到分布式共享账本。例如,每个共识节点记录的账本都是完整的账目。数据存储为区块链短信平台的存储单元,用于区块链短信数据的持久化存储。FIG. 1 is a schematic diagram of the blockchain short message platform provided by the present application. Please refer to Figure 1. The blockchain SMS platform includes SMS agent platform, enterprise platform, user terminal, SMS gateway, server, gateway node, consensus node and data storage. Among them, the gateway node is used to provide the interface service of the blockchain short message platform business service, receive requests related to blockchain short messages of different roles, and forward it to the consensus node. For example, the gateway node can receive short message sending requests from the short message agent platform, the enterprise platform, the user terminal and the short message gateway. The consensus node is the underlying structure of the blockchain SMS platform, which mainly implements the consensus process and records the blockchain SMS related data to the distributed shared ledger. For example, the ledger recorded by each consensus node is a complete ledger. Data storage is the storage unit of the blockchain SMS platform, which is used for persistent storage of blockchain SMS data.

请参见图1,企业平台的区块链节点可以提供区块链短信的内容,短信代理平台的区块链节点可以为区块链短信提供中转业务,短信网关的区块链节点用于接收区块链短信,用户终端的区块链节点用于接收区块链短信,并生成状态信息。Please refer to Figure 1, the blockchain node of the enterprise platform can provide the content of the blockchain SMS, the blockchain node of the SMS agent platform can provide the transfer service for the blockchain SMS, and the blockchain node of the SMS gateway is used for the receiving area Blockchain SMS, the blockchain node of the user terminal is used to receive the blockchain SMS and generate status information.

当企业平台需要在区块链短信平台中向用户终端发送区块链短信时,企业平台的区块链节点可以创建区块链短信,并向短信代理平台的区块链节点发送该区块链短信。短信代理平台的区块链节点接收到该短信后,向短信网关的区块链节点发送该区块链短信。短信网关的区块链节点接收到该区块链短信后,向用户终端的区块链节点发送该区块链短信。用户终端接收到该区块链短信后可以生成状态信息。When the enterprise platform needs to send a blockchain SMS to the user terminal in the blockchain SMS platform, the blockchain node of the enterprise platform can create a blockchain SMS and send the blockchain to the blockchain node of the SMS agency platform. Short message. After receiving the short message, the blockchain node of the short message agent platform sends the blockchain short message to the blockchain node of the short message gateway. After receiving the blockchain short message, the blockchain node of the SMS gateway sends the blockchain short message to the blockchain node of the user terminal. The user terminal can generate status information after receiving the blockchain short message.

在实际的短信发送过程中,由于短信发送需要向运营商申请短信接入号,很多企业不具备申请短信接入号的能力,因此,企业平台向用户终端发送短信时,通常根据短信代理平台向用户终端发送短信。In the actual SMS sending process, since SMS sending needs to apply for a SMS access number from the operator, many enterprises do not have the ability to apply for a SMS access number. Therefore, when the enterprise platform sends SMS to the user terminal, it is usually based on the SMS agent platform. The user terminal sends a short message.

在相关技术中,由于短信代理平台之间存在短信代发的现象,而短信发送协议只能允许短信的发送端和接收端进行数据交互,使得短信网关无法获取每个短信代理平台的短信发送信息,当短信发送失败时,无法准确的确定短信发送失败的问题。In the related art, due to the phenomenon of SMS proxy sending between SMS proxy platforms, the SMS sending protocol can only allow the sender and receiver of SMS to exchange data, so that the SMS gateway cannot obtain the SMS sending information of each SMS proxy platform. , when the text message fails to be sent, the problem of the failure to send the text message cannot be accurately determined.

为了解决相关技术中无法准确确定短信发送失败的问题,在本申请实施例中,在区块链短信平台中发送短信,第一区块链节点从第二区块链节点接收第一短信,其中第一短信包括短信内容和第二区块链节点的标识。第一区块链节点向第二区块链节点发送第一响应消息,第一响应消息中包括指示信息、第二区块链节点的标识和第一区块链节点的标识,其中,指示信息用于指示第一区块链节点成功接收第一短信或者未成功接收第一短信。由于第一响应消息中包括指示信息、第一区块链节点标识和第二区块链节点标识,当短信发送失败时,根据指示信息和区块链节点的标识,可以确定短信发送失败的节点,进而提高确定短信发送失败的问题的准确率。In order to solve the problem that the failure to send a short message cannot be accurately determined in the related art, in the embodiment of the present application, the short message is sent in the blockchain short message platform, and the first blockchain node receives the first short message from the second blockchain node, wherein The first short message includes the content of the short message and the identifier of the second blockchain node. The first blockchain node sends a first response message to the second blockchain node, where the first response message includes indication information, the identity of the second blockchain node and the identity of the first blockchain node, wherein the indication information It is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message. Since the first response message includes the indication information, the first blockchain node identifier and the second blockchain node identifier, when the short message fails to be sent, the node that fails to send the short message can be determined according to the indication information and the identifier of the blockchain node. , thereby improving the accuracy of determining the problem of SMS sending failure.

为了便于理解,下面,结合图2,介绍本申请实施例的应用场景。For ease of understanding, an application scenario of the embodiment of the present application is introduced below with reference to FIG. 2 .

一种可能的场景,企业平台向用户终端发送短信失败时,企业平台可以获取发送失败的节点。结合图2,对该种可能的场景进行说明。In a possible scenario, when the enterprise platform fails to send a short message to the user terminal, the enterprise platform can obtain the node that fails to send the message. This possible scenario will be described with reference to FIG. 2 .

图2为本申请实施例提供的一种应用场景示意图。请参见图2,包括企业平台、短信代理平台1和短信代理平台2。企业平台创建短信,并向短信代理平台1发送该短信,短信代理平台1接收到该短信后,向短信代理平台2发送该短信。短信代理平台1向短信代理平台2发送短信失败,此时短信代理平台2向短信代理平台1发送响应消息,其中,响应消息包括短信代理平台1的标识、短信代理平台2的标识和指示短信发送失败的信息。短信代理平台1接收到响应消息后,向企业平台发送该响应消息,企业平台根据响应消息可以确定短信发送失败的原因为短信代理平台1向短信代理平台2发送失败。FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application. Please refer to Figure 2, including enterprise platform, SMS proxy platform 1 and SMS proxy platform 2. The enterprise platform creates a short message and sends the short message to the short message agency platform 1. After receiving the short message, the short message agency platform 1 sends the short message to the short message agency platform 2. The SMS proxy platform 1 fails to send a short message to the SMS proxy platform 2. At this time, the SMS proxy platform 2 sends a response message to the SMS proxy platform 1, wherein the response message includes the ID of the SMS proxy platform 1, the ID of the SMS proxy platform 2 and the instruction to send the text message. Failed information. After receiving the response message, the short message agency platform 1 sends the response message to the enterprise platform, and the enterprise platform can determine, according to the response message, that the reason for the failure to send the short message is that the short message agency platform 1 fails to send the message to the short message agency platform 2 .

另一种可能的场景,当用户终端接收到垃圾短信时,可以准确的确定发送垃圾短信的企业平台。结合图3,对该种可能的场景进行说明。In another possible scenario, when the user terminal receives the spam short message, the enterprise platform that sends the spam short message can be accurately determined. This possible scenario will be described with reference to FIG. 3 .

图3为本申请实施例提供的另一种可能的应用场景。请参见图3,包括企业平台、短信代理平台1、短信代理平台2、短信网关和用户终端。企业平台向短信代理平台1发送垃圾短信,短信代理平台1接收到垃圾短信后,向短信代理平台2发送垃圾短信,短信代理平台2接收到垃圾短信后,向短信网关发送垃圾短信,短信网关接收到垃圾短信后,向用户终端发送垃圾短信。当垃圾短信经过区块链短信平台中的每个节点时,会存储该节点的标识,进而可以准确的确定该垃圾短信的发送源头。FIG. 3 provides another possible application scenario of the embodiment of the present application. Please refer to FIG. 3 , including the enterprise platform, the short message proxy platform 1, the short message proxy platform 2, the short message gateway and the user terminal. The enterprise platform sends spam SMS to SMS agent platform 1. After SMS agent platform 1 receives the spam SMS, it sends spam SMS to SMS agent platform 2. After receiving the spam SMS, SMS agent platform 2 sends spam SMS to SMS gateway, and SMS gateway receives the spam SMS. After the spam message is received, the spam message is sent to the user terminal. When the spam message passes through each node in the blockchain short message platform, the identity of the node will be stored, so that the source of the spam message can be accurately determined.

再一种可能的场景,在短信发送失败时,短信代理平台可以将短信发送失败的信息修改为短信发送成功的信息,使得企业平台需要支付更多的短信代发的费用。而根据本申请提供的短信处理方法,企业平台可以准确的获取用户终端是否接收到短信。结合图4,对该种可能的场景进行说明。In another possible scenario, when the short message fails to be sent, the short message agency platform can modify the message that the short message failed to be sent to the message that the short message was successfully sent, so that the enterprise platform needs to pay more fees for sending the short message. According to the short message processing method provided in the present application, the enterprise platform can accurately obtain whether the user terminal has received the short message. This possible scenario will be described with reference to FIG. 4 .

图4为本申请实施例提供的再一种可能的应用场景。请参见图4,包括企业平台、短信代理平台1和短信代理平台2。FIG. 4 provides yet another possible application scenario provided by the embodiment of the present application. Please refer to Figure 4, including enterprise platform, SMS proxy platform 1 and SMS proxy platform 2.

当短信代理平台1向短信代理平台2发送短信失败时,短信代理平台2可以通过修改短信发送结果信息,向短信代理平台1反馈短信发送成功的信息,使得企业平台支付更多的短信代发的费用。本申请中,企业平台在区块链短信平台中可以接收到短信代理平台2的区块链节点发送的响应消息,若响应消息中指示的短信发送结果信息与短信代理平台向企业平台发送的短信发送结果信息不同时,可以确定短信代理平台修改了短信发送信息,进而可以节约企业平台的短信发送费用。When the SMS proxy platform 1 fails to send the SMS to the SMS proxy platform 2, the SMS proxy platform 2 can modify the short message sending result information and feed back the successful SMS sending information to the SMS proxy platform 1, so that the enterprise platform can pay for more SMS proxy sending. cost. In this application, the enterprise platform can receive the response message sent by the blockchain node of the SMS agent platform 2 in the blockchain SMS platform. When the sending result information is different, it can be determined that the short message agent platform has modified the short message sending information, thereby saving the short message sending cost of the enterprise platform.

下面,通过具体实施例对本申请所示的技术方案进行详细说明。需要说明的是,下面几个具体实施例可以相互结合,对于相同或相似的内容,在不同的实施例中不再进行重复说明。Hereinafter, the technical solutions shown in the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments may be combined with each other, and the same or similar content will not be repeated in different embodiments.

图5为本申请实施例提供的一种短信处理方法的流程示意图。请参见图5,该方法可以包括:FIG. 5 is a schematic flowchart of a method for processing a short message according to an embodiment of the present application. Referring to Figure 5, the method can include:

S501、第一区块链节点从第二区块链节点接收第一短信。S501. The first blockchain node receives a first short message from the second blockchain node.

本申请实施例的执行主体可以为终端设备、服务器,也可以为设置在终端设备或者服务器中的短信处理装置。可选的,短信处理装置可以通过软件实现,也可以通过软件和硬件的结合实现。The execution subject of the embodiment of the present application may be a terminal device or a server, or may be a short message processing apparatus provided in the terminal device or the server. Optionally, the short message processing apparatus may be implemented by software, or may be implemented by a combination of software and hardware.

第一区块链节点可以为区块链短信平台中的节点。例如,第一区块链节点可以为用户终端在区块链短信平台中的节点、短信代理平台在区块链短信平台中的节点、短信网关在区块链短信平台中的节点。The first blockchain node may be a node in the blockchain short message platform. For example, the first blockchain node may be the node of the user terminal in the blockchain short message platform, the node of the short message agent platform in the blockchain short message platform, and the node of the short message gateway in the blockchain short message platform.

第二区块链节点可以为区块链短信平台中的节点。例如,第二区块链节点可以为企业平台在区块链短信平台中的节点、短信代理平台在区块链短信平台中的节点、短信网关在区块链短信平台中的节点。The second blockchain node may be a node in the blockchain short message platform. For example, the second blockchain node may be the node of the enterprise platform in the blockchain short message platform, the node of the short message agent platform in the blockchain short message platform, and the node of the short message gateway in the blockchain short message platform.

可选的,第一区块链节点和第二区块链节点可以为区块链短信平台中的账号。例如,企业平台在区块链短信平台中的节点可以为企业平台在区块链短信平台中的账号,短信代理平台在区块链短信平台中的节点可以为短信代理平台在区块链短信平台中的账号,短信网关在区块链短信平台中的节点可以为短信网关在区块链短信平台中的账号。Optionally, the first blockchain node and the second blockchain node may be accounts in the blockchain short message platform. For example, the node of the enterprise platform in the blockchain SMS platform can be the account of the enterprise platform in the blockchain SMS platform, and the node of the SMS agent platform in the blockchain SMS platform can be the SMS agent platform in the blockchain SMS platform The account of the SMS gateway in the blockchain SMS platform can be the account of the SMS gateway in the blockchain SMS platform.

第一短信包括短信内容和第二区块链节点的标识。其中,短信内容可以为区块链短信的内容,区块链节点的标识用于指示区块链节点的信息。例如,区块链节点的标识可以为区块链节点的账号。The first short message includes the content of the short message and the identifier of the second blockchain node. The content of the short message may be the content of the blockchain short message, and the identifier of the blockchain node is used to indicate the information of the blockchain node. For example, the identifier of the blockchain node may be the account number of the blockchain node.

可选的,区块链节点的标识可以为预先设置的信息。例如,可以预先设置区块链短信平台中每个区块链节点与标识的对应关系,根据对应关系确定区块链节点的标识,区块链节点与标识的对应关系可以如表1所示:Optionally, the identifier of the blockchain node may be preset information. For example, the corresponding relationship between each blockchain node and the logo in the blockchain short message platform can be preset, and the logo of the blockchain node can be determined according to the corresponding relationship. The corresponding relationship between the blockchain node and the logo can be shown in Table 1:

表1Table 1

区块链节点blockchain node 标识logo 区块链节点1Blockchain Node 1 标识1Logo 1 区块链节点2Blockchain Node 2 标识2Logo 2 区块链节点3Blockchain Node 3 标识3Logo 3 ……... ……...

需要说明的是,表1只是以示例的形式示意区块链节点与标识的对应关系,并非对区块链节点与标识的对应关系的限定。It should be noted that Table 1 only illustrates the correspondence between blockchain nodes and identifiers in the form of an example, and does not limit the correspondence between blockchain nodes and identifiers.

例如,在区块链短信平台中,区块链节点1对应的标识为标识1,区块链节点2对应的标识为标识2,区块链节点3对应的标识为标识3。For example, in the blockchain short message platform, the identifier corresponding to blockchain node 1 is identifier 1, the identifier corresponding to blockchain node 2 is identifier 2, and the identifier corresponding to blockchain node 3 is identifier 3.

可选的,第一短信中可以包括第一短信的唯一标识,多个区块链节点可以根据第一短信与唯一标识的对应关系,查询第一短信。例如,第一短信与唯一标识的对应关系可以如表2所示:Optionally, the first short message may include a unique identifier of the first short message, and multiple blockchain nodes may query the first short message according to the corresponding relationship between the first short message and the unique identifier. For example, the corresponding relationship between the first short message and the unique identifier may be as shown in Table 2:

表2Table 2

第一短信first text message 唯一标识Uniquely identifies 第一短信1first text message 1 唯一标识1Unique ID 1 第一短信2first text message 2 唯一标识2Unique ID 2 第一短信3First SMS 3 唯一标识3Unique ID 3 ……... ……...

需要说明的是,表2只是以示例的形式示意第一短信与唯一标识的对应关系,并非对第一短信与唯一标识的对应关系的限定。It should be noted that, Table 2 only illustrates the correspondence between the first short message and the unique identifier in the form of an example, and does not limit the correspondence between the first short message and the unique identifier.

例如,区块链节点需要查询第一短信1时,可以根据唯一标识1获取第一短信1;区块链节点需要查询第一短信2时,可以根据唯一标识2获取第一短信2区块链节点需要查询第一短信3时,可以根据唯一标识3获取第一短信3。For example, when the blockchain node needs to query the first short message 1, it can obtain the first short message 1 according to the unique identifier 1; when the blockchain node needs to query the first short message 2, it can obtain the first short message 2 according to the unique identifier 2. Blockchain When the node needs to query the first short message 3 , it can obtain the first short message 3 according to the unique identifier 3 .

可选的,若第一短信为第二区块链节点从第三区块链节点接收到的,则第一短信还包括第三区块链节点的标识。其中,第三区块链节点可以为区块链短信平台中的节点。例如,第三区块链节点可以为企业平台在区块链短信平台中的节点、短信代理平台在区块链短信平台中的节点、短信网关在区块链短信平台中的节点。Optionally, if the first short message is received by the second blockchain node from the third blockchain node, the first short message further includes the identifier of the third blockchain node. The third blockchain node may be a node in the blockchain short message platform. For example, the third blockchain node may be the node of the enterprise platform in the blockchain short message platform, the node of the short message agent platform in the blockchain short message platform, and the node of the short message gateway in the blockchain short message platform.

下面,结合图6A-图6B,详细介绍第一区块链节点从第二区块链节点接收第一短信的过程。Below, with reference to FIGS. 6A-6B , the process of receiving the first short message from the second blockchain node by the first blockchain node will be described in detail.

图6A为本申请实施例提供的一种第一区块链节点从第二区块链节点接收第一短信的示意图。请参见图6A,包括第二区块链节点、第一短信、第一区块链节点。6A is a schematic diagram of a first blockchain node receiving a first short message from a second blockchain node according to an embodiment of the present application. Please refer to FIG. 6A , including the second blockchain node, the first short message, and the first blockchain node.

第一区块链节点接收第二区块链发送的第一短信,其中,第一短信中包括短信内容和第二区块链节点的标识。第一区块链节点通过第一短信中的第二区块链节点的标识,确定第一短信的发送节点为第二区块链节点。The first block chain node receives the first short message sent by the second block chain, wherein the first short message includes the content of the short message and the identifier of the second block chain node. The first blockchain node determines that the sending node of the first short message is the second blockchain node through the identifier of the second blockchain node in the first short message.

图6B为本申请实施例提供的另一种第一区块链节点从第二区块链节点接收第一短信的示意图。请参见图6B,包括第三区块链节点、第二区块链节点、第一短信、第一区块链节点。其中,第一短信中包括短信内容、第三区块链节点的标识和第二区块链节点的标识。FIG. 6B is another schematic diagram of receiving a first short message from a second blockchain node by a first blockchain node according to an embodiment of the present application. Please refer to FIG. 6B , including a third blockchain node, a second blockchain node, a first short message, and a first blockchain node. The first short message includes the content of the short message, the identifier of the third blockchain node and the identifier of the second blockchain node.

请参见图6B,第三区块链节点向第二区块链节点发送第一短信,第二区块链节点从第三区块链节点接收到第一短信后,向第一区块链节点发送第一短信。第一区块链节点接收到第一短信后,可以根据第一短信中的第三区块链节点的标识和第二区块链节点的标识,确定该短信的发送过程。Referring to Figure 6B, the third blockchain node sends the first short message to the second blockchain node, and after receiving the first short message from the third blockchain node, the second blockchain node sends the first short message to the first blockchain node Send the first text message. After receiving the first short message, the first blockchain node can determine the sending process of the short message according to the identifier of the third blockchain node and the identifier of the second blockchain node in the first short message.

S502、第一区块链节点向第二区块链节点发送第一响应消息。S502. The first blockchain node sends a first response message to the second blockchain node.

第一响应消息中包括指示信息、第二区块链节点的标识和第一区块链节点的标识。例如,第一区块链节点接收第二区块链节点发送的第一短信时,第一区块链节点会向第二区块链节点发送指示信息、第二区块链节点的标识和第一区块链节点的标识。The first response message includes indication information, the identifier of the second blockchain node and the identifier of the first blockchain node. For example, when the first blockchain node receives the first short message sent by the second blockchain node, the first blockchain node will send the indication information, the identifier of the second blockchain node and the first message to the second blockchain node. The identity of a blockchain node.

指示信息用于指示第一区块链节点成功接收第一短信或者未成功接收第一短信。例如,指示信息可以为第一短信发送成功或者第一短信发送失败的信息。The indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message. For example, the indication information may be information that the first short message is successfully sent or the first short message fails to be sent.

可选的,在第一响应消息中,第二区块链节点的标识和第一区块链节点的标识按照第一顺序排列,其中,第一顺序用于指示短信内容经过的设备的顺序。例如,第二区块链节点向第一区块链节点发送第一短信时,第一短信中的短信内容先经过第二区块链节点,再经过第一区块链节点,则第一区块链节点向第二区块链节点发送第一响应消息时,第一顺序为第二区块链的节点的标识、第一区块链节点的标识。Optionally, in the first response message, the identifier of the second blockchain node and the identifier of the first blockchain node are arranged in a first order, where the first order is used to indicate the order of the devices through which the content of the short message passes. For example, when the second blockchain node sends the first short message to the first blockchain node, the content of the short message in the first short message first passes through the second blockchain node, and then passes through the first blockchain node. When the block chain node sends the first response message to the second block chain node, the first order is the identifier of the node of the second block chain and the identifier of the first block chain node.

可选的,若第一响应消息中的指示信息指示第一区块链节点未成功接收第一短信时,第一响应消息中还可以包括失败信息。其中,失败信息用于指示第一区块链未成功接收第一短信的原因。例如,若第一区块链节点未成功接收第一短信,则在响应消息中添加的失败信息可以为第二区块链节点向第一区块链节点发送短信失败。Optionally, if the indication information in the first response message indicates that the first blockchain node fails to receive the first short message, the first response message may further include failure information. The failure information is used to indicate the reason why the first blockchain fails to receive the first short message. For example, if the first blockchain node fails to receive the first short message, the failure information added in the response message may indicate that the second blockchain node failed to send the short message to the first blockchain node.

可选的,若第一区块链节点未成功接收到第一短信时,第一区块链节点的标识位于第一顺序的末位。Optionally, if the first blockchain node fails to receive the first short message, the identifier of the first blockchain node is located at the end of the first sequence.

下面,结合图7-图8,详细介绍发送第一响应消息过程。Next, the process of sending the first response message will be described in detail with reference to FIG. 7-FIG. 8 .

图7为本申请实施例提供的一种发送第一响应消息的示意图。在该种情况下,第一区块链节点成功接收到第二区块链节点发送的短信。请参见图7,包括第二区块链节点、第一区块链节点和第一响应消息。其中,每个区块链节点有对应的标识。例如,第一区块链节点对应的标识为第一区块链节点的标识,第二区块链节点对应的标识为第二区块链节点的标识。FIG. 7 is a schematic diagram of sending a first response message according to an embodiment of the present application. In this case, the first blockchain node successfully receives the short message sent by the second blockchain node. Please refer to FIG. 7, including the second blockchain node, the first blockchain node and the first response message. Among them, each blockchain node has a corresponding identifier. For example, the identifier corresponding to the first blockchain node is the identifier of the first blockchain node, and the identifier corresponding to the second blockchain node is the identifier of the second blockchain node.

请参见图7,第一区块链节点成功接收到第二区块链节点发送的短信后,会生成第一响应消息。其中,第一响应消息包括短信内容、指示信息、第二区块链节点的标识和第一区块链节点的标识。Referring to Figure 7, after the first blockchain node successfully receives the short message sent by the second blockchain node, it will generate a first response message. The first response message includes the content of the short message, the indication information, the identifier of the second blockchain node and the identifier of the first blockchain node.

区块链节点的标识的排列顺序按照短信经过区块链节点的顺序排列。例如,第一区块链节点成功接收到第二区块链节点的短信,短信先经过第二区块链节点,再经过第一区块链节点,则响应消息中的区块链节点的标识的第一顺序为:第二区块链节点的标识、第一区块链节点的标识。The order in which the identifiers of the blockchain nodes are arranged is in the order in which the short messages pass through the blockchain nodes. For example, if the first blockchain node successfully receives a short message from the second blockchain node, and the short message first passes through the second blockchain node and then the first blockchain node, it responds with the identity of the blockchain node in the message. The first order is: the identity of the second blockchain node, the identity of the first blockchain node.

第一区块链节点向第二区块链节点发送第一响应消息,第二区块链节点接收到第一响应消息后,可以根据响应消息中的内容准确的确定短信发送的过程。例如,第二区块链节点接收到第一响应消息后,可以根据指示信息确定短信是否发送成功,也可以根据第一响应中的所有区块链节点的标识以及第一顺序确定短信的发送过程。The first blockchain node sends the first response message to the second blockchain node, and after receiving the first response message, the second blockchain node can accurately determine the process of sending the short message according to the content of the response message. For example, after receiving the first response message, the second blockchain node can determine whether the short message is successfully sent according to the indication information, and can also determine the sending process of the short message according to the identifiers of all blockchain nodes in the first response and the first order. .

图8为本申请实施例提供的另一种发送第一响应消息的示意图。在该种情况下,短信在区块链短信平台中发送失败。请参见图8,包括第二区块链节点、第一区块链节点和第一响应消息。其中,其中,每个区块链节点有对应的标识。例如,第一区块链节点对应的标识为第一区块链节点的标识,第二区块链节点对应的标识为第二区块链节点的标识。FIG. 8 is another schematic diagram of sending a first response message according to an embodiment of the present application. In this case, the SMS failed to be sent in the blockchain SMS platform. Please refer to FIG. 8, including the second blockchain node, the first blockchain node and the first response message. Among them, each blockchain node has a corresponding identifier. For example, the identifier corresponding to the first blockchain node is the identifier of the first blockchain node, and the identifier corresponding to the second blockchain node is the identifier of the second blockchain node.

请参见图8,第一区块链节点未成功接收到第二区块链节点发送的短信后,会生成第一响应消息。其中,第一响应消息包括短信内容、指示信息、第二区块链节点的标识、第一区块链节点的标识和失败信息。例如,第一区块链节点未成功接收到第二区块链节点发送的短信时,第一响应消息中包括短信内容、指示信息、第二区块链节点的标识、第一区块链节点的标识和第一区块链节点接收失败。Referring to Figure 8, after the first blockchain node fails to receive the short message sent by the second blockchain node, it will generate a first response message. The first response message includes the content of the short message, indication information, the identifier of the second blockchain node, the identifier of the first blockchain node, and failure information. For example, when the first blockchain node fails to receive the short message sent by the second blockchain node, the first response message includes the content of the short message, instruction information, the identifier of the second blockchain node, the first blockchain node The identity of the first blockchain node failed to receive.

由于第一区块链节点未成功接收到第二区块链节点的标识,因此,第一响应消息中的区块链节点的标识的第一顺序为:第二区块链节点的标识、第一区块链节点的标识。Since the first blockchain node failed to receive the identifier of the second blockchain node, the first order of the identifiers of the blockchain nodes in the first response message is: the identifier of the second blockchain node, the first sequence of the identifiers of the blockchain nodes in the first response message The identity of a blockchain node.

第一区块链节点向第二区块链节点发送第一响应消息,第二区块链节点接收到第一响应消息后,根据第一响应消息中的内容可以准确的确定短信发送失败的原因。The first blockchain node sends the first response message to the second blockchain node. After receiving the first response message, the second blockchain node can accurately determine the reason for the failure to send the short message according to the content of the first response message. .

例如,第二区块链节点接收到第一响应消息后,可以确定该短信由第二区块链节点向第一区块链节点发送,但是第一区块链节点未接收到该短信,因此,可以确定短信发送失败的原因为第一区块链节点未接收到短信。For example, after receiving the first response message, the second blockchain node can determine that the short message was sent by the second blockchain node to the first blockchain node, but the first blockchain node did not receive the short message, so , it can be determined that the reason for the failure to send the short message is that the first blockchain node does not receive the short message.

本申请提供一种短信处理方法,应用于区块链短信平台,其中,区块链短信平台包括多个区块链节点。第一区块链节点从第二区块链节点接收第一短信,其中第一短信包括短信内容和第二区块链节点的标识。第一区块链节点向第二区块链节点发送第一响应消息,第一响应消息中包括指示信息、第二区块链节点的标识和第一区块链节点的标识,且第一区块链节点的标识和第二区块链节点的标识按照第一顺序排列。指示信息指示短信发送失败时,第一响应消息还包括失败信息。上述方法中,当短信发送失败时,根据第一响应消息中的指示信息、区块链节点的标识和失败信息,可以准确的确定短信发送失败的节点,进而提高确定短信发送失败的问题的准确率。The present application provides a method for processing short messages, which is applied to a blockchain short message platform, wherein the blockchain short message platform includes a plurality of blockchain nodes. The first block chain node receives the first short message from the second block chain node, wherein the first short message includes the content of the short message and the identifier of the second block chain node. The first blockchain node sends a first response message to the second blockchain node, and the first response message includes the indication information, the identifier of the second blockchain node and the identifier of the first blockchain node, and the first area The identification of the blockchain node and the identification of the second blockchain node are arranged in the first order. When the indication information indicates that the sending of the short message fails, the first response message further includes failure information. In the above method, when the sending of the short message fails, according to the indication information in the first response message, the identifier of the blockchain node and the failure information, the node that fails to send the short message can be accurately determined, thereby improving the accuracy of determining the problem of the failure to send the short message. Rate.

在图5所示实施例的基础上,下面结合图9,对上述短信处理方法进行详细说明。On the basis of the embodiment shown in FIG. 5 , the foregoing short message processing method will be described in detail below with reference to FIG. 9 .

图9为本申请实施例提供的另一种短信处理方法的流程示意图。请参见图9,该方法可以包括:FIG. 9 is a schematic flowchart of another short message processing method provided by an embodiment of the present application. Referring to Figure 9, the method can include:

S901、第一区块链节点从第二区块链节点接收第一短信。S901. The first blockchain node receives a first short message from the second blockchain node.

第一短信包括短信内容和第二区块链节点的标识。可选的,第一短信为区块链短信平台中的短信,第一短信可以包括多个字段信息。例如,可以根据如下表3所示的字段信息确定第一短信。The first short message includes the content of the short message and the identifier of the second blockchain node. Optionally, the first short message is a short message in the blockchain short message platform, and the first short message may include multiple field information. For example, the first short message can be determined according to the field information shown in Table 3 below.

表3table 3

字段field 长度length 类型type 说明illustrate sms_hash_idsms_hash_id 3232 StringString 第一短信的唯一标识Unique ID of the first SMS stepstep 11 IntInt 第一短信当前执行的操作。The operation currently performed by the first SMS. previousprevious 66 StringString 第一短信上一个节点标识The last node ID of the first SMS nownow 66 StringString 第一短信当前业务节点标识The identifier of the current service node of the first SMS processprocess 5050 StringString 第一短信经过的所有操作阶段All operational stages through which the first SMS goes through user_listuser_list 5050 StringString 第一短信经过的节点标识ID of the node that the first short message passed through last_userlast_user 66 StringString 第一短信最终下发用户The first SMS is finally delivered to the user typetype 66 StringString 第一短信类型First SMS Type contentcontent 160160 StringString 第一短信内容first text message ecnumecnum 2020 StringString 第一短信接入号first SMS access number prioritypriority 11 IntInt 第一短信优先级First SMS priority submit_timesubmit_time 1414 DateDate 第一短信提交时间First SMS submission time submit_resultsubmit_result 33 StringString 第一短信提交结果The result of the first SMS submission report_timereport_time 1414 DateDate 第一短信状态报告时间First SMS Status Report Time report_status_codereport_status_code 77 StringString 第一短信状态报告结果Result of the first SMS status report report_err_codereport_err_code 44 StringString 第一短信状态报告错误代码First SMS Status Report Error Code

其中,sms_hash_id在第一短信创建时,由区块链短信平台创建,不可篡改。submit_time、submit_result、report_time、report_status_code、report_err_code这4个字段在区块链短信创建时已存在,但数据为空,短信发送完成后,会填充对应的结果。Among them, sms_hash_id is created by the blockchain SMS platform when the first SMS is created, and cannot be tampered with. The four fields submit_time, submit_result, report_time, report_status_code, and report_err_code already exist when the blockchain SMS is created, but the data is empty. After the SMS is sent, the corresponding results will be filled.

S902、判断第一区块链节点是否收到第一短信。S902. Determine whether the first blockchain node has received the first short message.

若是,则执行S903。If yes, execute S903.

若否,则执行S905。If not, execute S905.

S903、第一区块链节点根据所述第一短信生成第二短信。S903. The first blockchain node generates a second short message according to the first short message.

第二短信包括短信内容、第二区块链节点的标识和第一区块链节点的标识。The second short message includes the content of the short message, the identifier of the second blockchain node and the identifier of the first blockchain node.

可选的,可以根据如下可行的实现方式生成第二短信:第一区块链节点可以根据第一短信生成第二短信。例如,第一短信中包括短信内容和第二区块链节点的标识,若第一区块链节点接收到第一短信后,第一区块链节点将第一区块链节点的标识添加至第一短信中,得到第二短信。Optionally, the second short message may be generated according to the following feasible implementation manner: the first blockchain node may generate the second short message according to the first short message. For example, the first short message includes the content of the short message and the identifier of the second blockchain node. If the first blockchain node receives the first short message, the first blockchain node adds the identifier of the first blockchain node to the In the first text message, the second text message is obtained.

下面结合图10,详细说明生成第二短信的过程。The following describes the process of generating the second short message in detail with reference to FIG. 10 .

图10为本申请实施例提供的生成第二短信的示意图。请参见图10,包括第二区块链节点、第一短信、第一区块链节点和第二短信。其中,第一短信中包括短信内容、第二区块链节点的标识,第二短信中包括短信内容、第二区块链节点的标识、第一区块链节点的标识。第二区块链节点向第一区块链节点发送第一短信,若第一区块链节点接收到第一短信,则根据第一短信和第一区块链节点的标识,生成第二短信,其中第二短信包括短信内容、第二区块链节点的标识和第一区块链节点的标识。FIG. 10 is a schematic diagram of generating a second short message according to an embodiment of the present application. Please refer to Figure 10, including the second blockchain node, the first SMS, the first blockchain node and the second SMS. The first short message includes the content of the short message and the identifier of the second blockchain node, and the second short message includes the content of the short message, the identifier of the second blockchain node, and the identifier of the first blockchain node. The second blockchain node sends the first short message to the first blockchain node, and if the first blockchain node receives the first short message, it generates a second short message according to the first short message and the identifier of the first blockchain node , wherein the second short message includes the content of the short message, the identifier of the second blockchain node and the identifier of the first blockchain node.

S904、第一区块链节点向第一设备发送第二短信。S904, the first blockchain node sends a second short message to the first device.

第一设备为区块链节点或者用户设备。例如,第一设备可以为区块链短信平台中的区块链节点,第一设备也可以为手机、电脑等设备。The first device is a blockchain node or user equipment. For example, the first device may be a blockchain node in the blockchain short message platform, and the first device may also be a mobile phone, a computer, or other devices.

S905、第一区块链节点向第二区块链节点发送第一响应消息。S905. The first blockchain node sends a first response message to the second blockchain node.

需要说明的是,S905的执行过程可以参照S502的执行过程,此处不再进行赘述。It should be noted that, for the execution process of S905, reference may be made to the execution process of S502, which will not be repeated here.

本申请提供一种短信处理方法,应用于区块链短信平台,其中,区块链短信平台包括多个区块链节点。第一区块链节点从第二区块链节点接收第一短信,判断第一区块链节点是否接收到第一短信,若是,则第一区块链节点根据第一短信,生成第二短信,并向第一设备发送第二短信,其中,第二短信包括短信内容、第二区块链节点的标识和第一区块链节点的标识。上述方法中,当第一区块链节点接收到第一短信时,根据第一短信和第一区块链节点的标识,生成第二短信,根据第二短信可以准确的确定短信发送时所经过的每一个区块链节点,当用户终端接收到垃圾短信时,可以根据第二短信确定垃圾短信的发送源头,进而提高短信溯源的准确率。The present application provides a method for processing short messages, which is applied to a blockchain short message platform, wherein the blockchain short message platform includes a plurality of blockchain nodes. The first blockchain node receives the first short message from the second blockchain node, and determines whether the first blockchain node has received the first short message, and if so, the first blockchain node generates the second short message according to the first short message , and send a second short message to the first device, wherein the second short message includes the content of the short message, the identifier of the second blockchain node and the identifier of the first blockchain node. In the above method, when the first block chain node receives the first short message, a second short message is generated according to the first short message and the identifier of the first block chain node, and the second short message can be accurately determined according to the second short message. Each block chain node of the node, when the user terminal receives the spam short message, can determine the source of the spam short message according to the second short message, thereby improving the accuracy of the short message traceability.

在图9所示实施例的基础上,第一区块链节点向第一设备发送第二短信之后还包括获取第一设备的信息的过程。由于,第一设备为区块链节点或者用户设备,因此,第一区块链节点向第一设备发送第二短信之后还包括两种获取第一设备信息的过程。下面结合图11和图13介绍向两种获取第一设备的信息的过程。On the basis of the embodiment shown in FIG. 9 , after the first blockchain node sends the second short message to the first device, it also includes a process of acquiring information of the first device. Since the first device is a blockchain node or a user device, after the first blockchain node sends the second short message to the first device, it also includes two processes of acquiring information of the first device. The following describes the process of acquiring the information of the first device for the two types with reference to FIG. 11 and FIG. 13 .

图11为本申请实施例提供的一种获取第一设备的信息的流程示意图。请参见图11,该方法可以包括:FIG. 11 is a schematic flowchart of acquiring information of a first device according to an embodiment of the present application. Referring to Figure 11, the method may include:

S1101、第一区块链节点接收第一设备发送的第二响应消息。S1101. The first blockchain node receives the second response message sent by the first device.

第一设备为区块链节点。例如,第一设备可以为区块链短信平台中的区块链节点。第二响应消息包括短信内容、指示信息、第二区块链节点的标识、第一区块链节点的标识和第一设备节点的标识。The first device is a blockchain node. For example, the first device may be a blockchain node in a blockchain short message platform. The second response message includes the content of the short message, the indication information, the identifier of the second blockchain node, the identifier of the first blockchain node, and the identifier of the first device node.

可选的,第二响应消息中的各个节点的标识按照第一顺序排列。例如,第二响应消息中的各个节点的第一顺序可以为:第二区块链节点的标识、第一区块链节点的标识和第一设备节点的标识。Optionally, the identifiers of each node in the second response message are arranged in the first order. For example, the first order of each node in the second response message may be: the identifier of the second blockchain node, the identifier of the first blockchain node, and the identifier of the first device node.

可选的,若第一设备未成功接收到第一区块链节点发送的第二短信,则第二响应消息中还包括失败信息。Optionally, if the first device fails to receive the second short message sent by the first blockchain node, the second response message also includes failure information.

S1102、第一区块链节点向第二区块链节点发送第二响应消息。S1102. The first blockchain node sends a second response message to the second blockchain node.

第一区块链节点接收到第二响应消息后,可以向第二区块链节点发送第二响应消息。After receiving the second response message, the first blockchain node may send the second response message to the second blockchain node.

下面,结合图12,详细介绍发送第二响应消息的过程。Next, with reference to FIG. 12 , the process of sending the second response message will be described in detail.

图12为本申请实施例提供的一种发送第二响应消息的过程。请参见图12,包括第二区块链节点、第一区块链节点、第一设备节点和第二响应消息,其中,第一设备节点为区块链节点,每个区块链节点有对应的标识。例如,第一区块链节点对应的标识为第一区块链节点的标识,第二区块链节点对应的标识为第二区块链节点的标识,第一设备节点对应的标识为第一设备节点的标识。FIG. 12 is a process of sending a second response message according to an embodiment of the present application. Please refer to FIG. 12, including a second blockchain node, a first blockchain node, a first device node and a second response message, wherein the first device node is a blockchain node, and each blockchain node has a corresponding 's identification. For example, the identifier corresponding to the first blockchain node is the identifier of the first blockchain node, the identifier corresponding to the second blockchain node is the identifier of the second blockchain node, and the identifier corresponding to the first device node is the first blockchain node. The ID of the device node.

请参见图12,第一区块链节点接收到第一短信后,生成第二短信并向第一设备节点发送第二短信。第一设备节点接收到第二短信后会生成第二响应消息,其中,第二响应消息包括短信内容、指示信息、第二区块链节点的标识、第一区块链节点的标识、第一设备的标识。Referring to FIG. 12 , after receiving the first short message, the first blockchain node generates a second short message and sends the second short message to the first device node. After receiving the second short message, the first device node will generate a second response message, wherein the second response message includes the content of the short message, the indication information, the identifier of the second blockchain node, the identifier of the first blockchain node, the first The identification of the device.

第一响应消息中各节点的标识的排列顺序按照第一顺序排列。例如,第一区块链节点接收到第一短信后,生成第二短信冰箱第一设备节点发送第二短信,短信内容先经过第二区块链节点,再经过第一区块链节点,最后经过第一设备节点,则第二响应消息中各节点的标识的第一顺序为:第二区块链节点的标识、第一区块链节点的标识和第一设备的节点的标识。The arrangement order of the identifiers of the nodes in the first response message is arranged according to the first order. For example, after receiving the first short message, the first blockchain node generates a second short message and the first device node of the refrigerator sends the second short message. The content of the short message first passes through the second blockchain node, then the first blockchain node, and finally After passing through the first device node, the first order of the identifiers of the nodes in the second response message is: the identifier of the second blockchain node, the identifier of the first blockchain node, and the identifier of the node of the first device.

第一区块链节点向第二区块链节点发送第二响应消息,第二区块链节点接收到第二响应消息后,根据响应消息中各个区块链节点的标识以及第一顺序,可以准确的确定短信的发送过程。The first blockchain node sends a second response message to the second blockchain node. After the second blockchain node receives the second response message, according to the identifiers of each blockchain node in the response message and the first order, it can be Accurately determine the sending process of SMS.

图13为本申请实施例提供的另一种获取第一设备的信息的流程示意图。其中,第一设备为用户设备,请参见图13,该方法可以包括:FIG. 13 is another schematic flowchart of acquiring information of the first device according to an embodiment of the present application. Wherein, the first device is user equipment, please refer to FIG. 13 , the method may include:

S1301、第一区块链节点向用户设备发送状态请求消息。S1301. The first blockchain node sends a status request message to the user equipment.

用户设备可以包括手机、电脑等设备。状态请求消息用于获取用户设备的状态信息。其中,状态信息用于指示用户设备成功接收第二短信或者为成功接收第二短信。The user equipment may include mobile phones, computers and other equipment. The status request message is used to obtain the status information of the user equipment. The status information is used to indicate that the user equipment has successfully received the second short message or has successfully received the second short message.

可选的,第一区块链节点向用户设备发送状态请求消息之前,可以向用户设备发送响应消息,根据响应消息确定是否向用户设备发送状态请求消息。例如,若第一区块链节点向用户设备发送响应消息失败,则不向用户设备发送状态请求消息,若第一区块链节点向用户设备发送响应消息成功,则向用户设备发送状态请求消息,进而获取用户设备的状态信息。Optionally, before sending the status request message to the user equipment, the first blockchain node may send a response message to the user equipment, and determine whether to send the status request message to the user equipment according to the response message. For example, if the first blockchain node fails to send a response message to the user equipment, it does not send a status request message to the user equipment. If the first blockchain node successfully sends a response message to the user equipment, it sends a status request message to the user equipment. , and then obtain the status information of the user equipment.

S1302、第一区块链节点接收用户设备发送的状态信息。S1302. The first blockchain node receives the status information sent by the user equipment.

状态信息用于指示用户设备成功接收第二短信或者未成功接收第二短信。例如,当第一区块链节点向用户设备发送状态请求消息后,用户设备根据状态请求消息生成接收到第二短信的消息或未接收到第二短信的消息,并向第一区块链节点发送状态信息。The status information is used to indicate that the user equipment successfully receives the second short message or fails to receive the second short message. For example, after the first blockchain node sends a status request message to the user equipment, the user equipment generates a message that the second short message is received or a message that the second short message is not received according to the status request message, and sends the message to the first blockchain node. Send status information.

S1303、第一区块链节点向第二区块链节点发送状态信息。S1303. The first blockchain node sends status information to the second blockchain node.

第一区块链节点接收到用户设备发送的状态信息后,向第二区块链节点发送状态信息。After receiving the status information sent by the user equipment, the first blockchain node sends the status information to the second blockchain node.

可选的,第一区块链节点向第二区块链节点发送状态信息时,可以在状态信息中添加第一区块链节点的标识,这样可以防止短信代理平台对状态信息进行篡改,提高信息传输的安全性。Optionally, when the first blockchain node sends status information to the second blockchain node, the identifier of the first blockchain node can be added to the status information, which can prevent the short message proxy platform from tampering with the status information and improve Security of Information Transmission.

下面,结合图14,详细说明发送状态信息的过程。Next, the process of sending status information will be described in detail with reference to FIG. 14 .

图14为本申请实施例提供的发送状态信息的过程。请参见图14,包括第二区块链节点、第一区块链节点和用户设备。第一区块链节点接收到第二区块链节点发送的第一短信后,第一区块链节点生成第二短信,并向用户设备发送第二短信。第一区块链节点向用户设备发送第二短信后,向用户设备发送状态请求消息,用户获取用户设备的状态信息。用户设备接收到第一区块链节点发送的状态请求消息后,生成状态信息,并向第一区块链节点发送状态信息。第一区块链节点接收到用户的状态信息后,向第二区块链节点发送状态信息。FIG. 14 is a process of sending status information according to an embodiment of the present application. Please refer to Figure 14, including the second blockchain node, the first blockchain node and the user equipment. After the first blockchain node receives the first short message sent by the second blockchain node, the first blockchain node generates a second short message and sends the second short message to the user equipment. After the first blockchain node sends the second short message to the user equipment, it sends a status request message to the user equipment, and the user obtains the status information of the user equipment. After receiving the status request message sent by the first blockchain node, the user equipment generates status information, and sends the status information to the first blockchain node. After receiving the user's state information, the first blockchain node sends the state information to the second blockchain node.

本申请实施例提供的短信处理方法,第二区块链节点根据状态信息,可以确定用户设备是否接收到第二短信,避免了短信代理平台修改短信发送过程的信息,提高了短信发送过程的安全性,节约了企业平台的短信发送费用。In the short message processing method provided in the embodiment of the present application, the second blockchain node can determine whether the user equipment has received the second short message according to the status information, which avoids the short message agent platform from modifying the information of the short message sending process, and improves the security of the short message sending process. It saves the cost of sending short messages on the enterprise platform.

在上述任意一个实施例的基础上,下面,结合图15,通过具体示例,对短信处理方法进行详细说明。On the basis of any one of the above embodiments, a method for processing a short message will be described in detail below with reference to FIG. 15 , with a specific example.

图15为本申请实施例提供的一种短信处理方法的过程示意图。请参见图15,包括企业平台、短信代理平台、短信网关和用户设备。其中,企业平台可以提供区块链短信的内容,短信代理平台可以为区块链短信提供中转业务,短信网关用于接收区块链短信,用户终端用于接收区块链短信,并生成状态信息。FIG. 15 is a schematic process diagram of a method for processing a short message according to an embodiment of the present application. See Figure 15, including the enterprise platform, SMS proxy platform, SMS gateway, and user equipment. Among them, the enterprise platform can provide the content of blockchain short messages, the short message agency platform can provide transfer services for blockchain short messages, the short message gateway is used to receive blockchain short messages, and the user terminal is used to receive blockchain short messages and generate status information .

企业平台生成第一短信,并向短信代理平台发送第一短信,其中,第一短信包括短信内容和企业平台的标识。短信代理平台向企业平台发送第一响应消息,其中,第一响应消息包括短信内容、指示信息、企业平台的标识和短信代理平台的标识。短信代理平台成功接收到第一短信后生成第二短信,并向短信网关发送第二短信,其中,第二短信包括短信内容、企业平台的标识和短信代理平台的标识。短信网关向短信代理平台发送第二响应消息,其中,第二响应消息包括短信内容、指示信息、企业平台的标识、短信代理平台的标识和短信网关的标识。短信代理平台接收到第二响应消息后,向企业平台发送第二响应消息。短信网关成功接收到第二短信后,生成第三短信,并向用户设备发送第三短信。其中,第三短信包括短信内容、企业平台的标识、短信代理平台的标识和短信网关的标识。短信网关向用户设备发送第三短信后,向用户设备发送状态请求消息,用户设备成功接收到状态请求消息后生成状态信息,并向短信网关发送状态信息。其中,状态信息可以包括第一短信的唯一标识。短信网关接收到状态信息后向短信代理平台发送状态信息。短信代理平台接收到状态信息后向企业平台发送状态信息。The enterprise platform generates a first short message, and sends the first short message to the short message agency platform, wherein the first short message includes the content of the short message and the identifier of the enterprise platform. The short message agency platform sends a first response message to the enterprise platform, wherein the first response message includes the content of the short message, the indication information, the identification of the enterprise platform and the identification of the short message agency platform. The short message agent platform generates a second short message after successfully receiving the first short message, and sends the second short message to the short message gateway, wherein the second short message includes the content of the short message, the identifier of the enterprise platform and the identifier of the short message agent platform. The short message gateway sends a second response message to the short message proxy platform, wherein the second response message includes the content of the short message, the indication information, the identity of the enterprise platform, the identity of the short message proxy platform and the identity of the short message gateway. After receiving the second response message, the short message agency platform sends the second response message to the enterprise platform. After successfully receiving the second short message, the short message gateway generates a third short message, and sends the third short message to the user equipment. The third short message includes the content of the short message, the logo of the enterprise platform, the logo of the short message agent platform, and the logo of the short message gateway. After the short message gateway sends the third short message to the user equipment, it sends a status request message to the user equipment. The user equipment generates status information after successfully receiving the status request message, and sends the status information to the short message gateway. Wherein, the status information may include the unique identifier of the first short message. After receiving the status information, the SMS gateway sends the status information to the SMS agent platform. After receiving the status information, the SMS agent platform sends the status information to the enterprise platform.

本申请实施例提供的短信处理方法,当短信发送失败时,可以根据各个区块链节点发送的响应消息中的指示信息和区块链节点的标识,准确定确定短信发送失败的节点,进而提高确定短信发送失败的问题的准确率。In the short message processing method provided by the embodiments of the present application, when the short message fails to be sent, the node that fails to send the short message can be accurately determined according to the indication information in the response message sent by each blockchain node and the identifier of the blockchain node, thereby improving the Determines the accuracy of the problem with SMS delivery failures.

图16为本申请实施例提供的一种短信处理装置的结构示意图。该短信处理装置可以设置在终端设备中。请参见图16,所述短信处理装置10包括:第一接收模块11、第一发送模块12,其中:FIG. 16 is a schematic structural diagram of an apparatus for processing a short message according to an embodiment of the present application. The short message processing device can be set in the terminal device. Referring to FIG. 16, the short message processing apparatus 10 includes: a first receiving module 11 and a first sending module 12, wherein:

所述第一接收模块11用于,第一区块链节点从第二区块链节点接收第一短信,所述第一短信包括短信内容和所述第二区块链节点的标识;The first receiving module 11 is used for the first blockchain node to receive a first short message from the second blockchain node, where the first short message includes the content of the short message and the identifier of the second blockchain node;

所述发送模块12用于,所述第一区块链节点向所述第二区块链节点发送第一响应消息,所述第一响应消息中包括指示信息、所述第二区块链节点的标识和所述第一区块链节点的标识,所述指示信息用于指示所述第一区块链节点成功接收所述第一短信或者未成功接收所述第一短信。The sending module 12 is configured to: the first blockchain node sends a first response message to the second blockchain node, where the first response message includes indication information, the second blockchain node and the identifier of the first blockchain node, the indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message.

在一种可能的实施方式中,若所述第一短信为所述第二区块链节点从第三区块链节点接收到的,则所述第一短信还包括所述第三区块链节点的标识。In a possible implementation manner, if the first short message is received by the second blockchain node from a third blockchain node, the first short message further includes the third blockchain The ID of the node.

在一种可能的实施方式中,在所述第一响应消息中,所述第二区块链节点的标识和所述第一区块链节点的标识按照第一顺序排列,所述第一顺序用于指示所述短信内容所经过的设备的顺序。In a possible implementation manner, in the first response message, the identifier of the second blockchain node and the identifier of the first blockchain node are arranged in a first order, and the first order It is used to indicate the order of the devices that the short message content passes through.

在一种可能的实施方式中,若所述第一区块链节点未成功接收所述第一短信,所述第一响应消息中还包括失败信息,所述失败信息用于指示所述第一区块链未成功接收所述第一短信的原因。In a possible implementation, if the first blockchain node fails to receive the first short message, the first response message further includes failure information, where the failure information is used to indicate the first short message The reason why the blockchain failed to receive the first text message.

本申请实施例提供的一种短信处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The short message processing apparatus provided in the embodiments of the present application can execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and details are not repeated here.

图17为本申请实施例提供的另一种短信处理装置结构示意图,在图16所示实施例的基础上,请参见图17,所述短信处理装置10还包括生成模块,所述生成模块13用于:FIG. 17 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application. On the basis of the embodiment shown in FIG. 16 , please refer to FIG. 17 , the short message processing apparatus 10 further includes a generating module. The generating module 13 Used for:

所述第一区块链节点根据所述第一短信生成第二短信,所述第二短信包括所述短信内容、所述第二区块链节点的标识和所述第一区块链节点的标识;The first block chain node generates a second short message according to the first short message, and the second short message includes the content of the short message, the identifier of the second block chain node and the first block chain node. identification;

所述第一区块链节点向第一设备发送所述第二短信,所述第一设备为区块链节点或者用户设备。The first blockchain node sends the second short message to a first device, where the first device is a blockchain node or a user equipment.

本申请实施例提供的一种短信处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The short message processing apparatus provided in the embodiments of the present application can execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and details are not repeated here.

图18为本申请实施例提供的另一种短信处理装置结构示意图,在图17所示实施例的基础上,请参见图18,所述短信处理装置10还包括第二接收模块14,所述第二接收模块14用于:FIG. 18 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application. On the basis of the embodiment shown in FIG. 17 , please refer to FIG. 18 , the short message processing apparatus 10 further includes a second receiving module 14 . The second receiving module 14 is used for:

所述第一区块链节点接收所述第一设备发送的第二响应消息;receiving, by the first blockchain node, a second response message sent by the first device;

所述第一区块链节点向所述第二区块链节点发送所述第二响应消息。The first blockchain node sends the second response message to the second blockchain node.

本申请实施例提供的一种短信处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The short message processing apparatus provided in the embodiments of the present application can execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and details are not repeated here.

图19为本申请实施例提供的另一种短信处理装置结构示意图,在图17所示实施例的基础上,请参见图19,所述短信处理装置10还包括第二发送模块15,所述第二发送模块15用于:FIG. 19 is a schematic structural diagram of another short message processing apparatus provided by an embodiment of the application. On the basis of the embodiment shown in FIG. 17 , please refer to FIG. 19 , the short message processing apparatus 10 further includes a second sending module 15 . The second sending module 15 is used for:

所述第一区块链节点向所述用户设备发送状态请求消息;sending, by the first blockchain node, a status request message to the user equipment;

所述第一区块链节点接收所述用户设备发送的状态信息,所述状态信息用于指示所述用户设备成功接收所述第二短信或者未成功接收所述第二短信;The first blockchain node receives status information sent by the user equipment, where the status information is used to indicate that the user equipment successfully receives the second short message or fails to receive the second short message;

所述第一区块链节点向所述第二区块链节点发送所述状态信息。The first blockchain node sends the state information to the second blockchain node.

本申请实施例提供的一种短信处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The short message processing apparatus provided in the embodiments of the present application can execute the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and details are not repeated here.

图20为本申请提供的短信处理设备的硬件结构示意图。请参见图20,该短信处理设备20可以包括:处理器21和存储器22,其中,处理器21和存储器22可以通信;示例性的,处理器21和存储器22通过通信总线23通信,所述存储器22用于存储程序指令,所述处理器21用于调用存储器中的程序指令执行上述任意方法实施例所示的短信处理方法。FIG. 20 is a schematic diagram of the hardware structure of the short message processing device provided by the application. Referring to FIG. 20, the short message processing device 20 may include: a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can communicate; exemplarily, the processor 21 and the memory 22 communicate through a communication bus 23, and the memory 22 is used to store program instructions, and the processor 21 is used to call the program instructions in the memory to execute the short message processing method shown in any of the above method embodiments.

可选的,短信处理设备20还可以包括通信接口,通信接口可以包括发送器和/或接收器。Optionally, the short message processing device 20 may further include a communication interface, and the communication interface may include a transmitter and/or a receiver.

可选的,上述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Optionally, the above-mentioned processor may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) )Wait. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps in combination with the method disclosed in the present application can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

本申请提供一种可读存储介质,所述可读存储介质上存储有计算机程序;所述计算机程序用于实现如上述任意实施例所述的短信处理方法。The present application provides a readable storage medium on which a computer program is stored; the computer program is used to implement the short message processing method described in any of the foregoing embodiments.

本申请实施例提供一种计算机程序产品,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行上述短信处理方法。An embodiment of the present application provides a computer program product, where the computer program product includes instructions, and when the instructions are executed, cause a computer to execute the above short message processing method.

实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(英文:read-only memory,缩写:ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppydisk)、光盘(英文:optical disc)及其任意组合。All or part of the steps for implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a readable memory. When the program is executed, the steps including the above method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, Solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppydisk), optical disc (English: optical disc) and any combination thereof.

本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processing unit of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In this application, the term "comprising" and its variants may mean non-limiting inclusion; the term "or" and its variants may mean "and/or". The terms "first", "second" and the like in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the related objects are an "or" relationship.

Claims (10)

1.一种短信处理方法,其特征在于,应用于区块链短信平台,所述区块链短信平台包括多个区块链节点,所述方法包括:1. a short message processing method, is characterized in that, is applied to block chain short message platform, and described block chain short message platform comprises a plurality of block chain nodes, and described method comprises: 第一区块链节点从第二区块链节点接收第一短信,所述第一短信包括短信内容和所述第二区块链节点的标识;The first blockchain node receives a first short message from the second blockchain node, and the first short message includes the content of the short message and the identifier of the second blockchain node; 所述第一区块链节点向所述第二区块链节点发送第一响应消息,所述第一响应消息中包括指示信息、所述第二区块链节点的标识和所述第一区块链节点的标识,所述指示信息用于指示所述第一区块链节点成功接收所述第一短信或者未成功接收所述第一短信。The first blockchain node sends a first response message to the second blockchain node, where the first response message includes indication information, the identifier of the second blockchain node and the first area The identifier of the blockchain node, and the indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message. 2.根据权利要求1所述的方法,其特征在于,若所述第一短信为所述第二区块链节点从第三区块链节点接收到的,则所述第一短信还包括所述第三区块链节点的标识。2. The method according to claim 1, wherein if the first short message is received by the second blockchain node from the third blockchain node, the first short message further includes the the identifier of the third blockchain node. 3.根据权利要求1或2所述的方法,其特征在于,在所述第一响应消息中,所述第二区块链节点的标识和所述第一区块链节点的标识按照第一顺序排列,所述第一顺序用于指示所述短信内容所经过的设备的顺序。3. The method according to claim 1 or 2, wherein, in the first response message, the identifier of the second blockchain node and the identifier of the first blockchain node are in accordance with the first The order is arranged in order, and the first order is used to indicate the order of the devices through which the short message content passes. 4.根据权利要求1-3任一项所述的方法,其特征在于,若所述第一区块链节点未成功接收所述第一短信,所述第一响应消息中还包括失败信息,所述失败信息用于指示所述第一区块链未成功接收所述第一短信的原因。4. The method according to any one of claims 1-3, wherein if the first blockchain node fails to receive the first short message, the first response message further includes failure information, The failure information is used to indicate the reason why the first blockchain fails to receive the first short message. 5.根据权利要求1-3任一项所述的方法,其特征在于,若所述第一区块链节点成功接收所述第一短信,所述方法还包括:5. The method according to any one of claims 1-3, wherein if the first blockchain node successfully receives the first short message, the method further comprises: 所述第一区块链节点根据所述第一短信生成第二短信,所述第二短信包括所述短信内容、所述第二区块链节点的标识和所述第一区块链节点的标识;The first block chain node generates a second short message according to the first short message, and the second short message includes the content of the short message, the identifier of the second block chain node and the first block chain node. identification; 所述第一区块链节点向第一设备发送所述第二短信,所述第一设备为区块链节点或者用户设备。The first blockchain node sends the second short message to a first device, where the first device is a blockchain node or a user equipment. 6.根据权利要求5所述的方法,其特征在于,所述第一设备为区块链节点;所述第一区块链节点向第一设备发送所述第二短信之后,还包括:The method according to claim 5, wherein the first device is a blockchain node; after the first blockchain node sends the second short message to the first device, the method further comprises: 所述第一区块链节点接收所述第一设备发送的第二响应消息;receiving, by the first blockchain node, a second response message sent by the first device; 所述第一区块链节点向所述第二区块链节点发送所述第二响应消息。The first blockchain node sends the second response message to the second blockchain node. 7.根据权利要求5所述的方法,其特征在于,所述第一设备为用户设备;所述第一区块链节点向第一设备发送所述第二短信之后,还包括:7. The method according to claim 5, wherein the first device is a user equipment; after the first blockchain node sends the second short message to the first device, the method further comprises: 所述第一区块链节点向所述用户设备发送状态请求消息;sending, by the first blockchain node, a status request message to the user equipment; 所述第一区块链节点接收所述用户设备发送的状态信息,所述状态信息用于指示所述用户设备成功接收所述第二短信或者未成功接收所述第二短信;The first blockchain node receives status information sent by the user equipment, where the status information is used to indicate that the user equipment successfully receives the second short message or fails to receive the second short message; 所述第一区块链节点向所述第二区块链节点发送所述状态信息。The first blockchain node sends the state information to the second blockchain node. 8.一种短信处理装置,其特征在于,应用于区块链短信平台,所述区块链短信平台包括多个区块链节点,所述装置包括:第一接收模块、第二发送模块,其中:8. A short message processing device, characterized in that it is applied to a blockchain short message platform, the blockchain short message platform comprising a plurality of blockchain nodes, the device comprising: a first receiving module, a second sending module, in: 所述第一接收模块用于,第一区块链节点从第二区块链节点接收第一短信,所述第一短信包括短信内容和所述第二区块链节点的标识;The first receiving module is used for the first blockchain node to receive a first short message from the second blockchain node, where the first short message includes the content of the short message and the identifier of the second blockchain node; 所述第二发送模块用于,所述第一区块链节点向所述第二区块链节点发送第一响应消息,所述第一响应消息中包括指示信息、所述第二区块链节点的标识和所述第一区块链节点的标识,所述指示信息用于指示所述第一区块链节点成功接收所述第一短信或者未成功接收所述第一短信。The second sending module is used for the first blockchain node to send a first response message to the second blockchain node, where the first response message includes indication information, the second blockchain The identifier of the node and the identifier of the first blockchain node, and the indication information is used to indicate that the first blockchain node successfully receives the first short message or fails to receive the first short message. 9.一种短信处理设备,其特征在于,包括:存储器、处理器和通信接口,所述存储器用于存储程序指令,所述处理器用于调用存储器中的程序指令执行如权利要求1-7任一项所述的短信处理方法。9. A short message processing device, comprising: a memory, a processor and a communication interface, wherein the memory is used to store program instructions, and the processor is used to call the program instructions in the memory to execute any one of claims 1-7. A method for processing short messages. 10.一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序;所述计算机程序用于实现如权利要求1-7任一项所述的短信处理方法。10. A readable storage medium, wherein a computer program is stored on the readable storage medium; the computer program is used to implement the short message processing method according to any one of claims 1-7.
CN202011173742.6A 2020-10-28 2020-10-28 Short message processing method, device and equipment Active CN114422967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011173742.6A CN114422967B (en) 2020-10-28 2020-10-28 Short message processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011173742.6A CN114422967B (en) 2020-10-28 2020-10-28 Short message processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN114422967A true CN114422967A (en) 2022-04-29
CN114422967B CN114422967B (en) 2023-06-02

Family

ID=81260638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011173742.6A Active CN114422967B (en) 2020-10-28 2020-10-28 Short message processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN114422967B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345245A (en) * 2018-09-25 2019-02-15 全链通有限公司 Blockchain-based SMS verification method, equipment, network and storage medium
CN109640274A (en) * 2019-01-04 2019-04-16 中国联合网络通信集团有限公司 Note transmission method, device and computer readable storage medium based on block chain
US20190354964A1 (en) * 2018-05-18 2019-11-21 Factom Private Blockchain Services
CN110958161A (en) * 2019-12-02 2020-04-03 中国银行股份有限公司 Block link point monitoring method and device
CN111050326A (en) * 2019-11-28 2020-04-21 泰康保险集团股份有限公司 Short message verification method, device, equipment and medium based on block chain
CN111385751A (en) * 2020-02-28 2020-07-07 腾讯科技(深圳)有限公司 Information sending method, device, terminal and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190354964A1 (en) * 2018-05-18 2019-11-21 Factom Private Blockchain Services
CN109345245A (en) * 2018-09-25 2019-02-15 全链通有限公司 Blockchain-based SMS verification method, equipment, network and storage medium
CN109640274A (en) * 2019-01-04 2019-04-16 中国联合网络通信集团有限公司 Note transmission method, device and computer readable storage medium based on block chain
CN111050326A (en) * 2019-11-28 2020-04-21 泰康保险集团股份有限公司 Short message verification method, device, equipment and medium based on block chain
CN110958161A (en) * 2019-12-02 2020-04-03 中国银行股份有限公司 Block link point monitoring method and device
CN111385751A (en) * 2020-02-28 2020-07-07 腾讯科技(深圳)有限公司 Information sending method, device, terminal and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨学成;: "区块链:全自动智慧型契约时代来临", 通信世界 *

Also Published As

Publication number Publication date
CN114422967B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN110956474B (en) Electronic invoice system based on block chain
CN115174472B (en) Message forwarding processing method and related device
CN116233127A (en) CDN network request scheduling method, device, electronic equipment and storage medium
US20050246424A1 (en) Apparatus and method for generating alert messages in a message exchange network
CN114401164A (en) Data processing method of API gateway, API gateway and storage medium
CN108933789B (en) Method for preventing personal information leakage and third-party application server
WO2022082360A1 (en) Digital asset transfer system
WO2020073538A1 (en) Message sending method, device and system
CN101765069B (en) Value added service subscribing method, device and system
US8271602B2 (en) System and method for conversation based on web service addressing
CN114422967B (en) Short message processing method, device and equipment
CN110768834B (en) Method, system, device and medium for notifying upgrading result of virtual machine configuration
CN112272211A (en) Service request processing method, device and system
CN118573722A (en) Data transmission processing method and device, intelligent household appliance and computer storage medium
CN117952747A (en) Block chain-based equity voucher transaction method, device, equipment and readable medium
WO2020073537A1 (en) Message sending method, device, and public platform
CN114862451A (en) Media resource auditing method and device, electronic equipment and storage medium
US12470639B2 (en) Use of connectors
CN114915927B (en) Data processing method, device and equipment
CN117834710B (en) A cloud-based invoicing system, terminal, and media based on IP proxy
WO2021027505A1 (en) Smart contract-based data processing method, and related device
CN115860745B (en) Secret payment-free signing method, gateway equipment and storage medium
CN111953794A (en) Group cheating and lending early warning method and device
CN113766437B (en) Short message sending method and device
CN119893476B (en) Service processing method, device, electronic equipment and storage medium

Legal Events

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