A service information processing method, device, equipment and computer storage medium
By introducing regulatory nodes and service nodes into the blockchain, the abnormal situation of service information is judged and supervised, the problem that service information is easily maliciously controlled is solved, and the accurate supervision of the service process and the stability of information are achieved.
Patent Information
- Application Number
- CN202110276143.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-15
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-03-15
AI Technical Summary
In the era of big data, service information is easily maliciously controlled by the service provider, making it difficult to implement supervision of the service process.
Introduce regulatory nodes and service nodes in the blockchain, and obtain and judge whether the target service information is abnormal. If it is abnormal, the regulatory node will be prompted to supervise to ensure the accuracy and stability of the service information, and through the non-forgery and non-compulsiveness of the blockchain. Traceability prevents malicious modification of service information.
Accurate supervision of the service process is achieved, the accuracy and stability of service information is ensured, the service information is prevented from being maliciously modified, and the smooth progress of the service process is ensured.
Smart Images

Figure CN113157472B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and more specifically, to a service information processing method, device, equipment and computer storage medium. Background Art
[0002] With the advent of the big data era, the ways of publishing and obtaining information have become more diverse and easier. For example, service providers can publish service information online through web pages, publish service information offline through promotional posters, and verbally agree on service information with consumers. However, the ownership of such service information belongs to the service provider. For example, the service provider has full right to interpret the service information, which makes the service information easy to be maliciously controlled by the service provider, which is not conducive to the supervision of the service process.
[0003] In summary, how to accurately supervise the service process is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0004] The purpose of this application is to provide a service information processing method, which can solve the technical problem of how to accurately supervise the service process to a certain extent. This application also provides a service information processing device, equipment and computer-readable storage medium.
[0005] In a first aspect, the present application discloses a service information processing method, which is applied to a processing node in a blockchain, wherein the blockchain further includes: a supervision node and a service node, and the method includes:
[0006] Get the target service information stored in the block;
[0007] Determining whether the target service information is abnormal;
[0008] If the target service information is abnormal, the supervision node is prompted to supervise the service node corresponding to the target service information.
[0009] Optionally, the determining whether the target service information is abnormal includes:
[0010] Determining whether feedback information indicating that the target service information is abnormal is obtained;
[0011] If the feedback information is obtained, determining that the target service information is abnormal;
[0012] Generate status information indicating that the target service information is abnormal;
[0013] The feedback information and the status information are uploaded to the chain.
[0014] Optionally, the determining whether the target service information is abnormal includes:
[0015] Acquire target consumption information corresponding to the target service information stored in the block;
[0016] Whether the target service information is abnormal is determined based on the target consumption information.
[0017] Optionally, judging whether the target service information is abnormal based on the target consumption information includes:
[0018] Determining consumption scale information corresponding to the target consumption information;
[0019] Determining whether the consumption scale information is abnormal;
[0020] If the consumption scale information is abnormal, it is determined that the target service information is abnormal.
[0021] Optionally, before obtaining the target service information stored in the block, the method further includes:
[0022] Receiving application information sent by the service node for applying to access the blockchain;
[0023] Sending the application information to the supervision node, so that the supervision node determines whether to allow the service node to access based on the application information;
[0024] determining whether the determination information sent by the supervisory node indicating that the service node is allowed to access is received;
[0025] If the determination information is received, allowing the service node to access the blockchain;
[0026] Receive the target service information sent by the service node and upload it to the chain;
[0027] Before acquiring the target consumption information corresponding to the target service information and stored in the block, the method further includes:
[0028] Pushing the target service information to the consumption node;
[0029] Receiving consumption information determined by the consumption node based on the target service information;
[0030] The target consumption information is generated based on the consumption information and uploaded to the chain.
[0031] Optionally, after prompting the supervision node to supervise the service node corresponding to the target service information, the method further includes:
[0032] Obtaining the identity information of the service node stored in the block;
[0033] The identity information of the service node is sent to the supervisory node.
[0034] Optionally, after prompting the supervision node to supervise the service node corresponding to the target service information, the method further includes:
[0035] Determine identity information of a preset number of consumer nodes corresponding to the target service information;
[0036] Determine the total consumption value corresponding to the consumption node and the target service information;
[0037] The identity information of the consumption node and the total consumption value are sent to the supervision node.
[0038] In a second aspect, the present application discloses a service information processing device, which is applied to a processing node in a blockchain, wherein the blockchain further includes: a supervision node and a service node, and the device includes:
[0039] A first acquisition module, used to acquire target service information stored in a block;
[0040] The first judgment module is used to judge whether the target service information is abnormal; if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information.
[0041] In a third aspect, the present application discloses an electronic device, comprising:
[0042] Memory for storing computer programs;
[0043] A processor is used to implement the steps of any of the service information processing methods described above when executing the computer program.
[0044] In a fourth aspect, the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the service information processing methods described above are implemented.
[0045] A service information processing method provided by the present application is applied to the processing node in the blockchain. The blockchain also includes a supervision node and a service node. The method includes: obtaining the target service information stored in the block; determining whether the target service information is abnormal; if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information. In the present application, since the target service information is stored in the block of the blockchain, the service node cannot change the target service information at will after uploading the target service information to the blockchain, thereby ensuring the accuracy and stability of the target service information, and the target service information can be traced back based on the blockchain. In addition, after determining that the target service information is abnormal, the processing node can prompt the supervision node to supervise the service node, thereby achieving accurate supervision of the service process and ensuring that the service process is accurately carried out according to the target service information. The service information processing device, equipment and computer-readable storage medium provided by the present application also solve corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0047] Figure 1 It is a structural diagram of the data sharing system;
[0048] Figure 2 This is a schematic diagram of the composition of the blockchain;
[0049] Figure 3 This is a schematic diagram of block generation;
[0050] Figure 4 A flow chart of a service information processing method provided in an embodiment of the present application;
[0051] Figure 5 A flow chart of a specific service information processing method provided in an embodiment of the present application;
[0052] Figure 6 A flow chart of a specific service information processing method provided in an embodiment of the present application;
[0053] Figure 7 A flowchart of information uplinking in a specific service information processing method provided in an embodiment of the present application;
[0054] Figure 8 A flow chart of a specific service information processing method provided in an embodiment of the present application;
[0055] Fig. 9 A flow chart of a specific service information processing method provided in an embodiment of the present application;
[0056] Fig.10 A schematic diagram of the structure of a service information processing device provided in an embodiment of the present application;
[0057] Fig.11 is a structural diagram of an electronic device 20 according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] With the advent of the big data era, the ways of publishing and obtaining information have become more diverse and easier. For example, the service provider can publish service information online through a web page, publish service information offline through promotional posters, and verbally agree on service information with the consumer. However, the ownership of such service information belongs to the service provider. For example, the service provider has the full right to interpret the service information, which makes the service information easy to be maliciously controlled by the service provider, which is not conducive to the supervision of the service process. In order to overcome the above technical problems, the present application provides a service information processing method that can accurately supervise the service information.
[0060] For ease of understanding, the blockchain involved in this application is first described. In essence, the blockchain is a shared database, and the data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceability", "openness and transparency", and "collective maintenance".
[0061] See also Figure 1The data sharing system shown, the data sharing system 100 refers to a system for sharing data between nodes, and the data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. In order to ensure the information intercommunication within the data sharing system, there may be an information connection between each node in the data sharing system, and information can be transmitted between nodes through the above information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
[0062] Each node in the data sharing system has a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated blocks can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. A node identifier list as shown in the following table can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address and any other information that can be used to identify the node. Table 1 only takes the IP address as an example for illustration.
[0063] Node Name Node ID Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258
[0064] Each node in the data sharing system stores the same blockchain. The blockchain consists of multiple blocks, see Figure 2 The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0065] When generating each block in the blockchain, see Figure 3When the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:
[0066] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET;
[0067] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; p rev_hash is the characteristic value of the block header of the parent block of the current block; merkle_root is the characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the characteristic value threshold, which can be determined based on nbits.
[0068] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the data sharing system according to the node identification of other nodes in the data sharing system. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.
[0069] The service information processing solution provided by this application is described below. Figure 4 This is a flow chart of the service information processing method provided in the embodiment of the present application. Figure 4 As shown, the service information processing method is applied to a processing node in a blockchain, and the blockchain also includes a supervision node and a service node. The method includes:
[0070] Step S101: Acquire target service information stored in a block.
[0071] In this embodiment, the target service information refers to the service information that has been saved in the corresponding block of the blockchain. The triggering method for the processing node to obtain the target service information can be determined according to actual needs. For example, the processing node can obtain the target service information at fixed time intervals based on a preset smart contract, or obtain the target service information at all times based on a preset smart contract, or obtain the target service information under the trigger of the user, etc. This application does not make specific limitations here.
[0072] It should be noted that the type and specific content of the target service information can be determined according to actual needs. For example, the target service information can be the time and channel of information release, the time and place of product sales, etc. In addition, since the blockchain is unforgeable and leaves traces throughout the process, it is difficult for the service node to maliciously change the target service information. For example, the service node cannot change the content of the target service information after releasing the target service information, which makes the target service information before and after the change viewed by the consumer node different. On the contrary, any change made by the service node to the target service information will be recorded in the block. With the traceability of the blockchain, the change information of the service node to the target service information can be viewed, which can prevent the service node from maliciously modifying the target service information or publishing false target service information to a certain extent, and ensure the accuracy and stability of the target service information.
[0073] Step S102: determine whether the target service information is abnormal; if the target service information is abnormal, execute step S103.
[0074] Step S103: prompting the supervision node to supervise the service node corresponding to the target service information.
[0075] It is understandable that if the service node does evil through the target service information, it will cause the target service information to be abnormal. For example, the service node maliciously modifies the target service information to cause abnormality, etc. Therefore, after obtaining the target service information, the processing node can use the target service information to supervise the service node. Specifically, the processing node can determine whether the target service information is abnormal. If the target service information is abnormal, the supervision node is prompted to accurately supervise the service node corresponding to the target service information, so as to avoid the service node from doing evil through the supervision of the service node by the supervision node, and ensure the accurate implementation of the service process.
[0076] It should be pointed out that the specific types of service nodes, consumption nodes and supervision nodes can be determined according to actual needs, and this application does not make specific limitations here. And after determining that the target service information is normal, you can wait and execute the steps of obtaining the target service information stored in the block again. In addition, in specific application scenarios, after determining that the target service information is abnormal, the processing node can also send reminder information to the corresponding consumption node; after receiving the reminder information for supervising the service node, the supervision node can also actively prompt the service node to provide services according to the agreed target service, etc.
[0077] The present application provides a service information processing method, which is applied to the processing node in the blockchain. The blockchain also includes a supervision node and a service node. The method includes: obtaining the target service information stored in the block; determining whether the target service information is abnormal; if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information. In the present application, since the target service information is stored in the block of the blockchain, the service node cannot change the target service information at will after uploading the target service information to the blockchain, which ensures the accuracy and stability of the target service information, and the target service information can be traced back based on the blockchain. In addition, after determining that the target service information is abnormal, the processing node can prompt the supervision node to supervise the service node, so as to achieve accurate supervision of the service process and ensure that the service process is carried out accurately according to the target service information.
[0078] Figure 5 A flow chart of a specific service information processing method provided in the embodiment of the present application. Figure 5 As shown, the service information processing method is applied to a processing node in a blockchain, including:
[0079] Step S201: Acquire target service information stored in a block.
[0080] Step S202: Determine whether feedback information indicating that the target service information is abnormal is obtained; if feedback information is obtained, execute step S203.
[0081] Step S203: Generate status information indicating abnormality of target service information, upload feedback information and status information to the chain, and execute step S204.
[0082] In this embodiment, since the consumer nodes and the like pay close attention to the target service information, for example, the consumer nodes pay close attention to the target service information at a high frequency, the consumer nodes and the like are more aware of abnormalities in the target service information. For example, the consumer nodes can discover that the target service information has been maliciously modified at the first time. After the consumer nodes and the like discover that the target service information is abnormal, there will be a need to automatically feedback the abnormality of the target service information. Therefore, in actual applications, the consumer nodes and the like can be used to determine whether the target service information is abnormal. Specifically, the processing node can determine whether feedback information characterizing the abnormality of the target service information is obtained; if the feedback information is obtained, the target service information is determined to be abnormal; in addition, in order to facilitate the subsequent tracing of the corresponding status of the target service information to evaluate and process the service node, the processing node can also generate status information characterizing the abnormality of the target service information; and upload the feedback information and status information to the chain.
[0083] Step S204: prompting the supervision node to supervise the service node corresponding to the target service information.
[0084] Figure 6 A flow chart of a specific service information processing method provided in the embodiment of the present application. Figure 6 As shown, the service information processing method is applied to a processing node in a blockchain, including:
[0085] Step S301: Acquire target service information stored in a block.
[0086] Step S302: Acquire target consumption information corresponding to the target service information stored in the block.
[0087] Step S303: determine whether the target service information is abnormal based on the target consumption information; if the target service information is abnormal, execute step S304.
[0088] In this embodiment, after the service node publishes the target service information, the consumption node generally consumes the target service information, such as answering, responding, paying, etc., and then generates consumption information corresponding to the target service information. For example, if the target service information is the release time and channel of the information, the corresponding target consumption information can be the channel and time to obtain the information, etc., and the target service information will also be stored in the blockchain together. The service capacity of a target service information is limited, that is, the target consumption information corresponding to the target service information is limited. If the target consumption information exceeds the limit, the target service information can be considered abnormal. Therefore, in the process of judging whether the target service information is abnormal, the processing node can obtain the target consumption information corresponding to the target service information stored in the block; and judge whether the target service information is abnormal based on the target consumption information.
[0089] In actual applications, the scale of target consumption information is limited by the location of the service node, the number of audiences of the target service information, etc. Therefore, in the process of judging whether the target service information is abnormal based on the target consumption information, the consumption scale information corresponding to the target consumption information can be determined; whether the consumption scale information is abnormal can be judged; if the consumption scale information is abnormal, the target service information can be judged to be abnormal. For example, the corresponding consumption scale information can be estimated in advance based on the target service information. If the gap between the actually determined consumption scale information and the estimated consumption rule information is large, the consumption scale information can be considered abnormal.
[0090] Specifically, the processing node can also determine the growth rate of the target consumption information and judge whether the target service information is abnormal by judging whether the growth rate is greater than a preset value. For example, if the growth rate is greater than the preset value, the target service information can be judged to be abnormal; if the growth rate is less than or equal to the preset value, the target service information can be judged to be normal, etc.
[0091] Step S304: prompting the supervision node to supervise the service node corresponding to the target service information.
[0092] In this embodiment, please refer to 7, Figure 7 This is a flowchart of information uplinking in a specific service information processing method provided in an embodiment of the present application. In this process, the processing node can perform the following steps:
[0093] Step S401: Receive application information sent by the service node for applying to access the blockchain.
[0094] In actual applications, service nodes can actively apply to access the blockchain in order to publish target service information through the blockchain. Correspondingly, processing nodes can receive application information sent by service nodes to apply for access to the blockchain. The type of application information and the data content contained can be determined according to actual needs. For example, the application information can include the identity information of the service node, the type of service information published, etc.
[0095] Step S402: Send application information to the supervision node, so that the supervision node determines whether to allow the service node to access based on the application information.
[0096] In actual applications, because there are many types of service nodes, and the supervision node generally has the corresponding information of the legal service node, the processing node can use the supervision node to decide whether to allow the service node to access the blockchain. Specifically, the application information can be sent to the supervision node so that the supervision node can determine whether to allow the service node to access based on the application information. Of course, the processing node can also determine whether to allow the service node to access the blockchain on its own, and this application does not make specific restrictions here.
[0097] Step S403: Determine whether the decision information indicating that the service node is allowed to access is received from the supervision node; if the decision information is received, execute step S404.
[0098] Step S404: Allow the service node to access the blockchain.
[0099] In actual applications, after sending the application information to the supervision node, the processing node can determine whether it has received the judgment information sent by the supervision node indicating that the service node is allowed to access; if the judgment information is received, the service node is allowed to access the blockchain.
[0100] Step S405: Receive the target service information sent by the service node and upload it to the chain.
[0101] In actual applications, after the processing node allows the service node to access the blockchain, the service node can upload the target service information to the blockchain. Correspondingly, the processing node can receive the target service information sent by the service node and upload it to the chain.
[0102] Step S406: Push target service information to the consumer.
[0103] Step S407: receiving consumption information determined by the consumer based on the target service information.
[0104] Step S408: Generate target consumption information based on the consumption information and upload it to the chain.
[0105] In actual applications, in order to ensure the accuracy of the target service information received by the consumer and avoid malicious changes to the target service information when the service node transmits the target service information offline, the processing node can push the target service information to the consumer node online, and receive the consumption information determined by the consumer node based on the target service information. Finally, the target consumption information is generated based on the consumption information and uploaded to the chain, so as to use the blockchain to record the service process.
[0106] It should be pointed out that the present application does not limit the specific timing of uploading the target service information and the target consumption information to the chain. For example, the processing node can perform the uploading operation of the target service information to the chain before obtaining the target service information stored in the block, and can perform the uploading operation of the target consumption information to the chain before obtaining the target consumption information corresponding to the target service information stored in the block, etc.
[0107] Figure 8 A flow chart of a specific service information processing method provided in the embodiment of the present application. Figure 8 As shown, the service information processing method is applied to a processing node in a blockchain, including:
[0108] Step S501: Acquire target service information stored in a block.
[0109] Step S502: determine whether the target service information is abnormal; if the target service information is abnormal, execute step S503.
[0110] Step S503: prompting the supervision node to supervise the service node corresponding to the target service information.
[0111] Step S504: Obtain the identity information of the service node stored in the block.
[0112] Step S505: Send the identity information of the service node to the supervision node.
[0113] In this embodiment, in order to facilitate the supervision node to quickly supervise the service node, the identity information of the service node can also be saved in the blockchain in advance. Correspondingly, after prompting the supervision node to supervise the service node corresponding to the target service information, the processing node can also obtain the identity information of the service node saved in the block; and send the identity information of the service node to the supervision node.
[0114] Fig. 9 A flow chart of a specific service information processing method provided in the embodiment of the present application. Fig. 9 As shown, the service information processing method is applied to a processing node in a blockchain, including:
[0115] Step S601: Acquire target service information stored in the block.
[0116] Step S602: determine whether the target service information is abnormal; if the target service information is abnormal, execute step S603.
[0117] Step S603: prompting the supervision node to supervise the service node corresponding to the target service information.
[0118] Step S604: Determine identity information of a preset number of consumer nodes corresponding to the target service information.
[0119] Step S605: Determine the total consumption value corresponding to the consumption node and the target service information.
[0120] Step S606: Send the identity information of the consumer node and the total consumption value to the supervision node.
[0121] In this embodiment, if an abnormality occurs in a service node, the supervisory node may need to determine the responsibility of the service node based on the number of consumers and the consumption value after supervising the service node. Therefore, in order to facilitate the supervisory node to determine the responsibility of the service node, after prompting the supervisory node to supervise the service node corresponding to the target service information, the processing node can also determine the identity information of a preset number of consumer nodes corresponding to the target service information; determine the total consumption value corresponding to the consumer node and the target service information; and send the identity information and total consumption value of the consumer node to the supervisory node.
[0122] See also Fig.10 As shown, the embodiment of the present application also discloses a service information processing device, which is applied to a processing node in a blockchain. The blockchain also includes a supervision node and a service node. The device includes:
[0123] A first acquisition module 11 is used to acquire target service information stored in a block;
[0124] The first judgment module 12 is used to judge whether the target service information is abnormal; if the target service information is abnormal, the supervision node is prompted to supervise the service node corresponding to the target service information.
[0125] In some specific embodiments, the first determination module may include:
[0126] A first judgment unit is used to judge whether feedback information indicating that the target service information is abnormal is obtained; if the feedback information is obtained, it is determined that the target service information is abnormal;
[0127] A first generating unit, configured to generate status information representing an abnormality of target service information;
[0128] The first uplink unit is used to upload feedback information and status information to the link.
[0129] In some specific embodiments, the first determination module may include:
[0130] A first acquisition submodule is used to acquire target consumption information corresponding to the target service information stored in the block;
[0131] The first judgment submodule is used to judge whether the target service information is abnormal based on the target consumption information.
[0132] In some specific embodiments, the first determination submodule may include:
[0133] A first determining unit, used to determine consumption scale information corresponding to target consumption information;
[0134] The second judgment unit is used to judge whether the consumption scale information is abnormal; if the consumption scale information is abnormal, the target service information is judged to be abnormal.
[0135] In some specific embodiments, the service information processing device may further include:
[0136] A first receiving module, used for receiving application information for applying to access the blockchain sent by the service node before the first obtaining module obtains the target service information stored in the block;
[0137] A first sending module, used to send application information to a supervision node, so that the supervision node determines whether to allow the service node to access based on the application information;
[0138] The second judgment module is used to judge whether the judgment information sent by the supervision node indicating that the service node is allowed to access is received; if the judgment information is received, the service node is allowed to access the blockchain;
[0139] A first uplink module, used for receiving target service information sent by the service node and uplinking it;
[0140] A first push module, used for pushing the target service information to the consumer before the first acquisition submodule acquires the target consumption information corresponding to the target service information stored in the block;
[0141] A third receiving module is used to receive consumption information determined by the consumer based on the target service information;
[0142] The second on-chain module is used to generate target consumption information based on the consumption information and upload it to the chain.
[0143] In some specific embodiments, the service information processing device may further include:
[0144] A second acquisition module, configured to acquire the identity information of the service node stored in the block after the first judgment module prompts the supervision node to supervise the service node corresponding to the target service information;
[0145] The second sending module is used to send the identity information of the service node to the supervision node.
[0146] In some specific embodiments, the service information processing device may further include:
[0147] A first determination module, configured to determine identity information of a preset number of consumer nodes corresponding to the target service information after the first judgment module prompts the supervision node to supervise the service node corresponding to the target service information;
[0148] The second determination module is used to determine the total consumption value corresponding to the consumption node and the target service information;
[0149] The third sending module is used to send the identity information of the consumer node and the total consumption value to the supervision node.
[0150] Furthermore, an embodiment of the present application also provides an electronic device. Fig.11 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0151] Fig.11 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the service information processing method disclosed in any of the above embodiments. In addition, the electronic device 20 in this embodiment may be a server.
[0152] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0153] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and video data 223, etc. The storage method can be temporary storage or permanent storage.
[0154] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive video data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the service information processing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. The data 223 can include various video data collected by the electronic device 20.
[0155] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the service information processing method disclosed in any of the aforementioned embodiments are implemented.
[0156] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0157] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0158] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A service information processing method, characterized in that: The method is applied to a processing node in a blockchain, wherein the blockchain further comprises: a supervision node and a service node. Acquire target service information stored in the block, where the target service information is provided by the service node; Determining whether the target service information is abnormal; If the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information; Determine identity information of a preset number of consumer nodes corresponding to the target service information; Determine the total consumption value corresponding to the consumption node and the target service information; Sending the identity information of the consumer node and the total consumption value to the supervision node, so that the supervision node determines the responsibility of the service node according to the number of consumers and the total consumption value; Wherein, determining whether the target service information is abnormal includes: Acquire target consumption information corresponding to the target service information and stored in the block, wherein the target consumption information includes consumption information generated after a consumption node consumes the target service information; Determining consumption scale information corresponding to the target consumption information; Pre-estimate corresponding consumption scale information based on the target service information; If the difference between the determined consumption scale information and the estimated consumption scale information is large, the consumption scale information is considered abnormal, and the target service information is determined to be abnormal.
2. The method according to claim 1, characterized in that: The determining whether the target service information is abnormal includes: Determining whether feedback information indicating that the target service information is abnormal is obtained; If the feedback information is obtained, determining that the target service information is abnormal; Generate status information indicating that the target service information is abnormal; The feedback information and the status information are uploaded to the chain.
3. The method according to claim 1, characterized in that Before obtaining the target service information stored in the block, the method further includes: Receiving application information sent by the service node for applying to access the blockchain; Sending the application information to the supervision node, so that the supervision node determines whether to allow the service node to access based on the application information; determining whether the determination information sent by the supervisory node indicating that the service node is allowed to access is received; If the determination information is received, allowing the service node to access the blockchain; Receive the target service information sent by the service node and upload it to the chain; Before acquiring the target consumption information corresponding to the target service information and stored in the block, the method further includes: Pushing the target service information to the consumption node; Receiving consumption information determined by the consumption node based on the target service information; The target consumption information is generated based on the consumption information and uploaded to the chain.
4. The method according to any one of claims 1 to 3, characterized in that: After prompting the supervision node to supervise the service node corresponding to the target service information, the method further includes: Obtaining the identity information of the service node stored in the block; The identity information of the service node is sent to the supervisory node.
5. A service information processing device, characterized in that: The processing node applied to the blockchain further includes: a supervision node and a service node, and the device includes: A first acquisition module, used to acquire target service information stored in a block, wherein the target service information is provided by the service node; A first judgment module is used to judge whether the target service information is abnormal; if the target service information is abnormal, prompting the supervision node to supervise the service node corresponding to the target service information; A first determination module, used to determine identity information of a preset number of consumer nodes corresponding to the target service information; A second determination module is used to determine the total consumption value corresponding to the consumption node and the target service information; A third sending module is used to send the identity information of the consumer node and the total consumption value to the supervision node, so that the supervision node determines the responsibility of the service node according to the number of consumers and the total consumption value; Wherein, the first judgment module includes: A first acquisition submodule is used to acquire target consumption information corresponding to the target service information and stored in the block, wherein the target consumption information includes consumption information generated after a consumption node consumes the target service information; A first determining unit, used to determine the consumption scale information corresponding to the target consumption information; The second judgment unit is used to pre-estimate the corresponding consumption scale information based on the target service information; if the difference between the determined consumption scale information and the estimated consumption scale information is large, it is considered that the consumption scale information is abnormal, and the target service information is determined to be abnormal.
6. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the service information processing method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the service information processing method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Tourism data management method and device, terminal and medium
CN110597917A
Block chain-based test method and device, storage medium and computer equipment
CN110598446A
Resource processing method based on alliance block chain and alliance block chain system
CN110602215A
Data analysis method and device
CN111461865A
Medical insurance auditing data monitoring method, device and equipment, and storage medium
CN111986037A
