CN116798139A - Device transaction method, device, computer device and storage medium - Google Patents

Device transaction method, device, computer device and storage medium Download PDF

Info

Publication number
CN116798139A
CN116798139A CN202311086331.7A CN202311086331A CN116798139A CN 116798139 A CN116798139 A CN 116798139A CN 202311086331 A CN202311086331 A CN 202311086331A CN 116798139 A CN116798139 A CN 116798139A
Authority
CN
China
Prior art keywords
transaction
equipment
information
target
target equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311086331.7A
Other languages
Chinese (zh)
Other versions
CN116798139B (en
Inventor
张民遐
高北源
曹道滚
谢家林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Gaodeng Weixing Technology Co ltd
Original Assignee
Anhui Gaodeng Weixing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Gaodeng Weixing Technology Co ltd filed Critical Anhui Gaodeng Weixing Technology Co ltd
Priority to CN202311086331.7A priority Critical patent/CN116798139B/en
Publication of CN116798139A publication Critical patent/CN116798139A/en
Application granted granted Critical
Publication of CN116798139B publication Critical patent/CN116798139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a device transaction method, a device and computer equipment. The method comprises the following steps: acquiring a device transaction request sent by a terminal, and acquiring a transaction server address corresponding to a transaction execution device identifier based on the device transaction request; generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address; acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page, and sending the equipment transaction page to the terminal; acquiring target equipment information returned by a terminal, generating target equipment order information, and sending the target equipment order information to the terminal; and acquiring order confirmation information returned by the terminal, sending the order confirmation information to a transaction server for equipment transaction, and acquiring transaction completion information returned by the transaction server. By adopting the method, the safety of the user information can be ensured.

Description

Device transaction method, device, computer device and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a device transaction method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of internet technology, various shopping modes, such as online shopping, leg running shopping, etc., appear to meet the demand of convenience in shopping for users, and users select appropriate shopping modes to purchase required products.
Among them, for purchase of financial-type device products, such as ETC (Electronic Toll Collection System, toll collection system) devices, users typically use an internet shopping platform to conduct transactions. However, when a user purchases a financial device product through an internet transaction platform, address information of the user needs to be provided, and there is a risk of leakage of the user information, so that the problem of low security of the user information is caused.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device transaction method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the device transaction efficiency.
In a first aspect, the present application provides a device transaction method. The method comprises the following steps:
acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
Generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address;
acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and sending the target equipment order information to the terminal;
and the acquisition terminal sends the order confirmation information to the transaction server for equipment transaction based on the order confirmation information returned by the target equipment order information, and acquires transaction completion information returned by the transaction server.
In a second aspect, the application also provides a device transaction apparatus. The device comprises:
the acquisition module is used for acquiring an equipment transaction request sent by the terminal, wherein the equipment transaction request carries a transaction execution equipment identifier, and acquiring a transaction server address corresponding to the transaction execution equipment identifier based on the equipment transaction request;
the data acquisition module is used for generating a data acquisition request based on the transaction execution equipment identification and sending the data acquisition request to a transaction server corresponding to the transaction server address;
The page generation module is used for acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information and sending the equipment transaction page to the terminal;
the order module is used for acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information and sending the target equipment order information to the terminal;
the transaction module is used for acquiring order confirmation information returned by the terminal based on the order information of the target equipment, sending the order confirmation information to the transaction server for equipment transaction, and acquiring transaction completion information returned by the transaction server.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address;
Acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and sending the target equipment order information to the terminal;
and the acquisition terminal sends the order confirmation information to the transaction server for equipment transaction based on the order confirmation information returned by the target equipment order information, and acquires transaction completion information returned by the transaction server.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address;
Acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and sending the target equipment order information to the terminal;
and the acquisition terminal sends the order confirmation information to the transaction server for equipment transaction based on the order confirmation information returned by the target equipment order information, and acquires transaction completion information returned by the transaction server.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address;
acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
Acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and sending the target equipment order information to the terminal;
and the acquisition terminal sends the order confirmation information to the transaction server for equipment transaction based on the order confirmation information returned by the target equipment order information, and acquires transaction completion information returned by the transaction server.
According to the device transaction method, the device, the computer device, the storage medium and the computer program product, the corresponding transaction server address is obtained through the transaction execution device identification carried in the device transaction request, the data acquisition request corresponding to the transaction execution device identification is sent to the transaction server address, the device information corresponding to the transaction execution device returned by the transaction server is obtained, the device transaction page is generated according to the device information, the device transaction page is sent to the terminal, the device transaction request sent by the terminal can be responded in time, and the device capable of being transacted in the transaction execution device can be accurately displayed to a user through the device transaction page. And then, acquiring target equipment information returned by the terminal to generate target equipment order information, sending the target equipment order information to the terminal, and sending the order confirmation information to a transaction server for equipment transaction by acquiring the order confirmation information returned by the terminal, wherein the equipment transaction is carried out without acquiring address information of a user, so that the information safety of the user is ensured, and equipment transaction is carried out on tradable equipment in transaction execution equipment by the transaction server, so that the real-time transaction of the equipment is realized, and the equipment transaction efficiency is improved.
Drawings
FIG. 1 is an application environment diagram of a device transaction method in one embodiment;
FIG. 2 is a flow diagram of a device transaction method in one embodiment;
FIG. 3 is a flow diagram of the device transaction steps in one embodiment;
FIG. 4 is a flow diagram of a device transaction in one embodiment;
FIG. 5 is a block diagram of the apparatus transaction device in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural view of a computer device in another embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The equipment transaction method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the management server 104 via a network, and the management server 104 communicates with the transaction server 106 via a network. The data storage system may store data that the management server 104 and the transaction server 106 need to process. The data storage system may be integrated on the management server 104 and transaction server 106, or may be located on the cloud or other network server. The management server 104 obtains a device transaction request sent by the terminal 102, wherein the device transaction request carries a transaction execution device identifier, and obtains a transaction server address corresponding to the transaction execution device identifier based on the device transaction request; the management server 104 generates a data acquisition request based on the transaction execution device identification, and sends the data acquisition request to the transaction server 106 corresponding to the transaction server address; acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server 106, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal 102; the management server 104 obtains target equipment information returned by the terminal 102 based on the equipment transaction page, generates target equipment order information based on the target equipment information, and sends the target equipment order information to the terminal 102; the management server 104 obtains order confirmation information returned by the terminal 102 based on the target equipment order information, sends the order confirmation information to the transaction server 106 for equipment transaction, and the management server 104 obtains transaction completion information returned by the transaction server 106. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc. The management server 104 and the transaction server 106 may be implemented as separate servers or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a device transaction method is provided, and is illustrated by taking an example that the method is applied to the management server in fig. 1, it is understood that the method may also be applied to a terminal, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 202, acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request.
The transaction execution device identifier refers to an identifier of a storage device, and the storage device is used for storing a device to be transacted and interacting with a user to realize device transaction. The transaction server address refers to the communication address of the transaction server. The transaction server refers to a server that manages a transaction execution device to conduct a device transaction.
Specifically, the terminal triggers the transaction execution device to acquire the corresponding transaction execution device identifier and the management server address, and the terminal can trigger the transaction execution device within a preset contact range, such as near field communication within a preset distance range, two-dimensional code identification on the transaction execution device, and the like. Or the transaction execution device sends the identification of the transaction execution device and the address of the management server to the terminal when the transaction execution device detects that the terminal is in the preset distance range. The transaction execution device is, for example, an unmanned vending machine, an unmanned warehouse, etc.
And then the terminal generates a device transaction request according to the transaction execution device and sends the device transaction request to a management server corresponding to the management server address. The management server is used as a management center and is communicated with the user terminal and the transaction server through network communication, and is used for managing equipment transaction and monitoring equipment transaction progress.
And the management server acquires the corresponding transaction server address according to the transaction execution equipment identifier in the equipment transaction request. When a plurality of transaction server addresses exist, the management server determines the transaction server address corresponding to the transaction execution device identification in the device transaction request according to the association relation between the preset transaction execution device identification and the transaction server address.
Step 204, a data acquisition request is generated based on the transaction execution device identifier, and the data acquisition request is sent to the transaction server corresponding to the transaction server address.
Step 206, obtaining the device information corresponding to the transaction execution device identifier returned by the transaction server, generating a device transaction page based on the device information, and sending the device transaction page to the terminal.
Wherein, the device information refers to information of tradable devices in the transaction execution device. The device transaction page refers to a page where a user performs a device transaction.
Specifically, the management server generates a data acquisition request according to the transaction execution device identifier, sends the data acquisition request to the transaction server corresponding to the address of the transaction server, and acquires device information corresponding to the transaction execution device identifier returned by the transaction server based on the data acquisition request. The device information comprises information such as inventory information, device identification, device parameters, device transaction amount and the like of the tradable devices in the transaction execution devices corresponding to the transaction execution device identification. And the management server generates a device transaction webpage corresponding to the transaction execution device identifier according to the device information, and sends the device transaction webpage to the terminal.
And step 208, acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and transmitting the target equipment order information to the terminal.
Step 210, the acquiring terminal sends the order confirmation information to the transaction server for device transaction based on the order confirmation information returned by the target device order information, and acquires transaction completion information returned by the transaction server.
Specifically, the terminal responds to the selection operation of the user on the target equipment identifier in the equipment transaction webpage, acquires target equipment information corresponding to the target equipment identifier, and sends the target equipment information to the management server. The management server generates target equipment order information according to the target equipment information. And the management server sends the order information of the target equipment to the terminal for order confirmation. The terminal determines the address of the resource transaction party, such as a collection account and the like, according to the order information of the target equipment, the terminal carries out resource transaction on the address of the resource transaction party, acquires the resource transaction completion information returned by the resource transaction receiver, generates order confirmation information according to the resource transaction completion information, and sends the order confirmation information to the management server.
The management server sends the order confirmation information to the transaction server, and the transaction server instructs the transaction execution device to conduct transaction on the target device according to the order confirmation information, acquires transaction completion information returned by the transaction execution device and forwards the transaction completion information to the management server. And the transaction server updates the device information corresponding to the transaction execution device identifier according to the transaction completion information, for example, updates the inventory information of the target device in the device information.
According to the equipment transaction method, the corresponding transaction server address is obtained through the transaction execution equipment identifier carried in the equipment transaction request, the data obtaining request corresponding to the transaction execution equipment identifier is sent to the transaction server address, the equipment information corresponding to the transaction execution equipment returned by the transaction server is obtained, then the equipment transaction page is generated according to the equipment information, the equipment transaction page is sent to the terminal, the equipment transaction request sent by the terminal can be responded in time, and the equipment which can be transacted in the transaction execution equipment can be accurately displayed to the user through the equipment transaction page. And then, acquiring target equipment information returned by the terminal to generate target equipment order information, sending the target equipment order information to the terminal, and sending the order confirmation information to a transaction server for equipment transaction by acquiring the order confirmation information returned by the terminal, wherein the equipment transaction is carried out without acquiring address information of a user, so that the information safety of the user is ensured, and equipment transaction is carried out on tradable equipment in transaction execution equipment by the transaction server, so that the real-time transaction of the equipment is realized, and the equipment transaction efficiency is improved.
In one embodiment, as shown in fig. 3, after obtaining the transaction completion information returned by the transaction server in step 210, the method further includes:
step 302, generating a target equipment to-be-activated state label corresponding to target equipment order information based on transaction completion information;
step 304, when the target device to-be-activated state tag is updated to be the target device activated state tag, it is determined that the target device corresponding to the target device order information is in a usable state.
The target equipment to-be-activated state label refers to a label to be activated by the target equipment, and represents that the target equipment is in an unusable state before activation. The target device activation state label refers to a label which is successfully activated by the target device and represents that the target device is in a usable state.
Specifically, after obtaining transaction completion information corresponding to the target device returned by the transaction server, the server generates a target device to-be-activated state label corresponding to the target device, and adds the target device to-be-activated state label to the target device order information.
After the management server detects that the target equipment is successfully activated, the target equipment to-be-activated state label in the target equipment order information is replaced by the target equipment activation state label, and the target equipment corresponding to the target equipment order information is determined to be in a usable state.
In a specific embodiment, the target device may be a target ETC device, where a unique coded serial number set by an ETC issuing operation unit is preset in the ETC device, and is used to manage various activities of issuing, maintaining, logging off, passing, debugging and other processes of the ETC device. The management center searches that the running state of the target ETC equipment is a passing state through the coding serial number of the target ETC equipment, and indicates that a user issues to the ETC that the operation unit has activated the target equipment and is using the target equipment, and then the management server replaces the target equipment to-be-activated state label in the order information of the target equipment with the target equipment activated state label.
In the embodiment, the target equipment to-be-activated state label corresponding to the target equipment order information is generated, so that the activation state of the target equipment can be monitored through the target equipment to-be-activated state label, the target equipment can be activated according to the activation state of the target equipment, and the use efficiency of the target equipment is ensured.
In one embodiment, step 304, when the target device to be activated state tag is updated to be the target device activated state tag, determines that the target device corresponding to the target device order information is in a usable state, including:
Acquiring a device activation instruction, and searching target device order information based on a target device identifier carried by the device activation instruction;
acquiring equipment activation information based on a target equipment to-be-activated state label corresponding to the target equipment order information;
the device activation information is sent to target devices corresponding to the target device identifiers, and device activation completion information returned by the target devices based on the device activation information is obtained;
updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
Specifically, the user triggers the target device to start to activate through the terminal, for example, the terminal connects the target device through a wireless connection mode and obtains the target device identifier and the code serial number corresponding to the target device, and the terminal generates a device activation instruction according to the target device identifier and the code serial number. The user can also start the target device, the target device generates a device activation instruction according to the target device identification and the coding serial number, and the device activation instruction is sent to the management server.
And the management server searches corresponding target equipment order information according to the target equipment identifier in the equipment activation instruction, and acquires user information from the terminal when detecting that the label in the target equipment order information is the label of the state to be activated of the target equipment. And then the management server binds the coding serial number of the target equipment with the user information, determines the binding relation between the coding serial number of the target equipment and the user information, and generates an equipment activation instruction according to the coding serial number of the target equipment. The management server takes the binding relation and the device activation instruction as device activation information, and sends the device activation information to the target device for device activation. The management server acquires the equipment activation completion information returned by the target equipment, updates the target equipment to-be-activated state label in the target equipment order information into a target equipment activation state label, and determines that the target equipment corresponding to the target equipment order information is in a usable state.
And the management server acquires the equipment activation instruction, determines that the target equipment is activated and deactivated when detecting that the label in the order information of the target equipment is the target equipment activation state label, and returns activation failure information to the terminal.
In the embodiment, the device activation information is acquired to activate the target device in response to the device activation instruction, so that the usable state of the target device is ensured, and the use efficiency of the target device is improved.
In one embodiment, step 304, when the target device to be activated state tag is updated to be the target device activated state tag, determines that the target device corresponding to the target device order information is in a usable state, including:
acquiring a transaction time point corresponding to order information of the target equipment, and acquiring equipment activation information based on the target equipment to-be-activated state label when the transaction time point reaches a preset time point and the target equipment to-be-activated state label is not updated to be the target equipment activation state label;
determining a target equipment identifier based on the target equipment order information, sending equipment activation information to target equipment corresponding to the target equipment identifier, and acquiring equipment activation completion information returned by the target equipment based on the equipment activation information;
Updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
The transaction time point refers to a time point when the transaction server returns transaction completion information.
Specifically, the management server acquires a transaction time point corresponding to order information of the target device, and determines that the target device is not activated when the transaction time point reaches a preset time point and the target device to-be-activated state label is not updated to be the target device activation state label. And the management server generates a device activation request according to the target device identifier, sends the device activation request to a terminal corresponding to the order information of the target device, and acquires the device activation information returned by the terminal.
The management server sends the equipment activation information to the target equipment corresponding to the target equipment identifier, acquires equipment activation completion information returned by the target equipment, updates the target equipment to-be-activated state label into the target equipment activation state label according to the equipment activation completion information, and determines that the target equipment corresponding to the target equipment order information is in a usable state.
In this embodiment, by detecting the activation state of the target device in real time, when the transaction time point reaches the preset time point and the target device is not activated, the device activation information is acquired to activate the target device, so that the usable state of the target device is ensured, and the use efficiency of the target device is improved.
In one embodiment, step 304, when the target device to-be-activated status tag is updated to be the target device activated status tag, determines that the target device corresponding to the target device order information is in a usable status, including:
generating a device resource transfer request based on the target device activation state label, sending the device resource transfer request to the terminal, and acquiring resource transfer confirmation information returned by the terminal based on the device resource transfer request;
and acquiring equipment resources corresponding to the equipment resource transfer request based on the resource transfer confirmation information, transferring the equipment resources to a resource storage space corresponding to the target equipment, and determining that the target equipment corresponding to the target equipment order information is in a usable state.
Specifically, after updating a target device to-be-activated state label corresponding to target device order information into a target device activation state label, the management server generates a device resource transfer request. The device resource transfer request is a request for a device resource transfer to the target device. The device resource received by the target device may be a consumption resource for virtual consumption, such as game consumption, traffic road tolls, and the like.
And the management server sends a device resource transfer request to a terminal corresponding to the order information of the target device, wherein the device resource transfer request can carry the device resource value. The management server acquires the resource transfer confirmation information based on the equipment resource value returned by the terminal, acquires the equipment resource corresponding to the equipment resource value according to the resource transfer confirmation information, transfers the equipment resource to the resource storage space corresponding to the target equipment, and determines that the target equipment corresponding to the order information of the target equipment is in a usable state. For example, after detecting that the ETC device is successfully activated, the management server sends a recharging request of the ETC device to the terminal, and after receiving recharging completion information returned by the terminal, the management server updates the consumable balance corresponding to the ETC device according to the recharging amount.
In this embodiment, by sending a device resource transfer request to the terminal, the device resource is transferred to the resource storage space corresponding to the target device, so that the target device corresponding to the order information of the target device is guaranteed to be in a usable state, the resource transfer flow of the target device is simplified, and the use efficiency of the target device is improved.
In one embodiment, the order confirmation information includes a target device identification; step 210, sending the order confirmation information to the transaction server, and obtaining transaction completion information returned by the transaction server, including:
Transmitting the order confirmation information to a transaction server, and generating a transaction instruction based on the order confirmation information through the transaction server;
transmitting a transaction instruction to transaction execution equipment corresponding to the transaction execution equipment identifier, so that the transaction execution equipment responds to the transaction instruction to place target equipment corresponding to the target equipment identifier at a preset position, and transmitting equipment placement completion information to a transaction server;
and acquiring transaction completion information returned by the transaction server based on the device placement completion information.
Specifically, the management server sends order confirmation information to the transaction server, the transaction server obtains the target equipment identification and the equipment number in the order confirmation information, and the transaction server generates a transaction instruction according to the target equipment identification and the equipment number. The transaction server sends a transaction instruction to a transaction execution device corresponding to the transaction execution device identifier, the transaction execution device responds to the transaction execution instruction to acquire the number of devices and target devices corresponding to the target device identifier, the target devices are placed at preset positions by the transaction execution device, and target detection sensors, such as infrared sensors, gravity sensors and the like, are arranged at the preset positions and are used for detecting the existence of objects at the preset positions. The transaction execution device detects that the target device is placed at a preset position through the target detection sensor, generates device placement completion information, and sends the device placement completion information to the transaction server. The transaction server generates transaction completion information according to the device placement completion information and sends the transaction completion information to the management server.
The transaction execution device may also generate transaction completion information when the target detection sensor detects that the user has taken away the target device in the preset location. The transaction execution device sends the transaction completion information to the transaction server, which forwards the transaction completion information to the management server.
In one embodiment, as shown in FIG. 4, a flow diagram of a device transaction is provided. The device transaction party may effect transaction and activation of the ETC device through the ETC sponsor system. The ETC application system comprises an unmanned vending machine, an ETC assistant applet, an ETC issuing platform and a background management system. The drone represents a transaction execution device. The ETC helper applet and the ETC distribution platform serve as an ETC management platform which can be deployed on a management server. The backend management system represents a transaction server.
The unmanned vending machine is used for carrying out ETC equipment transaction, and the unmanned vending machine is put in a designated position in advance, such as a standing point of a cooperation channel. The vending machine transmits instructions with the background management system through an MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission protocol) protocol, and the information comprises signals for informing the background management system of necessary information of the vending machine, such as inventory information and the like, and equipment transaction instructions and the like through timing messages.
The background management system is used for managing the running states of the unmanned vending machine and the monitoring equipment, including inventory management, on-shelf and off-shelf management of ETC equipment, transaction data statistics and transaction report generation.
The ETC helper applet and ETC distribution platform are used to monitor ETC activation status and implement ETC device activation processing.
The related flow of transactions and activations of the ETC device is as follows:
the method comprises the steps that a user scans the applet codes on the vending machine through a terminal to enter an ETC assistant applet, the ETC assistant applet obtains the vending machine identification and sends the vending machine identification to an ETC issuing platform, the ETC issuing platform obtains equipment inventory information and online condition information of the vending machine corresponding to the vending machine identification according to the vending machine identification to a background management system, a commodity transaction webpage, namely an ETC equipment purchase webpage, is generated, and the ETC issuing platform returns the commodity transaction webpage to the ETC assistant applet.
The ETC helper applet displays the commodity transaction webpage, and the user selects the purchased ETC equipment on the commodity transaction webpage through the terminal, generates a transaction order through the ETC helper applet and submits the transaction order to the ETC issuing platform. And the user carries out online payment according to the transaction order through the terminal, and after the payment is completed, the state of the generated transaction order is the transacted state, and the ETC issuing platform informs the background management system to carry out shipment transaction.
The background management system sends a device transaction instruction to the unmanned vending machine to inform shipment, the unmanned vending machine triggers the motor to deliver, ETC devices are placed at preset positions, a delivery result, namely delivery completion information, is returned to the background management system, and the background management system informs the ETC issuing platform of delivery completion. The ETC issuing platform updates the trade order state, and the updated trade order state is ETC to be activated. And the ETC issuing platform returns the shipment result to the ETC assistant applet, the shipment result is displayed on the user terminal through the ETC assistant applet, and the user takes the ETC equipment. The vending machine can also return a shipment result to the background management system after detecting that the user takes the ETC equipment, and the background management system notifies the shipment result to the ETC issuing platform.
And the user takes the ETC equipment at a preset position, enters an ETC assistant applet through the terminal to activate the ETC equipment, and the ETC assistant applet calls an activation interface to the ETC issuing platform. And the ETC issuing platform starts to process the activation flow, and after the activation is completed, the ETC assistant applet returns an activation result to the ETC assistant applet, and the ETC assistant applet prompts the user terminal that the activation is successful. And the ETC distribution platform updates the order status to an ETC activation status.
The background management system monitors the running condition of the self-service machine and the flow condition of the ETC helper business flow in real time, detects various abnormal conditions and notifies the management end to process.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device transaction device for realizing the device transaction method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device transaction apparatus or apparatus provided below may refer to the limitation of the device transaction method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 5, there is provided a device transaction apparatus 500 comprising: acquisition module 502, data acquisition module 504, page generation module 506, order module 508, and transaction module 510, wherein:
an obtaining module 502, configured to obtain an equipment transaction request sent by a terminal, where the equipment transaction request carries a transaction execution equipment identifier, and obtain a transaction server address corresponding to the transaction execution equipment identifier based on the equipment transaction request;
a data acquisition module 504, configured to generate a data acquisition request based on a transaction execution device identifier, and send the data acquisition request to a transaction server corresponding to the transaction server address;
a page generating module 506, configured to obtain device information corresponding to the transaction execution device identifier returned by the transaction server, generate a device transaction page based on the device information, and send the device transaction page to the terminal;
the order module 508 is configured to obtain target device information returned by the terminal based on the device transaction page, generate target device order information based on the target device information, and send the target device order information to the terminal;
And the transaction module 510 is configured to obtain order confirmation information returned by the terminal based on the target equipment order information, send the order confirmation information to the transaction server for equipment transaction, and obtain transaction completion information returned by the transaction server.
In one embodiment, the device transaction apparatus 500 further comprises:
the state unit is used for generating a target equipment to-be-activated state label corresponding to the target equipment order information based on the transaction completion information; when the target equipment to-be-activated state label is updated to be the target equipment activated state label, determining that the target equipment corresponding to the target equipment order information is in a usable state.
In one embodiment, the device transaction apparatus 500 further comprises:
the activating unit is used for acquiring the equipment activating instruction and searching the order information of the target equipment based on the target equipment identifier carried by the equipment activating instruction; acquiring equipment activation information based on a target equipment to-be-activated state label corresponding to the target equipment order information; the device activation information is sent to target devices corresponding to the target device identifiers, and device activation completion information returned by the target devices based on the device activation information is obtained; updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
In one embodiment, the device transaction apparatus 500 further comprises:
the overtime activation unit is used for acquiring a transaction time point corresponding to the order information of the target equipment, and acquiring equipment activation information based on the target equipment to-be-activated state label when the transaction time point reaches a preset time point and the target equipment to-be-activated state label is not updated to be the target equipment activation state label; determining a target equipment identifier based on the target equipment order information, sending equipment activation information to target equipment corresponding to the target equipment identifier, and acquiring equipment activation completion information returned by the target equipment based on the equipment activation information; updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
In one embodiment, the device transaction apparatus 500 further comprises:
the resource transfer unit is used for generating a device resource transfer request based on the target device activation state label, sending the device resource transfer request to the terminal, and acquiring resource transfer confirmation information returned by the terminal based on the device resource transfer request; and acquiring equipment resources corresponding to the equipment resource transfer request based on the resource transfer confirmation information, transferring the equipment resources to a resource storage space corresponding to the target equipment, and determining that the target equipment corresponding to the target equipment order information is in a usable state.
In one embodiment, the transaction module 510 includes:
the transaction execution unit is used for sending the order confirmation information to the transaction server, and generating a transaction instruction based on the order confirmation information through the transaction server; transmitting a transaction instruction to transaction execution equipment corresponding to the transaction execution equipment identifier, so that the transaction execution equipment responds to the transaction instruction to place target equipment corresponding to the target equipment identifier at a preset position, and transmitting equipment placement completion information to a transaction server; and acquiring transaction completion information returned by the transaction server based on the device placement completion information.
The various modules in the device transaction apparatus described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as device information. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a device transaction method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a device transaction method. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, wherein the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the structures shown in FIGS. 6-7 are block diagrams of the elements of structures in association with aspects of the present application and are not intended to limit the computer system to which aspects of the present application may be applied, and that a particular computer system may include more or less elements than those shown, or may combine some of the elements, or have a different arrangement of elements.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of device transaction, the method comprising:
acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
generating a data acquisition request based on the transaction execution device identifier, and sending the data acquisition request to a transaction server corresponding to the transaction server address;
Acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information, and sending the target equipment order information to the terminal;
and acquiring order confirmation information returned by the terminal based on the target equipment order information, and sending the order confirmation information to the transaction server for equipment transaction to acquire transaction completion information returned by the transaction server.
2. The method of claim 1, further comprising, after said obtaining transaction completion information returned by said transaction server:
generating a target equipment to-be-activated state label corresponding to the target equipment order information based on the transaction completion information;
and when the target equipment to-be-activated state label is updated to be the target equipment activated state label, determining that the target equipment corresponding to the target equipment order information is in a usable state.
3. The method according to claim 2, wherein when the target device to-be-activated status tag is updated to be a target device activated status tag, determining that the target device corresponding to the target device order information is in a usable state includes:
acquiring a device activation instruction, and searching the order information of the target device based on a target device identifier carried by the device activation instruction;
acquiring equipment activation information based on a target equipment to-be-activated state label corresponding to the target equipment order information;
the equipment activation information is sent to target equipment corresponding to the target equipment identifier, and equipment activation completion information returned by the target equipment based on the equipment activation information is obtained;
updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
4. The method according to claim 2, wherein when the target device to-be-activated status tag is updated to be a target device activated status tag, determining that the target device corresponding to the target device order information is in a usable state includes:
Acquiring a transaction time point corresponding to the order information of the target equipment, and acquiring equipment activation information based on the target equipment to-be-activated state label when the transaction time point reaches a preset time point and the target equipment to-be-activated state label is not updated to be the target equipment activation state label;
determining the target equipment identifier based on the target equipment order information, sending the equipment activation information to target equipment corresponding to the target equipment identifier, and acquiring equipment activation completion information returned by the target equipment based on the equipment activation information;
updating the target equipment to-be-activated state label into a target equipment activation state label based on the equipment activation completion information, and determining that target equipment corresponding to the target equipment order information is in a usable state.
5. The method according to claim 2, wherein when the target device to-be-activated status tag is updated to be a target device activated status tag, determining that the target device corresponding to the target device order information is in a usable state includes:
generating a device resource transfer request based on the target device activation state label, sending the device resource transfer request to the terminal, and acquiring resource transfer confirmation information returned by the terminal based on the device resource transfer request;
And acquiring equipment resources corresponding to the equipment resource transfer request based on the resource transfer confirmation information, transferring the equipment resources to a resource storage space corresponding to the target equipment, and determining that the target equipment corresponding to the target equipment order information is in a usable state.
6. The method of claim 1, wherein the order confirmation information includes a target device identification; the step of sending the order confirmation information to the transaction server for equipment transaction, and obtaining transaction completion information returned by the transaction server comprises the following steps:
transmitting the order confirmation information to the transaction server, and generating a transaction instruction based on the order confirmation information through the transaction server;
transmitting the transaction instruction to transaction execution equipment corresponding to the transaction execution equipment identifier, so that the transaction execution equipment responds to the transaction instruction to place target equipment corresponding to the target equipment identifier at a preset position, and transmitting equipment placement completion information to the transaction server;
and acquiring transaction completion information returned by the transaction server based on the equipment placement completion information.
7. A device transaction apparatus, the apparatus comprising:
the device transaction processing module is used for acquiring a device transaction request sent by a terminal, wherein the device transaction request carries a transaction execution device identifier, and acquiring a transaction server address corresponding to the transaction execution device identifier based on the device transaction request;
the data acquisition module is used for generating a data acquisition request based on the transaction execution equipment identifier and sending the data acquisition request to a transaction server corresponding to the transaction server address;
the page generation module is used for acquiring equipment information corresponding to the transaction execution equipment identifier returned by the transaction server, generating an equipment transaction page based on the equipment information, and sending the equipment transaction page to the terminal;
the order module is used for acquiring target equipment information returned by the terminal based on the equipment transaction page, generating target equipment order information based on the target equipment information and sending the target equipment order information to the terminal;
and the transaction module is used for acquiring order confirmation information returned by the terminal based on the target equipment order information, sending the order confirmation information to the transaction server for equipment transaction, and acquiring transaction completion information returned by the transaction server.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311086331.7A 2023-08-28 2023-08-28 Device transaction method, device, computer device and storage medium Active CN116798139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311086331.7A CN116798139B (en) 2023-08-28 2023-08-28 Device transaction method, device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311086331.7A CN116798139B (en) 2023-08-28 2023-08-28 Device transaction method, device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN116798139A true CN116798139A (en) 2023-09-22
CN116798139B CN116798139B (en) 2023-11-28

