CN110443638A - A kind of intelligent vending machine approaches to IM and system based on sports center - Google Patents

A kind of intelligent vending machine approaches to IM and system based on sports center Download PDF

Info

Publication number
CN110443638A
CN110443638A CN201910642132.7A CN201910642132A CN110443638A CN 110443638 A CN110443638 A CN 110443638A CN 201910642132 A CN201910642132 A CN 201910642132A CN 110443638 A CN110443638 A CN 110443638A
Authority
CN
China
Prior art keywords
information
user
payment
server
shipment
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.)
Pending
Application number
CN201910642132.7A
Other languages
Chinese (zh)
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.)
Guangzhou Micron Internet Of Things Technology Co Ltd
Original Assignee
Guangzhou Micron Internet Of Things 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 Guangzhou Micron Internet Of Things Technology Co Ltd filed Critical Guangzhou Micron Internet Of Things Technology Co Ltd
Priority to CN201910642132.7A priority Critical patent/CN110443638A/en
Publication of CN110443638A publication Critical patent/CN110443638A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus
    • G07F9/002Vending machines being part of a centrally controlled network of vending machines

Abstract

Intelligent vending machine approaches to IM provided in an embodiment of the present invention based on sports center, RabbitMQ message queue is generated in the server, the merchandise news for obtaining user's selection generates the request that places an order, the request that will place an order is sent to server to generate payment two dimensional code for user and carry out barcode scanning payment, payment completion information is generated after the completion of user's payment, a shipment information is generated in RabbitMQ message queue, when detecting that RabbitMQ message queue contains new information, the shipment instruction read in shipment information carries out shipment operation with the commodity selected user, shipment is generated after the completion of shipment completes information, a shipment is generated in RabbitMQ message queue completes information, and control server completes information to shipment and carries out business logic processing, it can reduce server Coupling between equipment ensure that the high request to Data Concurrent and data synchronism, avoid the nonsynchronous serious forgiveness of data.

Description

