Data processing method and device, equipment, storage medium and program product
By verifying the area code, determining the target user ID and associating it with a preset account, the problem of the existing technology that the area code needs to rely on a third-party payment platform is solved, and efficient account deduction processing and improved user experience are achieved.
Patent Information
- Application Number
- CN202510822317.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-26
AI Technical Summary
In the existing technology, the area code needs to rely on the payment code of the third-party payment platform after identity verification, which leads to interruption of the operation process and low processing efficiency.
By verifying the area code, the target user ID is determined and associated with the pending order, so that the preset account corresponding to the target user ID can be deducted, avoiding the need to present the transaction code.
It improves processing efficiency, enhances user experience, realizes automatic account transfer, and simplifies the payment process.
Smart Images

Figure CN120707147A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data, and in particular to a data processing method, apparatus, device, storage medium, and program product. Background Art
[0002] As an important part of digital city construction, the area code has become the core carrier of citizens' electronic identity identification. It is widely used in government services, public transportation, medical and health care, and other scenarios, providing digital convenience for identity authentication.
[0003] In related technologies, area codes are primarily used for identity verification and information verification, but their functionality is limited to non-payment scenarios. After users present their area codes to complete identity verification, they still need to rely on the payment code from the third-party payment platform, disrupting the process and reducing processing efficiency. Summary of the Invention
[0004] The present application provides a data processing method, apparatus, device, storage medium and program product to solve the technical problem of low processing efficiency.
[0005] In a first aspect, the present application provides a data processing method, comprising:
[0006] Receiving a target area code of a target user sent by a code scanning terminal, wherein the target area code is a unique identifier of the target user in the target area;
[0007] Verify the target area code to obtain a target user identifier, and send the target user identifier to the code scanning terminal, where the target user identifier is used to associate with a preset account of the target user;
[0008] Receive a pending order corresponding to a target user identifier sent by the code scanning terminal;
[0009] According to the pending order, the preset account corresponding to the target user identifier is deducted.
[0010] In a second aspect, the present application provides a data processing device, including a first receiving module, a verification processing module, a sending module, a second receiving module, and a deduction processing module:
[0011] The first receiving module is used to receive a target area code of a target user sent by a code scanning terminal, where the target area code is a unique identifier of the target user in the target area;
[0012] The verification processing module is used to verify the target area code to obtain the target user identification;
[0013] The sending module is used to send the target user identifier to the code scanning terminal, and the target user identifier is used to associate with the preset account of the target user;
[0014] The second receiving module is used to receive a pending order corresponding to a target user identifier sent by the code scanning terminal;
[0015] The deduction processing module is used to deduct money from the preset account corresponding to the target user identifier according to the pending order.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor;
[0017] The memory stores computer-executable instructions;
[0018] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementation methods of the first aspect.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0021] The data processing method, apparatus, device, storage medium, and program product provided herein can verify a region code, determine its corresponding target user ID, associate the target user ID with a pending order, and then debit the preset account corresponding to the target user ID. After the user presents the region code, there is no need to present the transaction code, enabling automatic account transfer, improving processing efficiency and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0024] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of an interaction for creating a preset account provided in an embodiment of the present application;
[0026] Figure 4 A flowchart of another data processing method provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of an interactive payment process provided in an embodiment of the present application;
[0028] Figure 6 A flowchart of a method for processing a refund request provided in an embodiment of the present application;
[0029] Figure 7 An interactive diagram of a refund process provided in an embodiment of the present application;
[0030] Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0031] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0032] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0034] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0035] In addition, this application involves conducting big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and using artificial intelligence technology to make automated decisions, and making technical solutions that have a significant impact on personal rights and interests based on the results of automated decisions. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decisions; if the user chooses to reject, the expert decision-making process will be entered.
[0036] It should be noted that the data processing methods, devices, equipment, storage media and program products provided in this application can be used in the field of big data, and can also be used in any field other than the field of big data. The application fields of the data processing methods, devices, equipment, storage media and products in this application are not limited.
[0037] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application. Figure 1 , including a user terminal 101, a code scanning terminal 102 and a processing device 103.
[0038] After purchasing a product, the user needs to present a payment code through the user terminal 101 to pay for the product. The merchant can scan the payment code presented by the user terminal 101 through the scanning terminal 102. After the scanning terminal 102 recognizes the payment code, it can send the payment code and the pending order to the processing device 103. The processing device 103 can deduct the user account corresponding to the payment code to complete the order payment.
[0039] As an important part of digital city construction, the area code has become the core carrier of citizens' electronic identity identification. It is widely used in government services, public transportation, medical and health care, and other scenarios, providing digital convenience for identity authentication.
[0040] Before presenting the payment code through the user terminal 101 , the user may present the area code through the user terminal 101 to verify the user's identity in the area, so as to obtain the payment policy or consumption points of the area.
[0041] In related technologies, area codes are primarily used for identity verification and information verification, but their functionality is limited to non-payment scenarios. After users present their area codes to complete identity verification, they still need to rely on the payment code from the third-party payment platform, disrupting the process and reducing processing efficiency.
[0042] The data processing method provided in the embodiments of this application can verify the region code, determine its corresponding target user ID, associate the target user ID with the pending order, and then debit the preset account corresponding to the target user ID. After the user presents the region code, there is no need to present the transaction code, and the account can be automatically transferred, improving processing efficiency and enhancing the user experience.
[0043] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0044] Figure 2 This is a flow chart of a data processing method provided in an embodiment of the present application. Figure 2 , the method may include:
[0045] S201: Receive a target area code of a target user sent by a code scanning terminal.
[0046] The execution subject of the embodiments of the present application may be a processing device, or a data processing device provided in the processing device. The data processing device may be implemented by software, or by a combination of software and hardware.
[0047] The target user can register area codes in multiple areas. The target area code is the unique identifier of the target user in the target area.
[0048] The target user can enter the target user's name, mobile phone number, ID number in the registration interface of the application corresponding to the area code, and upload photos of the front and back of the ID card to generate the corresponding target area code.
[0049] After creating the target area code, a preset account corresponding to the target user can be created in the transaction system through the target user ID.
[0050] Figure 3 This is a schematic diagram of an interaction for creating a preset account provided in an embodiment of the present application. Figure 3 The target user logs into a region code application through a user terminal. The region code application can be a third-party application that accesses payment functions. The target user has registered the target region code in the region code application. The region code application can call the transaction system and create a preset account in the transaction system. The preset account can be a second-class account.
[0051] You can associate a preset account with the target area code. After the target user presents the area code, the order payment can be made by calling the preset account.
[0052] The preset account can also be a historical account that the target user has created before creating the target region code. The target user can select a historical account from multiple historical accounts to associate with the target region code.
[0053] The preset account may be a second-class account, through which the amount of area code payment may be limited to improve the security of user payment.
[0054] S202: Verify the target area code to obtain a target user ID, and send the target user ID to the code scanning terminal.
[0055] The target user ID can be used to associate with the preset account of the target user.
[0056] In some possible embodiments, it may be determined whether the target area code complies with the area code standard; if so, the identity of the target area code is authenticated to determine the target user identifier corresponding to the target area code.
[0057] The area code may include area division identification, unique user identification, code issuing agency identification, validity period, authority scope, and digital signature.
[0058] The area division mark may be a preset area image of the corresponding area.
[0059] Whether the target area code complies with the area code standard can be verified through the preset coding rules of the area code.
[0060] In some possible embodiments, if the target area code does not meet the area code standard, or the identity verification of the target area code fails, a failure prompt message is sent to the scanning terminal, and the scanning terminal can issue an error prompt and display an error message to end the payment process.
[0061] In this application, after the target area code meets the area code standard, the target area code is authenticated and then the target user identification is determined, which can improve the security of payment through the area code.
[0062] S203: Receive a pending order corresponding to the target user identifier sent by the code scanning terminal.
[0063] The code scanning terminal can generate a pending order based on the target user ID, payment amount, object ID, object information, payment time and other information, and send the pending order to the processing device.
[0064] The pending order may include the target user ID, payment amount, object ID, object information, payment time, etc.
[0065] S204: Deduct money from the preset account corresponding to the target user ID according to the pending order.
[0066] In some possible embodiments, the target payment strategy corresponding to the object identifier can be determined among multiple payment strategies in the target area based on the target user identifier; the preset account corresponding to the target user identifier can be determined; and deductions can be made in the preset account based on the target payment strategy, the object limit, and the object information.
[0067] The preset account may be an account specified by the target user when creating the target area code.
[0068] The payment strategy may include regional discounts, discount activities or other strategies for reducing the payment amount provided to users in the area.
[0069] The target payment strategy may be a payment strategy with the least payment amount for the identified object among multiple supporting strategies.
[0070] In this application, a target payment strategy can be determined from multiple payment strategies, and deductions can be made from a preset account. This can automatically provide the target payment strategy to the user, improving the user experience and reducing refunds caused by users not selecting the optimal target payment strategy.
[0071] The data processing method provided in the embodiments of this application can verify the region code, determine its corresponding target user ID, associate the target user ID with the pending order, and then debit the preset account corresponding to the target user ID. After the user presents the region code, there is no need to present the transaction code, and the account can be automatically transferred, improving processing efficiency and enhancing the user experience.
[0072] Figure 4 This is a flow chart of another data processing method provided in the embodiment of the present application. Figure 4 , the method may include:
[0073] S401: Receive a target area code of a target user sent by a code scanning terminal.
[0074] The execution process of S401 can refer to the execution process of S201, and will not be repeated here.
[0075] S402: Determine whether the target area code complies with area code standards.
[0076] In some possible embodiments, image recognition processing is performed on the target area code to obtain an identification area image corresponding to the target area code; the identification area image is matched with multiple preset area images; if the identification area image exists in the multiple preset area images, the target area code meets the area code standard; if the identification area image does not exist in the multiple preset area images, the target area code does not meet the area code standard.
[0077] At the center of the area code, a preset area image of the corresponding area can be displayed. The preset area image corresponding to each area has the characteristics of the area. The preset area image can be a logo image of the corresponding area.
[0078] The image recognition process can be performed to determine the corresponding identification area image in the target area code, wherein the image recognition process can be performed through an image recognition model.
[0079] The preset area image corresponding to each area can be obtained, and the recognition area image can be matched with multiple preset area images. If the recognition area image can be matched among multiple preset area images, it meets the area code standard; if the recognition area image cannot be matched, it does not meet the area code standard.
[0080] In this application, each area has its own specific preset area image, and each preset area image is different. By identifying the area image in the target area code and verifying the target area code, the security of payment through the area code can be improved.
[0081] S403: If yes, authenticate the identity of the target area code and determine the target user ID corresponding to the target area code.
[0082] In some possible embodiments, a preset correspondence table may be obtained; and the target user identifier may be determined in the preset correspondence table according to the target area code.
[0083] The preset correspondence table may include correspondences between multiple user identifiers and target area codes.
[0084] The corresponding relationship may be stored when the user generates the area code during registration.
[0085] For example, assuming that the preset correspondence table is as shown in Table 1, and assuming that the target area code is area code 2, the target user identifier can be determined to be user identifier 1.
[0086] Table 1
[0087]
[0088] In this application, identity authentication of the target area code can be achieved through a preset correspondence table. The target area code exists in the preset correspondence table, that is, payment processing can be performed through the area code, the corresponding target user identifier can be determined, and the security of payment through the area code can be improved.
[0089] S404: Send the target user ID to the code scanning terminal.
[0090] S405: Receive the pending order corresponding to the target user identifier sent by the code scanning terminal.
[0091] The execution process of S404-S405 can refer to the execution process of S202-S203 in the above embodiment, and will not be repeated here.
[0092] S406: Determine, based on the target user identifier, a target payment policy corresponding to the object identifier from among multiple payment policies in the target area.
[0093] In some possible embodiments, the estimated payment amounts corresponding to the payment strategies in the target area are determined, and the payment strategy with the smallest estimated payment amount is determined as the target payment strategy.
[0094] For example, when a user makes a purchase in Region 1, they can receive a consumption coupon for that region, a user's equity coupon, and the payment recipient's own discount benefits. However, the region's consumption coupons and the user's equity coupons cannot be used in combination, while the payment recipient's own discount benefits can be used in combination with both consumption coupons and equity coupons. Therefore, two payment strategies are required: consumption coupons + discount benefits and equity coupons + discount benefits. If the discount on the region's consumption coupons is greater than the user's equity coupons, the target payment strategy is consumption coupons + discount benefits.
[0095] In some possible embodiments, the target user identifier corresponds to multiple payment vouchers, the expiration time of each payment voucher can be determined, and the payment policy corresponding to the payment voucher with the earliest expiration time is determined as the target payment policy.
[0096] S407: Determine the preset account corresponding to the target user identifier.
[0097] The default account is the account specified by the target user when creating the target area code.
[0098] S408: Create a transaction order corresponding to the target user ID according to the target payment strategy, target limit and target information.
[0099] The order status of a transaction order can be "Trading".
[0100] S409: Store the transaction order in the transaction blockchain.
[0101] You can call the "Create Order" interface of the payment blockchain to insert the order information into the blockchain.
[0102] Blockchain is tamper-proof and traceable. It can include multiple blocks, which grow linearly in chronological order.
[0103] In some possible embodiments, the transaction order may be stored in a target transaction block in the transaction blockchain; and based on the target transaction block, the association relationship in the logical mapping table corresponding to the transaction blockchain may be updated.
[0104] After the transaction order is stored in the transaction blockchain, a target transaction block is added to the transaction blockchain.
[0105] The logical mapping table can be used to record the association between each region code and the transaction block in the transaction blockchain.
[0106] After the target transaction block corresponding to the transaction order is stored in the transaction blockchain, the block identifier of the target transaction block can be added to the multiple block identifiers corresponding to the target area code in the logical mapping table.
[0107] In this application, a logical mapping table can be used to achieve logical partitioning of the transaction blockchain for regional codes, which facilitates subsequent processing of transaction data corresponding to each regional code, and also facilitates the management of the transaction blockchain.
[0108] S410: Determine the deduction amount based on the target payment strategy and the target amount, and deduct the deduction amount from the preset account through the payment interface.
[0109] The deduction amount is calculated based on the target payment strategy and the object amount. The deduction amount can be the estimated payment amount corresponding to the target payment strategy.
[0110] S411. Update the order status in the transaction order from "in process" to "transaction successful".
[0111] The order status of the target transaction block corresponding to the transaction order in the transaction blockchain can be updated to transaction success.
[0112] In some possible embodiments, the order status can be updated through smart contracts.
[0113] At the same time, after the deduction is successful, a success prompt can be sent to the scanning terminal, which can play a success prompt tone and display a successful payment page. If the payment fails due to insufficient account balance or other reasons, a failure prompt can be sent to the scanning terminal to display the failure reason.
[0114] The data processing method provided in the embodiments of this application can determine a target payment strategy from multiple payment strategies when deducting funds from a preset account, and then process the deduction from the preset account, eliminating the need for the user to manually select the appropriate payment strategy, thereby improving the user experience. Furthermore, transaction orders can be stored in the blockchain in the form of target transaction blocks, thereby improving the security of transaction data.
[0115] Figure 5 This is an interactive diagram of a payment process provided by an embodiment of this application. Figure 5 The target user can present the target area code through the user device. After obtaining the target area code, the scanning terminal can send it to the processing device. After receiving the target area code, the processing device can identify and confirm the target area code, determine the target user ID, and send the target user ID to the scanning terminal. The scanning terminal can generate a pending order based on the target user ID and object information and send the pending order to the processing device. The processing device can generate a transaction order based on the pending order, store the transaction order in the target transaction block of the transaction blockchain, and deduct the transaction order in the transaction system. After the payment is successful, a success notification is sent to the scanning terminal, and the scanning terminal can also announce the success notification through voice.
[0116] Based on the above embodiment, after the transaction is successful, the user may need to refund the transaction order. Figure 6 and Figure 7 , the execution process of the refund request provided in the embodiment of the present application is explained.
[0117] Figure 6 This is a flowchart of a method for processing a refund request provided in an embodiment of the present application. Figure 6 , the method may include:
[0118] S601: Receive a refund request sent by a user device.
[0119] The target user may select a refund in the transaction system of the user device, and the user device may send a refund request to the processing device.
[0120] A refund request can be used to refund the transaction order corresponding to the pending order.
[0121] S602: If the transaction order corresponding to the refund request is a revocable order, obtain the order status corresponding to the transaction order in the transaction blockchain.
[0122] You can review whether a transaction order can be refunded. If a full or partial refund is available, the transaction order is revocable.
[0123] For example, if a partial handling fee is deducted from the order, a partial refund can be made.
[0124] In the transaction blockchain, you can determine the transaction block corresponding to the transaction order and obtain the order status in the transaction block.
[0125] The order status can be any of the following: In progress, Payment successful, Payment failed, Refund in progress, and Refund completed.
[0126] S603: If the order status is payment successful, a refund is processed for the transaction order.
[0127] In some possible embodiments, if the order status is payment successful, the order information of the transaction order is obtained in the transaction blockchain; and a refund is processed in a preset account based on the order information.
[0128] The order information is stored in the transaction block corresponding to the transaction order, and the order information may include the deduction amount.
[0129] Refunds can be made to the preset account based on the deduction amount.
[0130] In some possible embodiments, the transaction order is a partial refund, and the current refund amount is determined based on the refund ratio and deduction amount of the partial refund, and the refund amount is refunded to the preset account.
[0131] In addition, during the refund process, the order status can be updated to Refund in Progress; after the refund is successful, the order status can be updated to Refunded.
[0132] In this application, order information can be obtained in the blockchain. Once the order information is stored in the blockchain, it cannot be tampered with, which can improve the security of refunds.
[0133] The data processing method provided in the embodiment of the present application can obtain the order status in the transaction blockchain after determining that the transaction order corresponding to the refund request is a revocable order, and process the refund for the transaction order, thereby improving the security of the refund.
[0134] Figure 7 This is an interactive diagram of a refund process provided in this application embodiment. Figure 7 The target user can send a refund request to the processing device through the user terminal. The processing device can determine whether the transaction order is revocable. If the order is revocable, the order status is determined in the transaction blockchain. If the order status is payment successful, the transaction order is refunded to the preset account in the transaction system and the order status is updated to refunded in the transaction blockchain.
[0135] Figure 8This is a structural diagram of a data processing device provided in an embodiment of the present application. Figure 8 The data processing device 800 may include a first receiving module 801, a verification processing module 802, a sending module 803, a second receiving module 804 and a deduction processing module 805:
[0136] The first receiving module 801 is used to receive the target area code of the target user sent by the code scanning terminal. The target area code is a unique identifier of the target user in the target area;
[0137] The verification processing module 802 is used to verify the target area code and obtain the target user identification;
[0138] The sending module 803 is used to send the target user identification to the scanning terminal, and the target user identification is used to associate with the preset account of the target user;
[0139] The second receiving module 804 is used to receive a pending order corresponding to a target user identifier sent by a code scanning terminal;
[0140] The deduction processing module 805 is used to deduct money from the preset account corresponding to the target user identifier according to the pending order.
[0141] In some possible embodiments, the verification processing module 802 is specifically configured to:
[0142] Determine whether the target area code meets the area code standard;
[0143] If so, the identity of the target area code is authenticated to determine the target user ID corresponding to the target area code.
[0144] In some possible embodiments, the verification processing module 802 is specifically configured to:
[0145] Performing image recognition processing on the target area code to obtain a recognition area image corresponding to the target area code;
[0146] Matching the recognition area image with a plurality of preset area images, wherein the preset area images are landmark images of their corresponding areas;
[0147] If the identification area image exists in the plurality of preset area images, the target area code meets the area code standard;
[0148] If the identification area image does not exist in the plurality of preset area images, the target area code does not meet the area code standard.
[0149] In some possible embodiments, the verification processing module 802 is specifically configured to:
[0150] Obtaining a preset correspondence table, which includes correspondences between multiple user identifiers and target area codes, the correspondences being stored when the user registers and generates the area code;
[0151] According to the target area code, the target user identifier is determined in the preset corresponding relationship table.
[0152] In some possible embodiments, the pending order includes an object identifier, an object amount, and object information; and the deduction processing module 805 is specifically configured to:
[0153] According to the target user identifier, determining a target payment policy corresponding to the object identifier among multiple payment policies in the target area;
[0154] Determine the preset account corresponding to the target user ID, where the preset account is the account specified by the target user when creating the target area code;
[0155] Deductions are made from the preset account based on the target payment strategy, target amount, and target information.
[0156] In some possible embodiments, the deduction processing module 805 is specifically configured to:
[0157] Create a transaction order corresponding to the target user ID based on the target payment strategy, target limit, and target information. The order status in the transaction order is "in progress."
[0158] Store transaction orders in the transaction blockchain;
[0159] Determine the deduction amount based on the target payment strategy and the target amount, and deduct the deduction amount from the preset account through the payment interface;
[0160] Update the order status in the transaction order from "Transaction in Progress" to "Transaction Successful".
[0161] In some possible embodiments, the deduction processing module 805 is specifically configured to:
[0162] Store the transaction order in the target transaction block in the transaction blockchain;
[0163] According to the target transaction block, the association relationship in the logical mapping table corresponding to the transaction blockchain is updated. The logical mapping table is used to record the association relationship between each area code and the transaction block in the transaction blockchain.
[0164] In some possible embodiments, the apparatus 800 further includes a third receiving module, an acquisition module, and a refund processing module:
[0165] The third receiving module is used to receive a refund request sent by the user device, where the refund request is used to refund the transaction order corresponding to the pending order;
[0166] The acquisition module is used to obtain the order status corresponding to the transaction order in the transaction blockchain if the transaction order corresponding to the refund request is a revocable order;
[0167] The refund processing module is used to process a refund for a transaction order if the order status is payment successful.
[0168] In some possible embodiments, the refund processing module is specifically configured to:
[0169] If the order status is payment successful, obtain the order information of the transaction order in the transaction blockchain;
[0170] Based on the order information, a refund will be processed in the preset account.
[0171] The data processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0172] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 9 The electronic device 900 may include a processor 901 and a memory 902. Exemplarily, the processor 901 and the memory 902 are interconnected via a bus 903.
[0173] Memory 902 stores computer-executable instructions;
[0174] The processor 901 executes the computer-executable instructions stored in the memory 902 , so that the processor 901 performs the data processing method shown in the above method embodiment.
[0175] Accordingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the data processing method of the above-mentioned method embodiment.
[0176] Accordingly, an embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the data processing method shown in the above method embodiment.
[0177] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0178] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0179] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0181] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0182] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0183] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can be implemented using any method or technology for information storage. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0184] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0185] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A data processing method, characterized in that: include: Receiving a target area code of a target user sent by a code scanning terminal, wherein the target area code is a unique identifier of the target user in the target area; Verify the target area code to obtain a target user identifier, and send the target user identifier to the code scanning terminal, where the target user identifier is used to associate with a preset account of the target user; Receive a pending order corresponding to a target user identifier sent by the code scanning terminal; According to the pending order, the preset account corresponding to the target user identifier is deducted.
2. The method according to claim 1, characterized in that Verifying the target area code to obtain a target user identifier includes: Determining whether the target area code complies with area code standards; If yes, the identity of the target area code is authenticated to determine the target user identifier corresponding to the target area code.
3. The method according to claim 2, characterized in that Determining whether the target area code complies with area code standards includes: Performing image recognition processing on the target area code to obtain a recognition area image corresponding to the target area code; Matching the recognition area image with a plurality of preset area images, wherein the preset area images are landmark images of their corresponding areas; If the identification area image exists in the plurality of preset area images, the target area code meets the area code standard; If the identification area image does not exist in the plurality of preset area images, the target area code does not meet the area code standard.
4. The method according to claim 2, characterized in that Authentication of the target area code and determination of the target user identifier corresponding to the target area code include: Obtaining a preset correspondence table, the preset correspondence table including correspondences between multiple user identifiers and target area codes, the correspondences being stored when the user registers and generates the area code; The target user identifier is determined in the preset correspondence table according to the target area code.
5. The method according to claim 1, wherein The pending order includes a target identifier, a target amount, and target information; and according to the pending order, deducting money from a preset account corresponding to the target user identifier includes: According to the target user identifier, determining a target payment policy corresponding to the object identifier among multiple payment policies in the target area; Determine a preset account corresponding to the target user identifier, where the preset account is an account specified by the target user when creating the target area code; Deduction processing is performed in the preset account according to the target payment strategy, the object amount and the object information.
6. The method according to claim 5, characterized in that Deducting money from the preset account according to the target payment strategy, the object limit, and the object information includes: Creating a transaction order corresponding to the target user identifier according to the target payment strategy, the target amount, and the target information, wherein the order status in the transaction order is "transaction in progress"; Storing the transaction order in the transaction blockchain; Determine the deduction amount according to the target payment strategy and the target amount, and deduct the deduction amount from the preset account through the payment interface; Update the order status of the transaction order from in progress to successful transaction.
7. The method according to claim 6, characterized in that Storing the transaction order in the transaction blockchain includes: Storing the transaction order in a target transaction block in the transaction blockchain; According to the target transaction block, the association relationship in the logical mapping table corresponding to the transaction blockchain is updated, and the logical mapping table is used to record the association relationship between each area code and the transaction block in the transaction blockchain.
8. The method according to claim 1, characterized in that After deducting the amount from the preset account corresponding to the target user identifier according to the pending order, the method further includes: receiving a refund request sent by a user device, wherein the refund request is used to refund the transaction order corresponding to the pending order; If the transaction order corresponding to the refund request is a revocable order, obtaining the order status corresponding to the transaction order in the transaction blockchain; If the order status is payment successful, a refund will be processed for the transaction order.
9. The method according to claim 8, characterized in that If the order status is payment successful, the transaction order will be refunded, including: If the order status is payment successful, then obtaining the order information of the transaction order in the transaction blockchain; Based on the order information, a refund is processed in the preset account.
10. A data processing device, characterized in that: It includes a first receiving module, a verification processing module, a sending module, a second receiving module and a deduction processing module: The first receiving module is used to receive a target area code of a target user sent by a code scanning terminal, where the target area code is a unique identifier of the target user in the target area; The verification processing module is used to verify the target area code to obtain the target user identification; The sending module is used to send the target user identifier to the code scanning terminal, and the target user identifier is used to associate with the preset account of the target user; The second receiving module is used to receive a pending order corresponding to a target user identifier sent by the code scanning terminal; The deduction processing module is used to deduct money from the preset account corresponding to the target user identifier according to the pending order.
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, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.