Control method and device based on two-dimensional code ordering, computer equipment and medium
By obtaining and verifying user identity information and order-pointing behavior information, combined with verification of order-point verification codes, the security risk problem in the existing QR code order-pointing technology is solved, and higher transaction security and stability are achieved.
Patent Information
- Application Number
- CN202411894578.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-02
AI Technical Summary
The existing QR code ordering technology poses security risks, making it difficult to effectively verify user identity and detect abnormal behaviors.
By obtaining the user identity information and order-pointing behavior information of the target user equipment, determine the order pre-check data. If there is no exception, the order-pointing response will be sent successfully. If there is an exception, the order-point verification code will be obtained and sent, and the order-point verification code will be confirmed through the verification verification code.
It effectively improves the security of the ordering process, and passes preliminary identity verification and verification code verification, detects and handles abnormal situations, ensuring the safety and stability of the transaction process.
Smart Images

Figure CN119919209A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the technical field of two-dimensional code ordering, and in particular, to a control method, apparatus, computer equipment and medium applicable to two-dimensional code ordering. Background Art
[0002] QR code scanning technology can facilitate users' travel in many scenarios. Users can use the scanning tool to complete the scanning process, making it easier for users to perform corresponding operations.
[0003] In the related technology, when the user opens the code scanning tool and scans a specific QR code, the system will obtain various information and related parameters corresponding to the scanned QR code. These information and parameters cover many aspects, such as detailed introduction, specifications, prices, etc. of the product, and after obtaining these contents, the user can use them to scan the code to place an order.
[0004] However, using the existing method, the ordering process has security risks. Summary of the invention
[0005] The embodiments described herein provide a control method, apparatus, computer device, and medium based on QR code ordering, which overcome the above-mentioned problems.
[0006] In a first aspect, according to the content of the present disclosure, a control method based on QR code ordering is provided, comprising:
[0007] In response to a first order triggering operation of a target user device based on a first merchant QR code, obtaining user identity information and ordering behavior information of the target user device, wherein the first order triggering operation is generated by the target user device based on offline code scanning;
[0008] Based on the user identity information and the ordering behavior information of the target user device, determine the ordering pre-check data of the target user device, where the ordering pre-check data is used to describe whether there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code;
[0009] If it is determined that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code, a successful order response corresponding to the first order triggering operation is sent to the target user device; if it is determined that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code, an order verification code corresponding to the first order triggering operation is obtained;
[0010] Sending the order verification code to the target user equipment;
[0011] If the verification code reported by the target user device is the order verification code, a successful order response corresponding to the first order trigger operation is sent to the target user device; if the verification code reported by the target user device is not the order verification code, an unsuccessful order response corresponding to the first order trigger operation is sent to the target user device.
[0012] In a second aspect, according to the content of the present disclosure, a control device based on QR code ordering is provided, comprising:
[0013] An acquisition module, configured to acquire user identity information and ordering behavior information of the target user device in response to a first order triggering operation of the target user device based on a first merchant QR code, wherein the first order triggering operation is generated by the target user device based on offline code scanning;
[0014] A determination module, configured to determine, based on the user identity information and the ordering behavior information of the target user device, order pre-check data of the target user device, wherein the order pre-check data is used to describe whether the first order triggering operation of the target user device based on the first merchant QR code is abnormal;
[0015] A processing module, configured to send an order success response corresponding to the first order triggering operation to the target user device if it is determined that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code; and to obtain an order verification code corresponding to the first order triggering operation if it is determined that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code;
[0016] A first sending module, used for sending the order verification code to the target user equipment;
[0017] The second sending module is used to send an order success response corresponding to the first order trigger operation to the target user device if the verification verification code received and reported by the target user device is the order verification code; if the verification verification code received and reported by the target user device is not the order verification code, send an order failure response corresponding to the first order trigger operation to the target user device.
[0018] In a third aspect, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the control method based on QR code ordering in any of the above embodiments are implemented.
[0019] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method based on QR code ordering in any of the above embodiments are implemented.
[0020] The control method based on QR code ordering provided in the embodiment of the present application obtains user identity information and ordering behavior information of the target user device in response to the first order triggering operation based on the first merchant QR code by the target user device, the first order triggering operation is generated by the target user device based on offline code scanning; based on the user identity information and ordering behavior information of the target user device, the order pre-check data of the target user device is determined, and the order pre-check data is used to describe whether there is an abnormality in the first order triggering operation based on the first merchant QR code by the target user device; if it is determined that the first order triggering operation based on the first merchant QR code by the target user device is abnormal If there is an abnormality, a successful order response corresponding to the first order trigger operation is sent to the target user device; if it is determined that there is an abnormality in the first order trigger operation based on the first merchant QR code of the target user device, the order verification code corresponding to the first order trigger operation is obtained; the order verification code is sent to the target user device; if the verification code reported by the target user device is the order verification code, a successful order response corresponding to the first order trigger operation is sent to the target user device; if the verification code reported by the target user device is not the order verification code, an unsuccessful order response corresponding to the first order trigger operation is sent to the target user device. In this way, after the user places an order, the user identity information is verified to preliminarily determine whether there is an abnormality, and when an abnormality is found, the order abnormality can be determined again by checking the verification code, effectively improving the security of the order process.
[0021] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0023] Figure 1 It is a flow chart of a control method based on QR code ordering provided by the present invention.
[0024] Figure 2 It is a structural schematic diagram of a control device based on QR code ordering provided by the present invention.
[0025] Figure 3 It is a structural schematic diagram of a computer device provided by the present disclosure.
[0026] It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0028] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. Terms such as "first" and "second" are only used to distinguish one component (or a part of a component) from another component (or another part of a component).
[0031] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0033] Figure 1 is a flowchart of a control method based on QR code ordering provided by an embodiment of the present disclosure, such as Figure 1 As shown, the specific process of the control method based on QR code ordering includes:
[0034] S110. In response to a first order triggering operation of a target user device based on a first merchant QR code, obtaining user identity information and ordering behavior information of the target user device.
[0035] The first order triggering operation is generated by the target user device based on offline code scanning. For example, the user generates the first order triggering operation by scanning a specific QR code on a table in a restaurant.
[0036] The user identity information of the target user device may be the user identity data bound to the target user device, such as gender, name, etc. The ordering behavior information may be used to describe some behavior data of the user in the process of ordering through the target user device, such as the frequency of access to the first merchant QR code (such as the frequency of access within one hour).
[0037] S120. Determine order pre-check data of the target user device based on the user identity information and order behavior information of the target user device, where the order pre-check data is used to describe whether there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code.
[0038] Among them, determining the order pre-inspection data of the target user device based on the user identity information and ordering behavior information of the target user device may include: verifying the authenticity of the user identity data of the target user device based on the user identity information of the target user device; determining whether the target user device is a high-frequency access device based on the ordering behavior information of the target user device; if the user identity data of the target user device is authentic and the target user device is not a high-frequency access device, determining that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code; if the user identity data of the target user device is authentic and the target user device is a high-frequency access device, or, the user identity data of the target user device is not authentic and the target user device is a high-frequency access device, or, the user identity data of the target user device is not authentic and the target user device is not a high-frequency access device, then determining that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code.
[0039] S130. If it is determined that there is no abnormality in the first order triggering operation based on the first merchant QR code of the target user device, a successful order response corresponding to the first order triggering operation is sent to the target user device; if it is determined that there is an abnormality in the first order triggering operation based on the first merchant QR code of the target user device, an order verification code corresponding to the first order triggering operation is obtained.
[0040] The successful order response corresponding to the first order triggering operation includes: the ordered product identification, the order time and the order device.
[0041] In some embodiments, obtaining the order verification code corresponding to the first order triggering operation includes:
[0042] Obtain a fixed verification code associated with the first merchant QR code, and determine the fixed verification code as the order verification code; or; generate a dynamic verification code based on the order timestamp information corresponding to the first order trigger operation and the user identity information of the target user device, and determine the dynamic verification code as the order verification code.
[0043] The fixed verification code associated with the first merchant QR code may be a fixed string of characters pre-set by the first user, for example, a string of numbers 123456, etc.
[0044] Generating a dynamic verification code based on the order timestamp information corresponding to the first order trigger operation and the user identity information of the target user device may include: determining the dynamic verification code based on a combination of the order timestamp information corresponding to the first order trigger operation and the gender identification of the user corresponding to the target user device.
[0045] For example, the order timestamp information corresponding to the first order trigger operation is January 1, 2024, and the gender of the user corresponding to the target user device is female, so the gender identifier is set to 1, and the dynamic verification code is 202401011.
[0046] Therefore, by setting a fixed verification code or a dynamic verification code, the applicability of the system order verification code can be enriched. At the same time, when generating a dynamic verification code, the user's gender information can be combined to facilitate the generation of a dynamic verification code that matches the ordering user, thereby ensuring the independence of the order verification code.
[0047] It should be noted that the dynamic available deadline of the dynamic verification code may be the time when the target user device settles the order product corresponding to the first order triggering operation.
[0048] S140: Send an order verification code to the target user equipment.
[0049] The system may send an order verification code to the target user's device via text messages, application prompts, and the like.
[0050] S150. If the verification code received and reported by the target user device is an order verification code, a successful order response corresponding to the first order trigger operation is sent to the target user device; if the verification code received and reported by the target user device is not an order verification code, an unsuccessful order response corresponding to the first order trigger operation is sent to the target user device.
[0051] The unsuccessful order response corresponding to the first order trigger operation may include: the ordered product, the device identifier of the target user device and the reason for the unsuccessful order. The reason for the unsuccessful order may be descriptive information such as "incorrect verification code input".
[0052] Therefore, when the user scans the code, the system will immediately start the verification process for the user information. During this verification process, the authenticity of the user information will be carefully judged, and in-depth investigation will be conducted to see whether the user has frequent access. Through such strict information verification, the security and stability of the entire transaction process can be ensured, providing a solid guarantee for subsequent transaction activities.
[0053] In this embodiment, by responding to the first order triggering operation of the target user device based on the first merchant QR code, the user identity information and ordering behavior information of the target user device are obtained, and the first order triggering operation is generated by the target user device based on offline code scanning; based on the user identity information and ordering behavior information of the target user device, the order pre-check data of the target user device is determined, and the order pre-check data is used to describe whether there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code; if it is determined that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code, an order success response corresponding to the first order triggering operation is sent to the target user device; if it is determined that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code, an order verification code corresponding to the first order triggering operation is obtained; the order verification code is sent to the target user device; if the verification verification code received and reported by the target user device is the order verification code, the order success response corresponding to the first order triggering operation is sent to the target user device; if the verification verification code received and reported by the target user device is not the order verification code, an order failure response corresponding to the first order triggering operation is sent to the target user device. In this way, after the user places an order, the user's identity information is verified to preliminarily determine whether there are any abnormalities. If an abnormality is found, the order abnormality can be determined again by checking the verification code, effectively improving the security of the ordering process.
[0054] It should be noted that the ordering scenario referred to in this embodiment may be an environment where a QR code can be used for ordering and consumption, such as a restaurant or a supermarket. Accordingly, the first merchant QR code may correspond to a restaurant dining QR code, a supermarket shopping QR code, etc. When the user places an order, the order verification code must be accurately entered to successfully complete the ordering process.
[0055] In some embodiments, it also includes:
[0056] In response to the second order trigger operation based on the first merchant's QR code by other user devices, the current location coordinates or additional order data of the other user devices are obtained; if it is determined that there is an abnormality in the second order trigger operation based on the current location coordinates or additional order data of the other user devices, an order failure response corresponding to the second order trigger operation is sent to the target user device; if it is determined that there is no abnormality in the second order trigger operation based on the current location coordinates or additional order data of the other user devices, an order success response corresponding to the second order trigger operation is sent to the target user device.
[0057] The second order triggering operation may be generated by other user devices scanning the first merchant QR code offline or sharing and scanning it online. For example, other user devices scan the first merchant QR code offline, or scan the first merchant QR code shared in social software online.
[0058] When determining whether there is an abnormality in the second order triggering operation, it can be achieved through the current location coordinates of other user devices or the additional data of the order.
[0059] For example, if the current location coordinates of other user devices are not within the preset location range corresponding to the merchant location where the first merchant QR code is located, it is determined that there is an abnormality in the second order triggering operation; if the current location coordinates of other user devices are within the preset location range corresponding to the merchant location where the first merchant QR code is located, it is determined that there is no abnormality in the second order triggering operation. Alternatively, if the additional order data of other user devices show that the number of ordered goods corresponding to the second order triggering operation exceeds the preset threshold, it is determined that there is an abnormality in the second order triggering operation; if the additional order data of other user devices show that the number of ordered goods corresponding to the second order triggering operation does not exceed the preset threshold, it is determined that there is no abnormality in the second order triggering operation.
[0060] The unsuccessful order response corresponding to the second order trigger operation may include: the ordered product, the device identifier of the other user device and the reason for the unsuccessful order. The reason for the unsuccessful order may be descriptive information such as "not within the specified range" or "too many ordered products".
[0061] Therefore, after the target user device places an order once, when it receives a second order trigger operation for the same QR code from other user devices, it can determine whether there is an abnormal order through the current location coordinates or additional order data of other user devices, effectively avoiding the problem of malicious orders from other user devices.
[0062] In some embodiments, it also includes:
[0063] In response to the second order trigger operation based on the first merchant QR code by other user devices, obtain the verification code reported by the other user devices; if the verification code reported by the other user devices is the order verification code, send a successful order response corresponding to the second order trigger operation to the target user device; if the verification code reported by the other user devices is not the order verification code, send an unsuccessful order response corresponding to the second order trigger operation to the target user device.
[0064] In actual situations, if other user devices want to place an order again for the same QR code, the user of the target user device should normally know or default to it. At this time, the users of other user devices can obtain the correct order verification code from the user of the target user device to facilitate additional ordering.
[0065] Therefore, after the target user device places an order once, when it receives a second order trigger operation for the same QR code from other user devices, it can determine whether there is an abnormal order through the verification code reported by other user devices, effectively avoiding the problem of malicious ordering from other user devices.
[0066] In some embodiments, it also includes:
[0067] In response to the third order trigger operation based on the second merchant QR code by the target user device, the order constraint time period corresponding to the second merchant QR code is obtained; if the order time corresponding to the third order trigger operation is within the order constraint time period, a successful order response corresponding to the third order trigger operation is sent to the target user device; if the order time corresponding to the third order trigger operation is not within the order constraint time period, an unsuccessful order response corresponding to the third order trigger operation is sent to the target user device.
[0068] Among them, the order constraint time period corresponding to the second merchant QR code can be an order time period pre-set by the merchant, such as from 3 pm to 4 pm on a certain day.
[0069] Thus, merchants can control the ordering time of goods, which is convenient for effectively meeting the merchants' time order control for goods.
[0070] In some embodiments, it also includes:
[0071] In response to the fourth order trigger operation based on the third merchant QR code by the target user device, an order participation identifier corresponding to the third merchant QR code is obtained; if the user identifier corresponding to the fourth order trigger operation matches the order participation identifier, an order success response corresponding to the fourth order trigger operation is sent to the target user device; if the user identifier corresponding to the fourth order trigger operation does not match the order participation identifier, an order unsuccessful response corresponding to the fourth order trigger operation is sent to the target user device.
[0072] The order participation identifier corresponding to the third merchant QR code may be a user restriction preset by the merchant that can order specific products, for example, specifying a portion of the merchant's internal employees to order specific products. The products corresponding to the third merchant QR code may be some products with special attributes.
[0073] Therefore, for some commodities with special attributes, merchants need to ensure that buyers meet certain conditions before they can make a purchase, so that merchants can better achieve their business goals.
[0074] In some embodiments, it also includes:
[0075] If it is detected that no order trigger operation is generated within a preset time period after the target user device scans the fourth merchant QR code, order inquiry data is sent to the target user device; if no response information to the order inquiry data is received from the target user device, the product data selected by the target user device is deleted from the virtual library corresponding to the target user device of the fourth merchant QR code.
[0076] Among them, after the target user device scans the fourth merchant QR code, no order trigger operation is generated within the preset time period, which may be because the target user device browses products for too long after scanning the fourth merchant QR code, or exits the current browsing page.
[0077] At this time, the ordering intention of the user can be timely understood by sending order inquiry data to the target user device. When no response information to the order inquiry data is received from the target user device within a certain period of time, it is determined that the user has no intention to place an order, and the product data selected by the target user device is deleted from the virtual library corresponding to the target user device of the fourth merchant QR code, so as to facilitate timely cleaning of invalid order processes.
[0078] Figure 2 A structural schematic diagram of a control device based on QR code ordering provided in this embodiment, the control device based on QR code ordering may include: an acquisition module 210, a determination module 220, a processing module 230, a first sending module 240 and a second sending module 250.
[0079] The acquisition module 210 is used to obtain the user identity information and ordering behavior information of the target user device in response to the first order triggering operation of the target user device based on the first merchant QR code. The first order triggering operation is generated by the target user device based on offline code scanning.
[0080] Determination module 220 is used to determine the order pre-check data of the target user device based on the user identity information and order behavior information of the target user device, and the order pre-check data is used to describe whether there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code.
[0081] Processing module 230 is used to send an order success response corresponding to the first order trigger operation to the target user device if it is determined that there is no abnormality in the first order trigger operation based on the first merchant QR code of the target user device; if it is determined that there is an abnormality in the first order trigger operation based on the first merchant QR code of the target user device, obtain the order verification code corresponding to the first order trigger operation.
[0082] The first sending module 240 is used to send an order verification code to a target user equipment.
[0083] The second sending module 250 is used to send an order success response corresponding to the first order trigger operation to the target user device if the verification verification code received and reported by the target user device is an order verification code; if the verification verification code received and reported by the target user device is not an order verification code, then send an order failure response corresponding to the first order trigger operation to the target user device.
[0084] In this embodiment, optionally, the processing module 230 is specifically configured to:
[0085] Obtain a fixed verification code associated with the first merchant QR code, and determine the fixed verification code as the order verification code; or; generate a dynamic verification code based on the order timestamp information corresponding to the first order trigger operation and the user identity information of the target user device, and determine the dynamic verification code as the order verification code.
[0086] In this embodiment, optionally, it also includes: a third sending module.
[0087] The acquisition module 210 is also used to obtain the current location coordinates or additional order data of other user devices in response to the second order triggering operation based on the first merchant QR code by other user devices.
[0088] The third sending module is used to send an unsuccessful order response corresponding to the second order trigger operation to the target user device if it is determined that there is an abnormality in the second order trigger operation based on the current position coordinates of other user devices or the additional order data; and to send a successful order response corresponding to the second order trigger operation to the target user device if it is determined that there is no abnormality in the second order trigger operation based on the current position coordinates of other user devices or the additional order data.
[0089] In this embodiment, optionally, it also includes: a fourth sending module.
[0090] The acquisition module 210 is further used to obtain the verification code reported by other user devices in response to the second order triggering operation based on the first merchant QR code by other user devices.
[0091] The fourth sending module is used to send a successful order response corresponding to the second order triggering operation to the target user device if the verification verification code reported by other user devices is an order verification code; if the verification verification code reported by other user devices is not an order verification code, send an unsuccessful order response corresponding to the second order triggering operation to the target user device.
[0092] In this embodiment, optionally, it also includes: a fifth sending module.
[0093] The acquisition module 210 is further used to obtain the order constraint time period corresponding to the second merchant QR code in response to the third order triggering operation of the target user device based on the second merchant QR code.
[0094] The fifth sending module is used to send a successful order response corresponding to the third order trigger operation to the target user device if the order time corresponding to the third order trigger operation is within the order constraint time period; if the order time corresponding to the third order trigger operation is not within the order constraint time period, then send an unsuccessful order response corresponding to the third order trigger operation to the target user device.
[0095] In this embodiment, optionally, it also includes: a sixth sending module.
[0096] The acquisition module 210 is further used to obtain an order participation identifier corresponding to the third merchant QR code in response to a fourth order triggering operation of the target user device based on the third merchant QR code.
[0097] The sixth sending module is used to send a successful order response corresponding to the fourth order trigger operation to the target user device if the user identifier corresponding to the fourth order trigger operation matches the order participation identifier; if the user identifier corresponding to the fourth order trigger operation does not match the order participation identifier, send an unsuccessful order response corresponding to the fourth order trigger operation to the target user device.
[0098] In this embodiment, optionally, it also includes: a seventh sending module and a deleting module.
[0099] The seventh sending module is used to send order inquiry data to the target user device if it is detected that no order trigger operation is generated within a preset time period after the target user device scans the fourth merchant QR code.
[0100] The deleting module is used to delete the commodity data selected by the target user device from the virtual library corresponding to the target user device of the fourth merchant QR code if no response information to the order inquiry data is received from the target user device.
[0101] The control device based on QR code ordering provided in the present disclosure can execute the above method embodiments. Its specific implementation principles and technical effects can be found in the above method embodiments, and the present disclosure will not repeat them here.
[0102] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0103] The computer device includes a memory 310 and a processor 320 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with a memory 310 and a processor 320, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0104] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0105] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 310 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 310 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card (FlashCard) equipped on the computer device. Of course, the memory 310 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 310 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 310 may also be used to temporarily store various data that have been output or are to be output.
[0106] The processor 320 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 310 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 320 is used to execute the program codes or instructions stored in the memory 310 or process data, such as running the program code of the above method.
[0107] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0108] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0109] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0110] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0111] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0112] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0114] In the claims, any reference symbols placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
[0115] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A control method based on QR code ordering, characterized in that: include: In response to a first order triggering operation of a target user device based on a first merchant QR code, obtaining user identity information and ordering behavior information of the target user device, wherein the first order triggering operation is generated by the target user device based on offline code scanning; Based on the user identity information and the ordering behavior information of the target user device, determine the ordering pre-check data of the target user device, where the ordering pre-check data is used to describe whether there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code; If it is determined that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code, a successful order response corresponding to the first order triggering operation is sent to the target user device; if it is determined that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code, an order verification code corresponding to the first order triggering operation is obtained; Sending the order verification code to the target user equipment; If the verification code reported by the target user device is the order verification code, a successful order response corresponding to the first order trigger operation is sent to the target user device; if the verification code reported by the target user device is not the order verification code, an unsuccessful order response corresponding to the first order trigger operation is sent to the target user device.
2. The method according to claim 1, characterized in that The obtaining of the order verification code corresponding to the first order triggering operation includes: Obtaining a fixed verification code associated with the first merchant QR code, and determining that the fixed verification code is the order verification code; or; Based on the order timestamp information corresponding to the first order triggering operation and the user identity information of the target user device, a dynamic verification code is generated, and the dynamic verification code is determined to be the order verification code.
3. The method according to claim 1, characterized in that Also includes: In response to a second order triggering operation by another user device based on the first merchant QR code, obtaining the current location coordinates or additional order data of the other user device; If it is determined that the second order triggering operation is abnormal based on the current position coordinates or the order additional data of the other user equipment, sending an order failure response corresponding to the second order triggering operation to the target user equipment; If it is determined that there is no abnormality in the second order triggering operation based on the current position coordinates or the order additional data of the other user equipment, a successful order response corresponding to the second order triggering operation is sent to the target user equipment.
4. The method according to claim 1, characterized in that Also includes: In response to a second order triggering operation by another user device based on the first merchant QR code, obtaining a verification code reported by the other user device; If the verification code reported by the other user device is the order verification code, a successful order response corresponding to the second order trigger operation is sent to the target user device; if the verification code reported by the other user device is not the order verification code, an unsuccessful order response corresponding to the second order trigger operation is sent to the target user device.
5. The method according to claim 1, characterized in that Also includes: In response to a third order triggering operation of the target user device based on the second merchant QR code, acquiring an order constraint time period corresponding to the second merchant QR code; If the ordering time corresponding to the third ordering triggering operation is within the ordering restriction period, sending an ordering success response corresponding to the third ordering triggering operation to the target user equipment; If the ordering time corresponding to the third ordering triggering operation is not within the ordering restriction period, an ordering failure response corresponding to the third ordering triggering operation is sent to the target user equipment.
6. The method according to claim 1, characterized in that Also includes: In response to a fourth order triggering operation of the target user device based on the third merchant QR code, acquiring an order participation identifier corresponding to the third merchant QR code; If the user identifier corresponding to the fourth order trigger operation matches the order participation identifier, a successful order response corresponding to the fourth order trigger operation is sent to the target user device; if the user identifier corresponding to the fourth order trigger operation does not match the order participation identifier, an unsuccessful order response corresponding to the fourth order trigger operation is sent to the target user device.
7. The method according to claim 1, characterized in that Also includes: If it is detected that no order triggering operation is generated within a preset time period after the target user device scans the fourth merchant QR code, sending order inquiry data to the target user device; If no response information of the target user device to the order inquiry data is received, the commodity data selected by the target user device is deleted from the virtual library corresponding to the target user device by the fourth merchant QR code.
8. A control device based on QR code ordering, characterized in that: include: An acquisition module, configured to acquire user identity information and ordering behavior information of the target user device in response to a first order triggering operation of the target user device based on a first merchant QR code, wherein the first order triggering operation is generated by the target user device based on offline code scanning; A determination module, configured to determine, based on the user identity information and the ordering behavior information of the target user device, order pre-check data of the target user device, wherein the order pre-check data is used to describe whether the first order triggering operation of the target user device based on the first merchant QR code is abnormal; A processing module, configured to send an order success response corresponding to the first order triggering operation to the target user device if it is determined that there is no abnormality in the first order triggering operation of the target user device based on the first merchant QR code; and to obtain an order verification code corresponding to the first order triggering operation if it is determined that there is an abnormality in the first order triggering operation of the target user device based on the first merchant QR code; A first sending module, used for sending the order verification code to the target user equipment; The second sending module is used to send an order success response corresponding to the first order trigger operation to the target user device if the verification verification code received and reported by the target user device is the order verification code; if the verification verification code received and reported by the target user device is not the order verification code, send an order failure response corresponding to the first order trigger operation to the target user device.
9. A computer device, characterized in that: It includes a memory and a processor, the memory stores a computer program, and the processor implements the control method based on QR code ordering as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method based on QR code ordering as described in any one of claims 1 to 7 is implemented.