CN109801136A - Method of ordering, system, terminal, server and the medium for preventing malice from placing an order - Google Patents
Method of ordering, system, terminal, server and the medium for preventing malice from placing an order Download PDFInfo
- Publication number
- CN109801136A CN109801136A CN201910042570.XA CN201910042570A CN109801136A CN 109801136 A CN109801136 A CN 109801136A CN 201910042570 A CN201910042570 A CN 201910042570A CN 109801136 A CN109801136 A CN 109801136A
- Authority
- CN
- China
- Prior art keywords
- ordering
- order
- terminal
- user
- sent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention discloses a kind of method of ordering, system, terminal, server and media for preventing malice from placing an order, which comprises receives the signal of user's triggering, the request that will order is sent to server;Display server response is ordered the link of ordering that sends after request, and with random code of ordering, random code of ordering has a timestamp for link of ordering, and with order number binding;It is ordered after link when the user clicks, the random code that will order is sent to server, so that server is after receiving and ordering random code, whether judgement link of ordering is expired, if it is not, geographical location acquisition request is sent to terminal;The geographical location acquisition request that response server is sent, obtains the geographical location of user, the geographical location of user is sent to server, so that server judges whether user orders in default range of ordering, if so, the page that will order is sent to terminal;It shows the page of ordering, and stores random code of ordering.The present invention can prevent user's malice from placing an order, and improve the safety ordered.
Description
Technical field
The present invention relates to a kind of method of ordering, system, terminal, server and media for preventing malice from placing an order, and belong to interconnection
Site meal application field.
Background technique
With the fast development of internet, meal ordering system is as internet+food and drink scheme because being greatly improved a little
Meal efficiency and popularized on a large scale in catering industry.But how preventing user's malice from ordering, to also become meal ordering system urgently to be resolved
One of safety problem.For example, user clicks consumed the link of ordering finished in the past, order again, two dimensional code that desktop is ordered is clapped
After lower, outside StoreFront elsewhere by barcode scanning to the tables carry out malice order, the order of malicious modification other tables
Deng.
Although meal ordering system function on the market is fairly perfect, on the problem of preventing user's malice from ordering also
It is a bit deficient in, the meal ordering system of some realizes on time dimension as the function for link setting effective time of ordering at present
Can, but the meal ordering system of the overwhelming majority and the scope control of ordering being not implemented on Spatial Dimension, it is sensitive for order id etc. to believe
Breath is not hidden processing, but is directly exposed to and chains, and user is allowed arbitrarily to change order information when can order,
And then operation is ordered food to other orders.
Summary of the invention
In order to solve the problems, such as the above-mentioned prior art order in the presence of malice, malicious modification order, the present invention provides one kind
Method of ordering, system, terminal, server and the medium for preventing malice from placing an order.
The first purpose of this invention is to provide a kind of method of ordering for preventing malice from placing an order applied to terminal.
Second object of the present invention is to provide a kind of method of ordering for preventing malice from placing an order applied to server.
Third object of the present invention is to provide a kind of meal ordering system for preventing malice from placing an order applied to terminal.
Fourth object of the present invention is to provide a kind of meal ordering system for preventing malice from placing an order applied to server.
Of the invention the 5th is designed to provide a kind of terminal.
Of the invention the 6th is designed to provide a kind of server.
Of the invention the 7th is designed to provide a kind of storage medium.
The first purpose of this invention can be reached by adopting the following technical scheme that:
A kind of method of ordering for preventing malice from placing an order, is applied to terminal, which comprises
The signal of user's triggering is received, the request that will order is sent to server;
Display server response is ordered the link of ordering that sends after request;Wherein, the link of ordering is random with ordering
Code, the random code of ordering are bound with timestamp, and with order number;
It is ordered after link when the user clicks, the random code that will order is sent to server, so that server is ordered receiving
After random code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
The geographical location acquisition request that response server is sent, obtains the geographical location of user, by the geographical location of user
It is sent to server, so that server judges whether user orders in default range of ordering, if so, the page that will order is sent to
Terminal;
It shows the page of ordering, and stores random code of ordering.
Further, before the geographical location for obtaining user, further includes:
Judge whether user authorizes the geographical location for obtaining user, if it is not, prompting geographical location unauthorized and requesting user
Authorization.
Second object of the present invention can be reached by adopting the following technical scheme that:
A kind of method of ordering for preventing malice from placing an order, is applied to server, which comprises
Receive the request of ordering that terminal is sent;
The request of ordering that terminal is sent is responded, generates random code of ordering, and send the link of ordering with random code of ordering
To terminal;Wherein, the random code of ordering is bound with timestamp, and with order number;
After user orders link by terminal, the random code of ordering that terminal is sent is received, judgement link of ordering is
It is no expired, if it is not, geographical location acquisition request is sent to terminal;
It receives terminal and responds the user's geographical location information sent after geographical position acquisition request, judge user whether pre-
Set up an office to eat and order in range, if so, the page that will order is sent to terminal so that terminal shows the page of ordering, and store order with
Machine code.
Further, it is described judgement order link it is whether expired, specifically:
According to the sending time and receiving time of random code record of ordering, judge receiving time and sending time difference whether
In preset time range, if so, order link it is not out of date, if it is not, then order link it is out of date.
Further, it is described judgement order link whether it is expired before, further includes:
Whether in the database user related information is judged, if it is not, user information is stored in database.
Third object of the present invention can be reached by adopting the following technical scheme that:
A kind of meal ordering system for preventing malice from placing an order, is applied to terminal, the system comprises:
It orders request sending module, for receiving the signal of user's triggering, the request that will order is sent to server;
It orders and links receiving module, the link of ordering sent after requesting of ordering for display server response;Wherein, described
Link order with random code of ordering, the random code of ordering is bound with timestamp, and with order number;
Random code of ordering sending module, after link of ordering when the user clicks, the random code that will order is sent to server,
So that server is after receiving and ordering random code, whether judgement link of ordering is expired, if it is not, geographical location acquisition request is sent out
Give terminal;
Geographical location information obtains module, for the geographical location acquisition request that response server is sent, obtains user's
The geographical location of user is sent to server by geographical location, so that server judges whether user orders in range default
It orders, if so, the page that will order is sent to terminal;
It orders page display module, for showing the page of ordering, and stores random code of ordering.
Fourth object of the present invention can be reached by adopting the following technical scheme that:
A kind of meal ordering system for preventing malice from placing an order, is applied to server, the system comprises:
It orders request receiving module, for receiving the request of ordering of terminal transmission;
Ask respond module of ordering generates random code of ordering, and send and have for responding the request of ordering of terminal transmission
The link of ordering for random code of ordering is to terminal;Wherein, the random code of ordering is bound with timestamp, and with order number;
Random code of ordering receiving module, for after user orders link by terminal, receiving the point that terminal is sent
Meal random code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
It orders page sending module, responds the user geographical location sent after geographical position acquisition request for receiving terminal
Information, judges whether user orders in default range of ordering, if so, the page that will order is sent to terminal, so that terminal is shown
It orders the page, and stores random code of ordering.
5th purpose of the invention can be reached by adopting the following technical scheme that:
A kind of terminal, including processor and for the memory of storage processor executable program, the processor is held
When the program of line storage storage, the above-mentioned method of ordering for preventing malice from placing an order applied to terminal is realized.
6th purpose of the invention can be reached by adopting the following technical scheme that:
A kind of server, including processor and for the memory of storage processor executable program, the processor
When executing the program of memory storage, the above-mentioned method of ordering for preventing malice from placing an order applied to server is realized.
7th purpose of the invention can be reached by adopting the following technical scheme that:
A kind of storage medium is stored with program, when described program is executed by processor, realizes above-mentioned applied to the anti-of terminal
The method of ordering only maliciously to place an order, or realize the above-mentioned method of ordering for preventing malice from placing an order applied to server.
The present invention have compared with the existing technology it is following the utility model has the advantages that
1, the present invention request that can will be ordered by terminal is sent to server, and server response is ordered after request, by band
There is the link of ordering for random code of ordering to be sent to terminal, random code of ordering has timestamp, after user orders link, clothes
Business device by judgement order link it is whether expired, can be prevented on time dimension user malice place an order, judgement order link not
When expired, after server obtains the geographical location of user by terminal, by judging whether user is presetting point in range of ordering
Meal, can be prevented on Spatial Dimension user malice place an order, i.e., binding time and two, space dimension come prevent malice order.
2, the present invention generates random code of ordering using server and will be ordered after transmission orders the page to terminal by terminal
Random code is stored, and when user places an order or pays every time, to background authentication and exchanges order number for using random code of ordering, will
The sensitive informations such as order number are hidden, and traditional method for directly transmitting order number in the interface is substituted, improves meal ordering system
Safety, avoid user by modification order number, thus prevent to a certain extent user malice order, and introduce order
The method of random code realizes simple, verifying and displacement efficiency height.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the flow chart of the method for ordering for preventing malice from placing an order of the embodiment of the present invention 1.
Fig. 2 is the flow chart of the method for ordering for preventing malice from placing an order of the embodiment of the present invention 2.
Fig. 3 is the structural block diagram of the meal ordering system for preventing malice from placing an order of the embodiment of the present invention 3.
Fig. 4 is the structural block diagram of the meal ordering system for preventing malice from placing an order of the embodiment of the present invention 4.
Fig. 5 is the structural block diagram of the terminal of the embodiment of the present invention 5.
Fig. 6 is the structural block diagram of the server of the embodiment of the present invention 6.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiments of the present invention, instead of all the embodiments, based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment 1:
As shown in Figure 1, present embodiments providing a kind of method of ordering for preventing malice from placing an order, this method is applied to terminal,
The following steps are included:
S101, the signal for receiving user's triggering, the request that will order are sent to server.
In the present embodiment, the signal of user's triggering is the signal triggered when user's using terminal scans the two-dimensional code, wherein two
Dimension code is that the desktop being placed on each tables in eating and drinking establishment is ordered two dimensional code, and user's using terminal, which scans the two-dimensional code, can pass through terminal
The wechat of upper installation scans the two-dimensional code, and when scanning the two-dimensional code successfully, terminal receives the signal of its triggering, and terminal receives user
After the signal of triggering, the request that will order is sent to server.
It will be understood by those skilled in the art that payment can also be passed through other than user scans the two-dimensional code except through wechat
The common APP such as treasured (Application, application program) is scanned the two-dimensional code, can also be special by downloading the eating and drinking establishment of installation in advance
It is scanned the two-dimensional code with APP.
S102, display server response order the link of ordering that sends after request.
Server responds the request of ordering after receiving and ordering request, and generation is ordered random code order_key, the point
The random code order_key that eats has timestamp, and binds with order number (order id), the length is 256, and sends and has point
The link of ordering of meal random code order_key is to terminal.
Terminal shows the link of ordering, user is allow to order this after the link of ordering for receiving server transmission
Link carries out clicking operation and enters step S103 when the user clicks after the link of ordering.
S103, the random code that will order are sent to server.
The terminal random code that will order is sent to server, so that server is after receiving and ordering random code, judgement is ordered
Whether link is expired, is sent to terminal if so, will order and link information out of date, user rescans two dimension by terminal notifying
Code, return step S101 enter step S104 if it is not, geographical location acquisition request is sent to terminal.
Since the random code order_key that orders is with timestamp, has recorded server and send the random code order_ that orders
Time of key, and receive the time of random code order_key of ordering, therefore whether judgement link of ordering is expired, specifically:
According to the sending time and receiving time of random code order_key record of ordering, when judging receiving time and sending
Between difference whether in preset time range, link not out of date if so, ordering, link out of date, this implementation if it is not, then ordering
The preset time range of example is 0~10 minute, in preset time range, that is, orders to be linked in 10 minutes and be clicked by user,
Illustrating to order, it is not out of date to link, and not in preset time range, that is, more than 10 minutes ability of link of ordering is clicked by user, illustrates a little
Meal connection is out of date, and whether being ordered by judgement, it is expired to link, and can prevent user's malice from placing an order on time dimension.
The geographical location acquisition request that S104, response server are sent, obtains the geographical location of user, by the geography of user
Position is sent to server.
The present embodiment can also include: to judge whether user authorizes to obtain user before the geographical location for obtaining user
Geographical location.Specifically, judge whether user authorizes the geographical location for obtaining user, judged according to the APP that user uses, with
For wechat, if wechat is authorized the geographical location for obtaining user by user before this, it is judged as YES, directly acquires the ground of user
Position is managed, if wechat is not authorized the geographical location for obtaining user by user before this, is judged as NO, obtains user after user's authorization
Geographical location.
Terminal responds the geographical location acquisition request, obtains after the geographical location acquisition request for receiving server transmission
The geographical location of user is sent to server by the geographical location for taking family, so that whether server judges user in preset
It orders in meal range, if so, the page that will order is sent to terminal, enters step S105, if it is not, by user not in default model of ordering
It orders in enclosing and is sent to terminal, do not ordered in range default by the current location of terminal notifying user, such as default model of ordering
A border circular areas for eating and drinking establishment's range is enclosed, user just can normally order only in the border circular areas, use by judgement
Whether family orders in default range of ordering, and can prevent user's malice from placing an order on Spatial Dimension.
S105, it shows the page of ordering, and stores random code of ordering.
Terminal shows the page of ordering after the page of ordering for receiving server transmission, and stores random code of ordering
Order_key, user can be placed an order by the page of ordering, and random code of ordering order_key can store the cookies in terminal
In, when user places an order or pays every time, to background authentication and order number is exchanged for using the random code order_key that orders, will be ordered
The sensitive informations such as odd numbers are hidden, and avoid user from carrying out malice by modification order number and order.
Embodiment 2:
As shown in Fig. 2, present embodiments providing a kind of method of ordering for preventing malice from placing an order, this method is applied to service
Device, comprising the following steps:
S201, the request of ordering that terminal is sent is received.
User's using terminal scans the two-dimensional code can be by the wechat APP (Application, using journey that installs in terminal
Sequence) it scans the two-dimensional code, when scanning the two-dimensional code successfully, wherein two dimensional code is that the desktop being placed on each tables in eating and drinking establishment orders two
Code is tieed up, terminal receives the signal of its triggering, and after terminal receives the signal of user's triggering, the request that will order is sent to server,
It is received by server.
The request of ordering that S202, response terminal are sent, generates random code of ordering, and send ordering with random code of ordering
It links to terminal.
Server responds the request of ordering after receiving and ordering request, and generation is ordered random code order_key, the point
The random code order_key that eats has timestamp, and binds with order number (order id), the length is 256, and sends and has point
The link of ordering of meal random code order_key is to terminal.
Terminal shows the link of ordering, user is allow to order this after the link of ordering for receiving server transmission
Link carries out clicking operation, and when the user clicks after the link of ordering, the terminal random code that will order is sent to server, enters step
S203。
S203, the random code of ordering that terminal is sent is received, whether judging to order, it is expired to link.
The random code of ordering that server receiving terminal is sent, whether judging to order, it is expired to link, if so, link will be ordered
Outdated information is sent to terminal, rescans two dimensional code, return step S201, if it is not, by geographical location by terminal notifying user
Acquisition request is sent to terminal.
Since the random code order_key that orders is with timestamp, has recorded server and send the random code order_ that orders
Time of key, and receive the time of random code order_key of ordering, therefore whether judgement link of ordering is expired, specifically:
According to the sending time and receiving time of random code order_key record of ordering, when judging receiving time and sending
Between difference whether in preset time range, link not out of date if so, ordering, link out of date, this implementation if it is not, then ordering
The preset time range of example is 0~10 minute, in preset time range, that is, orders to be linked in 10 minutes and be clicked by user,
Illustrating to order, it is not out of date to link, and not in preset time range, that is, more than 10 minutes ability of link of ordering is clicked by user, illustrates a little
Meal connection is out of date, and whether being ordered by judgement, it is expired to link, and can prevent user's malice from placing an order on time dimension.
The present embodiment judgement order link whether it is expired before, can also include: to judge user related information whether
In the database.Specifically, judge user related information whether in the database, it can be determined that the cell-phone number of user, wechat
Number etc. relevant informations whether in the database, if so, illustrate that user once ordered in this eating and drinking establishment, judgement order link whether mistake
Phase, if it is not, illustrating user, this eating and drinking establishment does not order, and the relevant informations such as the cell-phone number of user, WeChat ID is stored in database, then
Whether judging to order again, it is expired to link.
S204, the user's geographical location information sent after the geographical position acquisition request of terminal response is received, judges that user is
It is no to order in default range of ordering.
Terminal responds the geographical location acquisition request, obtains after the geographical location acquisition request for receiving server transmission
The geographical location of user is sent to server by the geographical location for taking family.
Whether server judges user in default range of ordering after the user's geographical location information for receiving terminal transmission
Inside order, if so, the page that will order is sent to terminal, if it is not, user, which is not ordered in default range of ordering, is sent to terminal,
It is not ordered in range default by the current location of terminal notifying user, such as default one for ordering that range is eating and drinking establishment's range
Whether border circular areas, user just can normally order only in the border circular areas, by judging user in default range of ordering
It inside orders, can prevent user's malice from placing an order on Spatial Dimension.
Terminal shows the page of ordering after the page of ordering for receiving server transmission, and stores random code of ordering
Order_key, user can be placed an order by the page of ordering, and random code of ordering order_key can store the cookies in terminal
In, when user places an order or pays every time, to background authentication and order number is exchanged for using the random code order_key that orders, will be ordered
The sensitive informations such as odd numbers are hidden, and avoid user from carrying out malice by modification order number and order.
It will be understood by those skilled in the art that realizing that all or part of the steps in the method for above-described embodiment 1~2 can be with
Relevant hardware is instructed to complete by program, corresponding program can store in computer readable storage medium.
It should be noted that although describing the method operation of above-described embodiment 1~2 in the accompanying drawings with particular order, this
These operations must be executed in this particular order by not requiring that or implying, or is had to carry out and operated just shown in whole
It is able to achieve desired result.On the contrary, the step of describing can change and execute sequence.Additionally or alternatively, it is convenient to omit certain
Multiple steps are merged into a step and executed, and/or a step is decomposed into execution of multiple steps by step.
Embodiment 3:
As shown in figure 3, present embodiments providing a kind of meal ordering system for preventing malice from placing an order, which is applied to terminal,
It include order request sending module 301, ordering links receiving module 302, random code of ordering sending module 303, geographical location
Data obtaining module 304 and page display module 305 of ordering, the concrete function of modules are as follows:
The request sending module 301 of ordering, for receiving the signal of user's triggering, the request that will order is sent to service
Device.
Described order links receiving module 302, the link of ordering sent after requesting of ordering for display server response;Its
In, with random code of ordering, the random code of ordering is bound with timestamp, and with order number for the link of ordering.
The random code sending module 303 of ordering, after link of ordering when the user clicks, the random code that will order is sent to
Server, so that server is after receiving and ordering random code, whether judgement link of ordering is expired, if it is not, geographical location is obtained
Request is taken to be sent to terminal.
The geographical location information obtains module 304, for the geographical location acquisition request that response server is sent, obtains
The geographical location of user is sent to server by the geographical location of user, so that server judges whether user orders default
It orders in range, if so, the page that will order is sent to terminal.
The page display module 305 of ordering for showing the page of ordering, and stores random code of ordering.
The specific implementation of modules may refer to above-described embodiment 1 in the present embodiment, and this is no longer going to repeat them.
Embodiment 4:
As shown in figure 4, present embodiments providing a kind of meal ordering system for preventing malice from placing an order, which is applied to service
Device comprising request receiving module of ordering 401, ask respond module of ordering 402, random code of ordering receiving module 403 and order
The concrete function of page sending module 404, modules is as follows:
The request receiving module 401 of ordering, for receiving the request of ordering of terminal transmission.
The ask respond module 402 of ordering, the request of ordering sent for responding terminal generate random code of ordering, and
The link of ordering with random code of ordering is sent to terminal;Wherein, the random code of ordering is with timestamp, and ties up with order number
It is fixed.
The random code receiving module 403 of ordering, for after user orders link by terminal, receiving terminal hair
The random code of ordering sent, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal.
The page sending module 404 of ordering judges that user is for receiving user's geographical location information of terminal transmission
It is no to order in default range of ordering, if so, the page that will order is sent to terminal, so that terminal shows the page of ordering, and store
It orders random code.
The specific implementation of modules may refer to above-described embodiment 2 in the present embodiment, and this is no longer going to repeat them.
It should be noted that the system that above-described embodiment 3~4 provides only is illustrated with the division of above-mentioned each functional module
Illustrate, in practical applications, can according to need and be completed by different functional modules above-mentioned function distribution, i.e., by internal junction
Structure is divided into different functional modules, to complete all or part of the functions described above.
Embodiment 5:
The present embodiment provides a kind of terminal, which can be smart phone, tablet computer etc. that user carries, this implementation
Example is illustrated terminal, by taking smart phone as an example as shown in figure 5, the terminal may include radio circuit 501, memory
502, input unit 503, display unit 504, sensor 505, voicefrequency circuit 506, camera 507, processor 508, power supply 509
Equal components.
Radio circuit 501 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment are communicated.Radio circuit 501 may include various existing for executing the electricity of these functions
Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,
Memory etc..Radio circuit 501 can be communicated or be led to various networks such as internet, intranet, wireless network
Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or
Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, and including but not limited to the whole world is mobile logical
Letter system (Global System for Mobile Communication, GSM), enhanced mobile communication technology
(Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division
Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology
(time division multiple access, TDMA), adopting wireless fidelity technology (Wireless Fidelity, WiFi), net
Network phone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide
Interoperability for Microwave Access, Wi-Max), other are for mail, instant messaging and short message
Agreement and any other suitable communications protocol, or even may include the agreement that those are not developed currently yet.
Memory 502 includes computer readable storage medium, can be used for storing computer program, processor 508 passes through fortune
The computer program that row is stored in memory 502 is realized and is obtained in advance thereby executing various function application and data processing
If the function of the corresponding resource of event.Memory 502 may include high speed random access memory, may also include nonvolatile memory,
Such as one or more magnetic storage device, flash memory or other non-volatile solid state memories;In addition, memory 502 can be into
One step includes the memory remotely located relative to processor 508, these remote memories can pass through network connection to terminal;
Wherein, the network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof;Processor
1008 by operation store the computer program in memory 502 when, to realize the method for ordering of above-described embodiment 1, such as
Under:
The signal of user's triggering is received, the request that will order is sent to server;
Display server response is ordered the link of ordering that sends after request;Wherein, the link of ordering is random with ordering
Code, the random code of ordering are bound with timestamp, and with order number;
It is ordered after link when the user clicks, the random code that will order is sent to server, so that server is ordered receiving
After random code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
The geographical location acquisition request that response server is sent, obtains the geographical location of user, by the geographical location of user
It is sent to server, so that server judges whether user orders in default range of ordering, if so, the page that will order is sent to
Terminal;
It shows the page of ordering, and stores random code of ordering.
Input unit 503 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input;Specifically, input unit 503 may include touching
Sensitive surfaces and other input equipments, touch sensitive surface are also referred to as touch display screen or Trackpad, collect user on it or
Neighbouring touch operation (for example user on touch sensitive surface or is being touched using any suitable object or attachment such as finger, stylus
Operation near sensitive surfaces), and corresponding attachment device is driven according to preset formula.Optionally, touch sensitive surface can wrap
Include both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect
Touch operation bring signal, transmits a signal to touch controller;Touch controller receives touch from touch detecting apparatus
Information, and be converted into contact coordinate, then give processor 180, and order that processor 508 is sent can be received and held
Row.Furthermore, it is possible to realize touch sensitive surface using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching
Sensitive surfaces, input unit 503 can also include other input equipments, and specifically, other input equipments can include but is not limited to
One of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are more
Kind.
Display unit 504 can be used for showing information input by user or be supplied to the information of user with the various figures of terminal
Shape user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof;Display is single
Member 504 may include display panel, optionally, can using LCD (Liquid Crystal Display, liquid crystal display),
The forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel;Further
Ground, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to
Device 508 is followed by subsequent processing device 508 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event
Visual output, touch sensitive surface and display panel output and input function as two independent components to realize, in certain feelings
Under condition, touch sensitive surface and display panel can also be integrated and realize and output and input function.
Sensor 505 is at least a kind of, such as optical sensor, motion sensor and other sensors.Specifically, light passes
Sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be adjusted according to the light and shade of ambient light
The brightness of display panel is saved, proximity sensor can close display panel and/or backlight when terminal is moved in one's ear;As fortune
One kind of dynamic sensor, gravity accelerometer can detect the size of (generally three axis) acceleration in all directions, static
When can detect that size and the direction of gravity, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, dependent game,
Magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Gyroscope that terminal can also configure, air pressure
The other sensors such as meter, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 506 connects loudspeaker and microphone, it is possible to provide the audio interface between user and terminal.Voicefrequency circuit
Electric signal after the audio data received conversion can be transferred to loudspeaker, it is defeated to be converted to voice signal by loudspeaker by 506
Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 506
Data, then such as another terminal will be sent to through RF circuit 601 after audio data output processor 508 handles, or by sound
Frequency is further processed according to output to memory 502.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware
The communication of earphone and terminal.
Camera 507 can acquire image information, such as facial image, ambient image, apply journey in wechat, Alipay etc.
In sequence, it can also be scanned the two-dimensional code by camera 507.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 502, and call and be stored in memory 502
Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 508 can wrap
Include one or more processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Power supply 509 (such as battery) for give all parts power supply, it is preferred that power supply can by power-supply management system with
508 logical connection of processor, to realize the functions such as management charging, electric discharge and power managed by power-supply management system.Electricity
Source 509 can also include one or more direct current or AC power source, recharging system, power failure detection circuit, electricity
The random components such as source converter or inverter, power supply status indicator.
Embodiment 6:
A kind of server is present embodiments provided, as shown in figure 5, including the processor connected by system bus 601
602, memory and network interface 603.Wherein, processor 602 is calculated for offer and control ability, memory include non-volatile
Property storage medium 604 and built-in storage 605, the non-volatile memory medium 604 are stored with operating system, computer program sum number
According to library, which provides environment for the operation of operating system and computer program in non-volatile memory medium, meter
When calculation machine program is executed by processor 602, the method for ordering of above-described embodiment 2 is realized, as follows:
Receive the request of ordering that terminal is sent;
The request of ordering that terminal is sent is responded, generates random code of ordering, and send the link of ordering with random code of ordering
To terminal;Wherein, the random code of ordering is bound with timestamp, and with order number;
After user orders link by terminal, the random code of ordering that terminal is sent is received, judgement link of ordering is
It is no expired, if it is not, geographical location acquisition request is sent to terminal;
It receives terminal and responds the user's geographical location information sent after geographical position acquisition request, judge user whether pre-
Set up an office to eat and order in range, if so, the page that will order is sent to terminal so that terminal shows the page of ordering, and store order with
Machine code.
Embodiment 7:
A kind of storage medium is present embodiments provided, which is computer readable storage medium, is stored with meter
Calculation machine program when described program is executed by processor, when processor executes the computer program of memory storage, realizes above-mentioned reality
The method of ordering of example 1 is applied, as follows:
The signal of user's triggering is received, the request that will order is sent to server;
Display server response is ordered the link of ordering that sends after request;Wherein, the link of ordering is random with ordering
Code, the random code of ordering are bound with timestamp, and with order number;
It is ordered after link when the user clicks, the random code that will order is sent to server, so that server is ordered receiving
After random code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
The geographical location acquisition request that response server is sent, obtains the geographical location of user, by the geographical location of user
It is sent to server, so that server judges whether user orders in default range of ordering, if so, the page that will order is sent to
Terminal;
It shows the page of ordering, and stores random code of ordering.
Embodiment 8:
A kind of storage medium is present embodiments provided, which is computer readable storage medium, is stored with meter
Calculation machine program when described program is executed by processor, when processor executes the computer program of memory storage, realizes above-mentioned reality
The method of ordering of example 2 is applied, as follows:
Receive the request of ordering that terminal is sent;
The request of ordering that terminal is sent is responded, generates random code of ordering, and send the link of ordering with random code of ordering
To terminal;Wherein, the random code of ordering is bound with timestamp, and with order number;
After user orders link by terminal, the random code of ordering that terminal is sent is received, judgement link of ordering is
It is no expired, if it is not, geographical location acquisition request is sent to terminal;
It receives terminal and responds the user's geographical location information sent after geographical position acquisition request, judge user whether pre-
Set up an office to eat and order in range, if so, the page that will order is sent to terminal so that terminal shows the page of ordering, and store order with
Machine code.
Storage medium in above-described embodiment 7~8 can be disk, CD, computer storage, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), USB flash disk, mobile hard disk
Equal media.
In conclusion the present invention can will be ordered by terminal, request is sent to server, and server responds request of ordering
Afterwards, it will be sent to terminal with the link of ordering of random code of ordering, random code of ordering has timestamp, orders chain in user
After connecing, server by judgement order link it is whether expired, can be prevented on time dimension user malice place an order, judgement is ordered
When linking not out of date, after server obtains the geographical location of user by terminal, by judging user whether in default model of ordering
It orders in enclosing, can prevent user's malice from placing an order on Spatial Dimension, is i.e. binding time and two, space dimension prevents malice
It places an order;In addition, the present invention, which generates random code of ordering using server, will be ordered after transmission orders the page to terminal by terminal
Random code is stored, and when user places an order or pays every time, to background authentication and exchanges order number for using random code of ordering, will
The sensitive informations such as order number are hidden, and traditional method for directly transmitting order number in the interface is substituted, improves meal ordering system
Safety, avoid user by modification order number, thus prevent to a certain extent user malice order, and introduce order
The method of random code realizes simple, verifying and displacement efficiency height.
The above, only the invention patent preferred embodiment, but the scope of protection of the patent of the present invention is not limited to
This, anyone skilled in the art is in the range disclosed in the invention patent, according to the present invention the skill of patent
Art scheme and its inventive concept are subject to equivalent substitution or change, belong to the scope of protection of the patent of the present invention.
Claims (10)
1. a kind of method of ordering for preventing malice from placing an order, is applied to terminal, which is characterized in that the described method includes:
The signal of user's triggering is received, the request that will order is sent to server;
Display server response is ordered the link of ordering that sends after request;Wherein, the link of ordering is with random code of ordering, institute
Random code of ordering is stated with timestamp, and bind with order number;
Ordered after link when the user clicks, the random code that will order is sent to server so that server receive order it is random
After code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
The geographical location acquisition request that response server is sent, obtains the geographical location of user, and the geographical location of user is sent
To server, so that server judges whether user orders in default range of ordering, if so, the page that will order is sent to end
End;
It shows the page of ordering, and stores random code of ordering.
2. method of ordering according to claim 1, which is characterized in that before the geographical location for obtaining user, also wrap
It includes:
Judge whether user authorizes the geographical location for obtaining user, if it is not, prompt geographical location unauthorized and request user authorization.
3. a kind of method of ordering for preventing malice from placing an order, is applied to server, which is characterized in that the described method includes:
Receive the request of ordering that terminal is sent;
The request of ordering that terminal is sent is responded, random code of ordering is generated, and sends the link of ordering with random code of ordering to end
End;Wherein, the random code of ordering is bound with timestamp, and with order number;
After user orders link by terminal, receive terminal send random code of ordering, judgement order link whether mistake
Phase, if it is not, geographical location acquisition request is sent to terminal;
It receives terminal and responds the user's geographical location information sent after geographical position acquisition request, judge user whether in preset
It orders in meal range, if so, the page that will order is sent to terminal, so that terminal shows the page of ordering, and stores random code of ordering.
4. method of ordering according to claim 3, which is characterized in that it is described judgement order link it is whether expired, specifically:
According to the sending time and receiving time of random code record of ordering, judge the difference of receiving time and sending time whether pre-
If in time range, if so, order link it is not out of date, if it is not, then order link it is out of date.
5. according to the described in any item method of ordering of claim 3-4, which is characterized in that it is described judgement order link it is whether expired
Before, further includes:
Whether in the database user related information is judged, if it is not, user information is stored in database.
6. a kind of meal ordering system for preventing malice from placing an order, is applied to terminal, which is characterized in that the system comprises:
It orders request sending module, for receiving the signal of user's triggering, the request that will order is sent to server;
It orders and links receiving module, the link of ordering sent after requesting of ordering for display server response;Wherein, described to order
Link is bound with random code of ordering, the random code of ordering with timestamp, and with order number;
Random code of ordering sending module, after link of ordering when the user clicks, the random code that will order is sent to server, so that
Server is after receiving and ordering random code, and whether judgement link of ordering is expired, if it is not, geographical location acquisition request is sent to
Terminal;
Geographical location information obtains module, for the geographical location acquisition request that response server is sent, obtains the geography of user
The geographical location of user is sent to server by position, so that server judges whether user orders in default range of ordering,
If so, the page that will order is sent to terminal;
It orders page display module, for showing the page of ordering, and stores random code of ordering.
7. a kind of meal ordering system for preventing malice from placing an order, is applied to server, which is characterized in that the system comprises:
It orders request receiving module, for receiving the request of ordering of terminal transmission;
Ask respond module of ordering generates random code of ordering, and send to have and order for responding the request of ordering of terminal transmission
The link of ordering of random code is to terminal;Wherein, the random code of ordering is bound with timestamp, and with order number;
Random code of ordering receiving module, for after user orders link by terminal, receive that terminal sends order with
Machine code, whether judging to order, it is expired to link, if it is not, geographical location acquisition request is sent to terminal;
It orders page sending module, responds the user geographical location letter sent after geographical position acquisition request for receiving terminal
Breath, judges whether user orders in default range of ordering, if so, the page that will order is sent to terminal, so that terminal shows point
The meal page, and store random code of ordering.
8. a kind of terminal, including processor and for the memory of storage processor executable program, which is characterized in that described
When processor executes the program of memory storage, the described in any item method of ordering of claim 1-2 are realized.
9. a kind of server, including processor and for the memory of storage processor executable program, which is characterized in that institute
When stating the program of processor execution memory storage, the described in any item method of ordering of claim 3-5 are realized.
10. a kind of storage medium, is stored with program, which is characterized in that when described program is executed by processor, realize claim
The described in any item method of ordering of 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910042570.XA CN109801136B (en) | 2019-01-17 | 2019-01-17 | Food ordering method, system, terminal, server and medium for preventing malicious ordering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910042570.XA CN109801136B (en) | 2019-01-17 | 2019-01-17 | Food ordering method, system, terminal, server and medium for preventing malicious ordering |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109801136A true CN109801136A (en) | 2019-05-24 |
CN109801136B CN109801136B (en) | 2021-04-23 |
Family
ID=66559430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910042570.XA Active CN109801136B (en) | 2019-01-17 | 2019-01-17 | Food ordering method, system, terminal, server and medium for preventing malicious ordering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801136B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111524041A (en) * | 2020-03-31 | 2020-08-11 | 北京辰森世纪科技股份有限公司 | Ordering processing method, device and system based on dynamic content service |
CN111786938A (en) * | 2020-03-06 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Method, system and electronic equipment for preventing malicious resource acquisition |
JP2022089375A (en) * | 2020-12-04 | 2022-06-16 | 株式会社ビジネスラボ | Order system, order method, and computer program |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279684A (en) * | 2013-06-10 | 2013-09-04 | 广州市沃希信息科技有限公司 | Ordering method and system based on two-dimensional code |
KR20140128514A (en) * | 2013-04-26 | 2014-11-06 | 에스케이플래닛 주식회사 | Commodity odering method and device using mobile application |
CN104809612A (en) * | 2015-04-23 | 2015-07-29 | 联动优势电子商务有限公司 | Order payment method, server and mobile terminal |
CN104867068A (en) * | 2015-05-28 | 2015-08-26 | 冯林 | Intelligent food ordering system based on graphic code |
CN105512881A (en) * | 2015-12-09 | 2016-04-20 | 联动优势电子商务有限公司 | Method and terminal for completing payment on the basis of two-dimensional code |
CN107886449A (en) * | 2017-11-29 | 2018-04-06 | 芽米科技成都有限公司 | A kind of smart machine scans method for ordering |
-
2019
- 2019-01-17 CN CN201910042570.XA patent/CN109801136B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140128514A (en) * | 2013-04-26 | 2014-11-06 | 에스케이플래닛 주식회사 | Commodity odering method and device using mobile application |
CN103279684A (en) * | 2013-06-10 | 2013-09-04 | 广州市沃希信息科技有限公司 | Ordering method and system based on two-dimensional code |
CN104809612A (en) * | 2015-04-23 | 2015-07-29 | 联动优势电子商务有限公司 | Order payment method, server and mobile terminal |
CN104867068A (en) * | 2015-05-28 | 2015-08-26 | 冯林 | Intelligent food ordering system based on graphic code |
CN105512881A (en) * | 2015-12-09 | 2016-04-20 | 联动优势电子商务有限公司 | Method and terminal for completing payment on the basis of two-dimensional code |
CN107886449A (en) * | 2017-11-29 | 2018-04-06 | 芽米科技成都有限公司 | A kind of smart machine scans method for ordering |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111786938A (en) * | 2020-03-06 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Method, system and electronic equipment for preventing malicious resource acquisition |
CN111786938B (en) * | 2020-03-06 | 2021-10-15 | 北京沃东天骏信息技术有限公司 | Method, system and electronic equipment for preventing malicious resource acquisition |
CN111524041A (en) * | 2020-03-31 | 2020-08-11 | 北京辰森世纪科技股份有限公司 | Ordering processing method, device and system based on dynamic content service |
JP2022089375A (en) * | 2020-12-04 | 2022-06-16 | 株式会社ビジネスラボ | Order system, order method, and computer program |
JP7093577B2 (en) | 2020-12-04 | 2022-06-30 | 株式会社ビジネスラボ | Ordering system, ordering method, computer program |
Also Published As
Publication number | Publication date |
---|---|
CN109801136B (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200051046A1 (en) | Smart broadcasting method and apparatus | |
CN104135501B (en) | Page sharing method, Apparatus and system | |
CN104618217B (en) | Share method, terminal, server and the system of resource | |
CN105306676B (en) | Access the method, apparatus and system of smart machine | |
CN104901991B (en) | Virtual resource transfer method, device and system | |
CN104468463B (en) | Verification method, device and system | |
CN104426919B (en) | Page sharing method, apparatus and system | |
US20150302215A1 (en) | Sensitive operation verification method, terminal device, server, and verification system | |
CN105306204A (en) | Security verification method, device and system | |
KR20160143136A (en) | Location based reminder system and method for controlling the same | |
CN104202717A (en) | Information platform of basic unit-based short-range fence and application method | |
CN109801136A (en) | Method of ordering, system, terminal, server and the medium for preventing malice from placing an order | |
CN105306208A (en) | Identity verification method and identity verification device | |
CN106296255A (en) | Page info methods of exhibiting and device | |
CN104424241B (en) | Web site url processing method based on two dimensional code, apparatus and system | |
CN106534324B (en) | A kind of data sharing method and Cloud Server | |
CN105516258A (en) | Information interaction system, method and device | |
CN106331372A (en) | Data transmission method and mobile terminal | |
CN106658623A (en) | Hotspot network switching method and terminal equipment | |
CN108288154A (en) | A kind of startup method, device and mobile terminal of payment application | |
CN106255102A (en) | The authentication method of a kind of terminal unit and relevant device | |
CN106685948A (en) | Data processing method, terminal, communication device and data processing system | |
CN105320885A (en) | Method and device for detecting malicious website | |
CN104753672B (en) | The method, apparatus and terminal of account authorization | |
KR20120008555A (en) | System for loss prevention using the smart phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |