CN117455726A - Offline guarantee method, device and equipment for intelligent catering system and storage medium - Google Patents

Offline guarantee method, device and equipment for intelligent catering system and storage medium Download PDF

Info

Publication number
CN117455726A
CN117455726A CN202311786879.2A CN202311786879A CN117455726A CN 117455726 A CN117455726 A CN 117455726A CN 202311786879 A CN202311786879 A CN 202311786879A CN 117455726 A CN117455726 A CN 117455726A
Authority
CN
China
Prior art keywords
service
instruction
payment
offline
mode
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
CN202311786879.2A
Other languages
Chinese (zh)
Other versions
CN117455726B (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.)
Guangdong Youxin Infinite Network Co ltd
Original Assignee
Guangdong Youxin Infinite Network 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 Guangdong Youxin Infinite Network Co ltd filed Critical Guangdong Youxin Infinite Network Co ltd
Priority to CN202311786879.2A priority Critical patent/CN117455726B/en
Publication of CN117455726A publication Critical patent/CN117455726A/en
Application granted granted Critical
Publication of CN117455726B publication Critical patent/CN117455726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2033Failover techniques switching over of hardware resources
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Primary Health Care (AREA)
  • Human Resources & Organizations (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application relates to an off-line guaranteeing method, device, equipment and storage medium for a smart food and beverage system, which comprise the steps of monitoring running states of cluster servers in real time, switching servers of the smart food and beverage service system according to the running states of the cluster servers, and replacing service modes of the smart food and beverage service system; switching the service mode of the equipment end according to the service mode, generating a standby service instruction, and starting standby service; acquiring offline consumption orders and payment information of users, pushing the orders and payment information to a docking service, and generating storage instructions to be stored in an edge server; when the cluster server is monitored to run normally, the cluster server is started, a transmission instruction is generated, catering offline data of the edge server are transmitted, and meanwhile, the service mode of the intelligent catering service system is switched. The intelligent dining system has the effect of supporting normal consumption dining of various binding plate modes in an offline mode of the intelligent dining system.

Description

Offline guarantee method, device and equipment for intelligent catering system and storage medium
Technical Field
The invention relates to the technical field of intelligent catering systems, in particular to an offline guaranteeing method, device and equipment for an intelligent catering system and a storage medium.
Background
At present, along with the acceleration of the life rhythm and the continuous development of the intelligent industry, the intelligent catering system is popularized and applied in a large area in the market, and the intelligent catering system firstly places foods such as dishes, and automatically charges and deducts fees by self-service selection of users and in the process of clamping and placing the foods into the cutlery box, so that the intelligent catering system is simple to operate and extremely convenient.
The intelligent catering system depends on a cluster server, and when the cluster server is abnormal or down, the intelligent catering system enters an offline mode. However, in the current offline mode, only the user is supported to conduct ordering and fee deduction through a monovalent face binding disc or a card-swiping binding disc, and other scenes and binding disc modes cannot eat, so that the dining experience of the user is affected.
The prior art solutions described above have the following drawbacks:
when the cluster server of the intelligent catering system is abnormal or down, the current offline mode only supports one-dish monovalent face binding disc or card-swiping binding disc, and normal consumption dining of other scenes and other binding disc modes cannot be guaranteed.
Disclosure of Invention
In order to improve the effect of supporting normal consumption dining of various binding disc modes in an offline mode of the intelligent dining system, the application provides an offline guaranteeing method, device and equipment of the intelligent dining system and a storage medium.
The first object of the present invention is achieved by the following technical solutions:
an off-line guaranteeing method of a smart food service system, the method being applied to the smart food service system, the method comprising:
monitoring the running state of a cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system;
switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction, and starting standby service according to the standby service instruction;
acquiring offline consumption orders and payment information of users, pushing the orders and payment information to a docking service, and generating storage instructions to be stored in an edge server;
when the cluster server is monitored to run normally, the cluster server is started, a transmission instruction is generated, catering offline data of the edge server are transmitted according to the transmission instruction, and meanwhile, the service mode of the intelligent catering service system is switched.
By adopting the technical scheme, when the cluster server is abnormal or down, the server of the intelligent food and beverage service system is replaced by the edge server, the intelligent food and beverage service system is cut into an offline mode for use, the intelligent food and beverage service system can normally provide service, the service mode of the equipment end is switched according to the service mode of the intelligent food and beverage service system, thereby the standby service is started, the equipment end can normally operate, the binding disc operation can be identified, the payment deduction of the standby service is carried out, the normal consumption under various binding disc modes is further realized, when the user consumes offline, the order and payment information are pushed to the docking service, the storage of the order and payment information of the user is facilitated, meanwhile, the order and payment information are stored in the edge server according to the storage instruction, the multi-channel storage of the offline order and payment information is realized, when the cluster server is monitored to operate normally, the intelligent food and beverage offline data of the edge server are transmitted to the cluster server through the transmission instruction, the service mode of the intelligent food and beverage service system is switched, the consistency of the intelligent food and beverage service system is maintained, and the unified management is facilitated.
The present application may be further configured in a preferred example to: the service mode of the intelligent food and beverage service system comprises a normal mode and an off-line mode, the real-time monitoring cluster server running state, the server of the intelligent food and beverage service system is switched according to the cluster server running state, and the service mode of the intelligent food and beverage service system is replaced, and the intelligent food and beverage service system comprises the following steps:
generating a cluster service abnormal instruction when the cluster server is obtained to run abnormally according to the running state of the cluster server, disabling the cluster server, generating an edge service instruction according to the cluster service abnormal instruction, and building an edge server;
performing system setting and configuration on the edge server, starting an identity code decryption interface, acquiring catering data of the cluster server, generating a data transmission instruction, and transmitting the catering data to the edge server according to the data transmission instruction to obtain catering backup data;
consistency checking is carried out on the catering data and the catering backup data, and when the catering data are consistent with the catering backup data, the edge server is started;
according to the edge server, switching to a server of the intelligent food and beverage service system, and simultaneously changing a service mode of the intelligent food and beverage service system to the off-line mode;
And generating a test and verification instruction according to the offline mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
According to the technical scheme, when the cluster server is abnormal in operation, a cluster service abnormal instruction is generated, the cluster server is stopped, an edge service instruction is further generated, the edge server is built, offline interaction of the intelligent food and beverage service system is built, offline operation of the intelligent food and beverage service system is further supported, the system of the edge server is set and configured, an identity code decryption interface is started, food and beverage data of the cluster server are acquired according to the food and beverage data of the cluster server, a data transmission instruction is generated, food and beverage data of the cluster server are synchronized to the edge server according to the data transmission instruction, food and beverage backup data are subjected to consistency check, reliability of the data is improved, the server of the intelligent food and beverage service system is further switched to according to the edge server, and meanwhile, the service mode of the intelligent food and beverage service system is replaced to an offline mode, so that whether the intelligent food and beverage service system can normally process food and beverage service can be tested and verified according to the test and verification instruction, and basic functions and services are provided for the intelligent food and beverage service system.
The present application may be further configured in a preferred example to: the switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction, and starting standby service according to the standby service instruction, comprising:
acquiring local cache information from a service mode of the intelligent food and beverage service system, loading the local cache information, and generating a switching equipment service instruction according to the service mode of the intelligent food and beverage service system;
switching the service mode of the equipment end according to the service instruction of the switching equipment, generating the standby service instruction according to the service mode of the equipment end, and starting the standby service;
when a code binding disc scanning request of a user is obtained, an identity code switching instruction is generated according to the starting state of the standby service, and an identity code binding disc mode is started according to the identity code switching instruction;
when a user code scanning payment request is acquired, a switching payment instruction is generated according to the starting state of the standby service, and a payment mode is started according to the switching payment instruction.
Through adopting above-mentioned technical scheme, according to the local caching information of obtaining and loading it, the service mode through wisdom food and beverage service system's service mode generation switching equipment service instruction simultaneously to the service mode of switching equipment end, and then launch reserve service, help equipment end to accomplish functions such as discernment bundling operation, payment deduction, when the user sweeps the code bundling, according to reserve service generation switching identity code instruction, enable identity code bundling mode through switching identity code instruction, help guaranteeing that the user can bind the dinner plate and thus normally take dinner, when the user sweeps the code payment, according to reserve service generation switching payment instruction, enable payment mode through switching identity code instruction, help guaranteeing the normal operating of all kinds of payment modes, realize that the user can consume with different payment modes after the meal.
The present application may be further configured in a preferred example to: when the user code scanning and disc binding request is obtained, an identity code switching instruction is generated according to the starting state of the standby service, and an identity code disc binding mode is started according to the identity code switching instruction, and the method comprises the following steps:
generating a judging instruction according to the code scanning binding disc request of the user, and judging whether the user registration information exists or not according to the judging instruction;
if the user registration information is acquired, generating an identity code display guide instruction, and guiding a user to enter an identity code display interface according to the identity code display guide instruction;
acquiring a user identity code binding disc request, generating an identity code binding disc instruction according to the user identity code binding disc request, and verifying the identity code binding disc instruction to successfully generate a binding disc success instruction;
if the user registration information is not acquired, generating a guide registration instruction, and generating an identity code registration instruction according to the guide registration instruction so as to guide the user to register the identity code and generate the user registration information.
By adopting the technical scheme, the judging instruction is generated according to the code scanning binding disc request of the user, whether the user registration information exists or not is judged according to the judging instruction, the binding disc function is realized by combining the user registration information, the user registration information is verified, when the user registration information exists, the identity code display guiding instruction is generated, the user is guided to enter the identity code display interface through the identity code display guiding instruction, the realization of the identity code binding disc according to the identity code of the user is facilitated, when the user registration information does not exist, the guiding registration instruction is generated, the identity code registration instruction is generated according to the guiding registration instruction, the user is guided to register, the registered identity code is acquired, the user is guaranteed to use the identity code to carry out the binding disc, and normal dining can be realized.
The present application may be further configured in a preferred example to: when the user code scanning payment request is obtained, a switching payment instruction is generated according to the starting state of the standby service, and a payment mode is started according to the switching payment instruction, and the method comprises the following steps:
generating the payment switching instruction according to the user code scanning payment request, and switching a payment mode according to the payment switching instruction;
acquiring a user identity code payment request, acquiring a consumption amount and a consumption detail binding the user registration information, and generating an identity code payment instruction according to the consumption amount and the consumption detail;
carrying out fee deduction processing according to the identity code payment instruction, and generating and binding a payment consumption order of an offline consumption record of the user registration information according to the fee deduction processing;
acquiring a user standby service payment request, enabling a docking service according to the user standby service payment request, generating a synchronous payment setting instruction according to the docking service, synchronizing payment settings of all organizations, and sending the payment settings to the standby service;
and acquiring the data information of the payment setting to generate a code scanning payment instruction, performing offline deduction processing according to the code scanning payment instruction, and generating a payment order according to the offline deduction processing.
By adopting the technical scheme, the switching payment instruction is generated according to the user code scanning payment request, the payment mode is switched according to the switching payment instruction, the payment modes are different according to different responses of the payment modes, when the user identity code request is acquired, the consumption amount and the consumption details of the binding user registration information are acquired according to the user identity code payment request, the identity code payment instruction is generated according to the consumption amount and the consumption details, the response to the user identity code payment request is facilitated, the fee deduction processing is carried out through the identity code payment instruction, the offline consumption record of the user and corresponding order information are generated, the management of the user consumption condition and the consumption details is facilitated, when the user standby service payment request is acquired, the docking service is started according to the user standby service payment request, the payment setting is synchronized through the docking service and is sent to the standby service, the payment of each organization is facilitated, the code scanning payment instruction is generated according to the data information of the payment setting, the offline fee deduction processing is carried out according to the code scanning payment instruction, the order is generated, and the standby service deduction function is realized according to the offline payment code.
The present application may be further configured in a preferred example to: the obtaining the offline consumer order and payment information of the user of the standby service, pushing the order and payment information to a docking service, and generating a storage instruction to store in the edge server, includes:
acquiring corresponding orders and payment information of the payment mode from the offline consumer orders and payment information of the user, generating a pushing instruction, and pushing the pushing instruction to the docking service according to the pushing instruction;
pushing the order paid by the standby service payment instruction to the docking service according to the pushing instruction;
and acquiring payment and order data information in the docking service, generating the storage instruction, and storing the payment and order data information in the edge server according to the storage instruction.
By adopting the technical scheme, the corresponding order and payment information of the payment mode are obtained through the offline consumption order and the payment information of the user, the order is processed according to the payment mode, and a settlement deduction instruction is generated for the offline consumption order paid by the identity code, so that the offline deduction function is realized, the offline consumption order is updated and pushed to the docking service, the order paid by the standby service is directly pushed to the docking service, the order is sent and stored, a storage instruction is generated according to the payment and order data information of the docking service, the payment and order data information is stored in the edge server according to the storage instruction, and the protection of the payment and the order data information is facilitated.
The present application may be further configured in a preferred example to: when the cluster server is monitored to run normally, starting the cluster server, generating a transmission instruction, transmitting restaurant offline data of the edge server according to the transmission instruction, and simultaneously switching a service mode of the intelligent restaurant service system, wherein the method comprises the following steps:
acquiring a cluster server normal instruction generated by the cluster server in a normal state, deactivating the edge server according to the cluster server normal instruction, and starting the cluster server;
acquiring restaurant offline data of the edge server, generating the transmission instruction, and transmitting the restaurant offline data to the cluster server according to the transmission instruction to obtain restaurant real-time data;
consistency check is carried out on the restaurant offline data and the restaurant real-time data, when the restaurant offline data and the restaurant real-time data are consistent, the server of the intelligent restaurant service system is switched to, and the service mode of the intelligent restaurant service system is changed to a normal mode according to the cluster server;
and according to the normal mode, generating the test and verification instruction, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
By adopting the technical scheme, according to the running state of the cluster server, when the cluster server is in a normal condition, a normal cluster service instruction is generated, the cluster server is started, and according to the acquisition of the restaurant offline data of the edge server and the generation of the transmission instruction, the restaurant offline data of the edge server are synchronized into the cluster server according to the transmission instruction, so that the restaurant real-time data are obtained, the restaurant offline data and the restaurant real-time data are subjected to consistency check, the reliability of the data is improved, the cluster server is further switched into a server of the intelligent restaurant service system, and meanwhile, the service mode of the intelligent restaurant service system is changed into a normal mode, so that whether the intelligent restaurant service system can normally process the restaurant service is tested and verified according to the test and verification instruction, and the intelligent restaurant service system is facilitated to provide basic functions and services.
The second object of the present invention is achieved by the following technical solutions:
an off-line guarantee device of a smart food and beverage system, the off-line guarantee device of smart food and beverage management includes:
the service switching module is used for monitoring the running state of the cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system;
The standby switching module is used for switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction and starting standby service according to the standby service instruction;
the payment acquisition module is used for acquiring an offline consumption order and payment information of a user, pushing the order and payment information to the docking service, and generating a storage instruction to be stored in the edge server;
and the switching synchronization module is used for starting the cluster server when the cluster server is monitored to run normally, generating a transmission instruction, transmitting the catering offline data of the edge server according to the transmission instruction, and simultaneously switching the service mode of the intelligent catering service system.
By adopting the technical scheme, when the cluster server is abnormal or down, the server of the intelligent food and beverage service system is replaced by the edge server, the intelligent food and beverage service system is cut into an offline mode for use, the intelligent food and beverage service system can normally provide service, the service mode of the equipment end is switched according to the service mode of the intelligent food and beverage service system, thereby the standby service is started, the equipment end can normally operate, the binding disc operation can be identified, the payment deduction of the standby service is carried out, the normal consumption under various binding disc modes is further realized, when the user consumes offline, the order and payment information are pushed to the docking service, the storage of the order and payment information of the user is facilitated, meanwhile, the order and payment information are stored in the edge server according to the storage instruction, the multi-channel storage of the offline order and payment information is realized, when the cluster server is monitored to operate normally, the intelligent food and beverage offline data of the edge server are transmitted to the cluster server through the transmission instruction, the service mode of the intelligent food and beverage service system is switched, the consistency of the intelligent food and beverage service system is maintained, and the unified management is facilitated.
The third object of the present application is achieved by the following technical solutions:
a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the steps of the smart catering system offline assurance method being implemented when the processor executes the computer program.
The fourth object of the present application is achieved by the following technical solutions:
a computer readable storage medium storing a computer program which when executed by a processor performs the steps of the smart catering system offline assurance method described above.
In summary, the present application includes at least one of the following beneficial technical effects:
1. when the cluster server is abnormal or down, the server of the intelligent food and beverage service system is replaced by an edge server, the intelligent food and beverage service system is cut into an offline mode to be used, the intelligent food and beverage service system can normally provide service, the service mode of the equipment end is switched according to the service mode of the intelligent food and beverage service system, so that standby service is started, the equipment end can be used for identifying the operation of a binding disc and paying deduction by means of the standby service normally, normal consumption under various binding disc modes is further realized, when the user consumes offline, the order and payment information are pushed to a butting service, the order and payment information of the user are stored in the edge server, the offline order and payment information of the user are stored in the edge server according to a storage instruction, the offline order and payment information of the user are stored in multiple channels, when the cluster server is monitored to normally operate, the cluster server is started, the food and beverage offline data of the edge server are transmitted to the cluster server through a transmission instruction, the service mode of the intelligent food and beverage service system is switched, the consistency of the intelligent food and beverage service system is maintained, and unified management is facilitated;
2. Generating a judging instruction according to a user code scanning disc binding request, judging whether user registration information exists according to the judging instruction, facilitating the realization of a disc binding function by combining the user registration information, verifying the user registration information, generating an identity code display guide instruction when the user registration information exists, guiding a user to enter an identity code display interface through the identity code display guide instruction, facilitating the realization of an identity code binding disc according to a user identity code, generating a guide registration instruction when the user registration information does not exist, generating an identity code registration instruction according to the guide registration instruction, guiding the user to register, acquiring the registered identity code, and facilitating the guarantee that the user uses the identity code to carry out disc binding, thereby being capable of normally dining;
3. the method comprises the steps of generating a switching payment instruction according to a user code scanning payment request, switching a payment mode according to the switching payment instruction, enabling a payment processing mode according to different responses of the payment mode, generating an identification order instruction according to the user code payment request when a user identity code request is acquired, obtaining a consumption amount and a consumption detail, generating an identity code payment instruction according to the consumption amount and the consumption detail, responding to the user identity code payment request, conducting payment processing through the identity code payment instruction, generating an offline consumption record of a user and corresponding order information, managing the consumption condition and the consumption detail of the user, enabling a docking service according to the user standby service payment request when the user standby service payment request is acquired, enabling payment of each organization through the docking service to be synchronous, enabling payment of each organization to be facilitated, generating a code scanning payment instruction according to data information of the payment setting, enabling offline payment processing according to the code scanning instruction, generating data information of the payment order, and enabling payment of the payment order to be facilitated to achieve a standby service payment function according to the offline payment instruction.
Drawings
Fig. 1 is a flowchart of an implementation of an offline security method of an intelligent catering system according to an embodiment of the present application;
fig. 2 is a flowchart of implementation of step S10 in the offline security method of the intelligent dining system according to an embodiment of the present application;
fig. 3 is a flowchart of implementation of step S20 in the offline security method of the intelligent dining system according to an embodiment of the present application;
fig. 4 is a flowchart of implementation of step S203 in the offline security method of the intelligent dining system according to an embodiment of the present application;
fig. 5 is a flowchart of an implementation of step S204 in the offline security method of the intelligent dining system according to an embodiment of the present application;
fig. 6 is a flowchart of implementation of step S30 in the offline security method of the intelligent dining system according to an embodiment of the present application;
fig. 7 is a flowchart of implementation of step S40 in the offline security method of the intelligent dining system according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of an offline security device of the intelligent dining system according to an embodiment of the present application;
fig. 9 is a schematic diagram of an apparatus in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
In an embodiment, as shown in fig. 1, the application discloses an offline security method of an intelligent catering system, which specifically includes the following steps:
S10: and monitoring the running state of the cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system.
Specifically, as shown in fig. 2, step S10 includes:
s101: generating a cluster service abnormal instruction when the cluster server is obtained to run abnormally according to the running state of the cluster server, deactivating the cluster server, generating an edge service instruction according to the cluster service abnormal instruction, and building the edge server.
Specifically, through the monitoring to the cluster server, when the operation of the cluster server is abnormal, a cluster service abnormal instruction is generated, and through disabling the cluster server, an edge service instruction is further generated, and the edge server is built to meet the operation requirement of the intelligent catering service system.
S102: and performing system setting and configuration on the edge server, starting an identity code decryption interface, acquiring restaurant data of the cluster server, generating a data transmission instruction, and transmitting the restaurant data to the edge server according to the data transmission instruction to obtain restaurant backup data.
Specifically, through the system setting and configuration of the edge server, such as network setting of port mapping, domain name configuration and the like, database setting of creating database, database setting user, authority and the like, allocation and management of resources such as memory, CPU and the like, and system optimization setting of optimizing network configuration, parameters and the like, the function and performance of the edge server are ensured to meet the requirements, and an identity code decryption interface is started, so that the equipment end can decrypt identity code information through the edge server, acquire data of the cluster server, such as order records, user data and the like, generate a data transmission instruction, and synchronize the catering data of the cluster server to the edge server through the data transmission instruction to obtain catering backup data.
S103: and checking consistency of the catering data and the catering backup data, and enabling the edge server when the catering data are consistent with the catering backup data.
Specifically, by checking consistency of the catering data and the catering backup data, the reliability of the data is improved, and when the catering data and the catering backup data are consistent, the description data are reliable, so that the edge server is started.
S104: and switching the server to a server of the intelligent food and beverage service system according to the edge server, and simultaneously changing the service mode of the intelligent food and beverage service system to an off-line mode.
Specifically, according to the service information of the edge server, the server of the intelligent food and beverage service system is replaced from the cluster server to the edge server, the edge server is used for helping the intelligent food and beverage service system to normally operate, and the service mode of the intelligent food and beverage service system is replaced to an off-line mode correspondingly.
S104: and generating a test and verification instruction according to the offline mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
Specifically, when the intelligent food and beverage service system is in an offline mode, a test and verification instruction is generated, and the service state of the intelligent food and beverage service system is tested and verified according to the test and verification instruction, such as order receiving, payment processing, bill printing and the like, so that the intelligent food and beverage service system can provide basic functions and services.
S20: and switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction, and starting standby service according to the standby service instruction.
Specifically, as shown in fig. 3, step S20 includes:
s201: the method comprises the steps of obtaining local cache information from a service mode of a smart food service system, loading the local cache information, and generating a switching device service instruction according to the service mode of the smart food service system.
Specifically, local cache information is obtained from a service mode of the smart food service system and loaded, and the local cache can provide necessary resources and data, so that a user can continue to use part of functions of the applet, such as the user can sweep a code binding disc through the applet or pay for consumption by using a wallet code of the applet, and the like, and meanwhile, a switching device service instruction is generated.
S202: and switching the service mode of the equipment end according to the service instruction of the switching equipment, generating a standby service instruction according to the service mode of the equipment end, and enabling standby service.
Specifically, the service mode of the equipment end is switched according to the service instruction of the switching equipment, for example, the equipment end can allow the standby identity code to be consumed offline, the standby service instruction is generated according to the service mode of the equipment end, the standby service is started, the standby service code scanning payment function is supported, for example, the user can pay by using a third party pay party WeChat, a pay bank and the like.
S203: when a user code scanning and disc binding request is obtained, an identity code switching instruction is generated according to the starting state of the standby service, and an identity code disc binding mode is started according to the identity code switching instruction.
Specifically, as shown in fig. 4, step S203 includes:
s2031: generating a judging instruction according to the code scanning binding disc request of the user, and judging whether the user registration information exists or not according to the judging instruction.
Specifically, a judgment instruction is generated through a code scanning disc binding request of a user, and when the user uses a small program, a public number and other code scanning modes to carry out disc binding operation, the intelligent catering service system is in an offline mode, so that whether user registration information exists or not needs to be judged.
S2032: and if the user registration information is acquired, generating an identity code display guide instruction, and displaying the guide instruction according to the identity code to guide the user to enter the identity code display interface.
Specifically, when the user registration information is obtained, that is, the current user has an identity code, and then an identity code display guide instruction is generated, if the user first scans the code in a public number scanning mode, the user is known to have the identity code through judgment, so that the user is guided to an identity code display interface through the identity code display guide instruction, and then the identity code is used for binding a disc.
S2033: and acquiring a user identity code binding disc request, generating an identity code binding disc instruction according to the user identity code binding disc request, checking the identity code binding disc instruction, and successfully generating a binding disc success instruction by checking.
Specifically, an identity code binding disc instruction is generated through a user identity code binding disc request, an identity code binding disc mode is started, and meanwhile, verification is carried out on the identity code binding disc instruction, if a user uses an identity code to bind a disc, the identity code of the user is displayed in an unclear mode and cannot be bound normally due to the fact that light is too bright or too dark or the scanning distance is too far, and the like, so that the user is prompted to carry out code scanning binding disc operation again, a binding disc success instruction is generated when verification is successful, and the user can normally eat after completing the binding disc operation.
S2034: if the user registration information is not acquired, generating a guide registration instruction, and generating an identity code registration instruction according to the guide registration instruction so as to guide the user to register the identity code and generate the user registration information.
Specifically, when the user registration information cannot be obtained, that is, the current user does not have an identity code, and then a guide registration instruction is generated, if the first code scanning mode of the user is the public code scanning mode, the user is known to have no identity code through judgment, so that the user is guided to an identity code registration interface through the guide registration instruction, and the user registration information is generated when the registration is successful.
S204: when a user code scanning payment request is acquired, a switching payment instruction is generated according to the starting state of the standby service, and a payment mode is started according to the switching payment instruction.
Specifically, as shown in fig. 5, step S204 includes:
s2041: and generating a payment switching instruction according to the user code scanning payment request, and switching a payment mode according to the payment switching instruction.
Specifically, the user code scanning payment request is used for generating a payment switching instruction, when the user uses wallet codes, third party payment mode WeChat, payment treasures and other code scanning modes to carry out payment consumption operation, the smart food and beverage service system is in an offline mode, for example, when the user uses wallet codes to pay, the user is led to pay by using the wallet, and when the user uses the third party payment mode, the user is led to pay by using the standby service, so that the payment is switched to a payment mode supported by the smart food and beverage service system.
S2042: and acquiring a user identity code payment request, acquiring the consumption amount and the consumption detail of the registered information of the binding user, and generating an identity code payment instruction according to the consumption amount and the consumption detail.
Specifically, the user identity code payment request is used for acquiring the consumption amount and the consumption detail of the registered information of the binding user, for example, the user uses the identity code to perform the disc binding operation so as to acquire the expense information of dining of the user, namely, the user consumption amount and the consumption detail, and an identity code payment instruction is generated according to the consumption amount and the consumption detail of the user.
S2043: and carrying out deduction processing according to the identification code payment instruction, and generating and binding a payment consumption order of the offline consumption record of the user registration information according to the deduction processing.
Specifically, the deduction is carried out through the identification code payment instruction, and when the user uses the identification code for payment, the balance is deducted according to the consumption details of the user, so that the payment consumption order of the offline consumption record binding the registration information of the user is obtained.
S2044: obtaining a user standby service payment request, enabling a docking service according to the user standby service payment request, generating a synchronous payment setting instruction according to the docking service, synchronizing payment settings of all organizations, and sending the payment settings to the standby service.
Specifically, the docking service is started through the user standby service payment request, a synchronous payment setting instruction is generated according to the docking service, and the payment settings of all organizations are synchronized, for example, when a user uses a third party payment mode such as WeChat, the payment settings of all organizations are synchronized through the docking service, and the payment settings are sent to the standby service, so that the standby service can ensure normal payment settlement of the user.
S2045: and acquiring data information of the payment setting to generate a code scanning payment instruction, performing offline deduction processing according to the code scanning payment instruction, and generating a payment order according to the offline deduction processing.
Specifically, a code scanning payment instruction is generated according to the data information of the payment setting, so that offline fee deduction is performed, for example, when a user uses a third party payment mode such as WeChat, fee deduction processing is performed by scanning WeChat payment codes through the equipment end in response to a payment request, and a payment order is generated according to the fee deduction processing.
S30: and acquiring offline consumption order and payment information of the user, pushing the order and payment information to the docking service, and generating a storage instruction to store in the edge server.
Specifically, as shown in fig. 6, step S30 includes:
s301: and acquiring corresponding orders and payment information of the payment mode from the offline consumer orders and payment information of the user, generating a pushing instruction, and pushing the pushing instruction to the docking service according to the pushing instruction.
Specifically, the user obtains different corresponding orders and payment information according to the payment modes through offline consumption orders and payment information, for example, the data information of the orders paid by the user through the identification codes is different from the data information of the orders paid by the user through the third-party payment mode, the payment modes correspond to the data information of the orders, and a pushing instruction is generated, so that the orders and the payment information are pushed to the docking service.
S302: and pushing the order paid by the standby service payment instruction to the docking service according to the pushing instruction.
Specifically, a payment order paid by a user through a standby service is pushed to a docking service through a pushing instruction.
S303: and acquiring payment and order data information in the docking service, generating a storage instruction, and storing the payment and order data information in the edge server according to the storage instruction.
Specifically, the payment and order data information in the docking service, such as the payment and order data information in the docking service, are aggregated together by using the identification code to pay by the user and using the third party payment mode to skip the payment and order data information paid by the standby service, and then the generated storage instruction is used to store the payment and order data information in the edge server.
S40: when the cluster server is monitored to run normally, the cluster server is started, a transmission instruction is generated, catering offline data of the edge server are transmitted according to the transmission instruction, and meanwhile, the service mode of the intelligent catering service system is switched.
Specifically, as shown in fig. 7, step S40 includes:
s401: and acquiring a normal instruction of cluster service generated by the cluster server for a normal state, deactivating the edge server according to the normal instruction of cluster service, and activating the cluster server.
Specifically, through monitoring the cluster server, when the cluster server is monitored to resume normal operation, a cluster service normal instruction is generated, the edge server is deactivated, the cluster server is activated, and the intelligent catering service system is helped to normally operate by using the cluster server.
S402: acquiring restaurant offline data of the edge server, generating a transmission instruction, and transmitting the restaurant offline data to the cluster server according to the transmission instruction to obtain restaurant real-time data.
Specifically, the restaurant offline data of the edge server is synchronized to the cluster server to obtain the restaurant real-time data through acquiring the data of the edge server, such as order records, user data and the like, generating a transmission instruction.
S403: and performing consistency check on the restaurant offline data and the restaurant real-time data, switching to a server of the intelligent restaurant service system when the restaurant offline data and the restaurant real-time data are consistent, and changing the service mode of the intelligent restaurant service system to a normal mode according to the cluster server.
Specifically, consistency checking is performed on the catering offline data and the catering real-time data, so that the reliability of the data is improved, when the catering offline data and the catering real-time data are consistent, the description data are reliable, the server of the intelligent catering service system is replaced by the cluster server from serving by the edge server according to the service information of the cluster server, the normal operation of the intelligent catering service system is facilitated by using the cluster server, and the service mode of the intelligent catering service system is replaced by a normal mode correspondingly.
S404: and generating a test and verification instruction according to the normal mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
Specifically, when the intelligent food and beverage service system is in the normal mode, a test and verification instruction is generated, and the service state of the intelligent food and beverage service system is tested and verified according to the test and verification instruction, such as order receiving, payment processing, bill printing and the like, so that the intelligent food and beverage service system can provide services.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
In an embodiment, an offline security device for a smart dining system is provided, where the offline security device for a smart dining system corresponds to the offline security method for a smart dining system in the foregoing embodiment one by one. As shown in fig. 8, the offline security device of the smart dining system includes a service switching module, a standby switching module, a payment acquisition module and a switching synchronization module. The functional modules are described in detail as follows:
The service switching module is used for monitoring the running state of the cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system;
the standby switching module is used for switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction and starting standby service according to the standby service instruction;
the payment acquisition module is used for acquiring the offline consumption order and payment information of the user, pushing the order and payment information to the docking service, and generating a storage instruction to be stored in the edge server;
and the switching synchronization module is used for starting the cluster server when the cluster server is monitored to run normally, generating a transmission instruction, transmitting the catering offline data of the edge server according to the transmission instruction, and simultaneously switching the service mode of the intelligent catering service system.
Optionally, the service switching module includes:
the service switching sub-module is used for generating a cluster service abnormal instruction when the cluster server is obtained to run abnormally according to the running state of the cluster server, deactivating the cluster server, generating an edge service instruction according to the cluster service abnormal instruction, and building the edge server;
The server configuration submodule is used for carrying out system setting and configuration on the edge server, starting an identity code decryption interface, acquiring restaurant data of the cluster server, generating a data transmission instruction, and transmitting the restaurant data to the edge server according to the data transmission instruction to obtain restaurant backup data;
the data checking sub-module is used for checking consistency of the catering data and the catering backup data, and enabling the edge server when the catering data are consistent with the catering backup data;
the service mode switching sub-module is used for switching the intelligent food and beverage service system server according to the edge server and simultaneously changing the service mode of the intelligent food and beverage service system into an off-line mode;
the service verification processing sub-module is used for generating a test and verification instruction according to the offline mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
Optionally, the standby switching module includes:
the cache service sub-module is used for acquiring local cache information from a service mode of the intelligent food and beverage service system, loading the local cache information and generating a switching equipment service instruction according to the service mode of the intelligent food and beverage service system;
The standby service sub-module is used for switching the service mode of the equipment end according to the service instruction of the switching equipment, generating a standby service instruction according to the service mode of the equipment end and starting standby service;
the code scanning and disc binding module is used for generating an identity code switching instruction according to the starting state of the standby service when a code scanning and disc binding request of a user is acquired, and starting an identity code disc binding mode according to the identity code switching instruction;
and the code scanning payment sub-module is used for generating a switching payment instruction according to the starting state of the standby service when the code scanning payment request of the user is acquired, and starting a payment mode according to the switching payment instruction.
Optionally, the code scanning and plate binding module includes:
the judging unit is used for generating a judging instruction according to the code scanning binding disc request of the user and judging whether the user registration information exists or not according to the judging instruction;
the identity code display unit is used for generating an identity code display guide instruction if the user registration information is acquired, and guiding the user to enter the identity code display interface according to the identity code display guide instruction;
the identity code binding disc unit is used for acquiring a user identity code binding disc request, generating an identity code binding disc instruction according to the user identity code binding disc request, checking the identity code binding disc instruction, and generating a binding disc success instruction after successful checking;
And the registration unit is used for generating a guide registration instruction if the user registration information is not acquired, and generating an identity code registration instruction according to the guide registration instruction so as to guide the user to register the identity code and generate the user registration information.
Optionally, the code scanning payment submodule includes:
the switching payment unit is used for generating a switching payment instruction according to the user code scanning payment request and switching a payment mode according to the switching payment instruction;
the identity code payment unit is used for acquiring a user identity code payment request, acquiring the consumption amount and the consumption detail of the registered information of the binding user, and generating an identity code payment instruction according to the consumption amount and the consumption detail;
the identity code deduction unit is used for carrying out deduction processing according to the identity code payment instruction, and generating and binding a payment consumption order of the offline consumption record of the user registration information according to the deduction processing;
the standby service payment unit is used for acquiring a user standby service payment request, enabling a docking service according to the user standby service payment request, generating a synchronous payment setting instruction according to the docking service, synchronizing the payment settings of all organizations and sending the payment settings to the standby service;
the standby payment deduction unit is used for acquiring data information of the payment setting, generating a code scanning payment instruction, performing off-line deduction processing according to the code scanning payment instruction, and generating a payment order according to the off-line deduction processing.
Optionally, the payment obtaining module includes:
the order acquisition sub-module is used for acquiring the corresponding order and payment information of the payment mode from the offline consumer order and payment information of the user, generating a pushing instruction and pushing the pushing instruction to the docking service according to the pushing instruction;
the standby payment pushing sub-module is used for pushing the order paid by the standby service payment instruction to the docking service according to the pushing instruction;
and the docking storage sub-module is used for acquiring payment and order data information in the docking service, generating a storage instruction, and storing the payment and order data information in the edge server according to the storage instruction.
Optionally, the switching synchronization module includes:
the service recovery sub-module is used for acquiring a cluster service normal instruction generated by the cluster server in a normal state, deactivating the edge server according to the cluster service normal instruction, and activating the cluster server;
the data transmission sub-module is used for acquiring the catering offline data of the edge server, generating a transmission instruction, and transmitting the catering offline data to the cluster server according to the transmission instruction to obtain real-time catering data;
the replacing mode sub-module is used for carrying out consistency check on the restaurant offline data and the restaurant real-time data, switching to a server of the intelligent restaurant service system when the restaurant offline data and the restaurant real-time data are consistent, and replacing the service mode of the intelligent restaurant service system to a normal mode according to the cluster server;
And the service verification sub-module is used for generating a test and verification instruction according to the normal mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
The specific limitation of the offline security device of the smart dining system can be referred to above, and the detailed description thereof will be omitted. All or part of the modules in the intelligent catering system offline guarantee device can be realized by software, hardware and a combination of the software and the hardware. 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, and the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. 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 for storing user registration information and user consumption order information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to realize an off-line guaranteeing method of the intelligent catering system.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of the above method for offline assurance of a smart dining system.
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, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. An off-line guaranteeing method for a smart food service system, wherein the method is applied to the smart food service system and comprises the following steps:
monitoring the running state of a cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system;
Switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction, and starting standby service according to the standby service instruction;
acquiring offline consumption orders and payment information of users, pushing the orders and payment information to a docking service, and generating storage instructions to be stored in an edge server;
when the cluster server is monitored to run normally, the cluster server is started, a transmission instruction is generated, catering offline data of the edge server are transmitted according to the transmission instruction, and meanwhile, the service mode of the intelligent catering service system is switched.
2. The offline guaranteeing method of a smart food and beverage system according to claim 1, wherein the service modes of the smart food and beverage service system include a normal mode and an offline mode, the real-time monitoring of the running state of the cluster server, switching the server of the smart food and beverage service system according to the running state of the cluster server, and changing the service mode of the smart food and beverage service system, includes:
generating a cluster service abnormal instruction when the cluster server is obtained to run abnormally according to the running state of the cluster server, disabling the cluster server, generating an edge service instruction according to the cluster service abnormal instruction, and building an edge server;
Performing system setting and configuration on the edge server, starting an identity code decryption interface, acquiring catering data of the cluster server, generating a data transmission instruction, and transmitting the catering data to the edge server according to the data transmission instruction to obtain catering backup data;
consistency checking is carried out on the catering data and the catering backup data, and when the catering data are consistent with the catering backup data, the edge server is started;
according to the edge server, switching to a server of the intelligent food and beverage service system, and simultaneously changing a service mode of the intelligent food and beverage service system to the off-line mode;
and generating a test and verification instruction according to the offline mode, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
3. The offline guaranteeing method of a smart food and beverage system according to claim 1, wherein the switching the service mode of the equipment end according to the service mode of the smart food and beverage service system, generating a standby service instruction, and enabling standby service according to the standby service instruction, comprises:
Acquiring local cache information from a service mode of the intelligent food and beverage service system, loading the local cache information, and generating a switching equipment service instruction according to the service mode of the intelligent food and beverage service system;
switching the service mode of the equipment end according to the service instruction of the switching equipment, generating the standby service instruction according to the service mode of the equipment end, and starting the standby service;
when a code binding disc scanning request of a user is obtained, an identity code switching instruction is generated according to the starting state of the standby service, and an identity code binding disc mode is started according to the identity code switching instruction;
when a user code scanning payment request is acquired, a switching payment instruction is generated according to the starting state of the standby service, and a payment mode is started according to the switching payment instruction.
4. An offline security method of a smart dining system according to claim 3, wherein when the request of a user for scanning a code binding disc is obtained, an identity code switching instruction is generated according to an enabling state of the standby service, and an identity code binding disc mode is enabled according to the identity code switching instruction, comprising:
generating a judging instruction according to the code scanning binding disc request of the user, and judging whether the user registration information exists or not according to the judging instruction;
If the user registration information is acquired, generating an identity code display guide instruction, and guiding a user to enter an identity code display interface according to the identity code display guide instruction;
acquiring a user identity code binding disc request, generating an identity code binding disc instruction according to the user identity code binding disc request, and verifying the identity code binding disc instruction to successfully generate a binding disc success instruction;
if the user registration information is not acquired, generating a guide registration instruction, and generating an identity code registration instruction according to the guide registration instruction so as to guide the user to register the identity code and generate the user registration information.
5. An offline guaranteeing method of a smart dining system according to claim 3, wherein when the user code scanning payment request is obtained, a payment switching instruction is generated according to an enabling state of the standby service, and a payment mode is enabled according to the payment switching instruction, including:
generating the payment switching instruction according to the user code scanning payment request, and switching a payment mode according to the payment switching instruction;
acquiring a user identity code payment request, acquiring a consumption amount and a consumption detail binding the user registration information, and generating an identity code payment instruction according to the consumption amount and the consumption detail;
Carrying out fee deduction processing according to the identity code payment instruction, and generating and binding a payment consumption order of an offline consumption record of the user registration information according to the fee deduction processing;
acquiring a user standby service payment request, enabling a docking service according to the user standby service payment request, generating a synchronous payment setting instruction according to the docking service, synchronizing payment settings of all organizations, and sending the payment settings to the standby service;
and acquiring the data information of the payment setting to generate a code scanning payment instruction, performing offline deduction processing according to the code scanning payment instruction, and generating a payment order according to the offline deduction processing.
6. The method for offline guaranteeing of a smart dining system according to claim 5, wherein the obtaining offline consumer order and payment information of a user, pushing the order and payment information to a docking service, and generating a storage instruction at the same time, and storing the storage instruction in the edge server, comprises:
acquiring corresponding orders and payment information of the payment mode from the offline consumer orders and payment information of the user, generating a pushing instruction, and pushing the pushing instruction to the docking service according to the pushing instruction;
Pushing the order paid by the standby service payment instruction to the docking service according to the pushing instruction;
and acquiring payment and order data information in the docking service, generating the storage instruction, and storing the payment and order data information in the edge server according to the storage instruction.
7. The offline guaranteeing method of the smart dining system according to claim 2, wherein when the cluster server is monitored to be operating normally, the cluster server is started, a transmission instruction is generated, the offline dining data of the edge server is transmitted according to the transmission instruction, and the service mode of the smart dining service system is switched, and the method comprises the following steps:
acquiring a cluster server normal instruction generated by the cluster server in a normal state, deactivating the edge server according to the cluster server normal instruction, and starting the cluster server;
acquiring restaurant offline data of the edge server, generating the transmission instruction, and transmitting the restaurant offline data to the cluster server according to the transmission instruction to obtain restaurant real-time data;
consistency check is carried out on the restaurant offline data and the restaurant real-time data, when the restaurant offline data and the restaurant real-time data are consistent, the server of the intelligent restaurant service system is switched to, and the service mode of the intelligent restaurant service system is changed to a normal mode according to the cluster server;
And according to the normal mode, generating the test and verification instruction, and testing and verifying whether the intelligent catering service system can normally process catering business according to the test and verification instruction.
8. An off-line guaranteeing device for an intelligent catering system, which is characterized in that the off-line guaranteeing device for intelligent catering management comprises:
the service switching module is used for monitoring the running state of the cluster server in real time, switching the server of the intelligent food and beverage service system according to the running state of the cluster server, and changing the service mode of the intelligent food and beverage service system;
the standby switching module is used for switching the service mode of the equipment end according to the service mode of the intelligent catering service system, generating a standby service instruction and starting standby service according to the standby service instruction;
the payment acquisition module is used for acquiring an offline consumption order and payment information of a user, pushing the order and payment information to the docking service, and generating a storage instruction to be stored in the edge server;
and the switching synchronization module is used for starting the cluster server when the cluster server is monitored to run normally, generating a transmission instruction, transmitting the catering offline data of the edge server according to the transmission instruction, and simultaneously switching the service mode of the intelligent catering service system.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, realizes the steps of the smart catering system offline assurance method according to any of claims 1 to 7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the smart catering system offline assurance method according to any of claims 1 to 7.
CN202311786879.2A 2023-12-25 2023-12-25 Offline guarantee method, device and equipment for intelligent catering system and storage medium Active CN117455726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311786879.2A CN117455726B (en) 2023-12-25 2023-12-25 Offline guarantee method, device and equipment for intelligent catering system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311786879.2A CN117455726B (en) 2023-12-25 2023-12-25 Offline guarantee method, device and equipment for intelligent catering system and storage medium

Publications (2)

Publication Number Publication Date
CN117455726A true CN117455726A (en) 2024-01-26
CN117455726B CN117455726B (en) 2024-03-19

Family

ID=89593287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311786879.2A Active CN117455726B (en) 2023-12-25 2023-12-25 Offline guarantee method, device and equipment for intelligent catering system and storage medium

Country Status (1)

Country Link
CN (1) CN117455726B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999048034A1 (en) * 1998-03-18 1999-09-23 Ordicam Recherche Et Developpement Method and device for automatic payment of at least one article picked by a consumer in a self-service restaurant
CN110910111A (en) * 2019-11-25 2020-03-24 珠海优特智厨科技有限公司 Catering settlement method and catering settlement device
WO2021078245A1 (en) * 2019-10-25 2021-04-29 网联清算有限公司 Payment processing system and method
US20210406815A1 (en) * 2019-11-21 2021-12-30 Rockspoon, Inc. System and method for a restaurant as a service platform
CN114881745A (en) * 2022-06-07 2022-08-09 广东优信无限网络股份有限公司 Offline ordering system for intelligent restaurant
CN115587908A (en) * 2022-10-21 2023-01-10 宋学成 Meal ordering method based on special catering tool, platform server and computer readable storage medium
CN116562407A (en) * 2023-07-07 2023-08-08 平安云厨科技集团有限公司 Intelligent consumption method, device, system and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999048034A1 (en) * 1998-03-18 1999-09-23 Ordicam Recherche Et Developpement Method and device for automatic payment of at least one article picked by a consumer in a self-service restaurant
WO2021078245A1 (en) * 2019-10-25 2021-04-29 网联清算有限公司 Payment processing system and method
US20210406815A1 (en) * 2019-11-21 2021-12-30 Rockspoon, Inc. System and method for a restaurant as a service platform
CN110910111A (en) * 2019-11-25 2020-03-24 珠海优特智厨科技有限公司 Catering settlement method and catering settlement device
CN114881745A (en) * 2022-06-07 2022-08-09 广东优信无限网络股份有限公司 Offline ordering system for intelligent restaurant
CN115587908A (en) * 2022-10-21 2023-01-10 宋学成 Meal ordering method based on special catering tool, platform server and computer readable storage medium
CN116562407A (en) * 2023-07-07 2023-08-08 平安云厨科技集团有限公司 Intelligent consumption method, device, system and electronic equipment

Also Published As

Publication number Publication date
CN117455726B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US9785544B2 (en) Testing a mobile application
CN104580406B (en) A kind of method and apparatus of synchronous logging state
CN109766253B (en) Performance data sending method and device, computer equipment and storage medium
CN109787830A (en) Gray scale distribution control method, device, system, electronic equipment and storage medium
CN110401949A (en) Terminal device running log method for uploading and device
US11096042B2 (en) Preprocessing method and device for configuring NFC smart card
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
EP3134812A1 (en) Executing third-party application
CN107104923B (en) Account binding and service processing method and device
CN108933838B (en) Application data processing method and device
CN108446172A (en) Data transfer method, apparatus, computer equipment and storage medium
CN110020262A (en) Pushed information sending method, device, computer equipment and storage medium
CN109685190A (en) A kind of IC card power-off protection method and device
CN112102567A (en) Leasing method of mobile power supply, mobile terminal and leasing equipment
CN115834075A (en) Multi-tenant management-based password service and computing service integration method and device
CN117455726B (en) Offline guarantee method, device and equipment for intelligent catering system and storage medium
CN106685744A (en) Fault elimination method, apparatus and system
CN107995033B (en) ONU configuration file upgrading method and device
CN110162982B (en) Method and device for detecting illegal rights, storage medium and electronic equipment
WO2023185266A1 (en) Automatic detection method, single board, electronic device and storage medium
CN116166383A (en) Access method, access system, computing device and computer storage medium
CN114895879A (en) Management system design scheme determining method, device, equipment and storage medium
CN111211973A (en) Information processing method and device in invoice field and storage medium
CN114860390B (en) Container data management method, device, program product, medium and electronic equipment
CN111147452B (en) Door lock instruction response method and device, door lock and storage medium

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