A kind of intelligent vending machine approaches to IM and system based on sports center
Technical field
The present invention relates to wireless communication technology field more particularly to a kind of intelligent vending machine message tubes based on sports center Manage method and system.
Background technique
In intelligent use occasion, smart machine is more demanding to the real-time of data, reliability and data synchronism.Intelligence Equipment can realize the number between equipment (client) and central server (server-side) using the protocol Web socket of a persistence According to communication.Websoket is a kind of agreement for supporting persistently to connect, once server and client side sets up websocket protocol Communication connection, communication all later depends on this dedicated connection and carries out.It only needs to hold by a HTTP request completion Hand, so that it may accomplish endlessly information transmission, support server-side that can directly transmit and not have to client push data The function of waiting the request of client is real two-way equal dialogue, also has data format light weight, performance cost small, logical Efficient feature is believed, suitable for the application with various wireless smart devices.
But the connection that websoket will keep in communication in real time is improper to transmit to data to the more demanding of network quality Reliability more demanding application synchronous with data, websoket is the communication protocol of a long type of attachment, is once held The communication connection of server-side and client can be erected after hand, keeps data communication, this mechanism results in data holding Synchronize more demanding to network transmission, Network Abnormal or the larger situation of fluctuation can make equipment out of touch with server.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of intelligent vending machine approaches to IM based on sports center is provided, it can The coupling between server and equipment is reduced, ensure that the high request to Data Concurrent and data synchronism, while to equipment Network Abnormal or the larger situation of fluctuation are subject to determination processing, realize to the high reliability of time check, are not influencing data It ensure that the real-time and reliability that data are transmitted between equipment and server in the case where real-time, it can be to avoid data difference The serious forgiveness of step.
To achieve the above object, the intelligent vending machine information management based on sports center that the embodiment of the invention provides a kind of Method, comprising the following steps:
The machine code of user's input is obtained, generates RabbitMQ message queue in the server;
According to the shopping mode that user selects, the merchandise news of user's selection is obtained, and is generated according to the merchandise news First places an order request, described first request that places an order is sent to the server, so that the server generates the first payment two It ties up code and carries out barcode scanning payment for user;
After the completion of user's payment, payment completion information is generated, and the payment completion information is sent to the service Device, so that the server generates a shipment information in the RabbitMQ message queue;
When detecting that the RabbitMQ message queue contains new information, the shipment read in the shipment information refers to It enables, carries out shipment operation with the commodity selected user;
It after the completion of shipment, generates shipment and completes information, shipment completion information is sent to the server, so that The server generates a shipment in the RabbitMQ message queue and completes information, and controls the server to described Shipment completes information and carries out business logic processing.
Further, it is described acquisition user input machine code, in the server generate RabbitMQ message queue it Afterwards, further includes:
According to lease/storing mode that user selects, monitor whether to need leasehold article/vacant locker, if then It generates second to place an order request, described second request that places an order is sent to the server, so that server generation second It pays two dimensional code and carries out the corresponding cash pledge of barcode scanning payment for user;If it is not, then returning to information of selling out;
After after the completion of user's payment and selecting unlocking, payment completion and unlocking information are generated, and the payment is completed And unlocking information is sent to the server, so that the server generates a unlocking in the RabbitMQ message queue Information;
When detecting that the RabbitMQ message queue contains new information, the unlocking read in the unlocking information refers to It enables, and corresponding cabinet door is opened according to the cabinet door number of user's selection;
After user closes the cabinet door, lock information is generated, and start timing, while generating the disposable of the cabinet door Unlocking voucher;
When user opens corresponding cabinet door by the unlocking voucher, corresponding lease/bring back storage object and close is given back After closing the cabinet door, information of closing the trade is generated, the information of closing the trade is sent to the server, so that the service Device generates a transaction in the RabbitMQ message queue and completes information;Wherein, the transaction is completed to include using in information Family lease/storing duration;
When detecting that the RabbitMQ message queue contains new information again, reads the transaction and complete in information Instruction of closing the account generate account to be paid according to corresponding charging regulation and according to the duration of the user's lease/storing It is single, and the bill to be paid is pushed into user's public platform, so that user pays;
After the completion of user is to the bill payment to be paid, payment successful information is generated, by the payment successful information It is sent to the server, so that the server generates a payment completion information in the RabbitMQ message queue, And it controls the server and business logic processing is carried out to the payment completion information.
Further, described after the completion of user is to the bill payment to be paid, payment successful information is generated, by institute It states payment successful information and is sent to the server, so that the server generates one in the RabbitMQ message queue Payment completion information, and control the server to the payment completion information carry out business logic processing after, further includes:
Open cash pledge returns channel and carries out return of down payment operation for user to user's public platform.
Further, maximum time limitation is equipped in the charging regulation, when user's lease/storing duration reaches described When maximum time limits, terminates charging and generate bill to be paid.
Further, the unlocking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
As the preferred embodiment of the present invention, the embodiment of the invention also provides a kind of intelligence based on sports center to sell goods Machine information management system, comprising: machine code obtains module, shopping selecting module, the first payment module, goods discharging module and first Order ending module;
The machine code obtains module, for obtaining the machine code of user's input, generates RabbitMQ in the server and disappears Cease queue;
The shopping selecting module, the shopping mode for being selected according to user obtain the merchandise news of user's selection, and First is generated according to the merchandise news to place an order request, described first request that places an order is sent to the server, so that described Server generates the first payment two dimensional code and carries out barcode scanning payment for user;
First payment module, for generating payment completion information, and paid described after the completion of user's payment It is sent to the server at information, so that the server generates a shipment letter in the RabbitMQ message queue Breath;
The goods discharging module, for when detecting that the RabbitMQ message queue contains new information, described in reading Shipment instruction in shipment information carries out shipment operation with the commodity selected user;
The first order ending module completes information for after the completion of shipment, generating shipment, the shipment is completed Information is sent to the server, so that the server generates a shipment in the RabbitMQ message queue and completes letter Breath, and control the server and information progress business logic processing is completed to the shipment.
Further, the intelligent vending machine information management system based on sports center, further includes: lease/storing choosing Select module, the second payment module, unlocking module, unlocking voucher generation module, transaction ending module, bill generation module and the Two order ending modules;
The lease/storing selecting module, lease/storing mode for being selected according to user, monitors whether to need Leasehold article/vacant locker places an order request if then generating second, and described second request that places an order is sent to the service Device, so that the server, which generates the second payment two dimensional code, carries out the corresponding cash pledge of barcode scanning payment for user;It is sold if it is not, then returning Empty information;
Second payment module is completed and unlocks for after the completion of user's payment and after selecting unlocking, generating payment Information, and payment completion and unlocking information are sent to the server, so that the server is in the RabbitMQ A unlocking information is generated in message queue;
The unlocking module, for when detecting that the RabbitMQ message queue contains new information, described in reading Unlocking instruction in unlocking information, and corresponding cabinet door is opened according to the cabinet door number of user's selection;
The unlocking voucher generation module, for generating lock information, and start to count after user closes the cabinet door When, while generating the disposable unlocking voucher of the cabinet door;
The transaction ending module is given back corresponding for opening corresponding cabinet door by the unlocking voucher as user Lease/bring back storage object and after closing the cabinet door, generation are closed the trade information, and the information of closing the trade is sent to institute Server is stated, so that the server generates a transaction in the RabbitMQ message queue and completes information;Wherein, described Transaction is completed to include user's lease/storing duration in information;
The bill generation module, for when detecting that the RabbitMQ message queue contains new information again, The instruction of closing the account in the transaction completion information is read, and according to the duration of the user's lease/storing, according to corresponding Charging regulation generates bill to be paid, and the bill to be paid is pushed to user's public platform, so that user pays;
The second order ending module, for when user to the bill payment to be paid after the completion of, generate payment at The payment successful information is sent to the server, so that the server is in RabbitMQ message team by function information A payment completion information is generated in column, and controls the server and business logic processing is carried out to the payment completion information.
Further, the intelligent vending machine information management system based on sports center, further includes: cash pledge returns mould Block;
The cash pledge returns module, returns channel to user's public platform for user progress return of down payment behaviour for opening cash pledge Make.
Further, maximum time limitation is equipped in the charging regulation, when user's lease/storing duration reaches described When maximum time limits, terminates charging and generate bill to be paid.
Further, the unlocking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
Intelligent vending machine approaches to IM provided in an embodiment of the present invention based on sports center, by the server RabbitMQ message queue is generated, the merchandise news for obtaining user's selection generates the request that places an order, and the request that will place an order is sent to service Device carries out barcode scanning payment to generate payment two dimensional code for user, generates payment completion information, In after the completion of user's payment A shipment information is generated in RabbitMQ message queue, when detecting that RabbitMQ message queue contains new information, is read It takes the shipment in shipment information to instruct and carries out shipment operation with the commodity selected user, shipment is generated after the completion of shipment and is completed Information generates a shipment in RabbitMQ message queue and completes information, and control server is completed information to shipment and carried out Business logic processing can reduce the coupling between server and equipment, ensure that Data Concurrent and data synchronism High request, while determination processing is subject to the situation that device network is abnormal or fluctuation is larger, realization can to the height of time check By property, real-time that data between equipment and server are transmitted and reliable ensure that in the case where not influencing real-time property Property, it can be to avoid the nonsynchronous serious forgiveness of data.
Detailed description of the invention
Fig. 1 is the stream of one embodiment of the intelligent vending machine approaches to IM provided by the invention based on sports center Journey schematic diagram;
Fig. 2 is the knot of one embodiment of the intelligent vending machine information management system provided by the invention based on sports center Structure schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Figure 1, Fig. 1 is one of the intelligent vending machine approaches to IM provided by the invention based on sports center The flow diagram of embodiment;The embodiment of the present invention provides a kind of intelligent vending machine approaches to IM based on sports center, Including step S1 to S5;
S1 obtains the machine code of user's input, generates RabbitMQ message queue in the server.
RabbitMQ standard advanced message queue protocol is typical " production/consumption " message model, the producer with disappear The message queue that rule interaction is established between expense, only needs that Content of Communication is published to queue i.e. between equipment or server Achievable communication task can effectively reduce without establishing connection of shaking hands each other and couple journey between service equipment Degree, in the case where network cause influences, confirmation message will not lose, and ensure that stabilization, reliability between data transmission, this Inventive embodiments can establish queue channel using RabbitMQ message queue between the device and the server, between the two mutually Communication is all distributed by queue, stores data when disconnecting in succession when the complete data needs of server process are interacted with equipment To among queue, queue message is consumed again after waiting for server or unit exception recovery, ensure that data will not be in abnormal conditions Lower loss.
It further include step S11-S17 after step S1 as the preferred embodiment of the present invention;
S11, according to user select lease/storing mode, monitor whether to need leasehold article/vacant locker, if It is to generate second to place an order request, described second request that places an order is sent to the server, so that server generation the Two payment two dimensional codes carry out barcode scanning for user and pay corresponding cash pledge;If it is not, then returning to information of selling out.
S12 generates payment and completes and unlocking information after the completion of user's payment and after select unlocking, and by the payment It completes and unlocking information is sent to the server, so that the server generates one in the RabbitMQ message queue Unlocking information.
S13 reads opening in the unlocking information when detecting that the RabbitMQ message queue contains new information Lock instruction, and corresponding cabinet door is opened according to the cabinet door number of user's selection.
S14 generates lock information, and start timing, while generating the one of the cabinet door after user closes the cabinet door Secondary property unlocking voucher.
In the present embodiment, the unlocking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
S15 gives back corresponding lease/bring back storage object when user opens corresponding cabinet door by the unlocking voucher And after closing the cabinet door, information of closing the trade is generated, the information of closing the trade is sent to the server, so that described Server generates a transaction in the RabbitMQ message queue and completes information.
Wherein, the transaction is completed to include user's lease/storing duration in information.
S16 reads the transaction and completes letter when detecting that the RabbitMQ message queue contains new information again Instruction of closing the account in breath, and according to the duration of the user's lease/storing, it is generated according to corresponding charging regulation to be paid Bill, and the bill to be paid is pushed into user's public platform, so that user pays.
In the present embodiment, maximum time limitation is equipped in the charging regulation, when user's lease/storing duration reaches When the maximum time limits, terminates charging and generate bill to be paid.
S17 generates payment successful information, pays described successfully after the completion of user is to the bill payment to be paid Information is sent to the server, so that the server generates a payment in the RabbitMQ message queue and completes letter Breath, and control the server and business logic processing is carried out to the payment completion information.
The business logic processing is the information such as result information and order status to be recorded to database purchase, and will handle Object tag is to have read object.
S2 obtains the merchandise news of user's selection according to the shopping mode that user selects, and raw according to the merchandise news It places an order request at first, described first request that places an order is sent to the server, so that the server generates the first payment Two dimensional code carries out barcode scanning payment for user.
S3 generates payment completion information, and the payment completion information is sent to the clothes after the completion of user's payment Business device, so that the server generates a shipment information in the RabbitMQ message queue.
S4 reads going out in the shipment information when detecting that the RabbitMQ message queue contains new information Goods instruction carries out shipment operation with the commodity selected user.
S5 generates shipment and completes information after the completion of shipment, and shipment completion information is sent to the server, So that the server generates a shipment in the RabbitMQ message queue and completes information, and control the server pair The shipment completes information and carries out business logic processing.
It further include step S51 after step s 5 as the preferred embodiment of the present invention;
S51, open cash pledge return channel and carry out return of down payment operation for user to user's public platform.
The working principle of method in order to better illustrate the present invention is the workflow of one embodiment of the invention below:
Machine booting input machine code, that is, Login Register can register a queue (the every machine for belonging to itself at this time Be present in a queue, according to message instruct difference do different movements), when selling goods user select commodity barcode scanning payment when Hou Huixiang server initiates to pay the request that places an order, and server can generate one to the queue of machine itself after the completion of receiving payment Message informing, machine, which listens among the queue of itself registration, has that not consume message be that can actively consume this message, machine Obtaining message content is that this shipment that can go to complete when instructing of shipment is notified to instruct, and is sent the result to after the completion of machine shipment On the message queue of server registration, server consumption to this message do business logic processing (by shipment result information with order Database purchase is recorded in the information such as single state), the order information of a record is finished at this time.
It when lease/storing, monitors whether to need leasehold article/vacant locker first, sell out if otherwise returning Information;If then generating the request that places an order, the request that will place an order is sent to the server so that server generates payment two dimensional code and supplies User carries out barcode scanning and pays corresponding cash pledge, while generating an order and sending a message to queue and unlocking, when user is closed Reporting message is returned when lock, at this time an order just produce and secondary cabinet can only the user could open;When same User carries out going back object movement when unlocking for the second time, and server can remove to calculate according to lease rule duration based accounting PUSH message to use Family public platform is paid for user.
Preferably, the intelligent vending machine is after booting inputs machine code, and user can directly face selects quotient on the screen Product information, the machine screen pop-up payment two dimensional code page, customer pay corresponding goods with the app barcode scanning such as handset Wechat/Alipay Price has paid machine shipment, also has corresponding progress bar prompt machine shipment information in the mobile phone terminal page.
In conclusion the intelligent vending machine approaches to IM provided in an embodiment of the present invention based on sports center, passes through Obtain user input machine code, in the server generate RabbitMQ message queue, further according to user selection shopping mode, The merchandise news of user's selection is obtained, and generates first according to the merchandise news and places an order request, described first is placed an order request It is sent to the server, so that the server, which generates the first payment two dimensional code, carries out barcode scanning payment for user, when user's branch After the completion of paying, payment completion information is generated, and the payment completion information is sent to the server, so that the server A shipment information is generated in the RabbitMQ message queue, when detecting that it is new that the RabbitMQ message queue contains When information, the shipment instruction in the shipment information is read, carries out shipment operation with the commodity selected user, when shipment is completed Afterwards, it generates shipment and completes information, shipment completion information is sent to the server, so that the server is described A shipment is generated in RabbitMQ message queue and completes information, and controls the server and information progress is completed to the shipment Business logic processing.
Intelligent vending machine approaches to IM provided by the invention based on sports center, has the advantages that
The coupling between server and equipment can be reduced using RabbitMQ message queue protocol, and (it is directly right not have to Words), it ensure that the high request to Data Concurrent and data synchronism, while to the situation that device network is abnormal or fluctuation is larger Be subject to determination processing, realize the high reliability to time check, ensure that in the case where not influencing real-time property equipment with The real-time and reliability that data are transmitted between server.
Fig. 2 is referred to, as another preferred embodiment of the invention, Fig. 2 is provided by the invention based on sports center The structural schematic diagram of one embodiment of intelligent vending machine information management system, the embodiment of the invention also provides one kind based on fortune The intelligent vending machine information management system in dynamic place, comprising: machine code obtain module, shopping selecting module, the first payment module, Goods discharging module and the first order ending module;
The machine code obtains module, for obtaining the machine code of user's input, generates RabbitMQ in the server and disappears Cease queue;The shopping selecting module, the shopping mode for being selected according to user obtain the merchandise news of user's selection, and First is generated according to the merchandise news to place an order request, described first request that places an order is sent to the server, so that described Server generates the first payment two dimensional code and carries out barcode scanning payment for user;First payment module, for having been paid as user Cheng Hou generates payment completion information, and the payment completion information is sent to the server, so that the server is in institute State one shipment information of generation in RabbitMQ message queue;The goods discharging module detects that the RabbitMQ disappears for working as When breath queue contains new information, the shipment instruction in the shipment information is read, carries out shipment with the commodity selected user Operation;The first order ending module completes information for after the completion of shipment, generating shipment, the shipment is completed to believe Breath is sent to the server, so that the server generates a shipment in the RabbitMQ message queue and completes letter Breath, and control the server and information progress business logic processing is completed to the shipment.
Preferably, the intelligent vending machine information management system based on sports center, further includes: lease/storing selection Module, the second payment module, unlocking module, unlocking voucher generation module, transaction ending module, bill generation module and second Order ending module;
The lease/storing selecting module, lease/storing mode for being selected according to user, monitors whether to need Leasehold article/vacant locker places an order request if then generating second, and described second request that places an order is sent to the service Device, so that the server, which generates the second payment two dimensional code, carries out the corresponding cash pledge of barcode scanning payment for user;It is sold if it is not, then returning Empty information;Second payment module, for after the completion of user's payment and after selecting unlocking, generating payment completion and letter of unlocking Breath, and payment completion and unlocking information are sent to the server, so that the server disappears in the RabbitMQ It ceases and generates a unlocking information in queue;The unlocking module detects that the RabbitMQ message queue contains newly for working as Information when, read the unlocking instruction in the unlocking information, and corresponding cabinet door is opened according to the cabinet door number of user's selection; The unlocking voucher generation module, it is raw simultaneously for generating lock information, and start timing after user closes the cabinet door At the disposable unlocking voucher of the cabinet door;The transaction ending module, for opening phase by the unlocking voucher as user The cabinet door answered, after giving back corresponding lease/bring back storage object and closing the cabinet door, generation is closed the trade information, will be described Information of closing the trade is sent to the server, so that the server generates a friendship in the RabbitMQ message queue It is readily accomplished information;Wherein, the transaction is completed to include user's lease/storing duration in information;The bill generation module is used In when detecting that the RabbitMQ message queue contains new information again, the clearing in information are completed in the reading transaction Expense instruction, and according to the duration of the user's lease/storing, bill to be paid is generated according to corresponding charging regulation, and will The bill to be paid pushes to user's public platform, so that user pays;The second order ending module is used for working as After the completion of family is to the bill payment to be paid, payment successful information is generated, the payment successful information is sent to the clothes Business device, so that the server generates a payment completion information in the RabbitMQ message queue, and controls the clothes Device be engaged in payment completion information progress business logic processing.
In embodiments of the present invention, the intelligent vending machine information management system based on sports center, further includes: cash pledge Return module;
The cash pledge returns module, returns channel to user's public platform for user progress return of down payment behaviour for opening cash pledge Make.
Preferably, being equipped with maximum time in the charging regulation limits, when user's lease/storing duration reach it is described most When big time restriction, terminates charging and generate bill to be paid.
In the present embodiment, the unlocking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
In conclusion a kind of intelligent vending machine information management system based on sports center provided by the invention, passes through machine Device code obtains the machine code that module obtains user's input, generates RabbitMQ message queue in the server, then passes through shopping The shopping mode that selecting module is selected according to user obtains the merchandise news of user's selection, and is generated according to the merchandise news First places an order request, described first request that places an order is sent to the server, so that the server generates the first payment two It ties up code and carries out barcode scanning payment for user, then through the first payment module after the completion of user pays, generate payment completion information, and The payment completion information is sent to the server, so that the server generates in the RabbitMQ message queue One shipment information, and through goods discharging module when detecting that the RabbitMQ message queue contains new information, read institute The shipment instruction in shipment information is stated, shipment operation is carried out with the commodity selected user, terminates mould finally by the first order Block generates shipment and completes information after the completion of shipment, shipment completion information is sent to the server, so that the clothes Business device generates a shipment in the RabbitMQ message queue and completes information, and it is complete to the shipment to control the server Business logic processing is carried out at information, the coupling between server and equipment is can reduce, ensure that Data Concurrent sum number It is subject to determination processing according to the high request of synchronism, while to the situation that device network is abnormal or fluctuation is larger, realizes to the time The high reliability of inspection ensure that data are transmitted real-time between equipment and server in the case where not influencing real-time property Property and reliability, can be to avoid the nonsynchronous serious forgiveness of data.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. a kind of intelligent vending machine approaches to IM based on sports center, which comprises the following steps:
The machine code of user's input is obtained, generates RabbitMQ message queue in the server;
According to the shopping mode that user selects, the merchandise news of user's selection is obtained, and generates first according to the merchandise news Place an order request, and described first request that places an order is sent to the server, so that the server generates the first payment two dimensional code Barcode scanning payment is carried out for user;
After the completion of user's payment, payment completion information is generated, and the payment completion information is sent to the server, with The server is set to generate a shipment information in the RabbitMQ message queue;
When detecting that the RabbitMQ message queue contains new information, the shipment instruction in the shipment information is read, Shipment operation is carried out with the commodity selected user;
It after the completion of shipment, generates shipment and completes information, shipment completion information is sent to the server, so that described Server generates a shipment in the RabbitMQ message queue and completes information, and controls the server to the shipment It completes information and carries out business logic processing.
2. the intelligent vending machine approaches to IM based on sports center as described in claim 1, which is characterized in that described The machine code of user's input is obtained, in the server after generation RabbitMQ message queue, further includes:
According to lease/storing mode that user selects, monitor whether to need leasehold article/vacant locker, if then generating Second places an order request, described second request that places an order is sent to the server, so that the server generates the second payment two It ties up code and carries out the corresponding cash pledge of barcode scanning payment for user;If it is not, then returning to information of selling out;
After after the completion of user's payment and selecting unlocking, generate payment completion and unlocking information, and the payment is completed and opened Lock information is sent to the server, so that the server generates a unlocking letter in the RabbitMQ message queue Breath;
When detecting that the RabbitMQ message queue contains new information, the unlocking instruction in the unlocking information is read, And corresponding cabinet door is opened according to the cabinet door number of user's selection;
After user closes the cabinet door, lock information is generated, and start timing, while generating the disposable unlocking of the cabinet door Voucher;
When user opens corresponding cabinet door by the unlocking voucher, corresponding lease/bring back storage object and close institute is given back After stating cabinet door, information of closing the trade is generated, the information of closing the trade is sent to the server, so that the server exists A transaction is generated in the RabbitMQ message queue completes information;Wherein, the transaction is completed to include that user rents in information It rents/the duration of storing;
When detecting that the RabbitMQ message queue contains new information again, the knot in the transaction completion information is read The instruction of calculation expense, and according to the duration of the user's lease/storing, bill to be paid is generated according to corresponding charging regulation, and The bill to be paid is pushed into user's public platform, so that user pays;
After the completion of user is to the bill payment to be paid, payment successful information is generated, the payment successful information is sent To the server, so that the server generates a payment completion information in the RabbitMQ message queue, and control It makes the server and business logic processing is carried out to the payment completion information.
3. the intelligent vending machine approaches to IM based on sports center as claimed in claim 2, which is characterized in that described After the completion of user is to the bill payment to be paid, payment successful information is generated, the payment successful information is sent to institute Server is stated, so that the server generates a payment completion information in the RabbitMQ message queue, and controls institute After server is stated to payment completion information progress business logic processing, further includes:
Open cash pledge returns channel and carries out return of down payment operation for user to user's public platform.
4. the intelligent vending machine approaches to IM based on sports center as claimed in claim 2, which is characterized in that the meter Take and be equipped with maximum time limitation in rule, when user's lease/storing duration reaches maximum time limitation, terminates charging And generate bill to be paid.
5. the intelligent vending machine approaches to IM based on sports center as claimed in claim 2, which is characterized in that described to open Locking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
6. a kind of intelligent vending machine information management system based on sports center characterized by comprising machine code obtains mould Block, shopping selecting module, the first payment module, goods discharging module and the first order ending module;
The machine code obtains module, for obtaining the machine code of user's input, generates RabbitMQ message team in the server Column;
The shopping selecting module, the shopping mode for being selected according to user, the merchandise news of acquisition user's selection, and according to The merchandise news generates first and places an order request, described first request that places an order is sent to the server, so that the service Device generates the first payment two dimensional code and carries out barcode scanning payment for user;
First payment module for after the completion of user's payment, generating payment completion information, and the payment is completed to believe Breath is sent to the server, so that the server generates a shipment information in the RabbitMQ message queue;
The goods discharging module, for reading the shipment when detecting that the RabbitMQ message queue contains new information Shipment instruction in information carries out shipment operation with the commodity selected user;
The first order ending module completes information for after the completion of shipment, generating shipment, information is completed in the shipment It is sent to the server, so that the server generates a shipment in the RabbitMQ message queue and completes information, And it controls the server and information progress business logic processing is completed to the shipment.
7. the intelligent vending machine information management system based on sports center as claimed in claim 6, which is characterized in that also wrap It includes: lease/storing selecting module, the second payment module, unlocking module, unlocking voucher generation module, transaction ending module, bill Generation module and the second order ending module;
The lease/storing selecting module, lease/storing mode for being selected according to user, monitors whether to need to be leased Article/vacant locker places an order request if then generating second, and described second request that places an order is sent to the server, with So that the server is generated the second payment two dimensional code and carries out the corresponding cash pledge of barcode scanning payment for user;If it is not, then returning to letter of selling out Breath;
Second payment module, for generating payment completion and unlocking information after the completion of user's payment and after selecting unlocking, And payment completion and unlocking information are sent to the server, so that the server is in RabbitMQ message team A unlocking information is generated in column;
The unlocking module, for reading the unlocking when detecting that the RabbitMQ message queue contains new information Unlocking instruction in information, and corresponding cabinet door is opened according to the cabinet door number of user's selection;
The unlocking voucher generation module, for generating lock information, and start timing, together after user closes the cabinet door The disposable unlocking voucher of cabinet door described in Shi Shengcheng;
The transaction ending module gives back corresponding lease for opening corresponding cabinet door by the unlocking voucher as user Object/bring back storage object and after closing the cabinet door, generation are closed the trade information, and the information of closing the trade is sent to the clothes Business device, so that the server generates a transaction in the RabbitMQ message queue and completes information;Wherein, the transaction It completes to include user's lease/storing duration in information;
The bill generation module, for reading when detecting that the RabbitMQ message queue contains new information again The instruction of closing the account in information is completed in the transaction, and according to the duration of the user's lease/storing, according to corresponding charging Rule generates bill to be paid, and the bill to be paid is pushed to user's public platform, so that user pays;
The second order ending module is successfully believed for generating to pay after the completion of user is to the bill payment to be paid Breath, is sent to the server for the payment successful information, so that the server is in the RabbitMQ message queue A payment completion information is generated, and controls the server and business logic processing is carried out to the payment completion information.
8. the intelligent vending machine information management system based on sports center as claimed in claim 7, which is characterized in that also wrap Include: cash pledge returns module;
The cash pledge returns module, returns channel to user's public platform for user's progress return of down payment operation for opening cash pledge.
9. the intelligent vending machine information management system based on sports center as claimed in claim 7, which is characterized in that the meter Take and be equipped with maximum time limitation in rule, when user's lease/storing duration reaches maximum time limitation, terminates charging And generate bill to be paid.
10. the intelligent vending machine information management system based on sports center as claimed in claim 7, which is characterized in that described Unlocking voucher includes unlocking two dimensional code, unlocking cipher and unlocking key.
CN201910642132.7A 2019-07-16 2019-07-16 A kind of intelligent vending machine approaches to IM and system based on sports center Pending CN110443638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642132.7A CN110443638A (en) 2019-07-16 2019-07-16 A kind of intelligent vending machine approaches to IM and system based on sports center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910642132.7A CN110443638A (en) 2019-07-16 2019-07-16 A kind of intelligent vending machine approaches to IM and system based on sports center

