CN111737667A - Method, device and system for preventing malicious food ordering - Google Patents

Method, device and system for preventing malicious food ordering Download PDF

Info

Publication number
CN111737667A
CN111737667A CN202010585181.4A CN202010585181A CN111737667A CN 111737667 A CN111737667 A CN 111737667A CN 202010585181 A CN202010585181 A CN 202010585181A CN 111737667 A CN111737667 A CN 111737667A
Authority
CN
China
Prior art keywords
ordering
user
meal
identification information
current
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
CN202010585181.4A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010585181.4A priority Critical patent/CN111737667A/en
Publication of CN111737667A publication Critical patent/CN111737667A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device and a system for preventing malicious food ordering. The method comprises the following steps: receiving an access request aiming at a target dining position sent by a user terminal; acquiring meal position identification information of the target meal position according to the access request; acquiring user identification information of the user terminal login user; judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information; and if so, executing food ordering related operation on the target meal position according to the indication of the user terminal. The method can effectively prevent malicious ordering behaviors of malicious personnel for maliciously placing orders for the used dining positions, acquiring current ordering information or current ordering orders and the like, can avoid the defects caused by identifying the malicious ordering behaviors according to the coordinate positions, and can further effectively prevent the condition that the dining positions are occupied maliciously by personnel who are not in the dining room.

Description

