Information processing method and device

By using distributed storage and single-level directory search methods in the payment system, the order information is processed and QR codes are generated, the problems of slow query speed and data processing delay in the payment system are solved, and the payment process is optimized and speeded up. Improves system stability and usability.

CN119494700APending Publication Date: 2025-02-21CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411492510.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the prior art, the database index design of the payment system is improperly designed or lacks optimization, resulting in slow query speed and low efficiency problems when processing large amounts of transaction data. Network exceptions or data center exceptions can also cause delays in data transmission and processing, affecting information. Processing efficiency.

Method used

A method of processing information is proposed, including receiving order information and generating QR codes, generating data blocks based on order information and storing them in the target data node of the distributed storage system, updating single-level directory information, receiving QR codes and querying Target data node, reads data blocks for payment operations.

Benefits of technology

By optimizing the data storage and query process of order QR code payment, combined with the efficient processing capabilities of single-level directory search and distributed redundant storage, the delay caused by network exceptions or data center exceptions is reduced, and the payment process is optimized and optimized. Speed ​​up, improving the flexibility of information processing and the stability and usability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119494700A_ABST
    Figure CN119494700A_ABST
Patent Text Reader

Abstract

The invention provides an information processing method and device, and relates to the technical field of data processing and computers, and the method comprises the steps: receiving order information sent by first terminal equipment, generating a two-dimensional code based on an order identifier carried by the order information, and sending the two-dimensional code to the first terminal equipment for display; generating at least one data block according to the order information, storing the data block in a target data node of the distributed storage system, and updating single-level directory information of the distributed storage system according to the target data node and the order identifier; receiving a two-dimensional code sent by a second terminal device, querying the single-level directory information based on the two-dimensional code, and obtaining a target data node associated with the two-dimensional code; and a data block is read from the target data node, and the data block comprises payment information of the order information and is used for carrying out subsequent payment operation. According to the invention, the optimization and acceleration of the payment information processing process can be realized, the flexibility of information processing is improved, the data processing pressure is dispersed, and the stability of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of data processing technology and computer technology, and in particular to an information processing method and device thereof. Background Art

[0002] With the rapid development of mobile payment and e-commerce, order QR codes have been widely used in the payment field. In related technologies, if the database index of the payment system is improperly designed or lacks optimization, it may lead to slow query speed and inefficiency in processing large amounts of transaction data; if network anomalies or data center anomalies occur, it may cause delays in data transmission and processing, affecting the efficiency of information processing.

[0003] Therefore, how to reduce the delays in data transmission and processing caused by network anomalies or data center anomalies, optimize and speed up the payment process, improve the flexibility of information processing, disperse data processing pressure, and improve system stability and availability has become one of the important research directions. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to a certain extent. In a first aspect, the present disclosure proposes a method for processing information, comprising:

[0005] Receiving the order information sent by the first terminal device, generating a QR code based on the order identifier carried in the order information, and sending the QR code to the first terminal device for display;

[0006] Generate at least one data block according to the order information, store the data block in a target data node of the distributed storage system, and update the single-level directory information of the distributed storage system according to the target data node and the order identifier;

[0007] Receive the QR code sent by the second terminal device, and query the single-level directory information based on the QR code to obtain the target data node associated with the QR code;

[0008] A data block is read from the target data node, the data block including payment information of the order information for subsequent payment operations.

[0009] The present disclosure can reduce the delay of data transmission and processing caused by network anomalies or data center anomalies, optimize and speed up the payment process, improve the flexibility of information processing, disperse data processing pressure, and improve the stability and availability of the system.

[0010] A second aspect of the present disclosure provides an information processing device, comprising:

[0011] A first processing module, configured to receive order information sent by the first terminal device, generate a QR code based on an order identifier carried in the order information, and send the QR code to the first terminal device for display;

[0012] A second processing module, configured to generate at least one data block according to the order information, store the data block in a target data node of the distributed storage system, and update the single-level directory information of the distributed storage system according to the target data node and the order identifier;