Publications (1)

Publication Number Publication Date
CN110443638A true CN110443638A (en) 2019-11-12

Family

ID=68430535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910642132.7A Pending CN110443638A (en) 2019-07-16 2019-07-16 A kind of intelligent vending machine approaches to IM and system based on sports center

Country Status (1)

Country Link
CN (1) CN110443638A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198923A (en) * 2020-01-08 2020-05-26 北京仿真中心 Data synchronization method and system based on message queue
CN111243188A (en) * 2019-12-27 2020-06-05 天津恒达文博科技股份有限公司 Self-service leasing method based on two-dimensional code
CN111724527A (en) * 2019-03-22 2020-09-29 旭精工株式会社 Method, system and computer readable medium for setting authentication criteria information
CN112330854A (en) * 2020-09-24 2021-02-05 深圳市智莱科技股份有限公司 Charging cabinet opening method, server and computer readable storage medium
CN114598703A (en) * 2022-01-26 2022-06-07 银盛通信有限公司 Method for realizing million-level concurrent ordering of traffic packets based on mobile resale system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456194A (en) * 2010-10-27 2012-05-16 中国移动通信集团公司 Remote payment method, system, terminal and server
CN104599119A (en) * 2015-01-14 2015-05-06 金瓯 Embedding and cloud computing based vending machine mobile electronic payment method
CN106991764A (en) * 2017-06-05 2017-07-28 高雄飞 A kind of system and method that basketball is leased by smart mobile phone
CN107005444A (en) * 2014-09-11 2017-08-01 森特理克联网家居有限公司 Equipment is synchronous and tests
CN107197017A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN108038679A (en) * 2017-12-05 2018-05-15 苏州比可网络科技有限公司 Send the method and polymerization payment platform of payment message
CN108052398A (en) * 2017-12-12 2018-05-18 苏州比可网络科技有限公司 A kind of feedback method of order processing state and polymerization payment platform
WO2018106426A1 (en) * 2016-12-09 2018-06-14 Sas Institute Inc. Event stream processing cluster manager
CN108429789A (en) * 2018-02-02 2018-08-21 广州云印信息科技有限公司 A kind of mobile wireless network communication system and method based on automatic vending machine
CN108446361A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Processing method, server and the processing system of transaction data
CN108471435A (en) * 2018-02-02 2018-08-31 广州云印信息科技有限公司 A kind of distributed background service system and method based on Self-help vending machine
CN108984325A (en) * 2018-07-20 2018-12-11 北京北信源信息安全技术有限公司 Message queue consuming method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102456194A (en) * 2010-10-27 2012-05-16 中国移动通信集团公司 Remote payment method, system, terminal and server
CN107005444A (en) * 2014-09-11 2017-08-01 森特理克联网家居有限公司 Equipment is synchronous and tests
CN104599119A (en) * 2015-01-14 2015-05-06 金瓯 Embedding and cloud computing based vending machine mobile electronic payment method
CN108419447A (en) * 2016-12-09 2018-08-17 萨思学会有限公司 Event stream processing cluster manager dual system
WO2018106426A1 (en) * 2016-12-09 2018-06-14 Sas Institute Inc. Event stream processing cluster manager
CN107197017A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN106991764A (en) * 2017-06-05 2017-07-28 高雄飞 A kind of system and method that basketball is leased by smart mobile phone
CN108038679A (en) * 2017-12-05 2018-05-15 苏州比可网络科技有限公司 Send the method and polymerization payment platform of payment message
CN108052398A (en) * 2017-12-12 2018-05-18 苏州比可网络科技有限公司 A kind of feedback method of order processing state and polymerization payment platform
CN108429789A (en) * 2018-02-02 2018-08-21 广州云印信息科技有限公司 A kind of mobile wireless network communication system and method based on automatic vending machine
CN108471435A (en) * 2018-02-02 2018-08-31 广州云印信息科技有限公司 A kind of distributed background service system and method based on Self-help vending machine
CN108446361A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Processing method, server and the processing system of transaction data
CN108984325A (en) * 2018-07-20 2018-12-11 北京北信源信息安全技术有限公司 Message queue consuming method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梅巧玲: "基于redis技术的常用联系人集群构架优化", 《铁路计算机应用》, pages 35 - 37 *
王恩文: ""气象队列技术在气象软件系统中的应用"", 《气象科技进展》, pages 167 - 143 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724527A (en) * 2019-03-22 2020-09-29 旭精工株式会社 Method, system and computer readable medium for setting authentication criteria information
CN111243188A (en) * 2019-12-27 2020-06-05 天津恒达文博科技股份有限公司 Self-service leasing method based on two-dimensional code
CN111198923A (en) * 2020-01-08 2020-05-26 北京仿真中心 Data synchronization method and system based on message queue
CN112330854A (en) * 2020-09-24 2021-02-05 深圳市智莱科技股份有限公司 Charging cabinet opening method, server and computer readable storage medium
CN112330854B (en) * 2020-09-24 2022-08-12 深圳市智莱科技股份有限公司 Charging cabinet opening method, server and computer readable storage medium
CN114598703A (en) * 2022-01-26 2022-06-07 银盛通信有限公司 Method for realizing million-level concurrent ordering of traffic packets based on mobile resale system