Method, device and system for preventing malicious food ordering
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of Internet ordering, in particular to a method, a device and a system for preventing malicious ordering.
[ background of the invention ]
The code scanning ordering technology is more and more widely applied, when a customer orders in a restaurant, a user terminal scans a two-dimensional code pasted on a meal position, an interface of an ordering program is entered, an electronic menu can be checked on the interface, meal items can be selected, orders can be placed and paid, restaurant workers can automatically receive orders and prepare meals and give meals for the meal position, the ordering efficiency of the customer is effectively improved in the whole process, and the time of the restaurant workers is effectively saved.
However, the inventor of the present invention finds that, because the two-dimensional code attached to the dining position is fixed for a long time, if a malicious person takes a picture of the two-dimensional code and saves the two-dimensional code, or decodes the two-dimensional code to obtain decoded information, even if a meal is not ordered in a restaurant in the future, the two-dimensional code can still be scanned or enter an ordering interface according to the decoded information, and relevant malicious operations are performed, which specifically includes:
on the first hand, malicious personnel can obtain the current order information (including ordered food and the like) of the target meal position on the ordering interface, so that the privacy information of the ordering preference and the like of the ordering customer of the target meal position can be obtained.
In the second aspect, malicious persons can take a large number of pictures and store two-dimensional codes of different meal positions in the restaurant, so that ordering information of customers in the restaurant can be continuously and massively acquired, and operation information of the restaurant can be acquired.
In a third aspect, malicious personnel can also maliciously place orders on the ordering interface and the like, which brings unnecessary interference to restaurant workers and customers ordering at the target meal positions.
In the prior art, patent application document 'a method for scanning and ordering food by an intelligent device' (patent application number: 201711231307.2) and patent application document 'a method, a system, a terminal, a server and a medium for preventing malicious ordering' (patent application number: 201910042570.X) all provide a technology for preventing malicious ordering, but the inventor finds that the two patent application documents mainly identify malicious ordering behaviors by comparing coordinate positions of a user terminal and a restaurant, because the coordinate position in the user terminal is easy to forge and a malicious person can perform related malicious operations near the restaurant, the methods provided by the two patent application documents can not effectively prevent the malicious ordering behaviors, and because the coordinate position for acquiring the user terminal may have errors and the user terminal is difficult to acquire positioning signals indoors, and the like, and also greatly limits the popularization and application of the technology.
It is important to note that the above background information is only used to enhance an understanding of the background of the present invention and, thus, may include prior art information that does not constitute a part of the present disclosure as known to one of ordinary skill in the art.
[ summary of the invention ]
The main purpose of the present invention is to provide a method, an apparatus and a system for preventing malicious food ordering, so as to solve at least some of the problems caused by the limitations and disadvantages of the related art, including the following technical solutions:
in a first aspect, a method for preventing malicious meal ordering is provided, and the method includes:
receiving an access request aiming at a target dining position sent by a user terminal;
acquiring meal position identification information of the target meal position according to the access request;
acquiring user identification information of the user terminal login user;
judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information;
and if the login user is judged to be the current ordering user of the target meal position, executing ordering related operation on the target meal position according to the indication of the user terminal.
Preferably, the receiving the access request for the target meal space sent by the user terminal includes:
and the access request is triggered and sent by the user terminal according to the decoding information of the graphic code.
Preferably, the graphic code comprises a two-dimensional code or/and a bar code or/and an applet code.
Preferably, the obtaining of the meal position identification information of the target meal position according to the access request includes:
the access request comprises the meal position identification information, and the meal position identification information is obtained from the access request; and/or the first and/or second light sources,
the access request comprises associated information associated with the meal position identification information, and the meal position identification information is obtained from the association relationship between the pre-established associated information and the meal position identification information according to the associated information.
Preferably, the acquiring the user identification information of the user terminal login user includes:
acquiring a user identifier or an account of a user logged in by the user terminal, and taking the user identifier or the account as the user identification information; and/or the first and/or second light sources,
and acquiring the mobile terminal number of the user logged in by the user terminal, and taking the mobile terminal number as the user identification information.
Preferably, the acquiring the user identifier or the account of the user who logs in the user terminal includes:
the user terminal logs in through a wechat user, and the user identifier or the account number comprises an OpenID or a UnionID of the wechat login user; and/or the first and/or second light sources,
and if the user terminal logs in through the user of the payment bank, the user identification or the account number comprises the user _ id of the user logging in the payment bank.
Preferably, the determining, according to the meal location identification information and the user identification information, whether the logged-in user is the current meal ordering user of the target meal location includes:
acquiring corresponding current ordering user identification information according to the meal position identification information, comparing whether the current ordering user identification information is consistent with the user identification information, and if so, judging that the login user is the current ordering user of the target meal position; alternatively, the first and second electrodes may be,
acquiring corresponding current meal position identification information according to the user identification information, comparing whether the current meal position identification information is consistent with the meal position identification information or not, and if so, judging that the login user is the current ordering user of the target meal position; alternatively, the first and second electrodes may be,
and obtaining corresponding current ordering information or/and current order information according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is obtained, judging that the login user is the current ordering user of the target meal position.
Preferably, the meal ordering related operation comprises:
generating current ordering information, including receiving corresponding ordering information sent by the user terminal, and storing the corresponding ordering information as the current ordering information corresponding to the meal position identification information; and/or the first and/or second light sources,
browsing the current ordering information, including returning the current ordering information corresponding to the meal position identification information to the user terminal, so that the user terminal can browse the corresponding current ordering information; and/or the first and/or second light sources,
modifying the current ordering information, wherein when the modified current ordering information sent by the user terminal is received, the modified current ordering information is stored as the current ordering information corresponding to the meal position identification information; and/or the first and/or second light sources,
and placing an order, wherein the order placing operation comprises generating current order information, and the generated current order information comprises the meal position identification information, so that restaurant staff can provide services for the target meal position according to the generated current order information.
Preferably, the step of storing the corresponding meal ordering information as the current meal ordering information corresponding to the meal position identification information further includes:
and storing the corresponding ordering information as the current ordering information corresponding to the meal position identification information and the user identification information.
Preferably, the generated current order information further includes the meal location identification information.
Preferably, the method further comprises:
obtaining the use state of the target dining position according to the dining position identification information;
and if the target meal position is in a use state, executing the step of judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information.
Preferably, after the obtaining the usage status of the target meal location according to the meal location identification information, the method further comprises:
if the target meal position is not in a use state, judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information, and executing meal ordering related operation on the target meal position according to the indication of the user terminal.
Preferably, the obtaining the use state of the target meal position according to the meal position identification information comprises:
acquiring a corresponding state identifier according to the meal position identification information, wherein the state identifier is used for indicating whether the target meal position is in a use state, if the state identifier indicates that the target meal position is in the use state, determining that the target meal position is in the use state, otherwise, determining that the target meal position is not in the use state; alternatively, the first and second electrodes may be,
and obtaining corresponding current ordering information or/and current order information or/and current ordering user identification information according to the meal position identification information, if the corresponding current ordering information or/and current order information or/and current ordering user identification information is obtained, determining that the target meal position is in a use state, and if not, determining that the target meal position is not in the use state.
Preferably, after the step of performing the meal ordering related operation on the target meal location according to the indication of the user terminal if the target meal location is not in the use state, the step of performing the meal ordering related operation on the target meal location according to the indication of the user terminal further includes:
and setting the login user as the current meal ordering user of the target meal position according to the meal position identification information and the user identification information.
Preferably, after the if the target meal location is not in the use state, and before the performing the meal ordering related operation on the target meal location according to the indication of the user terminal, the method further includes:
after the commercial tenant terminal confirms, the ordering related operation is executed on the target meal position according to the indication of the user terminal; alternatively, the first and second electrodes may be,
and carrying out safety verification on the user terminal, and if the user terminal passes the safety verification, executing the operation related to ordering on the target meal according to the indication of the user terminal.
Preferably, the merchant terminal confirmation comprises:
generating prompt information corresponding to the meal position identification information, wherein the prompt information is used for indicating whether the merchant terminal agrees to the user terminal to execute meal ordering related operations on the target meal position;
outputting the prompt information to the merchant terminal;
and if information indicating agreement by the merchant terminal is received, confirming by the merchant terminal.
Preferably, the prompt message includes user information of the login user or/and meal position information of the target meal position.
Preferably, the user information includes:
all or part of the information in the user name; or/and;
a user head portrait; and/or the first and/or second light sources,
all or part of the mobile terminal number.
Preferably, the performing security authentication on the user terminal includes:
acquiring corresponding safety verification information according to the meal position identification information;
receiving security check information sent by the user terminal;
comparing whether the safety verification information is consistent with the safety verification information;
and if so, determining that the user terminal passes the security verification.
Preferably, the safety verification information corresponding to the meal location identification information includes:
and setting the character string as the safety verification information corresponding to the meal position identification information.
Preferably, the randomly generated character string includes:
four to six digits of pure numbers.
In a second aspect, an ordering service device is provided, the device comprising:
the access receiving module is used for receiving an access request aiming at a target meal position sent by a user terminal;
the meal position identification module is used for acquiring meal position identification information of the target meal position according to the access request;
the user identification module is used for acquiring user identification information of the user terminal login user;
the judging module is used for judging whether the login user is the current ordering user of the target meal position according to the meal position identification information and the user identification information, and if the login user is judged to be the current ordering user of the target meal position, the ordering executing module is executed;
and the ordering execution module is used for executing ordering related operation on the target meal position according to the indication of the user terminal.
Preferably, the meal position identification module comprises:
the first meal position identification unit is used for acquiring the meal position identification information from the access request, wherein the access request comprises the meal position identification information; and/or the first and/or second light sources,
and the second meal position identification unit is used for acquiring the meal position identification information from the association relationship between the pre-established association information and the meal position identification information according to the association information.
Preferably, the subscriber identity module includes:
the first user identification unit is used for acquiring a user identifier or an account of the user who logs in the user terminal, and the user identifier or the account is used as the user identification information; and/or the first and/or second light sources,
and the second user identification unit is used for acquiring the mobile terminal number of the user logging in the user terminal, and taking the mobile terminal number as the user identification information.
Preferably, the first subscriber identification unit includes:
a wechat user login subunit, configured to invoke a wechat open platform interface to enable the user terminal to log in through a wechat user, and obtain an OpenID or a UnionID of the wechat login user, where the user identifier or the account number includes the OpenID or the UnionID; and/or the first and/or second light sources,
and the user identification or the account number comprises the user _ id.
Preferably, the judging module includes:
the first judgment unit is used for acquiring corresponding current ordering user identification information according to the meal position identification information, comparing whether the current ordering user identification information is consistent with the user identification information or not, and judging that the login user is the current ordering user of the target meal position if the current ordering user identification information is consistent with the user identification information; alternatively, the first and second electrodes may be,
a second judging unit, configured to obtain corresponding current meal position identification information according to the user identification information, compare whether the current meal position identification information is consistent with the meal position identification information, and if so, judge that the logged-in user is a current meal ordering user of the target meal position; alternatively, the first and second electrodes may be,
and the third judging unit is used for acquiring corresponding current ordering information or/and current order information according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is acquired, judging that the login user is the current ordering user of the target meal position.
Preferably, the meal ordering execution module includes:
a current ordering information generating unit, configured to receive corresponding ordering information sent by the user terminal, and store the corresponding ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
the current ordering information browsing unit is used for returning the current ordering information corresponding to the meal position identification information to the user terminal so that the user terminal can browse the corresponding current ordering information; and/or the first and/or second light sources,
a current ordering information modifying unit, configured to, when receiving modified current ordering information sent by the user terminal, store the modified current ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
and the ordering operation unit is used for generating current order information, and the generated current order information comprises the meal position identification information, so that restaurant staff can provide services for the target meal position according to the generated current order information.
Preferably, the apparatus further comprises:
and the state identification module is used for acquiring the use state of the target dining position according to the dining position identification information, and if the target dining position is in the use state, the judgment module is executed.
Preferably, the state identification module is further configured to:
and if the target meal position is not in the use state, the judgment module is not executed, and the ordering execution module is executed.
Preferably, the device further comprises a meal ordering user setting module;
if the state identification module obtains that the target meal position is not in a use state, the meal ordering user setting module is executed when the meal ordering execution module is executed;
and the ordering user setting module is used for setting the login user as the current ordering user of the target meal position according to the meal position identification information and the user identification information.
Preferably, the state identification module includes:
the first state identification unit is used for acquiring a corresponding state identifier according to the meal position identification information, wherein the state identifier is used for indicating whether the target meal position is in a use state or not, if the state identifier indicates that the target meal position is in the use state, the target meal position is determined to be in the use state, and if not, the target meal position is determined not to be in the use state; alternatively, the first and second electrodes may be,
and the second state identification unit is used for acquiring corresponding current ordering information or/and current order information or/and current ordering user identification information according to the meal position identification information, determining that the target meal position is in a use state if the corresponding current ordering information or/and current order information or/and current ordering user identification information is acquired, and determining that the target meal position is not in the use state if the corresponding current ordering information or/and current order information or/and current ordering user identification information is not acquired.
Preferably, the device further comprises a merchant confirmation module or a security verification module;
after the status identification module acquires that the target meal location is not in a use status and before the meal ordering execution module is executed, the merchant confirmation module or the safety verification module is executed;
the merchant confirmation module is used for acquiring confirmation of a merchant terminal and executing the ordering execution module after acquiring the confirmation of the merchant terminal;
the safety verification module is used for carrying out safety verification on the user terminal, and if the user terminal passes the safety verification, the ordering execution module is executed.
Preferably, the merchant confirmation module includes:
the merchant prompting unit is used for generating prompting information corresponding to the meal position identification information, and the prompting information is used for indicating whether the merchant terminal agrees to the user terminal to execute meal ordering related operations on the target meal position or not;
a prompt output unit, configured to output the prompt information to the merchant terminal;
and the merchant confirmation unit is used for receiving the information fed back by the merchant terminal, and determining that the information is confirmed by the merchant terminal if the information which the merchant terminal indicates agreement is received.
Preferably, the security authentication module includes:
the verification information acquisition unit is used for acquiring corresponding safety verification information according to the meal position identification information;
a check information receiving unit, configured to receive the security check information sent by the user terminal;
and the information comparison unit is used for comparing whether the safety verification information is consistent with the safety verification information or not, and if so, determining that the user terminal passes the safety verification.
In a third aspect, an ordering server is provided, including: a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, implements the method according to the first aspect above.
There is provided a storage medium having stored therein a program for implementing the method of the first aspect.
In a fourth aspect, a food ordering system is provided, the system includes a food ordering server and at least one user terminal, wherein:
the ordering server comprises the device of the second aspect;
and the user terminal is used for accessing the ordering server and requesting to execute ordering related operations.
Preferably, the user terminal includes:
the access request module is used for sending an access request aiming at a target meal position to the ordering server;
the user login module is used for logging in the ordering server by a user;
the ordering operation module is used for sending an ordering related operation instruction aiming at the target meal position to the ordering server;
preferably, the user terminal further includes:
and the code scanning module is used for scanning and analyzing the graphic code and triggering the access request module according to the decoding information of the graphic code.
In summary, compared with the prior art, the technical scheme provided by the invention can effectively prevent malicious food ordering behaviors such as malicious ordering of a used meal position by a malicious person, acquisition of current food ordering information or a current food ordering order and the like, can avoid the defects caused by identification of the malicious food ordering behaviors according to the coordinate position, and can further effectively prevent the situation that people who are not in a restaurant occupy the meal position maliciously.
[ description of the drawings ]
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method of preventing malicious food ordering;
FIG. 2 is a schematic structural diagram of a first embodiment of an ordering service device;
FIG. 3 is a schematic structural diagram of a second embodiment of an ordering service device;
FIG. 4 is a schematic structural diagram of a third embodiment of an ordering service device;
FIG. 5 is a schematic structural diagram of a fourth embodiment of an ordering service device;
FIG. 6 is a schematic structural diagram of a fifth embodiment of an ordering service device;
fig. 7 is a schematic structural diagram of an embodiment of the ordering system.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Embodiment of method for preventing malicious meal ordering
Referring to fig. 1, a flowchart of an embodiment of a method for preventing malicious food ordering according to the present invention is shown. The embodiment is exemplified by applying the method to the ordering server, and the method may include:
and step 101, receiving an access request aiming at a target dining position sent by a user terminal.
The ordering user accesses the ordering server through the user terminal, and an access request aiming at a target meal position is sent to the ordering server; accordingly, the ordering service end receives the access request.
The ordering user typically refers to a customer who has a meal in a restaurant. The user terminal refers to mobile intelligent terminal equipment such as a smart phone, a tablet computer and a smart watch. The dining position refers to a position for providing dining service for a user ordering food in a dining room, and comprises a seat, a dining table or a bundlery and the like. The target meal position refers to a meal position to be used by the ordering user, for example, after the ordering user sits at the target meal position, the ordering user starts ordering with the user terminal, and after ordering and placing an order, the restaurant staff provides meal preparation and delivery service for the target meal position.
Specifically, the sending of the access request for the target meal location from the user terminal to the ordering server may be triggered by the ordering user inputting relevant information on a user interface of the user terminal, or triggered by the user terminal according to decoding information of the graphic code. The graphic code may be a two-dimensional code or a bar code, or may be other graphics whose information can be obtained by scanning and decoding, for example, taking a user terminal running a wechat ordering applet as an example, the graphic code may be a wechat applet code.
Specifically, for example, the user terminal triggers sending of an access request to the ordering server according to decoding information of the graphic code, the graphic code is pasted on the dining positions of the restaurant, the graphic code corresponds to each dining position in the restaurant one by one, the ordering user scans the graphic code pasted on the seated dining positions by using the user terminal, the user terminal decodes the graphic code, and the access request is sent to the ordering server according to the decoding information of the graphic code. Specifically, according to the type of the application service provided by the ordering service end, the sending the access request to the ordering service end according to the decoding information of the graphic code may further include:
taking the mobile application service provided by the ordering service terminal as an example, the mobile application client of the ordering service terminal is operated on the user terminal, and the ordering user scans the graphic code through the code scanning function carried by the mobile application client and sends an access request to the ordering service terminal according to the decoding information of the graphic code.
Taking the example that the ordering service terminal provides the website application service, the ordering user uses a code scanning function carried by a browser on the user terminal, or the ordering user uses a WeChat code scanning tool or other graphic code scanning tools to scan the graphic code, triggers the browser to access the ordering service terminal according to decoding information of the graphic code, and sends the access request to the ordering service terminal.
Taking the small program application service provided by the ordering service terminal as an example (such as the application service of a WeChat small program or a Payment small program), the ordering user scans the graphic code through a code scanning tool of a small program host environment (such as a WeChat client or a Payment small program) on the user terminal, the small program host environment loads and runs the ordering small program according to decoding information of the graphic code, and the ordering small program sends the access request to the ordering service terminal according to parameter information transmitted in the decoding information.
And 102, acquiring the meal position identification information of the target meal position according to the access request.
The meal location identification information is information for identifying a specific location of the target meal location in the target restaurant, for example, for identifying that the target meal location is a number-th seat or table in the target restaurant, or for identifying that the target meal location is a number-th booth in the target restaurant, or the like. If the ordering service end is mainly used for providing ordering service for a single restaurant, the meal position identification information can mainly consist of meal position identification; if the ordering service end is used for providing ordering service for a plurality of restaurants, the meal position identification information can mainly comprise restaurant identifications and meal position identifications. The restaurant identifier is used for identifying different restaurants; the meal location identifier is an identifier for identifying a specific meal location in a restaurant, such as a serial number of a seat, a table or a booth.
Specifically, the meal ordering server obtains the meal position identification information of the target meal position according to the access request, and may include various embodiments, for example:
in one embodiment, the access request includes the meal location identification information, and the ordering server obtains the meal location identification information from the access request.
In one embodiment, an association relationship between the associated information and the meal location identification information is established in advance, and if the access request contains the associated information associated with the meal location identification information, the meal location identification information is obtained in the association relationship according to the associated information. For example, an association relationship between a unique character string and meal position identification information of the target meal position is established in advance, that is, the association information is the unique character string, and when an access request including the unique character string is received, the meal position identification information is obtained in the association relationship according to the unique character string.
It can be understood that, as described in step 101, if the access request is triggered by the user terminal based on the decoding information of the graphical code, the meal location identification information is already carried in the graphical code, or the associated information associated with the meal location identification information is already carried in the graphical code, so that the access request sent by the user terminal according to the decoding information of the graphical code can include the meal location identification information or the associated information.
It is understood that, as described in step 101, the graphic code corresponds to each meal position in the restaurant one by one, that is, the meal position identification information or the associated information carried in the graphic code corresponds to each meal position in the restaurant one by one, so that the meal position identification information obtained according to the access request is the meal position identification information corresponding to the target meal position.
And 103, acquiring the user identification information of the user who logs in the user terminal.
In the process that the user terminal accesses the ordering server, the user terminal logs in the ordering server by a user; correspondingly, the ordering service side carries out identity authentication or authorization verification on the login user, and if the identity authentication or authorization verification passes, the ordering service side obtains the user identification information of the login user. The user identification information refers to information for uniquely identifying a login user, and includes a user identifier or an account, a mobile terminal number, and the like.
The method for acquiring the user identification information of the user terminal login user specifically includes various implementation modes:
in the first implementation manner, a user identifier or an account of a user who logs in a user terminal is obtained, and the user identifier or the account is used as the user identification information.
The ordering service terminal obtains a user identification or an account number of a user terminal login user, and the user identification or the account number is used as the user identification information.
For example, a meal ordering user inputs a user account and a password at a user terminal to log in a meal ordering service terminal, the meal ordering service terminal performs identity authentication on the user account and the password, and after the authentication is passed, the meal ordering service terminal takes the user account as the user identification information.
For another example, taking the ordering server providing the website application service and accessing the trusted user to authorize login as an example, the ordering server obtains the authorized login of the trusted login user, obtains an interface call credential (access _ token) of the trusted login user, and then performs trusted open platform authorization relationship interface call through the access _ token, including obtaining the OpenID or the UnionID of the trusted login user, and the ordering server uses the OpenID or the UnionID as the user identification information. It is understood that OpenID is an identifier of a wechat login user in a mobile application, a website application, or a public account (including an applet) that respectively and uniquely corresponds to the identity of the wechat login user, and UnionID is an identifier of a mobile application, a website application, and a public account (including an applet) that correspond to the identity of the same wechat login user under the same wechat open platform account.
For another example, taking the ordering service end providing the WeChat applet application service as an example, the wx.login () interface may be called to obtain the temporary login credential code of the WeChat login user, then the auth.code2Session interface is called to replace the OpenID or UnionID of the WeChat login user, and the ordering service end uses the OpenID or UnionID as the user identification information.
For another example, taking the ordering service end providing the payment applet application service as an example, after login is authorized by the payment applet user, the user _ id parameter value is obtained by calling the Alipay system oauth token interface, where the user _ id is a unique identifier of the payment applet user, and the user _ id parameter value is used as the user identification information.
It can be understood that the user may also log in the ordering service end in other identity authentication manners (e.g., biometric authentication), and accordingly, the ordering service end performs corresponding identity authentication on the login user and obtains a user identifier or an account of the login user.
It is to be understood that information for uniquely identifying the login user may be used as the user identification information, for example, if the ordering server identifies the login user with a unique identifier, and the user account or/and mobile terminal number or/and micro credit user OpenID or/and micro credit user UnionID or/and user _ id of the payer and the like of the login user is bound with the unique identifier, the unique identifier may be obtained according to the association relationship, and the unique identifier may be used as the user identification information.
It can be understood that if the user terminal login user passes the identity authentication of the ordering service terminal and the user terminal maintain a session state, the ordering service terminal can also obtain the user identifier or the account of the login user according to the session state.
In the second embodiment, the mobile terminal number of the user who logs in the user terminal is obtained, and the mobile terminal number is used as the user identification information.
And the ordering server acquires the mobile terminal number of the user logged in by the user terminal, and the mobile terminal number is used as the user identification information. The mobile terminal number is the number that needs to be dialed to call a mobile subscriber, also called MSISDN (mobile subscriber ISDN number), also commonly referred to as the mobile phone number.
In the ordering service terminal, if the mobile terminal number is used as the user account of the user, or the user identifier or the account is bound with the mobile terminal number, the mobile terminal number of the login user can be obtained.
For example, in the ordering service side, the mobile terminal number is used as the account of the login user, and after the user terminal successfully logs in through the mobile terminal number and the password (or the short message authentication code), the ordering service side uses the mobile terminal number as the user identification information.
For another example, taking the ordering service end providing the wechat applet application service as an example, the number of the mobile terminal bound by the wechat login user may be obtained based on the wechat interface service. Specifically, the value of the button component open-type is set as getPhoneNumber, when the ordering user clicks and agrees, encrypted data returned by the WeChat interface service is acquired through a bindgetPhoneNumber event callback, and then the ordering service end is decrypted by combining the session _ key and the app _ id to acquire the mobile terminal number.
For another example, taking the ordering service end providing the application service of the small payment treasures program as an example, when the authorization of the login user of the payment treasures is obtained, a token used for exchanging the user information is obtained, and the number of the mobile terminal is obtained by calling the interface for obtaining the member mobile phone number. Specifically, the value of the < button > component open-type is set as getAuuthorize, after the ordering user clicks and agrees, the encrypted data returned by the Payment treasure server is obtained through a my.
104, judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information; if the logged-in user is judged to be the current meal ordering user of the target meal position, the following step 105 is executed.
The ordering server judges whether the login user is the current ordering user of the target meal position according to the meal position identification information and the user identification information; if the logged-in user is judged to be the current meal ordering user of the target meal position, the following step 105 is executed.
The current ordering user refers to the ordering user who is using the target meal position. The method for identifying the target meal position by the meal position identification information and the login user by the user identification information includes multiple implementation modes, and specifically includes the following steps:
in the first implementation mode, corresponding current ordering user identification information is obtained according to the meal position identification information, and whether the current ordering user identification information is consistent with the user identification information or not is compared; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; if not, judging that the login user is not the current meal ordering user of the target meal position.
For example, the meal ordering server generates current meal position data, and the current meal position data is used for indicating that the corresponding meal position is currently used by the corresponding user; specifically, the current meal position data includes a corresponding relationship between meal position identification information and current meal ordering user identification information, wherein the meal position identification information is used for indicating a meal position, and the current meal ordering user identification information is used for indicating a meal ordering user who is using the meal position at present. The ordering server acquires corresponding current ordering user identification information in the current meal position data according to the meal position identification information, and compares whether the current ordering user identification information is consistent with the user identification information or not; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; if not, judging that the login user is not the current meal ordering user of the target meal position. It can be understood that if the meal position identification information corresponds to a plurality of current meal ordering user identification information, in an actual application scenario, it can be understood that one meal position is being used by a plurality of meal ordering users, and each current meal ordering user identification information in the plurality of current meal ordering user identification information is respectively compared with the user identification information to determine whether the current meal ordering user identification information is consistent with the user identification information; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; otherwise, judging that the login user is not the current meal ordering user of the target meal position.
For another example, taking the meal order identification information mainly consisting of the restaurant identifier and the meal order identifier as an example, the ordering server generates current meal order data for different restaurant identifiers, that is, creates current meal order data by using the restaurant identifiers respectively, and the current meal order data includes the corresponding relationship between the meal order identifier and the current ordering user identification information. The ordering server side obtains the restaurant identifier and the meal position identifier in the meal position identification information, obtains the current ordering user identification information corresponding to the meal position identifier from the current meal position data of the restaurant identifier according to the meal position identifier, and then judges whether the login user is the current ordering user of the target meal position or not by comparing whether the current ordering user identification information is consistent with the user identification information or not, wherein the specific comparison mode is the same as or similar to the comparison mode, and is not repeated herein.
It can be understood that the corresponding current ordering user identification information is obtained according to the meal position identification information, not only the corresponding current ordering user identification information is directly obtained according to the meal position identification information, but also the corresponding current ordering user identification information is indirectly obtained, for example, the corresponding relationship between the meal position identification information and the current order is set in the current meal position data, and the corresponding relationship is set between the current order and the current ordering user identification information, so that when the corresponding current order is obtained according to the meal position identification information, the corresponding current ordering user identification information can be obtained according to the corresponding current order.
In the second implementation mode, corresponding current meal position identification information is obtained according to the user identification information, and whether the current meal position identification information is consistent with the meal position identification information or not is compared; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; if not, judging that the login user is not the current meal ordering user of the target meal position.
For example, corresponding current meal position identification information is set for user identification information in the ordering server, the corresponding current meal position identification information is obtained according to the user identification information, and whether the current meal position identification information is consistent with the meal position identification information or not is compared; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; if not, judging that the login user is not the current meal ordering user of the target meal position. It can be understood that if the user identification information corresponds to a plurality of current meal position identification information, in an actual application scenario, it can be understood that one meal ordering user is using a plurality of meal positions, and each current meal position identification information in the plurality of current meal position identification information is respectively compared with the meal position identification information to determine whether the current meal position identification information is consistent with the meal position identification information; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; otherwise, judging that the login user is not the current meal ordering user of the target meal position.
For another example, in an example that the meal location identification information mainly includes a restaurant identifier and a meal location identifier, the ordering server generates current meal location data for different restaurant identifiers, that is, different current meal location data are respectively created by the restaurant identifiers, and the current meal location data includes user identification information and a corresponding current meal location identifier, where the user identification information is used to indicate an ordering user, and the current meal location identifier is used to indicate a specific meal location in a target restaurant that is being used by the ordering user. The ordering server side obtains a restaurant identifier and a meal position identifier in the meal position identification information, obtains a current meal position identifier corresponding to the user identification information from current meal position data of the restaurant identifier according to the user identification information, then compares whether the current meal position identifier is consistent with the meal position identifier in the meal position identification information, and if so, judges that the logged-in user is the current ordering user of the target meal position; if not, judging that the login user is not the current meal ordering user of the target meal position.
It can be understood that, the corresponding current meal location identification information is obtained according to the user identification information, not only the corresponding current meal location identification information is directly obtained according to the user identification information, but also the corresponding current meal location identification information is indirectly obtained, for example, a corresponding relationship between the user identification information and the current order is set, and the corresponding relationship is set between the current order and the current meal location identification information, so that when the corresponding current order is obtained according to the user identification information, the corresponding current meal location identification information can be obtained according to the corresponding current order.
In a third implementation manner, corresponding current ordering information or/and current order information is obtained according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is obtained, it is determined that the logged-in user is the current ordering user of the target meal position.
In the process that a user terminal logs in a target meal position used by a user, a meal ordering service terminal generates corresponding current meal ordering information or/and current order information according to the indication of the user terminal, namely the meal ordering service terminal creates the corresponding current meal ordering information or/and current order information for the meal position identification information and the user identification information in use.
The current ordering information refers to ordering information which corresponds to the target meal position and has not been ordered yet, service processing such as food preparation and delivery and the like is not required to be provided by restaurant workers, and the ordering information comprises information such as the number of people having meals, meals (the meals comprise dishes, drinks and/or staple food and the like); the current order information refers to order information which needs restaurant workers to provide service processing such as catering and meal delivery at present. It should be noted that the current order information may be paid or unpaid, and the embodiment of the present invention is not limited to this.
Therefore, if the corresponding current meal ordering information or/and the current order information is obtained according to the meal position identification information and the user identification information, it is indicated that the corresponding current meal ordering information or/and the current order information is generated by the logged-in user in the process of using the target meal position, and it can be determined that the logged-in user is the current meal ordering user of the target meal position.
Optionally, before step 104 is executed, corresponding steps can also be executed according to the usage status of the target dining position. The specific implementation mode comprises the steps of obtaining the use state of the target meal position according to the meal position identification information; if the target dining position is in the use state, executing the step 103 and the subsequent steps; further, if the target dining position is not in use, step 104 and jump execution step 105 are not executed, and step 103 may determine whether to execute according to whether user identification information of the logged-in user needs to be acquired when step 105 is executed. The method has the functions that for the target meal position in the use state, step 104 needs to be executed to judge whether the login user is the current meal ordering user of the target meal position, and step 105 is determined to be executed according to the judgment result, so that other login users can be prevented from using the target meal position; for a target meal location that is not in use, execution 105 may jump to use the target meal location and perform ordering related operations. The obtaining of the use state of the target meal position according to the meal position identification information may further include various embodiments, for example, obtaining a state identifier corresponding to the meal position identification information according to the meal position identification information, where the state identifier is used to indicate whether the target meal position is in the use state, and if the state identifier indicates that the target meal position is in the use state, determining that the target meal position is in the use state, otherwise, determining that the target meal position is not in the use state; for another example, when a target meal position is used, corresponding current meal ordering information or/and current order information is generated for the target meal position, or corresponding current meal ordering user identification information is set for the target meal position, so that current meal ordering information or/and current order information or/and current meal ordering user identification information corresponding to the meal position identification information can be obtained according to the meal position identification information, if the current meal ordering information or/and current order information or/and current meal ordering user identification information corresponding to the meal position identification information is obtained, the target meal position is determined to be in a use state, otherwise, the target meal position is determined not to be in the use state. It can be understood that, when the usage status of the target meal location is determined according to the current meal ordering user identification information corresponding to the acquired meal location identification information, when the first implementation manner of step 104 is implemented, the current meal ordering user identification information corresponding to the acquired meal location identification information may not be acquired repeatedly, and the current meal ordering user identification information acquired when the usage status of the target meal location is acquired may be compared with the user identification information to determine whether the current meal ordering user identification information is consistent.
Further optionally, when the target meal location is not in a use state and the step 105 is skipped to perform, the logged-in user may be set as the current meal ordering user of the target meal location according to the meal location identification information and the user identification information, so that when the logged-in user visits the meal ordering service end again, the meal ordering service end may determine that the logged-in user is the current meal ordering user of the target meal location. The current meal ordering user setting the login user as the target meal position according to the meal position identification information and the user identification information may include various embodiments, for example, corresponding to the first embodiment in step 104, the current meal ordering user identification information corresponding to the meal position identification information is set as the user identification information; for another example, corresponding to the second embodiment in step 104, the current meal position identification information corresponding to the user identification information is set as the meal position identification information; therefore, when the user terminal accesses the ordering server again, the ordering server can judge whether the login user of the user terminal is the current ordering user of the target meal position or not by using the corresponding implementation mode. Further, when the usage status of the target meal position is determined according to the status identifier corresponding to the meal position identification information, the status identifier corresponding to the meal position identification information may be further set to indicate that the target meal position is in the usage status, so that when the user terminal scans the graphic code of the target meal position again to access the ordering service terminal, the ordering service terminal may determine that the target meal position is in the usage status.
Further optionally, when the target meal location is not used, a situation that the target meal location is used maliciously may exist, for example, even if a malicious person does not order in the target restaurant, the malicious person may still perform an ordering related operation by scanning a pre-saved graphic code; further, if the ordering server sets the login user as the current ordering user of the target meal position according to the meal position identification information and the user identification information, malicious personnel can be set as the current ordering user of the target meal position, so that the normal ordering user can not use the target meal position. Therefore, in order to prevent the situation that the pre-saved graphic code maliciously occupies the meal position when a person not in the restaurant scans the pre-saved graphic code, when the target meal position is not in the use state and the execution step 105 is skipped, the execution step 105 may be executed after the confirmation or the security verification by the merchant terminal, and specifically may include:
in the first embodiment, step 105 is performed after the confirmation by the merchant terminal.
The specific process of confirming by the merchant terminal may include:
and the ordering server generates prompt information corresponding to the target meal position, wherein the prompt information is used for indicating whether the merchant terminal agrees to the user terminal to execute ordering related operation on the target meal position. The prompt information comprises user information of the login user, for example, corresponding user information is set for the user in the ordering server, the corresponding user information is obtained according to the user identification information, and the corresponding user information is the user information of the login user; for another example, if the login user is a WeChat login user or a Payment treasure login user, the interface service provided by the WeChat or Payment treasure open platform is called, and the user information of the login user is obtained after the user authorization is obtained; the user information comprises all or part of information in the user name (such as name and nickname), or/and the user head portrait, or/and all or part of information of the mobile terminal number, and the like. The prompt information may further include meal position information of the target meal position (for example, a number of dining table or a bunk, or a number of dining table or a bunk of a certain dining room, etc.), and the corresponding meal position information may be obtained according to the meal position identification information, where the corresponding meal position information is the meal position information of the target meal position.
And outputting the prompt information to the merchant terminal. For example, the prompt information is displayed on a management interface of the merchant terminal; for another example, the prompt message is sent to the merchant terminal; in addition, buttons indicating approval and rejection may be displayed to ask the restaurant staff whether to approve;
the restaurant staff checks the prompt information and feeds back information indicating approval or rejection to the ordering server through the merchant terminal; for example, if the restaurant staff agrees, click a button indicating agreement; if the restaurant staff member rejects, clicking a button representing the rejection;
and the ordering server receives the information fed back by the merchant terminal, and if the information which is fed back by the merchant terminal and indicates agreement is received, the ordering server is confirmed by the merchant terminal.
In the second embodiment, the security authentication is performed on the ue, and if the ue passes the security authentication, step 105 is executed.
The security verification of the user terminal may include:
generating safety verification information corresponding to the meal position identification information, for example, randomly generating a character string, and setting the character string as the safety verification information corresponding to the meal position identification information, wherein the randomly generated character string is preferably a pure number of four to six digits;
informing the safety verification information to a food ordering user, for example, when the food ordering user orders food, a restaurant worker acquires the safety verification information corresponding to the target meal location through a merchant terminal, and informs the safety verification information to the food ordering user;
displaying a user interface for safety verification on a user terminal, inputting safety verification information serving as safety verification information into the user interface by a meal ordering user, and triggering a safety verification process;
the user terminal sends the input safety verification information to the ordering server, and the ordering server receives the safety verification information;
the ordering server acquires safety verification information corresponding to the meal position identification information according to the meal position identification information, and compares whether the safety verification information is consistent with the safety verification information or not; if the user terminal is consistent with the security authentication request, determining that the user terminal passes the security authentication; otherwise, the user terminal is determined not to pass the security authentication.
It should be further noted that, when the ordering service end determines whether the logged-in user is the current ordering user of the target meal size according to the meal size identification information and the user identification information, if it is determined that the logged-in user is not the current ordering user of the target meal size, the ordering service end may refuse the logged-in user to perform meal ordering related operations on the target meal size, that is, the following step 105 is not performed; the following step 105 may also be executed after the merchant terminal confirms or passes the security verification, and the current meal ordering user identification information corresponding to the meal location identification information may be further set to include the user identification information, or the current meal location identification information corresponding to the user identification information may be set to include the meal location identification information, and the like, which is not described in detail herein.
And 105, performing ordering related operation on the target meal position according to the indication of the user terminal.
And executing the food ordering related operation on the target food position according to the indication of the user terminal, namely allowing the user terminal to execute the food ordering related operation on the target food position. Specifically, the ordering service end can display a user interface of the ordering related operation to the user terminal, an ordering user performs the ordering related operation on the user interface, and the user terminal sends an ordering related operation instruction to the ordering service end according to the ordering related operation; accordingly, the ordering service end receives the indication and executes ordering related operation on the target meal position according to the indication, wherein the target meal position is identified by the meal position identification information. It can be understood that, according to the session state maintained between the ordering service terminal and the user terminal, the ordering service terminal may receive and execute the ordering related operation instruction sent by the user terminal to the target meal location for multiple times.
The meal ordering related operation comprises the steps of generating current meal ordering information, browsing the current meal ordering information, modifying the current meal ordering information, ordering and the like.
For example, taking the generation of the current ordering information as an example, the ordering user inputs or selects corresponding ordering information on the user interface, such as the number of people who have a meal, the selection of meal (meal includes meal, drinks, staple food, and the like), and sends the corresponding ordering information to the ordering server and instructs to generate the current ordering information, the ordering server generates the current ordering information corresponding to the target meal location, that is, the corresponding ordering information is stored as the current ordering information corresponding to the meal location identification information, so that the corresponding ordering information can be obtained according to the meal location identification information; further, the corresponding ordering information may be stored as the meal location identification information and the current ordering information corresponding to the user identification information, so that when the logged-in user accesses the ordering server again, and when the third implementation manner in step 104 is implemented, the corresponding current ordering information may be obtained according to the meal location identification information and the user identification information, and thus, it may be determined that the logged-in user is the current ordering user of the target meal location.
For another example, taking browsing current meal ordering information as an example, when a meal ordering user triggers an instruction of browsing current meal ordering information on a user interface, the meal ordering service end obtains the current meal ordering information corresponding to the meal position identification information, and returns the corresponding current meal ordering information to the user terminal, and the user terminal receives the corresponding current meal ordering information and displays the corresponding current meal ordering information on the user interface so that the meal ordering user can browse the current meal ordering information. It can be understood that, if the third implementation manner of step 104 is implemented, and the corresponding current meal ordering information has already been acquired according to the meal location identification information and the user identification information, when the current meal ordering information is browsed in this step, the corresponding current meal ordering information may not be acquired again, and the corresponding current meal ordering information acquired in the third implementation manner of step 104 may be returned to the user terminal; of course, the corresponding current food ordering information may also be obtained again to obtain the updated current food ordering information and return the updated current food ordering information to the user terminal.
For another example, taking modifying the current ordering information as an example, when the ordering user browses the current ordering information on the user interface, the current ordering information may also be modified, and when the ordering server receives the modified current ordering information sent by the user terminal, the current ordering information corresponding to the meal position identification information is stored as the modified current ordering information.
For example, the ordering user triggers an ordering operation on a user interface, and the ordering server generates current order information, where the current order information includes the meal location identification information and corresponding ordering information, where the corresponding ordering information may be the current ordering information corresponding to the meal location identification information, and sent to the ordering server after the ordering user inputs or selects the corresponding ordering information on the user interface, or the current ordering information corresponding to the meal location identification information that is stored in advance; because the target meal position is identified by the meal position identification information, the restaurant staff can provide the meal preparation and delivery service related to the corresponding ordering information for the target meal position according to the current order information. Furthermore, the current order information can also comprise the meal position identification information and the user identification information, so that a corresponding login user can be obtained according to the current order information, and a meal ordering user can be identified when restaurant workers provide meal preparation and delivery services; and when the logged-in user accesses the ordering server again, and when the third implementation manner in step 104 is implemented, the ordering server may obtain corresponding current order information according to the meal location identification information and the user identification information, so as to determine that the logged-in user is the current ordering user of the target meal location.
In addition, it should be noted that, in order to improve the utilization rate of the meal positions and avoid that the ordering user occupies the target meal position for a long time, once the target meal position is used, the occupation of the target meal position should be timely removed, for example, the removal of the occupation of the target meal position may be triggered after the login user completes payment for the current order information, or the occupation of the target meal position may be removed by setting the restaurant staff on the management interface of the merchant terminal. Specifically, the elimination of the target meal position occupation can be realized by clearing the current meal ordering information or/and the current order information or/and the current meal ordering user identification information corresponding to the meal position identification information by the meal ordering server; or setting the state identifier corresponding to the meal position identification information to indicate that the target meal position is not in a use state; or, the current meal position data of the meal position identification information and the user identification information are converted into historical meal position data and the like.
In summary, compared with the prior art, the method provided by the embodiment has the following main technical effects: on the first hand, when the target meal position is used by the meal ordering user, only the meal ordering user can use the target meal position, and other meal ordering users cannot use the target meal position, so that malicious meal ordering behaviors such as malicious ordering of the target meal position by malicious personnel, acquisition of current meal ordering information or current meal ordering orders and the like are effectively prevented; in the second aspect, malicious food ordering behaviors do not need to be identified according to the coordinate positions of the user terminal and the restaurant, so that the defects brought to identification of the malicious food ordering behaviors in the aspects of coordinate position errors, indoor difficulty in obtaining and the like are effectively avoided; in addition, if the ordering user needs to use the target meal position which is not in the use state, the meal position can be used only after the confirmation of restaurant staff or the safety verification is passed, and the condition that the meal position is maliciously occupied by the staff who is not in the restaurant in the modes of scanning pre-saved graphic codes and the like is effectively prevented.
Second, an embodiment of the ordering service device
Referring to fig. 2, a schematic structural diagram of a first embodiment of an ordering service device provided in the present invention is shown, where the ordering service device can be used to prevent malicious ordering behavior. For convenience of explanation, only portions related to the embodiments of the present invention are shown. The device includes:
the access receiving module is used for receiving an access request aiming at a target meal position sent by a user terminal;
the meal position identification module is used for acquiring meal position identification information of the target meal position according to the access request;
the user identification module is used for acquiring user identification information of the user terminal login user;
the judging module is used for judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information; if yes, executing the ordering execution module;
and the ordering execution module is used for executing ordering related operation on the target meal position according to the indication of the user terminal.
Preferably, the meal position identification module comprises:
the first meal position identification unit is used for acquiring the meal position identification information from the access request, wherein the access request comprises the meal position identification information; and/or the first and/or second light sources,
and the second meal position identification unit is used for acquiring the meal position identification information from the association relationship between the pre-established association information and the meal position identification information according to the association information.
Preferably, the subscriber identity module includes:
the first user identification unit is used for acquiring a user identifier or an account of the user who logs in the user terminal, and the user identifier or the account is used as the user identification information; and/or the first and/or second light sources,
and the second user identification unit is used for acquiring the mobile terminal number of the user logging in the user terminal, and taking the mobile terminal number as the user identification information.
Preferably, the first subscriber identification unit includes:
a wechat user login subunit, configured to invoke a wechat open platform interface to enable the user terminal to log in through a wechat user, and obtain an OpenID or a UnionID of the wechat login user, where the user identifier or the account number includes the OpenID or the UnionID; and/or the first and/or second light sources,
and the user identification or the account number comprises the user _ id.
Preferably, the judging module includes:
the first judgment unit is used for acquiring corresponding current ordering user identification information according to the meal position identification information and comparing whether the current ordering user identification information is consistent with the user identification information or not; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; alternatively, the first and second electrodes may be,
the second judgment unit is used for acquiring corresponding current meal position identification information according to the user identification information and comparing whether the current meal position identification information is consistent with the meal position identification information or not; if the current meal ordering user is consistent with the target meal position, judging that the login user is the current meal ordering user of the target meal position; alternatively, the first and second electrodes may be,
and the third judging unit is used for acquiring corresponding current ordering information or/and current order information according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is acquired, judging that the login user is the current ordering user of the target meal position.
Preferably, the meal ordering execution module includes:
a current ordering information generating unit, configured to receive corresponding ordering information sent by the user terminal, and store the corresponding ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
the current ordering information browsing unit is used for returning the current ordering information corresponding to the meal position identification information to the user terminal so that the user terminal can browse the corresponding current ordering information; and/or the first and/or second light sources,
a current ordering information modifying unit, configured to, when receiving modified current ordering information sent by the user terminal, store the modified current ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
and the ordering operation unit is used for generating current order information, and the generated current order information comprises the meal position identification information, so that restaurant staff can provide services for the target meal position according to the generated current order information.
Third, an embodiment of ordering service device
Referring to fig. 3, a schematic structural diagram of a second ordering service device according to an embodiment of the invention is shown. The device is arranged on the device provided by the first ordering service device embodiment, and further comprises the following modules:
and the state identification module is used for acquiring the use state of the target dining position according to the dining position identification information, and if the target dining position is in the use state, the judgment module is executed.
Preferably, the state identification module is further configured to: and if the target meal position is not in the use state, the judgment module is not executed, and the ordering execution module is executed.
Preferably, the state identification module includes:
the first state identification unit is used for acquiring a corresponding state identifier according to the meal position identification information, wherein the state identifier is used for indicating whether the target meal position is in a use state or not, if the state identifier indicates that the target meal position is in the use state, the target meal position is determined to be in the use state, and if not, the target meal position is determined not to be in the use state; alternatively, the first and second electrodes may be,
and the second state identification unit is used for acquiring corresponding current ordering information or/and current order information or/and current ordering user identification information according to the meal position identification information, determining that the target meal position is in a use state if the corresponding current ordering information or/and current order information or/and current ordering user identification information is acquired, and determining that the target meal position is not in the use state if the corresponding current ordering information or/and current order information or/and current ordering user identification information is not acquired.
Fourth, an embodiment of ordering service device
Please refer to fig. 4, which illustrates a schematic structural diagram of a third embodiment of the meal ordering service device provided in the present invention. The device is arranged on the device provided by the second embodiment of the ordering service device, and further comprises an ordering user setting module;
if the target meal position is not in a use state, the meal ordering user setting module is also executed when the meal ordering execution module is executed;
and the ordering user setting module is used for setting the login user as the current ordering user of the target meal position according to the meal position identification information and the user identification information.
Fifth, an embodiment of a service device for ordering food
Please refer to fig. 5, which illustrates a schematic structural diagram of a fourth embodiment of the meal ordering service device provided in the present invention. The device also comprises a merchant confirmation module or a safety verification module on the device provided by the second ordering service device embodiment;
and executing the merchant confirmation module or the safety verification module after the state identification module acquires that the target meal position is not in the use state and before the meal ordering execution module.
The merchant confirmation module is used for acquiring confirmation of a merchant terminal and executing the ordering execution module after acquiring confirmation of the merchant terminal;
the safety verification module is used for carrying out safety verification on the user terminal, and if the user terminal passes the safety verification, the ordering execution module is executed.
Preferably, the merchant confirmation module includes:
the merchant prompting unit is used for generating prompting information corresponding to the meal position identification information, and the prompting information is used for indicating whether the merchant terminal agrees to the user terminal to execute meal ordering related operations on the target meal position or not;
a prompt output unit, configured to output the prompt information to the merchant terminal;
and the merchant confirmation unit is used for receiving the information fed back by the merchant terminal, and determining that the information is confirmed by the merchant terminal if the information which the merchant terminal indicates agreement is received.
Preferably, the security authentication module includes:
the verification information acquisition unit is used for acquiring safety verification information corresponding to the meal position identification information according to the meal position identification information;
a check information receiving unit, configured to receive the security check information sent by the user terminal;
the information comparison unit is used for comparing whether the safety verification information is consistent with the safety verification information; and if so, determining that the user terminal passes the security verification.
Sixthly, fifth embodiment of ordering service device
Please refer to fig. 6, which illustrates a fifth exemplary structure of the meal ordering service device according to the present invention. The device is formed on the device provided by combining the third embodiment of the ordering service device and the fourth embodiment of the ordering service device;
and executing the merchant confirmation module or the safety verification module after the state identification module obtains that the target meal position is not in the use state and before the ordering execution module and the ordering user setting module are executed.
The apparatuses provided in the first to fifth embodiments of the ordering service apparatus and the implementation method in the above described malicious ordering prevention method embodiment belong to the same concept, and specific implementation principles and effects thereof can be seen in the method embodiment, and are not described herein again.
Seventh, an embodiment of a food ordering system
Referring to fig. 7, a schematic structural diagram of an embodiment of an ordering system provided in the present invention is shown. The system comprises: the ordering system comprises an ordering server and at least one user terminal;
the ordering server comprises the devices in the first to fifth embodiments of the ordering service device; and the user terminal is used for accessing the ordering server and requesting to execute ordering related operations.
Preferably, the user terminal includes:
the access request module is used for sending an access request aiming at a target meal position to the ordering server;
the user login module is used for logging in the ordering server by a user;
the ordering operation module is used for sending an ordering related operation instruction aiming at the target meal position to the ordering server;
preferably, the user terminal further includes:
and the code scanning module is used for scanning and analyzing the graphic code and triggering the access request module according to the decoding information of the graphic code.
The function and implementation of the user terminal in the embodiment of the method for preventing malicious meal ordering belong to the same concept, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," "includes," "passing," "sending," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system.
The terms "first," "second," "third," and the like (if any) are used solely to distinguish one from another and are not used to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The method, apparatus and system of the present invention can be implemented in a number of ways. For example, the methods, apparatus and systems of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of preventing malicious food ordering, the method comprising:
receiving an access request aiming at a target dining position sent by a user terminal;
acquiring meal position identification information of the target meal position according to the access request;
acquiring user identification information of the user terminal login user;
judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information;
and if the login user is judged to be the current ordering user of the target meal position, executing ordering related operation on the target meal position according to the indication of the user terminal.
2. The method of claim 1, wherein the determining whether the logged-in user is the current ordering user of the target meal size according to the meal size identification information and the user identification information comprises:
acquiring corresponding current ordering user identification information according to the meal position identification information, comparing whether the current ordering user identification information is consistent with the user identification information, and if so, judging that the login user is the current ordering user of the target meal position; alternatively, the first and second electrodes may be,
acquiring corresponding current meal position identification information according to the user identification information, comparing whether the current meal position identification information is consistent with the meal position identification information or not, and if so, judging that the login user is the current ordering user of the target meal position; alternatively, the first and second electrodes may be,
and obtaining corresponding current ordering information or/and current order information according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is obtained, judging that the login user is the current ordering user of the target meal position.
3. The method of claim 1, wherein the meal ordering related operations comprise:
generating current ordering information, including receiving corresponding ordering information sent by the user terminal, and storing the corresponding ordering information as the current ordering information corresponding to the meal position identification information; and/or the first and/or second light sources,
browsing the current ordering information, including returning the current ordering information corresponding to the meal position identification information to the user terminal, so that the user terminal can browse the corresponding current ordering information; and/or the first and/or second light sources,
modifying the current ordering information, wherein when the modified current ordering information sent by the user terminal is received, the modified current ordering information is stored as the current ordering information corresponding to the meal position identification information; and/or the first and/or second light sources,
and placing an order, wherein the order placing operation comprises generating current order information, and the generated current order information comprises the meal position identification information, so that restaurant staff can provide services for the target meal position according to the generated current order information.
4. The method of claim 1, further comprising:
obtaining the use state of the target dining position according to the dining position identification information;
and if the target meal position is in a use state, executing the step of judging whether the login user is the current meal ordering user of the target meal position according to the meal position identification information and the user identification information.
5. An ordering service device, the device comprising:
the access receiving module is used for receiving an access request aiming at a target meal position sent by a user terminal;
the meal position identification module is used for acquiring meal position identification information of the target meal position according to the access request;
the user identification module is used for acquiring user identification information of the user terminal login user;
the judging module is used for judging whether the login user is the current ordering user of the target meal position according to the meal position identification information and the user identification information, and if the login user is judged to be the current ordering user of the target meal position, the ordering executing module is executed;
and the ordering execution module is used for executing ordering related operation on the target meal position according to the indication of the user terminal.
6. The apparatus of claim 5, wherein the determining module comprises:
the first judgment unit is used for acquiring corresponding current ordering user identification information according to the meal position identification information, comparing whether the current ordering user identification information is consistent with the user identification information or not, and judging that the login user is the current ordering user of the target meal position if the current ordering user identification information is consistent with the user identification information; alternatively, the first and second electrodes may be,
a second judging unit, configured to obtain corresponding current meal position identification information according to the user identification information, compare whether the current meal position identification information is consistent with the meal position identification information, and if so, judge that the logged-in user is a current meal ordering user of the target meal position; alternatively, the first and second electrodes may be,
and the third judging unit is used for acquiring corresponding current ordering information or/and current order information according to the meal position identification information and the user identification information, and if the corresponding current ordering information or/and current order information is acquired, judging that the login user is the current ordering user of the target meal position.
7. The apparatus of claim 5, wherein the ordering module comprises:
a current ordering information generating unit, configured to receive corresponding ordering information sent by the user terminal, and store the corresponding ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
the current ordering information browsing unit is used for returning the current ordering information corresponding to the meal position identification information to the user terminal so that the user terminal can browse the corresponding current ordering information; and/or the first and/or second light sources,
a current ordering information modifying unit, configured to, when receiving modified current ordering information sent by the user terminal, store the modified current ordering information as current ordering information corresponding to the meal location identification information; and/or the first and/or second light sources,
and the ordering operation unit is used for generating current order information, and the generated current order information comprises the meal position identification information, so that restaurant staff can provide services for the target meal position according to the generated current order information.
8. An ordering server comprising: processor, memory and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the method according to any of claims 1 to 4 when executed by the processor.
9. A storage medium characterized in that the storage medium has stored therein a program for implementing a method comprising any one of claims 1 to 4.
10. A food ordering system, comprising a food ordering server and at least one user terminal, wherein:
the ordering server comprises the device of any one of claims 5 to 7;
and the user terminal is used for accessing the ordering server and requesting to execute ordering related operations.
CN202010585181.4A 2020-06-24 2020-06-24 Method, device and system for preventing malicious food ordering Pending CN111737667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010585181.4A CN111737667A (en) 2020-06-24 2020-06-24 Method, device and system for preventing malicious food ordering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010585181.4A CN111737667A (en) 2020-06-24 2020-06-24 Method, device and system for preventing malicious food ordering