[0013] A third processing module is used to receive the QR code sent by the second terminal device, and query the single-level directory information based on the QR code to obtain the target data node associated with the QR code;

[0014] The fourth processing module is used to read a data block from the target data node, where the data block includes payment information of the order information for subsequent payment operations.

[0015] A third aspect of the present disclosure provides an electronic device, including:

[0016] at least one processor; and

[0017] a memory communicatively connected to at least one processor; wherein,

[0018] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the information processing method provided in the embodiment of the first aspect of the present disclosure.

[0019] A fourth aspect of the present disclosure proposes a computer-readable storage medium on which computer instructions are stored, wherein the computer instructions are used to enable a computer to execute the information processing method provided in the embodiment of the first aspect of the present disclosure.

[0020] A fifth aspect of the present disclosure proposes a computer program product, including a computer program, which, when executed by a processor, implements the information processing method provided in the embodiment of the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flowchart of a method for processing information according to a first embodiment of the present disclosure;

[0022] Figure 2 is a flowchart of a method for processing information according to a second embodiment of the present disclosure;

[0023] Figure 3 is a flowchart of a method for processing information according to a third embodiment of the present disclosure;

[0024] Figure 4is a flowchart of a method for processing information according to a fourth embodiment of the present disclosure;

[0025] Figure 5 is a flowchart of a method for processing information according to a fifth embodiment of the present disclosure;

[0026] Figure 6 is a structural block diagram of an information processing device according to a sixth embodiment of the present disclosure;

[0027] Figure 7 4 is a schematic diagram of the structure of an electronic device according to the seventh embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0030] The following is an explanation of the terms in the embodiments of the present disclosure:

[0031] Client, also known as user end, refers to the program that corresponds to the server and provides local services to customers.

[0032] The server side, also known as the server side, refers to a computer program or device that provides a certain service in a computer network.

[0033] The information processing method and device according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0034] Figure 1 is a flowchart of the information processing method of the first embodiment of the present disclosure, such as Figure 1 As shown, the method comprises the following steps:

[0035] In step S101, order information sent by a first terminal device is received, a QR code is generated based on an order identifier carried in the order information, and the QR code is sent to the first terminal device for display.

[0036] In an embodiment of the present application, the order information includes at least one or more of the following: order creation time, order status, payment information, target object information, product information, discount information, and order identification.

[0037] In some embodiments, a preset QR code generation tool can be called to convert the order identifier and generate a QR code; in some embodiments, pre-set field types can be obtained from the order information, such as the order identifier and payment information, and a preset QR code generation tool or interface can be called to convert the order identifier and payment information to generate a QR code.

[0038] In some implementations, in order to further improve data security, the order identifier carried in the order information may be encrypted, and then a QR code may be generated based on the encrypted order identifier.

[0039] Optionally, in the embodiment of the present disclosure, the first terminal device may be a client.

[0040] In step S102, at least one data block is generated according to the order information, the data block is stored in a target data node of the distributed storage system, and the single-level directory information of the distributed storage system is updated according to the target data node and the order identifier.

[0041] In some implementations, the order information and the QR code are converted based on a preset data format to create at least one data block.

[0042] In some implementations, the order information is converted based on a preset data format to create at least one data block.

[0043] In some implementations, the amount of data of each candidate data node in the distributed database is obtained, the candidate data nodes are sorted based on the amount of data, and a preset number of candidate data nodes with less data are determined from the candidate data nodes as target data nodes. For example, data blocks can be stored in one or more target data nodes of a distributed storage system.

[0044] In some embodiments, index information is obtained based on the target data node and the order identifier, for example, the order identifier is used as the index and the path or identifier of the target data center is used as the index value to obtain the index information, and the index information is updated to the single-level directory information.

[0045] In step S103, the QR code sent by the second terminal device is received, and the single-level directory information is queried based on the QR code to obtain the target data node associated with the QR code.

[0046] Optionally, the second terminal device may be a server.

[0047] For example, in the embodiment of the present disclosure, the second terminal device can scan the QR code displayed by the first terminal device, and then send the QR code to the payment system. The payment system receives the QR code sent by the second terminal device, obtains an index based on the QR code, queries the single-level directory information based on the index, and obtains the target data node associated with the QR code.

