Gate control method and device, storage medium and electronic equipment
By generating payment orders for multi-payment components in the gate control system and calling the target payment components to perform payment operations, the problem that gates only support a single payment platform in the prior art is solved, and support for multi-payment platforms and efficient gate control are achieved.
Patent Information
- Application Number
- CN202411353691.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-03-25
AI Technical Summary
The existing gate control system is relatively inefficient, mainly because it only supports the payment and ticket code verification functions of a single payment platform, which cannot meet the needs of multi-payment platforms.
By obtaining the order query request, generating and sending a business order, and upon receiving the confirmation message, a payment order for the multi-payment component is generated, and at least two target payment components are called to perform payment operations, determining the payment result, and controlling the gate to perform the target action when the payment is completed.
The gate control system supports multi-payment platforms, improves the gate control efficiency, and can handle different payment results more flexibly to ensure smooth payment.
Smart Images

Figure CN119694011A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and more specifically, to a gate control method and device, a storage medium, and an electronic device. Background Art
[0002] At present, in the application scenarios of various gates, it is often necessary to purchase tickets and pay in advance, and then pass the gate verification before entering or exiting the relevant places. However, in most scenarios, the gate only supports the payment and ticket code verification functions of a single payment platform, resulting in technical problems in related technologies such as low gate control efficiency.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a gate control method and device, a storage medium and an electronic device to at least solve the technical problem of low gate control efficiency.
[0005] According to one aspect of an embodiment of the present application, a control method for a gate is provided, comprising: obtaining an order query request, wherein the order query request is used to request obtaining a business order, the business order includes a trigger condition for the gate to perform a target action, and the order query request represents a request message generated by a target terminal by scanning a graphic code deployed on the gate; in response to the order query request, generating and sending the business order, and in the case of receiving a first confirmation message for the business order, generating and sending the payment order, wherein the payment order includes a plurality of payment components, and different payment components correspond to different payment platforms; in the case of receiving a second confirmation message for the payment order, calling at least two target payment components to perform a target payment operation and determining a target payment result, wherein the target payment component represents the payment component selected to complete the payment order indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; in response to the target payment result indicating that the payment of the payment order is completed, controlling the gate to perform the target action.
[0006] According to another aspect of an embodiment of the present application, a gate control device is also provided, including: an acquisition module, used to acquire an order query request, wherein the order query request is used to request to acquire a business order, the business order includes a trigger condition for the gate to perform a target action, and the order query request represents a request message generated by the target terminal by scanning a graphic code deployed on the gate; a generation module, used to respond to the order query request, generate and send the business order, and generate and send the payment order in response to receiving a first confirmation message for the business order, wherein the payment order includes a plurality of payment components, and different payment components correspond to different payment platforms; a calling module, used to, in response to receiving a second confirmation message for the payment order, call at least two target payment components to perform a target payment operation and determine a target payment result, wherein the target payment component represents the payment component selected to complete the payment order indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; a control module, used to control the gate to perform the target action in response to the target payment result indicating that the payment of the payment order is completed.
[0007] Optionally, the device is used to call at least two target payment components to perform a target payment operation and determine a target payment result in the following manner upon receiving a second confirmation message for the payment order: upon receiving the second confirmation message, select a first payment component from the multiple payment components based on the second confirmation message, and call the first payment component to send first payment information to a first payment platform corresponding to the first payment component to determine a first payment result, wherein the second confirmation message includes the first payment information, and the first payment information is used to indicate the target payment action that the first payment component needs to perform; upon receiving the second confirmation message, select a second payment component from the multiple payment components based on the second confirmation message, and call the second payment component to send second payment information to a second payment platform corresponding to the second payment component to determine a second payment result, wherein the second confirmation message includes the second payment information, and the second payment information is used to indicate the target payment action that the second payment component needs to perform; determine the target payment result based on the first payment result, the second payment result and the payment order.
[0008] Optionally, the device is used to determine the target payment result based on the first payment result, the second payment result and the payment order in the following manner: when the first payment result and the second payment result both indicate successful payment, and the payment amounts of the first payment result and the second payment result correspond to the payment order, the target payment result is determined to be allowing the gate machine to perform the target action; when either the first payment result and the second payment result indicates a payment failure, the target payment result is determined to be prohibiting the gate machine from performing the target action; when the first payment result and the second payment result both indicate successful payment, and the payment amounts of the first payment result and the second payment result do not correspond to the payment order, the target payment result is determined to be prohibiting the gate machine from performing the target action.
[0009] Optionally, the device is also used to: after obtaining an order query request, authenticate the identity information of the requester of the order query request; when the identity information indicates that it is valid, generate and send the business order; when the identity information indicates that it is invalid, generate and send an order prompt message, wherein the order prompt message indicates that the identity information authentication fails and the gate maintains the current state.
[0010] Optionally, the device is also used to: after generating and sending the business order when the identity information indicates that it is valid, generate the business order when the identity information indicates that it is valid, and send the business order to the target terminal for display; when the target terminal completes a first interactive action for the business order, determine that the first confirmation message is received, generate the payment order, and send the payment order; when the target terminal completes a second interactive action for the business order, determine that the first confirmation message is not received, and cancel the business order.
[0011] Optionally, the device is used to respond to the order query request in the following manner, generate and send the business order, and generate and send the payment order when a first confirmation message for the business order is received: in response to a target scanning operation performed by the target terminal, determine a first interface address for interaction between the gate and an order server associated with the business order; receive the order query request based on the first interface address, and generate the business order; when the first confirmation message is received, determine a second interface address for interaction between a target payment platform associated with the payment order and the order server based on the first confirmation message, wherein the target payment platform corresponds to the target payment component; and generate and send the payment order based on the second interface address.
[0012] Optionally, the device is used to control the gate to perform the target action in response to the target payment result indicating that the payment of the payment order is completed in the following manner: in response to the target payment result indicating that the payment of the payment order is completed, and the business order indicates that the target terminal is allowed to pass through the gate, and other terminals after the target terminal are prohibited from passing through the gate, if the gate is pre-set to a prohibited state, the gate is controlled to switch from the prohibited state to a released state, and after the target terminal passes, the gate is controlled to switch from the released state to the prohibited state; in response to the target payment result indicating that the payment of the payment order is completed, and the business order indicates that the target terminal is allowed to pass through the gate, and other terminals after the target terminal are prohibited from passing through the gate, if the gate is pre-set to a released state, the gate is controlled to switch from the released state to the prohibited state after the target terminal passes, and the business order is set to prohibit being requested to be obtained.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the control method of the gate when running.
[0014] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the control method of the gate as above.
[0015] According to another aspect of the embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the gate control method through the computer program.
[0016] In an embodiment of the present application, an order query request is adopted, wherein the order query request is used to request to obtain a business order, the business order includes the triggering conditions for the gate machine to execute the target action, and the order query request represents the request message generated by the target terminal by scanning the graphic code deployed on the gate machine; in response to the order query request, a business order is generated and sent, and when a first confirmation message for the business order is received, a payment order is generated and sent, wherein the payment order includes multiple payment components, and different payment components correspond to different payment platforms; when a second confirmation message for the payment order is received, at least two target payment components are called to execute a target payment operation and determine a target payment result, wherein the target payment component indicates that the second confirmation message indicates that the payment component is selected to complete the payment order, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; in response to the target payment result indicating that the payment of the payment order is completed, the gate machine is controlled to execute the target action in a manner to achieve the purpose of improving the gate machine control efficiency, thereby achieving the technical effect of efficient gate machine control, and further solving the technical problem of low gate machine control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of an application environment of an optional gate control method according to an embodiment of the present application;
[0019] Figure 2 is a flow chart of an optional gate control method according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of an optional gate control method according to an embodiment of the present application;
[0021] Figure 4 is a schematic structural diagram of an optional gate control device according to an embodiment of the present application;
[0022] Figure 5 is a schematic structural diagram of an optional gate control product according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] The present application is described below in conjunction with embodiments:
[0027] According to one aspect of an embodiment of the present application, a gate control method is provided. Optionally, in this embodiment, the gate control method can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 via a network, and can be used to provide services for the terminal device or an application 107 installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, for example, a local area network, a metropolitan area network, and a wide area network; the wireless network includes, for example, Bluetooth, WIFI, and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal, and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0028] Combination Figure 1 As shown, the control method of the gate can be executed by an electronic device, which can be a terminal device or a server. The control method of the gate can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.
[0029] The above is only an example and is not specifically limited in this embodiment.
[0030] Optionally, as an optional implementation, as Figure 2 As shown, the control method of the above gate includes:
[0031] S202, obtaining an order query request, wherein the order query request is used to request obtaining a business order, the business order includes a trigger condition for the gate machine to perform a target action, and the order query request represents a request message generated by the target terminal by scanning a graphic code deployed on the gate machine;
[0032] Optionally, in an embodiment of the present application, the above-mentioned order query request may include but is not limited to user ID: used to identify the user requesting an order query; order number: used to uniquely identify a specific business order; timestamp: recording the time when the order query request was sent; graphic code information: containing data obtained when scanning the graphic code, used to verify and retrieve the order; terminal device information: identifying the type and model of the device initiating the request, the above-mentioned target action refers to the gate opening: allowing the user to pass; the gate closing: prohibiting the user from passing; recording access: recording the time and date when the user passes through the gate, etc. The above-mentioned triggering conditions may include but are not limited to the user scanning the graphic code, the user's account status meets the requirements for passing the gate, etc. The above-mentioned graphic code is used to carry necessary information to trigger specific actions of the gate, that is, to verify the user's identity or authority, and the above-mentioned target terminal may include but is not limited to mobile phones, computers, smart wearable devices and other devices with code scanning functions.
[0033] Exemplarily, the user scans the graphic code on the entrance gate at the entrance of the scenic spot and jumps to the mini program to the scenic spot service system. At this time, due to the user's scanning action, the scenic spot service system background receives an order query request, which is sent to the scenic spot service system background through the network to request entry into the scenic spot and open the entrance gate. The scenic spot service system background processes the request and returns the corresponding business order.
[0034] S204, in response to the order query request, generating and sending a business order, and generating and sending a payment order when a first confirmation message for the business order is received, wherein the payment order includes a plurality of payment components, and different payment components correspond to different payment platforms;
[0035] Optionally, in an embodiment of the present application, the above-mentioned business order may include but is not limited to detailed information of goods or services, and the above-mentioned first confirmation message may include but is not limited to presentation through voice, text, image, video, etc., indicating that the user or system has confirmed the business order, which can be done in various ways, such as through email, text message, in-application notification, etc. The above-mentioned payment component represents the various parts in the payment order, and each part is associated with a specific payment method.
[0036] Exemplarily, once a business order is confirmed, a payment order will be generated and the payment request will be sent to the payment platform; the payment order can support multiple payment methods, such as credit cards, debit cards, e-wallets, online bank transfers, etc. The above-mentioned payment platform can be understood as a third-party application that provides payment functions, etc. Each payment method needs to interact with a specific payment platform.
[0037] In an exemplary embodiment, a user uses a smartphone to scan the QR code on the gate, and the application (client) on the smartphone sends an order query request to the scenic spot backend server. The request may include the user's identity information, the scanned QR code information, etc.
[0038] Next, after receiving the order query request, the scenic spot backend server queries or generates a business order based on the information in the request. The business order may include actions that the user needs to perform (such as payment, registration, verification, etc.). The server sends the business order back to the client. After receiving the business order, the client displays it to the user, and the user confirms whether to pay the business order. If the user confirms the business order on the client (for example, clicks the "Confirm Payment" button), the client sends a first confirmation message to the server, indicating that the user agrees to perform the operations in the business order. After receiving the first confirmation message, the server generates a payment order. The payment order may include multiple payment components, each component corresponding to a different payment platform, for the user to select one or more payment platforms corresponding to one or more payment components for payment.
[0039] S206, upon receiving the second confirmation message for the payment order, calling at least two target payment components to perform a target payment operation and determining a target payment result, wherein the target payment component indicates the payment component selected to complete the payment order as indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed;
[0040] Optionally, in an embodiment of the present application, the second confirmation message may include but is not limited to being presented through voice, text, image, video, etc., indicating that the user or system has completed the payment of the payment order, which may be done in a variety of ways, such as through email, text message, in-application notification, etc. The target payment component may be any payment component corresponding to the payment order, and the target payment operation may include but is not limited to calling the payment platform's API for payment; verifying payment information, such as the payer's identity, payment amount, etc.; processing errors or exceptions that may occur during the payment process, etc. The target payment result may include but is not limited to payment success or payment failure, and the user may be notified of the payment status.
[0041] Furthermore, by parsing the message content of the second confirmation message, detailed information of the payment order, such as the order number, payment amount, payment method, etc., is determined.
[0042] For example, taking the backend of a scenic spot service system as an example, when the backend of the scenic spot service system obtains the second confirmation message, it generates a payment order and sends the payment order to the payment scheduling module to instruct the payment scheduling module to call one or more payment components to execute the target payment operation. The payment scheduling module is used to coordinate the payment components to complete the payment of the business order.
[0043] In an exemplary embodiment, the payment scheduling module calls the corresponding payment component to perform the payment operation based on the information in the payment order; the payment component performs the actual payment operation according to the instructions of the payment scheduling module, which may include interacting with the interface of the bank or payment service provider, processing the transaction, and ensuring that funds are transferred from the user's account to the account in the background of the scenic spot service system.
[0044] S208, in response to the target payment result indicating that the payment of the payment order is completed, controlling the gate to execute the target action.
[0045] In an exemplary embodiment, Figure 3 is a schematic diagram of an optional gate control method according to an embodiment of the present application. The present application may include but is not limited to scanning graphic codes of entrance gates of parking lots, tourist attractions, gymnasiums, entrances to large events, etc. Taking scanning the entrance gate of a tourist attraction as an example, it may include but is not limited to the following: Figure 3 As shown:
[0046] S302, the user calls the mini program by scanning the graphic code on the gate, and the gate returns the URL (interface) of the bound scenic spot ticket system backend service. The mini program opens the corresponding service and calls the scenic spot ticket system to query the order information;
[0047] S304: After the ticket system generates an order, the order information is returned to the anti-ticket fraud platform, and the platform authenticates the order and determines whether the ticket purchase conditions are met through pre-set rules (intelligent verification code, face recognition and other functions to determine whether it is a real person operation);
[0048] S306, after the authentication is passed, the order is displayed to the user for confirmation; if the authentication fails, it is prompted that the ticket purchase conditions are not met;
[0049] S308, the user decides whether to pay based on the order;
[0050] S310, when payment is selected, the scenic spot ticket system is notified to generate a payment order. The scenic spot ticket system first sends the order to the unified payment platform. The unified payment platform generates a cashier URL to the scenic spot ticket system. The scenic spot ticket system returns the cashier URL, and the mini program displays the cashier URL to the user.
[0051] S312, the user selects a payment method, and the unified payment platform selects a third-party payment platform to call based on the selected result. In the case of combined payment, it is sent to multiple platforms for payment at the same time. After waiting for the payment result to be returned, if part of it fails, a refund will be made and re-payment will be made. After all the deductions are successful, the scenic spot ticket system will be notified of the payment result, and the scenic spot ticket system will call the gate to open the gate for release.
[0052] Furthermore, users use a combination of mini-programs, backend management systems, and payment platforms to complete the business processes of gate code verification, order payment, and gate release, allowing users to pass through the gate by scanning the code, expanding the user range. For general users, the system operation is convenient and easy to use.
[0053] Through the embodiment of the present application, an order query request is adopted, wherein the order query request is used to request to obtain a business order, the business order includes the triggering conditions for the gate machine to execute the target action, and the order query request represents the request message generated by the target terminal by scanning the graphic code deployed on the gate machine; in response to the order query request, a business order is generated and sent, and when a first confirmation message for the business order is received, a payment order is generated and sent, wherein the payment order includes multiple payment components, and different payment components correspond to different payment platforms; when a second confirmation message for the payment order is received, at least two target payment components are called to execute a target payment operation and determine a target payment result, wherein the target payment component indicates that the second confirmation message indicates that the payment component is selected to complete the payment order, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; in response to the target payment result indicating that the payment of the payment order is completed, the gate machine is controlled to execute the target action, thereby achieving the purpose of improving the gate machine control efficiency, thereby achieving the technical effect of efficient gate machine control, and then solving the technical problem of low gate machine control efficiency.
[0054] As an optional solution, upon receiving the second confirmation message for the payment order, calling at least two target payment components to perform the target payment operation and determine the target payment result, including: upon receiving the second confirmation message, selecting the first payment component from the multiple payment components based on the second confirmation message, and calling the first payment component to send the first payment information to the first payment platform corresponding to the first payment component to determine the first payment result, wherein the second confirmation message includes the first payment information, and the first payment information is used to indicate the target payment action that the first payment component needs to perform; upon receiving the second confirmation message, selecting the second payment component from the multiple payment components based on the second confirmation message, and calling the second payment component to send the second payment information to the second payment platform corresponding to the second payment component to determine the second payment result, wherein the second confirmation message includes the second payment information, and the second payment information is used to indicate the target payment action that the second payment component needs to perform; determining the target payment result based on the first payment result, the second payment result and the payment order.
[0055] Optionally, in an embodiment of the present application, the first payment component and the second payment component are different, and their respective corresponding first payment platforms and second payment platforms are also different.
[0056] In an exemplary embodiment, suppose there is an online shopping platform where users can choose multiple payment methods when checking out, such as Alipay, WeChat Pay or credit card payment. This platform has a payment system that can handle multiple payment methods; the user selects a product on the shopping platform and submits an order, and selects a combination of the first payment platform and the second payment platform as the payment method on the checkout page, wherein the first payment platform is selected to pay part of the fee, and the second payment platform is selected to pay the other part of the fee, and then the payment button is clicked, the system generates the first payment information, including the order number, payment amount, etc., and sends it to the payment component of the first payment platform and the payment component of the second payment platform, and the system sends a message of the combined payment to the unified payment platform (the above-mentioned payment scheduling module), and the payment scheduling module calls the payment component of the first payment platform and the payment component of the second payment platform to complete the payment.
[0057] Through the embodiments of the present application, it is ensured that users have multiple payment options, and the system can flexibly handle different payment results to ensure smooth payment.
[0058] As an optional scheme, the above-mentioned determination of the target payment result based on the above-mentioned first payment result, the above-mentioned second payment result and the payment order includes: when the above-mentioned first payment result and the above-mentioned second payment result both indicate that the payment is successful, and the payment amounts of the above-mentioned first payment result and the above-mentioned second payment result correspond to the above-mentioned payment order, the above-mentioned target payment result is determined to be allowing the above-mentioned gate machine to execute the above-mentioned target action; when any one of the above-mentioned first payment result and the above-mentioned second payment result indicates that the payment fails, the above-mentioned target payment result is determined to be prohibiting the above-mentioned gate machine from executing the above-mentioned target action; when the above-mentioned first payment result and the above-mentioned second payment result both indicate that the payment is successful, and the payment amounts of the above-mentioned first payment result and the above-mentioned second payment result do not correspond to the above-mentioned payment order, the above-mentioned target payment result is determined to be prohibiting the above-mentioned gate machine from executing the above-mentioned target action.
[0059] In an exemplary embodiment, suppose a gate requires a user to pay 20 yuan to pass through. The first payment result is: the user pays 10 yuan using a credit card, and the system displays that the payment is successful. The second payment result is: the user pays 10 yuan again using a mobile phone payment, and the system also displays that the payment is successful. The total amount of the two payments is 20 yuan, and the gate is released at this time (the above-mentioned target action).
[0060] In another exemplary embodiment, suppose a gate requires the user to pay 20 yuan to pass through. The first payment result is: the user paid 10 yuan using a credit card, and the system displays that the payment was successful. The second payment result is: the user paid 5 yuan again using mobile payment, and the system also displays that the payment was successful. The total amount of the two payments is 15 yuan. The payment fee is insufficient, and the above-mentioned gate is prohibited from performing the above-mentioned target action.
[0061] In another exemplary embodiment, if the payment amount and payment order of the first payment result and the above-mentioned second payment result do not correspond, then the system should prohibit the gate from performing the target action. Specifically, the payment order: user A purchased a ticket worth 50 yuan at the gate; the first payment result: user A paid 50 yuan via mobile phone, and the system confirmed that the payment was successful; the second payment result: due to some reason (possibly a system error or double payment), user A's account was deducted another 50 yuan, and the system confirmed that the payment was successful again. The sum of the payment amounts of the first payment result and the second payment result is 100 yuan, which does not correspond to the payment order of 50 yuan. The system needs to determine the target payment result, that is, whether user A should be allowed to pass through the gate. Since the payment amount and the payment order do not correspond, the system decides to prohibit the gate from performing the target action.
[0062] As an optional solution, after obtaining the order query request, the method further includes: authenticating the identity information of the requester of the order query request; when the identity information indicates that it is valid, generating and sending the business order; when the identity information indicates that it is invalid, generating and sending an order prompt message, wherein the order prompt message indicates that the identity information authentication fails and the gate maintains the current state.
[0063] Optionally, in an embodiment of the present application, the above-mentioned identity information may include but is not limited to name, gender, age, face, fingerprint, etc., and the above-mentioned order reminder message may include but is not limited to being displayed in the form of text, voice, image and video.
[0064] In an exemplary embodiment, taking a website server as an example, the website server receives an order query request, parses the identity information of the corresponding requester, and compares it with the user information stored in the database. If the username and password of the requester match, it means that the identity information indication is valid, otherwise it is invalid, and the gate continues to remain closed. In addition, the website server generates an order prompt message, such as "The username or password for this business order is incorrect." The server sends this error message to the user, and the user needs to re-enter the correct information or reset the password.
[0065] In another exemplary embodiment, a business order is sent to an order authentication module to instruct the order authentication module to verify whether the account information in the business order matches the record in the database and generate an authentication result, where the authentication result is used to determine whether the user has requested an excess of the business order; or, a business order is sent to an order authentication module to instruct the order authentication module to verify whether the business order has been processed and generate an authentication result, where the authentication result is used to determine whether the user has used the service corresponding to the business order.
[0066] As an optional solution, after generating and sending the business order when the above-mentioned identity information indicates that it is valid, the above-mentioned method also includes: generating the above-mentioned business order when the above-mentioned identity information indicates that it is valid, and sending the above-mentioned business order to the above-mentioned target terminal for display; when the above-mentioned target terminal completes the first interactive action for the above-mentioned business order, determining that the above-mentioned first confirmation message is received, generating the above-mentioned payment order, and sending the above-mentioned payment order; when the above-mentioned target terminal completes the second interactive action for the above-mentioned business order, determining that the above-mentioned first confirmation message is not received, and canceling the above-mentioned business order.
[0067] Optionally, in an embodiment of the present application, the above-mentioned first interactive operation and second interactive action include but are not limited to touch operations implemented on a touch screen, or touch operations performed through input devices such as a mouse, keyboard, and stylus.
[0068] In an exemplary embodiment, it is assumed that after receiving a business order, the user checks the order on the mobile phone, and after confirming that it is correct, clicks "Confirm Payment". The system receives the user's purchase confirmation information and generates a payment order. The user selects a payment method on the mobile phone to complete the payment. If the user cancels the payment during the payment process, or does not complete the payment within the specified time, the system will regard it as a second interaction action. Furthermore, since the user did not complete the payment, the system did not receive the first confirmation message and therefore canceled the business order.
[0069] As an optional solution, the above-mentioned response to the above-mentioned order query request, generating and sending the above-mentioned business order, and generating and sending the above-mentioned payment order when the first confirmation message for the above-mentioned business order is received, includes: in response to the target scanning operation performed by the above-mentioned target terminal, determining the first interface address for the above-mentioned gate to interact with the order server associated with the above-mentioned business order; receiving the above-mentioned order query request based on the above-mentioned first interface address, and generating the above-mentioned business order; when the above-mentioned first confirmation message is received, determining the second interface address for the target payment platform associated with the above-mentioned payment order to interact with the above-mentioned order server based on the above-mentioned first confirmation message, wherein the above-mentioned target payment platform corresponds to the above-mentioned target payment component; generating and sending the above-mentioned payment order based on the above-mentioned second interface address.
[0070] Optionally, in an embodiment of the present application, the first interface address is used to connect to the business order backend server to display the corresponding service on the target terminal, and the second interface address opens the payment method selection interface provided to the user, that is, the cashier interface.
[0071] In an exemplary embodiment, it is assumed that a user uses a mobile phone to scan a QR code at a gate in a shopping mall to complete an order to purchase goods. The gate identifies the user's business order through the scanning operation and interacts with the order server. The system needs to determine the first interface address for interacting with the order server. The order server receives the order query request from the gate and generates a business order. Once the order is generated, the order server sends a confirmation message to the gate. After the gate receives the first confirmation message, if payment is required, it will determine the second interface address of the target payment platform associated with the payment order. The gate generates a payment order based on the second interface address and sends it to the payment platform. After the payment platform receives the payment order, it processes the payment request and returns the payment result.
[0072] As an optional solution, in response to the target payment result indicating that the payment order payment is completed, controlling the gate to perform the target action includes:
[0073] In response to the target payment result indicating that the payment order payment is completed, and the business order indicating that the target terminal is allowed to pass through the gate, other terminals after the target terminal are prohibited from passing through the gate, and if the gate is previously set to a prohibited state, the gate is controlled to switch from the prohibited state to a released state, and after the target terminal passes through, the gate is controlled to switch from the released state to the prohibited state;
[0074] In response to the target payment result indicating that the payment of the payment order is completed, and the business order indicates that the target terminal is allowed to pass through the gate, and other terminals after the target terminal are prohibited from passing through the gate, and the gate is pre-set to a release state, after the target terminal passes, the gate is controlled to switch from the release state to the prohibition state, and the business order is set to prohibit being requested.
[0075] In an exemplary embodiment, assume that there is a gate system in a subway station. The passenger uses a mobile phone to scan the graphic code on the gate, enters the ticket purchase interface of the subway backend service system, selects to purchase a ticket to generate a business order, and the node confirms the business order. The subway backend service system generates a payment order and sends it to the payment scheduling module. The payment scheduling module calls the payment component to make the payment. After confirming that the payment is successful, it generates a business order and notifies the gate control system. The gate control system receives the release instruction, opens the gate, and allows the passenger to pass. After the passenger passes through the gate, the gate automatically closes and returns to the prohibited state, waiting for the next legal payment order.
[0076] In another exemplary embodiment, taking scenic area management as an example, the scenic area entrance gate is initially in a release state, and the daily limit for the number of people entering the scenic area is 100. When the 101st person scans the graphic code on the scenic area entrance gate to register his visit, the person registration is selected to generate a business order, and the order query request is sent to the scenic area management background. Here, the background determines that the maximum number of people has been reached by querying the database, etc. At this time, the scenic area entrance gate will be controlled to be changed to a closed state, prohibiting the 101st person from passing through the gate, and prompting the user that he cannot enter due to passenger flow restrictions.
[0077] Furthermore, the scenic area management background can also be used to connect gates that handle different businesses. Taking the above-mentioned scenic area management as an example, the gates at the entrance and exit are associated. When the passenger flow reaches the threshold, if the exit gate detects that a tourist has passed through and left the scenic area, the scenic area management background can be notified in time. At this time, when the scenic area management background receives an order query request again, it will generate a business order normally and open the gate to release the tourist.
[0078] Through the embodiments of the present application, the purpose of improving the efficiency and safety of crowd management is achieved, while ensuring the smoothness of the user experience. Through automated payment and business order processing, as well as intelligent control of the gate status, the system can adapt to different crowd management needs.
[0079] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0080] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0081] According to another aspect of the embodiment of the present application, a gate control device for implementing the gate control method is also provided. Figure 4 As shown, the device comprises:
[0082] The acquisition module 402 is used to acquire an order query request, wherein the order query request is used to request to acquire a business order, the business order includes a trigger condition for the gate machine to perform a target action, and the order query request represents a request message generated by the target terminal by scanning a graphic code deployed on the gate machine;
[0083] A generating module 404 is used to generate and send a business order in response to the order query request, and generate and send a payment order when a first confirmation message for the business order is received, wherein the payment order includes multiple payment components, and different payment components correspond to different payment platforms;
[0084] A calling module 406 is used to call at least two target payment components to perform a target payment operation and determine a target payment result when receiving a second confirmation message for the payment order, wherein the target payment component indicates the payment component selected to complete the payment order as indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through the corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed;
[0085] The control module 408 is used to control the gate to execute the target action in response to the target payment result indicating that the payment order payment is completed.
[0086] As an optional solution, the above-mentioned device is used to call at least two target payment components to perform the target payment operation and determine the target payment result in the following manner when receiving the second confirmation message for the above-mentioned payment order: when receiving the above-mentioned second confirmation message, select the first payment component from the above-mentioned multiple payment components based on the above-mentioned second confirmation message, and call the above-mentioned first payment component to send the first payment information to the first payment platform corresponding to the above-mentioned first payment component to determine the first payment result, wherein the above-mentioned second confirmation message includes the above-mentioned first payment information, and the above-mentioned first payment information is used to indicate the above-mentioned target payment action that the above-mentioned first payment component needs to perform; when receiving the above-mentioned second confirmation message, select the second payment component from the above-mentioned multiple payment components based on the above-mentioned second confirmation message, and call the above-mentioned second payment component to send the second payment information to the second payment platform corresponding to the above-mentioned second payment component to determine the second payment result, wherein the above-mentioned second confirmation message includes the above-mentioned second payment information, and the above-mentioned second payment information is used to indicate the above-mentioned target payment action that the above-mentioned second payment component needs to perform; the above-mentioned target payment result is determined based on the above-mentioned first payment result, the above-mentioned second payment result and the payment order.
[0087] As an optional scheme, the above-mentioned device is used to determine the above-mentioned target payment result based on the above-mentioned first payment result, the above-mentioned second payment result and the payment order in the following manner: when the above-mentioned first payment result and the above-mentioned second payment result both indicate that the payment is successful, and the payment amounts of the above-mentioned first payment result and the above-mentioned second payment result correspond to the above-mentioned payment order, the above-mentioned target payment result is determined to allow the above-mentioned gate machine to perform the above-mentioned target action; when any one of the above-mentioned first payment result and the above-mentioned second payment result indicates that the payment fails, the above-mentioned target payment result is determined to prohibit the above-mentioned gate machine from performing the above-mentioned target action; when the above-mentioned first payment result and the above-mentioned second payment result both indicate that the payment is successful, and the payment amounts of the above-mentioned first payment result and the above-mentioned second payment result do not correspond to the above-mentioned payment order, the above-mentioned target payment result is determined to prohibit the above-mentioned gate machine from performing the above-mentioned target action.
[0088] As an optional solution, the above-mentioned device is also used to: after obtaining the order query request, authenticate the identity information of the requester of the above-mentioned order query request; when the above-mentioned identity information indicates that it is valid, generate and send the above-mentioned business order; when the above-mentioned identity information indicates that it is invalid, generate and send an order prompt message, wherein the above-mentioned order prompt message indicates that the above-mentioned identity information authentication fails and the above-mentioned gate maintains the current state.
[0089] As an optional solution, the above-mentioned device is also used to: when the above-mentioned identity information indicates that the above-mentioned business order is valid, after generating and sending the above-mentioned business order, when the above-mentioned identity information indicates that it is valid, generate the above-mentioned business order and send the above-mentioned business order to the above-mentioned target terminal for display; when the above-mentioned target terminal completes the first interactive action for the above-mentioned business order, determine that the above-mentioned first confirmation message is received, generate the above-mentioned payment order, and send the above-mentioned payment order; when the above-mentioned target terminal completes the second interactive action for the above-mentioned business order, determine that the above-mentioned first confirmation message is not received, and cancel the above-mentioned business order.
[0090] As an optional solution, the above-mentioned device is used to respond to the above-mentioned order query request in the following manner, generate and send the above-mentioned business order, and generate and send the above-mentioned payment order when a first confirmation message for the above-mentioned business order is received: in response to the target scanning operation performed by the above-mentioned target terminal, determine the first interface address for the above-mentioned gate to interact with the order server associated with the above-mentioned business order; receive the above-mentioned order query request based on the above-mentioned first interface address, and generate the above-mentioned business order; when the above-mentioned first confirmation message is received, determine the second interface address for the target payment platform associated with the above-mentioned payment order to interact with the above-mentioned order server based on the above-mentioned first confirmation message, wherein the above-mentioned target payment platform corresponds to the above-mentioned target payment component; generate and send the above-mentioned payment order based on the above-mentioned second interface address.
[0091] As an optional solution, the above-mentioned device is used to control the above-mentioned gate to perform the above-mentioned target action in response to the above-mentioned target payment result indicating that the payment of the above-mentioned payment order is completed in the following manner: in response to the above-mentioned target payment result indicating that the payment of the above-mentioned payment order is completed, and the above-mentioned business order indicates that the above-mentioned target terminal is allowed to pass through the above-mentioned gate, and other terminals after the above-mentioned target terminal are prohibited from passing through the gate, and the above-mentioned gate is pre-set to a prohibited state, the above-mentioned gate is controlled to switch from the above-mentioned prohibited state to a released state, and after the above-mentioned target terminal passes, the above-mentioned gate is controlled to switch from the above-mentioned released state to the above-mentioned prohibited state; in response to the above-mentioned target payment result indicating that the payment of the above-mentioned payment order is completed, and the above-mentioned business order indicates that the above-mentioned target terminal is allowed to pass through the above-mentioned gate, and other terminals after the above-mentioned target terminal are prohibited from passing through the gate, and when the above-mentioned gate is pre-set to a released state, after the above-mentioned target terminal passes, the above-mentioned gate is controlled to switch from the above-mentioned released state to the prohibited state, and the above-mentioned business order is set to be prohibited from being requested to be obtained.
[0092] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0093] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0094] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.
[0095] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0096] Figure 5 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0097] It should be noted that Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0098] like Figure 5As shown, the computer system 500 includes a central processing unit 501 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 502 (ROM) or the program loaded from the storage part 508 to the random access memory 503 (RAM). Various programs and data required for system operation are also stored in the random access memory 503. The central processing unit 501, the read-only memory 502 and the random access memory 503 are connected to each other through a bus 504. The input / output interface 505 (Input / Output interface, i.e., I / O interface) is also connected to the bus 504.
[0099] The following components are connected to the input / output interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a local area network card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0100] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processor 501, various functions defined in the system of the present application are executed.
[0101] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processor 501, various functions provided by the embodiment of the present application are performed.
[0102] According to another aspect of the embodiment of the present application, an electronic device for implementing the above gate control method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Figure 6 As shown, the electronic device includes a memory 602 and a processor 604. The memory 602 stores a computer program, and the processor 604 is configured to execute the steps in any of the above method embodiments through the computer program.
[0103] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0104] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.
[0105] Alternatively, a person skilled in the art may understand that: Figure 6 The structure shown is for illustration only. Figure 6 The structure of the electronic device is not limited. Figure 6 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 6 Different configurations shown.
[0106] Among them, the memory 602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the gate control method and device in the embodiment of the present application. The processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, realizing the above-mentioned gate control method. The memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 602 may further include a memory remotely located relative to the processor 604, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 602 can be specifically, but not limited to, used to store information such as business orders and payment orders. As an example, such as Figure 6 As shown, the memory 602 may include, but is not limited to, the acquisition module 402, the generation module 404, the call module 406, and the control module 408 in the control device of the gate. In addition, it may also include, but is not limited to, other module units in the control device of the gate, which will not be repeated in this example.
[0107] Optionally, the transmission device 606 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 606 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0108] In addition, the electronic device further includes: a display 608 for displaying the business order and payment order; and a connection bus 610 for connecting various module components in the electronic device.
[0109] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0110] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the gate control method provided in various optional implementations of the above-mentioned gate control aspects.
[0111] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.
[0112] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0113] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0114] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.
[0115] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0116] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0117] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0119] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A gate control method, characterized in that: include: Obtain an order query request, wherein the order query request is used to request to obtain a business order, the business order includes a trigger condition for the gate to perform a target action, and the order query request represents a request message generated by the target terminal by scanning a graphic code deployed on the gate; In response to the order query request, generating and sending the business order, and in the case of receiving a first confirmation message for the business order, generating and sending a payment order, wherein the payment order includes a plurality of payment components, and different payment components correspond to different payment platforms; Upon receiving a second confirmation message for the payment order, calling at least two target payment components to perform a target payment operation and determining a target payment result, wherein the target payment component indicates the payment component selected to complete the payment order as indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through a corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; In response to the target payment result indicating that payment of the payment order is completed, controlling the gate to execute the target action.
2. The method according to claim 1, characterized in that The step of, upon receiving a second confirmation message for the payment order, calling at least two target payment components to perform a target payment operation and determining a target payment result includes: In the case of receiving the second confirmation message, selecting a first payment component from the multiple payment components based on the second confirmation message, and calling the first payment component to send first payment information to a first payment platform corresponding to the first payment component, and determining a first payment result, wherein the second confirmation message includes the first payment information, and the first payment information is used to indicate the target payment action that the first payment component needs to perform; In the case of receiving the second confirmation message, selecting a second payment component from the multiple payment components based on the second confirmation message, and calling the second payment component to send second payment information to a second payment platform corresponding to the second payment component, and determining a second payment result, wherein the second confirmation message includes the second payment information, and the second payment information is used to indicate the target payment action that the second payment component needs to perform; The target payment result is determined based on the first payment result, the second payment result and the payment order.
3. The method according to claim 2, characterized in that The determining the target payment result based on the first payment result, the second payment result and the payment order includes: When both the first payment result and the second payment result indicate successful payment, and the payment amounts of the first payment result and the second payment result correspond to the payment order, determining that the target payment result is to allow the gate to execute the target action; When either the first payment result or the second payment result indicates that the payment fails, determining the target payment result to prohibit the gate from executing the target action; When both the first payment result and the second payment result indicate successful payment, and the payment amounts of the first payment result and the second payment result do not correspond to the payment order, the target payment result is determined to prohibit the gate from executing the target action.
4. The method according to claim 1, characterized in that: After obtaining the order query request, the method further includes: Authenticate the identity information of the requester of the order query request; If the identity information indicates that it is valid, generating and sending the business order; In the case where the identity information indicates invalidity, an order prompt message is generated and sent, wherein the order prompt message indicates that the identity information authentication has failed and the gate maintains the current state.
5. The method according to claim 4, characterized in that When the identity information indicates that the service order is valid, after generating and sending the service order, the method further includes: If the identity information indicates that the service order is valid, generating the service order and sending the service order to the target terminal for display; When the target terminal completes the first interactive action for the business order, determining that the first confirmation message is received, generating the payment order, and sending the payment order; When the target terminal completes the second interactive action for the service order, it is determined that the first confirmation message is not received, and the service order is canceled.
6. The method according to claim 1, characterized in that The step of generating and sending the business order in response to the order query request, and generating and sending a payment order when a first confirmation message for the business order is received, comprises: In response to a target scanning operation performed by the target terminal, determining a first interface address for interaction between the gate and an order server associated with the service order; Receiving the order query request based on the first interface address, and generating the business order; In the case of receiving the first confirmation message, determining a second interface address for interaction between a target payment platform associated with the payment order and the order server based on the first confirmation message, wherein the target payment platform corresponds to the target payment component; The payment order is generated and sent based on the second interface address.
7. The method according to claim 1, characterized in that In response to the target payment result indicating that the payment order payment is completed, controlling the gate to execute the target action includes: In response to the target payment result indicating that the payment order payment is completed, and the business order indicating that the target terminal is allowed to pass through the gate, prohibiting other terminals after the target terminal from passing through the gate, and if the gate is pre-set to a prohibited state, controlling the gate to switch from the prohibited state to a released state, and controlling the gate to switch from the released state to the prohibited state after the target terminal passes through; In response to the target payment result indicating that the payment of the payment order is completed, and the business order indicates that the target terminal is allowed to pass through the gate, and other terminals after the target terminal are prohibited from passing through the gate, when the gate is pre-set to a release state, after the target terminal passes, the gate is controlled to switch from the release state to the prohibited state, and the business order is set to prohibit being requested for acquisition.
8. A gate control device, characterized in that: include: An acquisition module, used to acquire an order query request, wherein the order query request is used to request to acquire a business order, the business order includes a trigger condition for the gate machine to perform a target action, and the order query request represents a request message generated by the target terminal by scanning a graphic code deployed on the gate machine; A generating module, configured to generate and send the business order in response to the order query request, and to generate and send a payment order upon receiving a first confirmation message for the business order, wherein the payment order includes a plurality of payment components, and different payment components correspond to different payment platforms; a calling module, configured to, upon receiving a second confirmation message for the payment order, call at least two target payment components to perform a target payment operation and determine a target payment result, wherein the target payment component indicates a payment component selected to complete the payment order as indicated by the second confirmation message, the target payment operation is used to jointly complete the payment order through a corresponding payment platform, and the target payment result is used to indicate whether the payment order is completed; A control module is used to control the gate to execute the target action in response to the target payment result indicating that the payment of the payment order is completed.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.