Similar Documents

Publication Publication Date Title
CN110443638A (en) A kind of intelligent vending machine approaches to IM and system based on sports center
CN107194697B (en) The method and system of authorization are provided by mobile terminal
CN204029036U (en) A kind of automatic vending machine and automatically vending system
CN104252672B (en) Payment transaction system integrating cloud service
CN105023366A (en) Intelligent takeout storing and taking terminal and method
CN103903176A (en) Internet of Things transaction system achieving automatic vending
CN107730747A (en) A kind of shared charger baby system
CN105023134A (en) Locker terminal, automatic distribution method and automatic distribution system
CN105006067A (en) Automatic vending system
CN101082941A (en) Network game virtual assets on-line management method and system
CN108717652A (en) Order processing system and method, order placement service end, the second client
CN109979084A (en) Intelligent self-service based on big data is sold goods management system and method
CN101739640A (en) Method to order goods by terminals
CN109872453A (en) A kind of automatic vending method, system, cloud server and mobile terminal
CN109165762A (en) A kind of reserving method of maintenance service, device, equipment and storage medium
CN110233887A (en) Data processing method and device for cabinet of picking up goods
CN101419697A (en) Method, device and system for processing customer information of bank
CN109785524A (en) The control system and glasses of a kind of shared glasses cabinet rent also, management method
JP7226960B2 (en) Locker management device, locker management method and locker device
CN101197027A (en) Internet service paying method and system based on common terminal
CN106961463A (en) A kind of server and resource sending method
JP2003050956A (en) Network service system and its operating method
CN107274552A (en) Game tokens deposit the method for converting, device, system and server
US20220180332A1 (en) Cryptocurrency management system for business use
CN110533831A (en) A kind of intelligent sale apparatus based on block chain

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