[0048] In some implementations, the QR code is encrypted information, and the QR code can be decrypted according to a preset decryption strategy, and then an index can be obtained based on the QR code.

[0049] If the target data node associated with the QR code is obtained, the system returns detailed information about the data block in the node (such as path, size, type, etc.). If the target data node associated with the QR code is not found, it will prompt that the target object target data node does not exist.

[0050] In step S104, a data block is read from the target data node, where the data block includes payment information of the order information for subsequent payment operations.

[0051] Optionally, the path for reading the data block can be obtained based on the single-level directory information, and then based on the path, the data block can be read from the target data node, thereby quickly locating and reading the relevant data to achieve rapid processing of payment data. The data block includes payment information of the order information, and the payment information can be verified for security, and subsequent payment operations can be performed after the verification is passed.

[0052] In the disclosed embodiment, at least one data block is generated according to the order information, the data block is stored in the target data node of the distributed storage system, and the single-level directory information of the distributed storage system is updated according to the target data node and the order identifier; the QR code sent by the second terminal device is received, and the single-level directory information is queried based on the QR code to obtain the target data node associated with the QR code; the data block is read from the target data node, and the data block includes the payment information of the order information for subsequent payment operations. By optimizing the data storage and query process of order QR code payment, combined with the efficient processing capabilities of single-level directory search and distributed redundant storage, efficient processing and storage of payment orders can be achieved, thereby speeding up the payment process, improving user experience, and providing efficient and secure payment solutions.

[0053] Figure 2 is a flowchart of a method for processing information according to a second embodiment of the present disclosure. Figure 2 As shown, the method comprises the following steps:

[0054] In step S201, order information sent by the first terminal device is received, a QR code is generated based on an order identifier carried in the order information, and is sent to the first terminal device for display.

[0055] In step S202, at least one data block is generated according to the order information, and the data block is stored in a target data node of the distributed storage system.

[0056] For the introduction of step S201 to step S202, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.

[0057] In step S203, index information of the data block is generated according to the target data node and the order identifier.

[0058] In some implementations, the index information of the data block is generated using the order identifier as an index and the identifier and path of the target data node as an index value.

[0059] In some implementations, a hash calculation is performed based on the order identifier to obtain a hash value of the order identifier, and index information of the data block is generated using the hash value of the order identifier as an index and the identifier and path of the target data node as an index value.

[0060] In some embodiments, in order to generate the index information of the data block, data encryption, risk identification and access control can be used to ensure the security of the stored order QR code and its associated data. For example, the index and / or index value can be encrypted, and accordingly, when the data block is subsequently read based on the index and / or index value, it is first decrypted. For another example, the generation process and use process of the index information are monitored for risks, and the data reading or processing process is stopped when it is determined that there is a risk. For another example, the identification of the first terminal device and the second terminal device that can be allowed to access can be used to control access to the first terminal device and the second terminal device.

[0061] In step S204, the single-level directory information is stored in blocks, and the index range of each storage block is obtained.

[0062] In the disclosed embodiment, the global directory table included in the single-level directory information can be stored in blocks, each block containing a certain number of directory entries. For each storage block, its index range can be obtained through the start index and the end index.

[0063] In step S205, the target index range corresponding to the order identifier is determined.

[0064] In some implementations, when the order identifier is used as the index, the corresponding target index range may be determined based on the order identifier.

[0065] In some implementations, when the hash value of the order identifier is used as an index, a hash calculation is first performed based on the order identifier to obtain the hash value of the order identifier, and then the target index range corresponding to the order identifier is located through the hash value.

[0066] In step S206, the target storage block corresponding to the target index range is determined, and the index information is updated to the target storage block to update the single-level directory information.

[0067] In some implementations, there is a mapping relationship between the index range and the storage block. Based on the mapping relationship, the target storage block corresponding to the target index range can be determined, and then the index information can be updated to the target storage block to update the single-level directory information.