Family

ID=88038860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311086331.7A Active CN116798139B (en) 2023-08-28 2023-08-28 Device transaction method, device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN116798139B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166314A1 (en) * 2010-12-23 2012-06-28 Kimberg Deborah M Methods and systems for activating a contactless transaction card
CN205354127U (en) * 2015-12-18 2016-06-29 北京聚利科技股份有限公司 On -vehicle unit and ETC system
CN207541705U (en) * 2017-10-16 2018-06-26 山东便利客智能科技有限公司 Automatic vending device and automatically vending system
CN109447617A (en) * 2018-09-05 2019-03-08 广东九联科技股份有限公司 A kind of good selling method and its system based on NB-Iot
CN109726994A (en) * 2019-01-02 2019-05-07 甘肃紫光智能交通与控制技术有限公司 ETC card Internet-based signs mobile distributing method and mobile terminal
CN109961293A (en) * 2019-03-18 2019-07-02 深圳市雄帝科技股份有限公司 Business method of payment, system, device, server and storage medium
CN110769410A (en) * 2018-07-25 2020-02-07 京东数字科技控股有限公司 Method, application module, system and terminal for activating a vehicle-mounted unit device
CN114449472A (en) * 2022-01-27 2022-05-06 中国第一汽车股份有限公司 Vehicle ETC activation method, vehicle ETC activation device, electronic equipment, vehicle ETC activation system and storage medium
CN115690996A (en) * 2022-10-29 2023-02-03 深圳市科芯国创科技有限公司 ETC intelligent terminal server
CN116129580A (en) * 2023-02-16 2023-05-16 山东高速信联科技股份有限公司 Secondary issuing method and system of OBU (on-board unit) equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166314A1 (en) * 2010-12-23 2012-06-28 Kimberg Deborah M Methods and systems for activating a contactless transaction card
CN205354127U (en) * 2015-12-18 2016-06-29 北京聚利科技股份有限公司 On -vehicle unit and ETC system
CN207541705U (en) * 2017-10-16 2018-06-26 山东便利客智能科技有限公司 Automatic vending device and automatically vending system
CN110769410A (en) * 2018-07-25 2020-02-07 京东数字科技控股有限公司 Method, application module, system and terminal for activating a vehicle-mounted unit device
CN109447617A (en) * 2018-09-05 2019-03-08 广东九联科技股份有限公司 A kind of good selling method and its system based on NB-Iot
CN109726994A (en) * 2019-01-02 2019-05-07 甘肃紫光智能交通与控制技术有限公司 ETC card Internet-based signs mobile distributing method and mobile terminal
CN109961293A (en) * 2019-03-18 2019-07-02 深圳市雄帝科技股份有限公司 Business method of payment, system, device, server and storage medium
CN114449472A (en) * 2022-01-27 2022-05-06 中国第一汽车股份有限公司 Vehicle ETC activation method, vehicle ETC activation device, electronic equipment, vehicle ETC activation system and storage medium
CN115690996A (en) * 2022-10-29 2023-02-03 深圳市科芯国创科技有限公司 ETC intelligent terminal server
CN116129580A (en) * 2023-02-16 2023-05-16 山东高速信联科技股份有限公司 Secondary issuing method and system of OBU (on-board unit) equipment