Publications (1)

Publication Number Publication Date
CN111737667A true CN111737667A (en) 2020-10-02

Family

ID=72650812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010585181.4A Pending CN111737667A (en) 2020-06-24 2020-06-24 Method, device and system for preventing malicious food ordering

Country Status (1)

Country Link
CN (1) CN111737667A (en)

Similar Documents

Publication Publication Date Title
US10560454B2 (en) Authentication system and method
CN103581166B (en) Location aware certification
US8839394B2 (en) Systems and methods for authenticating a user of a computer application, network, or device using a wireless device
US9438575B2 (en) Smart phone login using QR code
US9801063B2 (en) Systems and methods for authenticating a user of a computer application, network, or device using a wireless device
EP2751733B1 (en) Method and system for authorizing an action at a site
US9154952B2 (en) Systems and methods for authenticating a user of a computer application, network, or device using a wireless device
CN106716918B (en) User authentication method and system
US20140223520A1 (en) Guardian control over electronic actions
US10440572B2 (en) Systems and methods for authenticating a user of a computer application, network, or device using a wireless device
KR101025807B1 (en) Authentication method and authentication server
JP2019504384A (en) Biometric information authentication system and method using financial card information stored in mobile communication terminal
CN113326488A (en) Personal information protection system and method
CA3113017A1 (en) System for authentication patron computing device and allowing ordering food therefrom at restaurant
CN111709835B (en) Service processing method and system
CN111738471A (en) Management method, device and system for ordering in advance
US11178139B1 (en) Secure computer-implemented authentication
CN111737667A (en) Method, device and system for preventing malicious food ordering
JP2002366517A (en) Method, system for providing service, processing center device and program
WO2003090138A1 (en) A system for generating/retrieving secure documents using on-line fingerprint authentication and a method therefor
CN105141577B (en) A kind of asynchronous login method of oriented of Information System
CN110210831B (en) Office examination and approval method and system based on data short message technology
CN114866360B (en) Service processing method based on code scanning and related device
JP2019083037A (en) Ticket provision method, ticket provision device, and program for portable terminal
WO2018232659A1 (en) Mobile terminal privacy processing method and mobile terminal

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