[0068] In step S207, the QR code sent by the second terminal device is received, and the single-level directory information is queried based on the QR code to obtain the target data node associated with the QR code.

[0069] In step S208, a data block is read from the target data node, the data block including payment information of the order information for subsequent payment operations.

[0070] For the introduction of steps S207 to S208, reference may be made to the relevant contents in the above embodiments, which will not be repeated here.

[0071] In an embodiment of the present disclosure, index information of the data block is generated according to the target data node and the order identifier, the single-level directory information is stored in blocks, the index range of each storage block is obtained, the target index range corresponding to the order identifier is determined, the target storage block corresponding to the target index range is determined, and the index information is updated to the target storage block to update the single-level directory information. The present disclosure can reduce data transmission and processing errors caused by network anomalies or data center anomalies, improve the flexibility of information processing, and improve the stability and availability of the system.

[0072] Figure 3 is a flowchart of a method for processing information according to a third embodiment of the present disclosure. Figure 3 As shown, the method comprises the following steps:

[0073] In step S301, order information sent by the first terminal device is received, a QR code is generated based on an order identifier carried in the order information, and the QR code is sent to the first terminal device for display.

[0074] In step S302, at least one data block is generated according to the order information, the data block is stored in a target data node of the distributed storage system, and the single-level directory information of the distributed storage system is updated according to the target data node and the order identifier.

[0075] In step S303, a QR code sent by the second terminal device is received.

[0076] For the introduction of steps S301 to S303, reference may be made to the relevant contents in the above embodiments, which will not be repeated here.

[0077] In step S304, the QR code is parsed to obtain the order identifier carried by the QR code.

[0078] Call the preset QR code processing tool to read and parse the QR code and extract the order ID.

[0079] In some implementations, the extracted data may be further processed or verified according to a specific order identification format.

[0080] In step S305, the single-level directory information is queried based on the order identifier to obtain the target data node associated with the QR code.

[0081] In some embodiments, a target index range corresponding to the order identifier is obtained, and a target storage block corresponding to the target index range is determined. Based on the order identifier, index information corresponding to the order identifier is queried from the target storage block, and the target data node associated with the QR code is determined based on the index information.

[0082] For example, the index range includes "0-100000", "100001-200000", and "200001-300000", where the index range "0-100000" corresponds to storage block A, the index range "100001-200000" corresponds to storage block B, and the index range "200001-300000" corresponds to storage block C. If the order ID is 123456, the target index range corresponding to the order ID is "100001-200000", and the target storage block is storage block B. Based on the order ID, the index information corresponding to the order ID is queried from storage block B, and the target data node associated with the QR code is determined according to the index information.

[0083] In step S306, a data block is read from the target data node, the data block including payment information of the order information for subsequent payment operations.

[0084] For the introduction of step S306, please refer to the relevant content in the above embodiment, which will not be repeated here.

[0085] The present invention parses the QR code, obtains the order identifier carried by the QR code, queries the single-level directory information based on the order identifier, and obtains the target data node associated with the QR code. This can reduce the delay in data transmission and processing caused by network anomalies or data center anomalies, and supports parallel processing and data synchronization mechanisms through redundant data storage and single-level directory search, thereby improving the processing and access speed of payment requests and ensuring data integrity and consistency.

[0086] Figure 4 is a flowchart of a method for processing information according to a fourth embodiment of the present disclosure. Figure 4 As shown, the method comprises the following steps:

[0087] In step S401, order information sent by the first terminal device is received, a QR code is generated based on an order identifier carried in the order information, and the QR code is sent to the first terminal device for display.

[0088] In step S402, at least one data block is generated according to the order information.

[0089] For the introduction of step S401 to step S402, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.

[0090] In step S403, the status information of the candidate data nodes of the distributed storage system is determined.

[0091] In some embodiments, the status information includes at least one or more of load information, online / offline status, storage capacity, and response time. The load information is used to determine the usage of resources such as memory of the candidate data node, the storage capacity is used to determine the available storage space of the candidate data node, the response time is used to determine the delay in the node processing the request, and the online / offline status is used to determine whether the candidate data node is working properly.