Also Published As

Publication number Publication date
CN116798139B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US10062066B2 (en) Systems and methods for retrieving items for a customer at checkout
US20140074714A1 (en) Attended dispensing environment utilizing mobile payment
US20100057612A1 (en) Kiosk based purchasing system
WO2015062317A1 (en) Methods and systems for conducting online transactions
CN110383316B (en) Payment switching system
KR102450748B1 (en) Radio Frequency Identification Scanning Using the Internet of Things
CN110210842B (en) Resource transfer method, system, device, storage medium and computer equipment
CN116798139B (en) Device transaction method, device, computer device and storage medium
CN112000746B (en) Data management method and device and server
CN112163851A (en) Shopping method and device and electronic equipment
CN111582857A (en) Two-dimensional code display method and device, electronic equipment and medium
CN105354715A (en) Method and device used for authorizing user
CN117172770A (en) Resource processing method, device, computer equipment and storage medium
CN111985983A (en) Order processing method and device, order obtaining method and terminal
CN113435554B (en) Method, device, equipment and medium for managing and displaying information triggered by code scanning
US20180114217A1 (en) Wallet-based alerts in a shared service model environment
KR102345974B1 (en) Data management method for various products and electronic device using the same
CN116862399A (en) Processing method and device for virtual resource transfer, computer equipment and storage medium
CN115705566A (en) Cloud data processing method and device, computer equipment and storage medium
CN115796976A (en) User behavior certificate generation method, device, equipment and storage medium
CN117455647A (en) Credit card application method, credit card application device, computer equipment and storage medium
CN117273817A (en) Prize distribution processing method, device, computer equipment and storage medium
CN116934323A (en) Order information processing method, apparatus, computer device and storage medium
CN117172894A (en) Mobile banking-based garbage collection method, device, equipment and storage medium
CN114638560A (en) Method, device, computer equipment and storage medium for initiating logistics distribution event

Legal Events

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