CN111260440A - Order processing method, device, storage medium and computer equipment - Google Patents

Order processing method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN111260440A
CN111260440A CN202010042335.5A CN202010042335A CN111260440A CN 111260440 A CN111260440 A CN 111260440A CN 202010042335 A CN202010042335 A CN 202010042335A CN 111260440 A CN111260440 A CN 111260440A
Authority
CN
China
Prior art keywords
terminal
information
response
ticket
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010042335.5A
Other languages
Chinese (zh)
Other versions
CN111260440B (en
Inventor
苗凡
朱建生
单杏花
阎志远
李杨
戴琳琳
杨立鹏
张志强
吕占民
王智为
景辉
李贝贝
宋春晓
江琳
贾成强
周强
李涅白
李天翼
张燕峰
单欣茹
李佳星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway Trip Science And Technology Co ltd
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
China Railway Trip Science And Technology Co ltd
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Railway Trip Science And Technology Co ltd, Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical China Railway Trip Science And Technology Co ltd
Priority to CN202010042335.5A priority Critical patent/CN111260440B/en
Publication of CN111260440A publication Critical patent/CN111260440A/en
Application granted granted Critical
Publication of CN111260440B publication Critical patent/CN111260440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Sources (AREA)

Abstract

In the technical scheme of the order processing method, the device, the storage medium and the computer device provided by the embodiment of the invention, a ticket order generation request sent by a terminal is received, the ticket order generation request is generated and carries the device information of the terminal, the response time of the terminal is determined according to the device information of the terminal, the computing power of the terminal is determined according to the response time, verification data corresponding to the computing power of the terminal is obtained, the verification data is sent to the terminal, the terminal calculates the response information according to the verification data, response data is generated according to the response information, and if the response data is detected to be the same as the verification data, a ticket order is generated. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the problem that a ticket purchasing order request is generated by high-frequency sending of the terminal with strong calculation power is avoided, so that the ticket purchasing order request can be effectively processed, and the ticket swiping problem is avoided.

Description

Order processing method, device, storage medium and computer equipment
[ technical field ] A method for producing a semiconductor device
The invention relates to the field of data processing, in particular to an order processing method, an order processing device, a storage medium and computer equipment.
[ background of the invention ]
12306 website has a Page View (PV) browsing amount of 2000 hundred million times in the peak ticket selling period, and in the face of such a high access amount, a large amount of server resources and bandwidth resources need to be consumed. The massive ticket buying requests are not real ticket buying requests, and are ticket swiping software and ticket swiping scripts, so that the abnormal ticket buying mode not only influences the fairness of ticket buying, but also brings huge pressure to the system. In the related art, the most common way is to deploy a Web Application protection system (WAF) at an access layer, and identify whether the request is a normal ticket purchase request according to a request rule, but the rule of the WAF is mostly based on a regular expression, that is, HTTP is understood from the perspective of a text, and a problem that a false alarm rate and a leak rate cannot be balanced is usually caused according to simple regular matching. Therefore, how to effectively process the ticket purchasing request and avoid the problem of ticket refreshing becomes a problem which needs to be solved urgently.
[ summary of the invention ]
In view of this, the invention provides an order processing method, an order processing device, a storage medium and a computer device, which avoid a terminal with strong computing power from sending a request for generating a ticket-buying order at a high frequency by sending verification data corresponding to the computing power of the terminal to the terminal, so that the ticket-buying order request can be effectively processed, and the problem of ticket-swiping is avoided.
In one aspect, an embodiment of the present invention provides an order processing method, including:
receiving a ticket order generation request sent by a terminal, wherein the ticket order generation request carries equipment information of the terminal;
determining the response time of the terminal according to the equipment information of the terminal, and determining the computing power of the terminal according to the response time;
acquiring verification data corresponding to the computing power of the terminal, and sending the verification data to the terminal so that the terminal can calculate response information corresponding to the verification data according to the verification data;
receiving the response information sent by the terminal;
generating response data according to the response information;
detecting whether the response data is the same as the verification data;
and if the response data is detected to be the same as the verification data, generating a ticket purchase order.
Optionally, the request for generating a ticket purchase order carries a network data packet of the terminal;
before the determining the response time of the terminal according to the device information of the terminal and determining the computational power of the terminal according to the response time, the method further comprises the following steps:
detecting whether the ticket order generation request is a normal request or not according to the network data packet of the terminal;
and if the ticket order generation request is detected to be a normal request, continuing to execute the step of determining the response time of the terminal according to the equipment information of the terminal and determining the computing power of the terminal according to the response time.
Optionally, the network data packet includes data record information, terminal behavior information, and terminal status information;
the detecting whether the request for generating the ticket purchase order is a normal request according to the network data packet of the terminal includes:
detecting whether the terminal is in a connection state or not according to the data recording information, detecting whether the terminal is in the connection state or not according to the terminal state information, and detecting whether the access frequency of the terminal is smaller than a preset threshold or not according to the terminal behavior information, wherein the access frequency is used for indicating the access times of a page where the terminal is located when the terminal sends a request for generating a ticket purchase order;
and if the terminal is detected not to have data change, the terminal is in a connection state and the access frequency of the terminal is less than a preset threshold value, determining the ticket purchase order generation request as a normal request.
Optionally, the determining the response time of the terminal according to the device information of the terminal and determining the computational power of the terminal according to the response time include:
according to the equipment information of the terminal, inquiring historical response time of the terminal from a historical ticket purchasing record, and determining the historical response time as the response time of the terminal;
and acquiring the calculated power corresponding to the response time from a pre-established terminal calculated power library, and determining the calculated power corresponding to the response time as the calculated power of the terminal.
Optionally, the obtaining verification data corresponding to the computing power of the terminal includes:
and acquiring verification data corresponding to the computing power of the terminal from a pre-established verification database.
Optionally, the verification data comprises a product of a plurality of prime numbers.
Optionally, the response information includes a plurality of prime numbers generated by the terminal decomposing the verification data;
the generating response data according to the response information includes:
and multiplying the plurality of prime numbers to obtain response data.
In another aspect, an embodiment of the present invention provides an order processing apparatus, where the apparatus includes:
the receiving module is used for receiving a ticket order generating request sent by a terminal, wherein the ticket order generating request carries equipment information of the terminal; receiving the response information sent by the terminal;
the determining module is used for determining the response time of the terminal according to the equipment information of the terminal and determining the computing power of the terminal according to the response time;
the sending module is used for obtaining verification data corresponding to the calculation power of the terminal and sending the verification data to the terminal so that the terminal can calculate response information corresponding to the verification data according to the verification data;
the generating module is used for generating response data according to the response information; if the response data and the verification data are detected to be the same, generating a ticket purchase order;
and the detection module is used for detecting whether the response data is the same as the verification data or not.
On the other hand, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the order processing method.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and execute the steps of the order processing method described above.
In the technical scheme provided by the embodiment of the invention, a ticket order generating request sent by a terminal is received, the ticket order generating request carries characteristic information of the terminal, the response time of the terminal is determined according to the characteristic information of the terminal, the computing power of the terminal is determined according to the response time, verification data corresponding to the computing power of the terminal is obtained and sent to the terminal, so that the terminal computes response information according to the verification data, response data is generated according to the response information, and if the response data is detected to be the same as the verification data, a ticket order is generated. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the problem that a ticket purchasing order request is generated by high-frequency sending of the terminal with strong calculation power is avoided, so that the ticket purchasing order request can be effectively processed, and the ticket swiping problem is avoided.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of an order processing method according to an embodiment of the invention;
FIG. 2 is a flow chart of a method for order processing according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an order processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Fig. 1 is a flowchart of an order processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, receiving a ticket order generation request sent by a terminal, and carrying equipment information of the terminal in the ticket order generation request.
And 102, determining the response time of the terminal according to the equipment information of the terminal, and determining the computing power of the terminal according to the response time.
And 103, acquiring verification data corresponding to the calculation power of the terminal, and sending the verification data to the terminal so that the terminal calculates response information corresponding to the verification data according to the verification data.
And step 104, receiving response information sent by the terminal.
And 105, generating response data according to the response information.
And 106, detecting whether the response data is the same as the verification data.
And step 107, if the response data is detected to be the same as the verification data, generating a ticket purchase order.
In the technical scheme provided by the embodiment of the invention, a ticket-buying order generation request sent by a terminal is received, the ticket-buying order generation request carries equipment information of the terminal, the response time of the terminal is determined according to the equipment information of the terminal, the calculation power of the terminal is determined according to the response time, verification data corresponding to the calculation power of the terminal is obtained, the verification data is sent to the terminal, so that the terminal calculates the response information according to the verification data, the response data is generated according to the response information, and if the response data and the verification data are detected to be the same, a ticket-buying order is generated. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the problem that a ticket purchasing order request is generated by high-frequency sending of the terminal with strong calculation power is avoided, so that the ticket purchasing order request can be effectively processed, and the ticket swiping problem is avoided.
Fig. 2 is a flowchart of an order processing method according to another embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, receiving a request for generating a ticket order sent by a terminal, the request for generating the ticket order carrying equipment information of the terminal and a network data packet of the terminal
In the embodiment of the invention, each step is executed by a ticketing system.
In the embodiment of the invention, the terminal generates the ticket order request by inputting the ticket purchasing information in the ticket purchasing page and sends the generated ticket order request to the ticketing system. The ticket purchasing information may include a departure station, a destination station, a seat level, a passenger information, and the like.
The device information of the terminal may include IP information of the terminal, a device fingerprint, a device model, a browser type, and the like. The network data packet includes data record information, terminal behavior information, and terminal status information. Step 202, detecting whether a ticket purchase order generation request is a normal request or not according to a network data packet of the terminal, if so, executing step 203; if not, go to step 210.
In the embodiment of the invention, if the request for generating the ticket order is detected to be a normal request, the terminal is indicated to be in a normal ticket purchasing behavior, and if the request for generating the ticket order is detected to be an abnormal request, the terminal is indicated to have a ticket swiping behavior, and a message of failure in generating the ticket order request is sent to the terminal.
In the embodiment of the present invention, step 202 specifically includes:
step 2021, detecting whether the terminal has data change according to the data recording information, detecting whether the terminal is in a connection state according to the terminal state information, and detecting whether the access frequency of the terminal is less than a preset threshold value according to the terminal behavior information, where the access frequency is used to indicate the number of times of access of a page where the terminal sends a request for generating a ticket purchase order, and if so, executing step 2022; if not, go to step 210.
In the embodiment of the present invention, the detection process in step 2021 may be implemented based on a deep packet inspection technology of DPI. Deep packet inspection technology of DPI analyzes the message content in the flow deeply by analyzing and restoring the behavior and content of the application protocol deeply, further determines the type of the application protocol, emphasizes the depth and accuracy of flow inspection, and analyzes the flow behavior.
In the embodiment of the invention, the data record information comprises ticket purchasing information, designated ticket purchasing information and other information. And judging whether the data record information is subjected to data change or not by detecting the data integrity of the data record information. If the data change of the terminal is not detected according to the data recording information, the data of the data recording information is complete; if the data change occurs in the data recording information detection terminal, the data recording information is not complete.
In the embodiment of the invention, the terminal state information comprises the current network connection state of the terminal. If the terminal is detected to be in the connection state according to the terminal state information, the current network connection state of the terminal is good; and if the terminal is detected to be in the unconnected state according to the terminal state information, indicating that the current network connection state of the terminal is disconnected.
In the embodiment of the invention, the terminal behavior information comprises the access times of the page where the terminal sends the request for generating the ticket purchase order. If the access frequency of the terminal is detected to be smaller than a preset threshold value according to the terminal behavior information, the terminal is indicated to be in a normal ticket purchasing behavior; and if the access frequency of the terminal is detected to be greater than or equal to the preset threshold value according to the terminal behavior information, the fact that the terminal has a ticket swiping behavior is indicated. Wherein, the preset threshold may be 10.
Optionally, the terminal behavior information may further include a system login number of the terminal. If the login system times of the terminal are detected to be less than the preset login times according to the terminal behavior information, the terminal is indicated to be in a normal ticket purchasing behavior; and if the login system times of the terminal are detected to be larger than or equal to the preset login times according to the terminal behavior information. The preset login number may be 10.
Optionally, the terminal behavior information may further include the number of times of inputting the account password of the terminal. If the times of detecting the input account number and the password of the terminal are less than the preset times according to the terminal behavior information, the terminal is in normal ticket purchasing behavior; if the times of detecting the input account number and the password of the terminal are larger than or equal to the preset times according to the terminal behavior information, the fact that the terminal has a ticket swiping behavior is indicated. Wherein the preset number of times may be 15.
Step 2022, determine the request to generate a ticket purchase order as a normal request.
In the embodiment of the invention, if the terminal is detected not to have data change, the terminal is in a connection state and the access frequency of the terminal is less than the preset threshold value, which indicates that the terminal is in a normal ticket purchasing behavior, so that the ticket purchasing order generation request is determined as a normal request.
Step 203, inquiring the historical response time of the terminal from the historical ticket purchasing record according to the equipment information of the terminal, and determining the historical response time as the response time of the terminal.
In the embodiment of the invention, the historical response time of the terminal can comprise the time consumed by the terminal to select the ticket purchasing information and complete the ticket purchasing process. For example, the response time is the time taken by the user to select the date, after the train number, click on the reservation, and select the vehicle occupant until the ticket is successfully issued. Therefore, the ticket booking record information of the IP can be inquired from the historical ticket booking record through the IP of the terminal, so that the time consumed by the IP for completing the ticket booking process is acquired, namely the historical response time of the terminal, and the historical response time is determined as the response time of the terminal. In other embodiments of the present invention, the response time of the terminal may also be obtained in other manners, which is not limited in this respect.
And 204, acquiring the computing power corresponding to the response time from a pre-established terminal computing power library, and determining the computing power corresponding to the response time as the computing power of the terminal.
In the embodiment of the invention, the corresponding relation between the response time and the computing power is established in the terminal computing power library, and the corresponding computing power is inquired in the terminal computing power library through the response time. For example, if the response time of the terminal is 3s, the corresponding computational power can be queried to be 4 levels, so that the computational power of the terminal is determined to be 4 levels.
Further, after step 204, the method further includes:
step 204a, judging whether the calculation force of the terminal is smaller than a preset calculation force value, if so, executing step 210; if not, go to step 205.
In the embodiment of the invention, the preset calculation force value is 50 bit. If the calculation force of the terminal is judged to be smaller than the preset calculation force value, the terminal is a weak calculation force terminal and does not have the capability of decomposing verification data, so that a ticket purchasing order can be generated; if the calculation power of the terminal is greater than or equal to the preset calculation power value, which indicates that the terminal has the capability of decomposing the verification data, step 205 may be continuously performed.
Step 205, obtaining verification data corresponding to the calculation power of the terminal from a pre-established verification database.
In an embodiment of the present invention, the verification data includes a product of a plurality of prime numbers. In other embodiments, the verification data may also include other data such as a character string, and the specific form of the verification data is not specifically limited in the present invention.
And establishing a corresponding relation between the verification data and the calculation power of the terminal in a verification database, and inquiring the corresponding verification data in the verification database through the calculation power of the terminal. For example, the calculation power of the terminal is 4 levels, and the verification data corresponding to the 4 levels is inquired in the verification database and is the product of a five-digit prime number and a four-digit prime number. For example, the verification data is 8171 × 86627 ═ 707829217.
In the embodiment of the invention, the corresponding relation between the verification data and the calculation power of the terminal is established in the verification database, so that different verification data can be obtained according to the calculation power of different terminals. For example, the calculation power of the terminal is set to be larger than the calculation power of the terminal with 4 grades. For example, the verification data acquired by the powerful terminal from the verification database is a numerical value greater than 20 digits, so that the powerful terminal can decompose the numerical value greater than 20 digits within a preset time range, for example, the preset time range is 5 s; and the verification data acquired by the weak-computing terminal from the verification database is a numerical value smaller than 20 digits, so that the weak-computing terminal can decompose the numerical value smaller than 20 digits within a preset time range. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the time spent by the terminal with strong calculation power or the terminal with weak calculation power is the same when the verification data is decomposed, so that the ticket purchasing order generation request generated by the terminal with strong calculation power is sent at high frequency, and the ticket swiping problem is avoided.
And step 206, sending the verification data to the terminal so that the terminal calculates response information corresponding to the verification data according to the verification data.
In the embodiment of the present invention, the manner in which the terminal calculates the response information corresponding to the verification data according to the verification data may include a plurality of prime numbers obtained by decomposing the verification data by the terminal.
And step 207, receiving response information sent by the terminal, wherein the response information comprises a plurality of prime numbers generated by decomposing the verification data by the terminal.
In the embodiment of the invention, for example, after the terminal receives the verification data, the terminal decomposes the verification data 707829217 to decompose two prime numbers 8171 and 86627, and sends the two prime numbers 8171 and 86627 as response information to the ticketing system.
And step 208, multiplying the plurality of prime numbers to obtain response data.
In the embodiment of the present invention, for example, the decomposed two prime numbers 8171 and 86627 are multiplied to generate the response data 707829217.
Step 209, detecting whether the response data is the same as the verification data, if so, executing step 210; if not, go to step 211.
In the embodiment of the present invention, if it is detected that the response data is the same as the verification data, indicating that the response information passes the verification, step 210 may be executed to generate a ticket purchase order; if the response data is different from the verification data, indicating that the response message is not verified, step 211 can be executed.
Step 210, generating a ticket order.
And step 211, sending a message that the ticket purchase order generation request fails to be generated to the terminal.
In the technical scheme provided by the embodiment of the invention, a ticket-buying order generation request sent by a terminal is received, the ticket-buying order generation request carries equipment information of the terminal, the response time of the terminal is determined according to the equipment information of the terminal, the calculation power of the terminal is determined according to the response time, verification data corresponding to the calculation power of the terminal is obtained, the verification data is sent to the terminal, so that the terminal calculates the response information according to the verification data, the response data is generated according to the response information, and if the response data and the verification data are detected to be the same, a ticket-buying order is generated. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the problem that a ticket purchasing order request is generated by high-frequency sending of the terminal with strong calculation power is avoided, so that the ticket purchasing order request can be effectively processed, and the ticket swiping problem is avoided.
Fig. 3 is a schematic structural diagram of an order processing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: the device comprises a receiving module 11, a determining module 12, an acquiring module 13, a sending module 14, a generating module 15 and a detecting module 16.
The receiving module 11 is configured to receive a ticket order generation request sent by a terminal, where the ticket order generation request carries device information of the terminal.
The determining module 12 is configured to determine a response time of the terminal according to the device information of the terminal, and determine a computational power of the terminal according to the response time.
The obtaining module 13 is configured to obtain verification data corresponding to the computing power of the terminal.
The sending module 14 is configured to send the verification data to the terminal, so that the terminal calculates response information corresponding to the verification data according to the verification data.
The receiving module 11 is further configured to receive the response information sent by the terminal.
The generating module 15 is configured to generate response data according to the response information.
The detection module 16 is configured to detect whether the response data is the same as the verification data.
The generating module 11 is further configured to generate a ticket order if the detecting module 16 detects that the response data is the same as the verification data.
In this embodiment of the present invention, the request for generating a ticket purchase order carries a network data packet of the terminal, and the apparatus further includes:
the detection module 16 is further configured to detect whether the request for generating a ticket purchase order is a normal request according to the network data packet of the terminal; if the detection module 16 detects that the request for generating the ticket purchase order is a normal request, the triggering determination module 12 continues to execute the steps of determining the response time of the terminal according to the device information of the terminal and determining the computing power of the terminal according to the response time.
In the embodiment of the present invention, the detection module 16 of the apparatus specifically includes: a detection sub-module 161 and a determination sub-module 162.
The detection submodule 161 is configured to detect whether the terminal has data change according to the data recording information, detect whether the terminal is in a connection state according to the terminal state information, and detect whether an access frequency of the terminal is smaller than a preset threshold according to the terminal behavior information, where the access frequency is used to indicate an access frequency of a page where the terminal is located when the terminal sends a request for generating a ticket purchase order.
The determining submodule 162 is configured to determine that the request for generating the ticket purchase order is a normal request if the detecting module 161 detects that the data of the terminal is not changed, the terminal is in a connected state, and the access frequency of the terminal is smaller than a preset threshold.
In the embodiment of the present invention, the determining module 12 of the apparatus specifically includes: a query submodule 121, a determination submodule 122 and an acquisition submodule 123.
The query module 121 is configured to query the historical response time of the terminal from the historical ticket purchase record according to the device information of the terminal.
The determining submodule 122 is configured to determine the historical response time as the response time of the terminal.
The obtaining sub-module 123 is configured to obtain the computing power corresponding to the response time from a pre-established terminal computing power library.
The determining submodule 122 is further configured to determine the calculated power corresponding to the response time as the calculated power of the terminal.
In the embodiment of the present invention, the apparatus further includes: the obtaining module 13 is specifically configured to obtain verification data corresponding to the computational power of the terminal from a pre-established verification database.
In an embodiment of the present invention, the verification data includes a product of a plurality of prime numbers.
In this embodiment of the present invention, the response information includes a plurality of prime numbers generated by decomposing the verification data by the terminal;
the device also includes:
the generating module 15 is specifically configured to multiply a plurality of prime numbers to obtain response data.
In the technical scheme provided by the embodiment of the invention, a ticket order generating request sent by a terminal is received, the ticket order generating request carries equipment information of the terminal, the response time of the terminal is determined according to the equipment information of the terminal, the computing power of the terminal is determined according to the response time, verification data corresponding to the computing power of the terminal is obtained and sent to the terminal, so that the terminal computes response information according to the verification data, response data is generated according to the response information, and if the response data is detected to be the same as the verification data, a ticket order is generated. By sending the verification data corresponding to the calculation power of the terminal to the terminal, the problem that a ticket purchasing order request is generated by high-frequency sending of the terminal with strong calculation power is avoided, so that the ticket purchasing order request can be effectively processed, and the ticket swiping problem is avoided.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device where the storage medium is located is controlled to execute each step of the above embodiment of the order processing method, and for specific description, reference may be made to the above embodiment of the order processing method.
The embodiment of the invention provides computer equipment which comprises a memory and a processor, wherein the memory is used for storing information comprising program instructions, the processor is used for controlling the execution of the program instructions, and the program instructions are loaded by the processor and executed to realize the steps of the order processing method. For a detailed description, reference may be made to the above-described embodiments of the order processing method.
Fig. 4 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 4, the computer device 3 of this embodiment includes: the processor 21, the memory 22, and the computer program 23 stored in the memory 22 and capable of running on the processor 21, wherein the computer program 23 when executed by the processor 21 implements the order processing method applied in the embodiment, and therefore, in order to avoid repetition, the detailed description is omitted here. Alternatively, the computer program is executed by the processor 21 to implement the functions of each model/unit applied to the order processing apparatus in the embodiments, which are not described herein for avoiding redundancy.
The computer device 3 includes, but is not limited to, a processor 21, a memory 22. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the computer device 3 and does not constitute a limitation of the computer device 3 and may include more or less components than those shown, or combine certain components, or different components, e.g. the computer device 3 may also include input output devices, network access devices, buses, etc.
The Processor 21 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 22 may be an internal storage unit of the computer device 3, such as a hard disk or a memory of the computer device 3. The memory 22 may also be an external storage device of the computer device 3, such as a plug-in hard disk provided on the computer device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (FlashCard), and the like. Further, the memory 22 may also include both an internal storage unit of the computer device 3 and an external storage device. The memory 22 is used for storing computer programs and other programs and data required by the computer device 3. The memory 22 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An order processing method, characterized in that the method comprises:
receiving a ticket order generation request sent by a terminal, wherein the ticket order generation request carries equipment information of the terminal;
determining the response time of the terminal according to the equipment information of the terminal, and determining the computing power of the terminal according to the response time;
acquiring verification data corresponding to the computing power of the terminal, and sending the verification data to the terminal so that the terminal can calculate response information corresponding to the verification data according to the verification data;
receiving the response information sent by the terminal;
generating response data according to the response information;
detecting whether the response data is the same as the verification data;
and if the response data is detected to be the same as the verification data, generating a ticket purchase order.
2. The method of claim 1, wherein the request to generate a ticket purchase order carries a network data packet of the terminal;
before the determining the response time of the terminal according to the device information of the terminal and determining the computational power of the terminal according to the response time, the method further comprises the following steps:
detecting whether the ticket order generation request is a normal request or not according to the network data packet of the terminal;
and if the ticket order generation request is detected to be a normal request, continuing to execute the step of determining the response time of the terminal according to the equipment information of the terminal and determining the computing power of the terminal according to the response time.
3. The method of claim 2, wherein the network packet includes data record information, terminal behavior information, and terminal status information;
the detecting whether the request for generating the ticket purchase order is a normal request according to the network data packet of the terminal includes:
detecting whether the terminal is in a connection state or not according to the data recording information, detecting whether the terminal is in the connection state or not according to the terminal state information, and detecting whether the access frequency of the terminal is smaller than a preset threshold or not according to the terminal behavior information, wherein the access frequency is used for indicating the access times of a page where the terminal is located when the terminal sends a request for generating a ticket purchase order;
and if the terminal is detected not to have data change, the terminal is in a connection state and the access frequency of the terminal is less than a preset threshold value, determining the ticket purchase order generation request as a normal request.
4. The method according to claim 1, wherein the determining the response time of the terminal according to the device information of the terminal and determining the computational power of the terminal according to the response time comprises:
according to the equipment information of the terminal, inquiring historical response time of the terminal from a historical ticket purchasing record, and determining the historical response time as the response time of the terminal;
and acquiring the calculated power corresponding to the response time from a pre-established terminal calculated power library, and determining the calculated power corresponding to the response time as the calculated power of the terminal.
5. The method of claim 1, wherein obtaining verification data corresponding to the computational power of the terminal comprises:
and acquiring verification data corresponding to the computing power of the terminal from a pre-established verification database.
6. The method of claim 5, wherein the validation data comprises a product of a plurality of prime numbers.
7. The method according to claim 1, wherein the response information includes a plurality of prime numbers generated by the terminal decomposing the verification data;
the generating response data according to the response information includes:
and multiplying the plurality of prime numbers to obtain response data.
8. An order processing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a ticket order generating request sent by a terminal, wherein the ticket order generating request carries equipment information of the terminal; receiving the response information sent by the terminal;
the determining module is used for determining the response time of the terminal according to the equipment information of the terminal and determining the computing power of the terminal according to the response time;
the sending module is used for obtaining verification data corresponding to the calculation power of the terminal and sending the verification data to the terminal so that the terminal can calculate response information corresponding to the verification data according to the verification data;
the generating module is used for generating response data according to the response information; if the response data and the verification data are detected to be the same, generating a ticket purchase order;
and the detection module is used for detecting whether the response data is the same as the verification data or not.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the order processing method according to any one of claims 1 to 7.
10. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor to implement the steps of the order processing method according to any of claims 1 to 7.
CN202010042335.5A 2020-01-15 2020-01-15 Order processing method, order processing device, storage medium and computer equipment Active CN111260440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010042335.5A CN111260440B (en) 2020-01-15 2020-01-15 Order processing method, order processing device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010042335.5A CN111260440B (en) 2020-01-15 2020-01-15 Order processing method, order processing device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111260440A true CN111260440A (en) 2020-06-09
CN111260440B CN111260440B (en) 2023-07-18

Family

ID=70953987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010042335.5A Active CN111260440B (en) 2020-01-15 2020-01-15 Order processing method, order processing device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111260440B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434956A (en) * 1999-12-17 2003-08-06 世界剧院公司 System and method permitting customer ordering produsts from provider
JP2004220620A (en) * 2004-02-16 2004-08-05 Fujitsu Ltd Communication right determination method, information processor to be used for the same and recording medium in which its program is stored
CN102265285A (en) * 2009-09-17 2011-11-30 松下电器产业株式会社 Information processing device, administration device, invalid-module detection system, invalid-module detection method, recording medium having an invalid-module detection program recorded thereon, administration method, recording medium having an ad
US20120265671A1 (en) * 2011-04-12 2012-10-18 Matt Higgins Systems and Methods for Validating an Order Purchased With an Unspecified Term
CN106875177A (en) * 2016-06-07 2017-06-20 阿里巴巴集团控股有限公司 Order processing method, device and paying server
CN107704734A (en) * 2017-07-10 2018-02-16 深圳市金立通信设备有限公司 A kind of recognition methods of user account and its equipment
CN107784554A (en) * 2017-09-28 2018-03-09 深圳乐信软件技术有限公司 Method, apparatus, storage medium, server and the terminal device of order processing
CN108596588A (en) * 2018-04-28 2018-09-28 百度在线网络技术(北京)有限公司 A kind of processing method of block data, device, computing device and storage medium
CN108776923A (en) * 2018-06-05 2018-11-09 深圳壹账通智能科技有限公司 Order method of payment, system, computer equipment and storage medium
CN110245953A (en) * 2019-05-20 2019-09-17 深圳市轱辘汽车维修技术有限公司 A kind of Information Authentication method, Information Authentication device and electronic equipment
CN110675228A (en) * 2019-09-27 2020-01-10 支付宝(杭州)信息技术有限公司 User ticket buying behavior detection method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434956A (en) * 1999-12-17 2003-08-06 世界剧院公司 System and method permitting customer ordering produsts from provider
JP2004220620A (en) * 2004-02-16 2004-08-05 Fujitsu Ltd Communication right determination method, information processor to be used for the same and recording medium in which its program is stored
CN102265285A (en) * 2009-09-17 2011-11-30 松下电器产业株式会社 Information processing device, administration device, invalid-module detection system, invalid-module detection method, recording medium having an invalid-module detection program recorded thereon, administration method, recording medium having an ad
US20120265671A1 (en) * 2011-04-12 2012-10-18 Matt Higgins Systems and Methods for Validating an Order Purchased With an Unspecified Term
CN106875177A (en) * 2016-06-07 2017-06-20 阿里巴巴集团控股有限公司 Order processing method, device and paying server
CN107704734A (en) * 2017-07-10 2018-02-16 深圳市金立通信设备有限公司 A kind of recognition methods of user account and its equipment
CN107784554A (en) * 2017-09-28 2018-03-09 深圳乐信软件技术有限公司 Method, apparatus, storage medium, server and the terminal device of order processing
CN108596588A (en) * 2018-04-28 2018-09-28 百度在线网络技术(北京)有限公司 A kind of processing method of block data, device, computing device and storage medium
CN108776923A (en) * 2018-06-05 2018-11-09 深圳壹账通智能科技有限公司 Order method of payment, system, computer equipment and storage medium
CN110245953A (en) * 2019-05-20 2019-09-17 深圳市轱辘汽车维修技术有限公司 A kind of Information Authentication method, Information Authentication device and electronic equipment
CN110675228A (en) * 2019-09-27 2020-01-10 支付宝(杭州)信息技术有限公司 User ticket buying behavior detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王雪峰等: "如何防范针对12306网站的恶意抢票插件", 《铁路计算机应用》, no. 03, pages 32 - 34 *

Also Published As

Publication number Publication date
CN111260440B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN112162878B (en) Database fault discovery method and device, electronic equipment and storage medium
CN108062629B (en) Transaction event processing method, terminal device and medium
KR20180075641A (en) Service processing method and apparatus
CN107451819B (en) Identity verification method and device based on user operation behavior characteristics
CN104901924B (en) Internet account verification method and device
CN109936556B (en) Monitoring method and device for account stealing event
CN110874743B (en) Method and device for determining account transaction risk
CN104348810A (en) Method, device and system for detecting stolen account
CN111447204A (en) Weak password detection method, device, equipment and medium
CN110289995B (en) Social network behavior monitoring method and device based on attribute attack graph
CN109145651B (en) Data processing method and device
CN114363090A (en) Method for realizing single sign-on platform of multi-application system and management system
CN113722748A (en) Equipment information acquisition method based on block chain and general industrial identification
CN115225551A (en) Fuzzy test method, device, equipment and storage medium
CN110659807A (en) Risk user identification method and device based on link
CN112087455B (en) WAF site protection rule generation method, system, equipment and medium
CN111260440A (en) Order processing method, device, storage medium and computer equipment
CN112631577B (en) Model scheduling method, model scheduler and model safety test platform
CN105243315A (en) Single picture verification code input method, apparatus and system
CN114297735A (en) Data processing method and related device
CN113609111A (en) Big data testing method and system
KR20220084895A (en) System and method for analysising data based on ondevice
CN113515684A (en) Abnormal data detection method and device
CN113239333A (en) Browser user identity authentication method and system based on cross-domain resource access
CN111611473A (en) Information push processing method and device, storage medium and 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
GR01 Patent grant
GR01 Patent grant