[0092] In step S404, load balancing is performed on the candidate data nodes according to the state information to obtain at least two target data nodes.

[0093] In some implementations, the candidate data nodes are load balanced according to the status information to obtain target candidate data nodes, and at least two data nodes belonging to different data centers are selected from the target candidate data nodes as target data nodes.

[0094] Load balancing is a key link to ensure system performance and availability. By monitoring and analyzing the status information of candidate data nodes, requests can be flexibly allocated to optimize resource utilization, reduce latency, and avoid single point failures. For example, if the status information includes load information, online / offline status, storage capacity, and response time, data nodes with online status, less data volume, large storage space, and short response time among the candidate data nodes are prioritized as target data nodes.

[0095] In step S405, the data blocks are redundantly stored in at least two target data nodes.

[0096] In some implementations, two target data nodes are determined from the candidate data nodes, and the data blocks are redundantly stored in the two target data nodes.

[0097] In some implementations, a plurality of target data nodes are determined from the candidate data nodes, and two or a preset number of target data nodes are randomly selected from the plurality of target data nodes to redundantly store data blocks.

[0098] In step S406, the single-level directory information of the distributed storage system is updated according to the target data node and the order identifier.

[0099] In step S407, the QR code sent by the second terminal device is received, and the single-level directory information is queried based on the QR code to obtain the target data node associated with the QR code.

[0100] In step S408, a data block is read from the target data node, the data block including payment information of the order information for subsequent payment operations.

[0101] For the introduction of steps S406 to S408, reference may be made to the relevant contents in the above embodiment, which will not be repeated here.

[0102] The present invention determines the status information of candidate data nodes of a distributed storage system, performs load balancing on the candidate data nodes based on the status information, obtains at least two target data nodes, and redundantly stores data blocks in the at least two target data nodes, which can reduce the delay of data transmission and processing caused by network anomalies or data center anomalies, realize the optimization and acceleration of the payment process, improve the flexibility of information processing, disperse the pressure of data processing, and improve the stability and availability of the system.

[0103] like Figure 5 As shown, in some embodiments, order information sent by the first terminal device is received, a QR code is generated based on the order identifier carried in the order information, and is sent to the first terminal device for display; at least one data block is generated according to the order information, the data block is stored in the target data node of the distributed storage system, and the single-level directory information of the distributed storage system is updated according to the target data node and the order identifier; a QR code sent by the second terminal device is received, the single-level directory information is queried based on the QR code, at least two target data nodes associated with the QR code are obtained, and the load information of each of the at least two target data nodes is obtained, the load information at least includes the current number of visits to the target data node, based on the load information, the first target data node is determined from the at least two target data nodes, and the data block is read from the first target data node, the data block includes payment information of the order information, which is used for subsequent payment operations. After the payment is successful, a response message can also be generated and sent to the first terminal device and the second terminal device.

[0104] The present disclosure combines order QR codes with single-level directory distributed redundant storage to speed up and optimize the payment process. The system not only improves payment speed and data reliability, but also optimizes user experience and system stability. The present disclosure can reduce data transmission and processing delays caused by network anomalies or data center anomalies, optimize and speed up the payment process, improve the flexibility of information processing, disperse data processing pressure, and improve system stability and availability.

[0105] Figure 6 is a block diagram of an information processing device according to a sixth embodiment of the present disclosure.

[0106] like Figure 6 As shown, the information processing device 600 of the embodiment of the present disclosure includes:

[0107] The first processing module 610 is configured to receive the order information sent by the first terminal device, generate a QR code based on the order identifier carried in the order information, and send the QR code to the first terminal device for display;

[0108] The second processing module 620 is used to generate at least one data block according to the order information, store the data block in a target data node of the distributed storage system, and update the single-level directory information of the distributed storage system according to the target data node and the order identifier;

[0109] The third processing module 630 is used to receive the QR code sent by the second terminal device, and query the single-level directory information based on the QR code to obtain the target data node associated with the QR code;

[0110] The fourth processing module 640 is used to read a data block from the target data node, where the data block includes payment information of the order information for subsequent payment operations.

[0111] In some implementations, the second processing module 620 is further configured to:

[0112] Generate index information of data blocks according to target data node and order ID;

[0113] According to the index information of the data block, the single-level directory of the distributed storage system is updated.

[0114] In some implementations, the second processing module 620 is further configured to:

[0115] Generate the index information of the data block by using the order ID as the index and the ID and path of the target data node as the index value; or,

[0116] A hash calculation is performed according to the order identifier to obtain a hash value of the order identifier, and the hash value of the order identifier is used as an index, and the identifier and path of the target data node are used as the index value to generate index information of the data block.

[0117] In some implementations, the second processing module 620 is further configured to:

[0118] The single-level directory information is stored in blocks, and the index range of each storage block is obtained;

[0119] Determine the target index range corresponding to the order identifier;

[0120] The target storage block corresponding to the target index range is determined, and the index information is updated into the target storage block to update the single-level directory information.

[0121] In some implementations, the third processing module 630 is further configured to:

[0122] Parse the QR code and obtain the order ID carried by the QR code;

[0123] The single-level directory information is queried based on the order ID to obtain the target data node associated with the QR code.

[0124] In some implementations, the third processing module 630 is further configured to:

[0125] Obtain a target index range corresponding to the order identifier, and determine a target storage block corresponding to the target index range;

[0126] Based on the order identifier, query the index information corresponding to the order identifier from the target storage block;

[0127] According to the index information, the target data node associated with the QR code is determined.

[0128] In some implementations, the second processing module 620 is further configured to:

[0129] Determine status information of candidate data nodes of the distributed storage system;

[0130] According to the status information, load balance the candidate data nodes to obtain at least two target data nodes;

[0131] The data blocks are redundantly stored in at least two target data nodes.

[0132] In some implementations, the second processing module 620 is further configured to:

[0133] According to the status information, load balance the candidate data nodes to obtain the target candidate data nodes;

[0134] At least two data nodes belonging to different data centers are selected from the target candidate data nodes as target data nodes.

[0135] In some implementations, the second processing module 620 is further configured to:

[0136] Query the single-level directory information based on the QR code to obtain at least two target data nodes associated with the QR code;

[0137] Obtaining load information of at least two target data nodes, where the load information at least includes the current access volume of the target data nodes;

[0138] Based on the load information, a first target data node is determined from at least two target data nodes, and a data block is read from the first target data node.

[0139] The present disclosure can reduce the delay of data transmission and processing caused by network anomalies or data center anomalies, optimize and speed up the payment process, improve the flexibility of information processing, disperse data processing pressure, and improve the stability and availability of the system.

[0140] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.

[0141] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be considered as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

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

[0143] Figure 7 2 is a schematic diagram of the structure of the electronic device of the seventh embodiment of the present disclosure. It should be noted that the electronic device can be any electronic device in a client, a bank system, or a card organization system.

[0144] like Figure 7 As shown, the electronic device 700 includes:

[0145] The memory 710 and the processor 720, a bus 730 connecting different components (including the memory 710 and the processor 720), the memory 710 stores a computer program, and when the processor 720 executes the program, the information processing method described in the embodiment of the present disclosure is implemented.

[0146] Bus 730 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0147] The electronic device 700 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.

[0148] The memory 710 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 740 and / or cache memory 750. The electronic device 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 760 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 730 via one or more data medium interfaces. The memory 710 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0149] A program / utility 780 having a set (at least one) of program modules 770 may be stored, for example, in the memory 710, such program modules 770 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 770 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0150] The electronic device 700 may also communicate with one or more external devices 790 (e.g., keyboard, pointing device, display 791, etc.), one or more devices that enable a user to interact with the electronic device 700, and / or any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 792. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 793. Figure 7 As shown, the network adapter 793 communicates with other modules of the electronic device 700 via the bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0151] The processor 720 executes various functional applications and data processing by running the programs stored in the memory 710 .

[0152] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the information processing method of the embodiment of the present disclosure, which will not be repeated here.

[0153] In order to implement the above embodiments, the present disclosure also proposes a computer-readable storage medium.

[0154] When the instructions in the computer-readable storage medium are executed by the processor of the service server, the service server can execute the information processing method as described above. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0155] In order to implement the above embodiments, the present disclosure further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the information processing method as described above is implemented.

[0156] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0157] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for processing information, characterized in that: include: Receiving order information sent by the first terminal device, generating a QR code based on an order identifier carried in the order information, and sending the QR code to the first terminal device for display; Generate at least one data block according to the order information, store the data block in a target data node of the distributed storage system, and update the single-level directory information of the distributed storage system according to the target data node and the order identifier; The QR code sent by the second terminal device is received, and the single-level directory information is queried based on the QR code to obtain a target data node associated with the QR code; The data block is read from the target data node, where the data block includes payment information of the order information for performing subsequent payment operations.

2. The method according to claim 1, characterized in that The updating of the single-level directory of the distributed storage system according to the target data node and the order identifier includes: Generate index information of the data block according to the target data node and the order identifier; The single-level directory of the distributed storage system is updated according to the index information of the data block.

3. The method according to claim 2, characterized in that The generating the index information of the data block according to the target data node and the order identifier includes: Generate index information of the data block by using the order identifier as an index and the identifier and path of the target data node as an index value; or, A hash calculation is performed according to the order identifier to obtain a hash value of the order identifier, and the hash value of the order identifier is used as an index, and the identifier and path of the target data node are used as the index value to generate index information of the data block.

4. The method according to claim 3, characterized in that The updating of the single-level directory of the distributed storage system according to the index information of the data block includes: The single-level directory information is stored in blocks, and an index range of each storage block is obtained; Determine the target index range corresponding to the order identifier; A target storage block corresponding to the target index range is determined, and the index information is updated into the target storage block to update the single-level directory information.

5. The method according to any one of claims 1 to 4, characterized in that The querying the single-level directory information based on the QR code to obtain the target data node associated with the QR code includes: Parse the QR code to obtain the order ID carried by the QR code; The single-level directory information is queried based on the order identifier to obtain a target data node associated with the QR code.

6. The method according to claim 5, characterized in that The querying of the single-level directory information based on the order identifier to obtain the target data node associated with the QR code includes: Obtaining a target index range corresponding to the order identifier, and determining a target storage block corresponding to the target index range; Based on the order identifier, querying the index information corresponding to the order identifier from the target storage block; The target data node associated with the QR code is determined according to the index information.

7. The method according to any one of claims 1 to 4, characterized in that Storing the data block in a target data node of the distributed storage system includes: Determine status information of candidate data nodes of the distributed storage system; According to the state information, load balancing is performed on the candidate data nodes to obtain at least two target data nodes; The data block is redundantly stored in the at least two target data nodes.

8. The method according to claim 7, characterized in that The step of performing load balancing on the candidate data nodes according to the state information to obtain at least two target data nodes includes: According to the state information, load balancing is performed on the candidate data nodes to obtain a target candidate data node; At least two data nodes belonging to different data centers are selected from the target candidate data nodes as the target data nodes.

9. The method according to claim 7, characterized in that: The method further comprises: Query the single-level directory information based on the QR code to obtain the at least two target data nodes associated with the QR code; Obtaining load information of each of the at least two target data nodes, wherein the load information at least includes current access volume of the target data node; Based on the load information, a first target data node is determined from the at least two target data nodes, and the data block is read from the first target data node.

10. An information processing device, characterized in that: include: A first processing module, configured to receive order information sent by a first terminal device, generate a QR code based on an order identifier carried in the order information, and send the QR code to the first terminal device for display; a second processing module, configured to generate at least one data block according to the order information, store the data block in a target data node of the distributed storage system, and update the single-level directory information of the distributed storage system according to the target data node and the order identifier; A third processing module is used to receive the QR code sent by the second terminal device, and query the single-level directory information based on the QR code to obtain a target data node associated with the QR code; The fourth processing module is used to read the data block from the target data node, where the data block includes the payment information of the order information for subsequent payment operations.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.