WO2020207284A1 - Commodity coupon verification method and device based on food ordering - Google Patents

Commodity coupon verification method and device based on food ordering Download PDF

Info

Publication number
WO2020207284A1
WO2020207284A1 PCT/CN2020/082159 CN2020082159W WO2020207284A1 WO 2020207284 A1 WO2020207284 A1 WO 2020207284A1 CN 2020082159 W CN2020082159 W CN 2020082159W WO 2020207284 A1 WO2020207284 A1 WO 2020207284A1
Authority
WO
WIPO (PCT)
Prior art keywords
commodity
coupon
instance
meal
target
Prior art date
Application number
PCT/CN2020/082159
Other languages
French (fr)
Chinese (zh)
Inventor
王宇
何青松
王新盟
程思远
黄翔
Original Assignee
口碑(上海)信息技术有限公司
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 口碑(上海)信息技术有限公司 filed Critical 口碑(上海)信息技术有限公司
Publication of WO2020207284A1 publication Critical patent/WO2020207284A1/en

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • 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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • 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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user
    • 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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Definitions

  • the present disclosure relates to the field of electronic information, and in particular to a method and device for verification of merchandise coupons based on ordering.
  • the received merchandise coupons in the card package of the application are stored in the background database and distinguished by unique coupon code identification.
  • the user needs to show the merchandise coupon to the cashier, and the cashier manually confirms whether the merchandise coupon can be redeemed in our store, and when confirming that it can be redeemed, manually confirm the corresponding merchandise coupon And then write off the merchandise coupon and prepare each meal corresponding to the merchandise coupon for the user.
  • the user needs other meals in the store, he needs to pay for the other meals separately.
  • the present disclosure is proposed to provide a method and device for verification of merchandise coupons based on ordering to overcome or at least partially solve the above-mentioned problems.
  • a method for verification of merchandise coupons based on ordering including:
  • coupon user association records stored in the preset commodity coupon database obtain the issued commodity coupons that match the user ID, and determine the obtained commodity coupons as the target commodity coupons;
  • instance meal association records stored in the commodity coupon database obtain the instance meal information associated with the commodity instance of the target commodity coupon, and send the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the user terminal;
  • the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the ordered meal list corresponding to the user terminal , So that when the order submission request sent by the user terminal is received, the target merchandise coupon corresponding to the verification request is verified according to the ordered meal list.
  • a merchandise certificate verification device based on ordering including:
  • the receiving module is adapted to obtain the user identification included in the ordering request when the ordering request sent by the user terminal is received;
  • the coupon obtaining module is adapted to obtain the issued coupon matching the user ID according to the coupon user association record stored in the preset coupon database, and determine the obtained coupon as the target coupon;
  • the instance meal acquisition module is adapted to obtain the instance meal information associated with the product instance of the target commodity coupon according to the instance meal association records stored in the commodity coupon database, and associate the target commodity coupon with the product instance of the target commodity coupon
  • the instance meal information of is sent to the user terminal;
  • the verification module is adapted to add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the instance meal information corresponding to the user terminal when the verification request triggered by the user terminal for the target commodity coupon is received In the ordered meal list of the user terminal, when the order submission request sent by the user terminal is received, the target commodity coupon corresponding to the verification request can be verified according to the ordered meal list.
  • an electronic device including: a processor, a memory, a communication interface, and a communication bus.
  • the processor, the memory, and the communication interface communicate with each other through the communication bus;
  • the memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the operation corresponding to the above-mentioned method for verification of merchandise coupons based on ordering.
  • non-volatile computer-readable storage medium stores at least one executable instruction, and the executable instruction causes a processor to execute as described above Corresponding operations based on the order-based merchandise certificate verification method.
  • a computer program product includes a computer program stored on a non-volatile computer storage medium.
  • the association relationship between the merchandise instance and the instance meal information can be stored in the merchandise voucher database as the instance meal association record;
  • the corresponding relationship between the issued merchandise coupon and the user terminal receiving the merchandise coupon as the coupon user association record in the merchandise coupon database, so that the coupon user association record and the coupon user association record can be directly used during the user ordering process.
  • the instance meal association record verifies the issued commodity coupons. It can be seen that this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity coupons, so that it can automatically be used in the process of user self-service ordering based on the correspondence.
  • the verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users.
  • FIG. 1 shows a flow chart of a method for verifying and canceling a commodity certificate based on ordering provided by the first embodiment of the present disclosure
  • FIG. 2 shows a flowchart of a method for verifying and canceling a commodity certificate based on ordering provided by the second embodiment of the present disclosure
  • FIG. 3 shows a structural diagram of a device for verifying and verifying a commodity certificate based on ordering provided in the third embodiment of the present disclosure
  • FIG. 4 shows a schematic structural diagram of an electronic device provided by Embodiment 5 of the present disclosure
  • Figure 5 shows a schematic flow chart of the creation process of a commodity instance
  • Figure 6 shows a schematic flow chart of the issuance process of commodity coupons
  • FIG. 7 shows a schematic diagram of the process of verifying and canceling commodity coupons during the ordering process.
  • Fig. 1 shows a flowchart of a method for verifying and canceling a commodity certificate based on ordering provided by the first embodiment of the present disclosure. As shown in Figure 1, the method includes:
  • Step S110 When a meal ordering request sent by the user terminal is received, the user identification included in the meal ordering request is obtained.
  • the execution subject of this step may be various servers, for example, it may be a server in a store, or a backend server corresponding to a food ordering application, which is not limited in the present disclosure.
  • the ordering request may be various ordering requests such as a scanning code ordering request.
  • the user identification may be identification information such as a user ID.
  • Step S120 According to the coupon user association record stored in the preset commodity coupon database, obtain the issued commodity coupon matching the user ID, and determine the obtained commodity coupon as the target commodity coupon.
  • the coupon user association record in the commodity coupon database is used to pre-record the correspondence between each commodity coupon that has been issued and the user terminal that receives the commodity coupon.
  • the commodity coupons available to the current user can be automatically matched.
  • Step S130 According to the instance meal association record stored in the commodity coupon database, obtain the instance meal information associated with the commodity instance of the target commodity coupon, and associate the target commodity coupon and the instance meal information of the commodity instance of the target commodity coupon Send to the user terminal.
  • the instance meal association record in the commodity coupon database is used to store instance meal information associated with the commodity instance of the issued commodity coupon, so as to determine the instance meal information corresponding to the target commodity coupon.
  • the commodity instance refers to the entity information of the commodity corresponding to the commodity coupon, which specifically includes the name, specification, and quantity of each commodity contained in the commodity coupon.
  • the commodities in this embodiment mainly refer to meals.
  • the association relationship between each commodity instance and its corresponding instance meal information is taken as an instance meal.
  • the associated records are stored, so that the mapping relationship between the commodity instance and the instance meal information can be bound in the background database, so as to query the instance meal information bound to a certain commodity instance.
  • Step S140 When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the point corresponding to the user terminal In the meal list, when receiving the order submission request sent by the user terminal, the target commodity coupon corresponding to the verification request can be verified according to the ordered meal list.
  • the verification request can be triggered during the ordering process. Accordingly, this step can automatically add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the corresponding user terminal In the list of ordered meals, so as to achieve the purpose of using commodity coupons during the ordering process.
  • the target commodity coupon corresponding to the verification request will be verified when the order submission request sent by the user terminal is received. In other words, before the user finally submits the order submission request, the verification request for the target commodity coupon can also be cancelled.
  • this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity coupons, so that it can automatically be used in the process of user self-service ordering based on the correspondence.
  • the verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users.
  • Fig. 2 shows a flow chart of a method for verifying and canceling a commodity certificate based on ordering provided in the second embodiment of the present disclosure. As shown in Figure 2, the method includes:
  • Step S210 Create a commodity instance for generating a commodity coupon, and determine the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance.
  • the commodity instance refers to the entity information of the commodity corresponding to the commodity coupon, which specifically includes the name, specification, and quantity of each commodity contained in the commodity coupon.
  • the commodities in this embodiment mainly refer to meals.
  • a burger set meal is an example of a product.
  • the product example contains three meals: burger, french fries, and cola.
  • burger is a medium chicken burger
  • french fries is a box of medium fries
  • coke is a cup Medium cola, where "chicken burger", “fries” and “cola” are the names of the three meals included in the product instance, "medium” is the specification of the meal, "one", “one” "Box” and "a cup” are the number of meals.
  • one commodity instance corresponds to one or more meals
  • the meal corresponding to the commodity instance is the instance meal information associated with the commodity instance.
  • the instance meal information associated with the commodity instance of the aforementioned burger set meal includes: a medium-sized chicken burger, a box of medium-sized French fries, and a glass of medium-sized coke.
  • the determination is made according to the acquired candidate meal list corresponding to the commodity instance.
  • the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies.
  • the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies.
  • the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies.
  • the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies.
  • the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies.
  • the candidate meal list corresponding to the target store obtain the candidate meal list corresponding to the product instance; finally, according to the candidate meal
  • the multiple target meals selected in the list determine the instance meal information associated with the commodity instance. For example, when there are multiple target stores to which the product instance applies, the restaurant meal list corresponding to each target store is obtained separately, and the store meal list corresponding to each target store is determined to correspond to the product instance A list of candidate meals
  • the candidate meal list corresponding to the commodity instance is determined according to the intersection sub-list. Since the meals in the intersection sublist are those that can be provided by each target store, it is ensured that each store can write off the merchandise coupon corresponding to the product instance.
  • Figure 5 shows a schematic flow chart of the creation process of a commodity instance.
  • the merchant terminal sends a request to create a product to the product system (ie, the product database contained in the product voucher database); in step 1.2, the product system creates the product; in step 1.3, The commodity system returns a notification of successful creation to the merchant terminal; in step 1.4, the merchant terminal sends a request for querying dishes to the dish system (i.e. dish database).
  • the product system ie, the product database contained in the product voucher database
  • the product system creates the product
  • the commodity system returns a notification of successful creation to the merchant terminal
  • the merchant terminal sends a request for querying dishes to the dish system (i.e. dish database).
  • This step is used to obtain a list of candidate dishes; in step 1.5, the dish system sends a request to the merchant The terminal returns the query result so that the merchant can determine the instance meal information corresponding to the product instance according to the candidate meal list contained in the query result; in step 1.6, the merchant terminal returns the designated dish (ie Instance meal information); In step 1.7, the commodity system queries and verifies the legitimacy of the specified dishes returned by the merchant based on the dish system. This step mainly prevents the merchant from inputting incorrect instance meal information that is not included in the dish system; In step 1.8, the commodity system records the relationship between the created commodity instance and its applicable dish information (ie, instance meal information) after the verification is passed; in step 1.9, the commodity system returns the result of successful creation to the merchant terminal Notification message. Among them, the commodity system includes the aforementioned commodity coupon database.
  • the merchant can also edit the created commodity instance to modify the correspondence between the commodity instance and its associated instance meal information.
  • the instance meal information is stored in association with the product instance instead of the merchandise coupon. This method has at least the following advantages: since one product instance can correspond to multiple merchandise coupons, therefore, If the instance meal information is directly associated and stored with the commodity coupons, once the correspondence between the commodity instance and the instance meal information needs to be modified, it is necessary to modify each commodity coupon separately, which is tedious and time-consuming. Therefore, in this embodiment, the instance meal information is stored in association with the commodity instance, and the corresponding instance meal information can be modified only by modifying the commodity instance, so that the commodity coupons corresponding to the commodity instance can be quickly modified in batches.
  • Step S220 Store the association relationship between the commodity instance and the instance meal information as the instance meal association record in the preset commodity coupon database.
  • the association relationship between each commodity instance and its corresponding instance meal information is taken as an instance meal.
  • the associated records are stored, so that the mapping relationship between the commodity instance and the instance meal information can be bound in the background database, so as to query the instance meal information bound to a certain commodity instance.
  • the commodity voucher database is further divided into a commodity database and a coupon database. Accordingly, the association relationship between the commodity instance and the instance meal information is stored in the preset as the instance meal association record.
  • the commodity database contained in the commodity coupon database. Through the commodity database, it is possible to query the instance meal information associated with each commodity instance that has been created.
  • Step S230 Create a merchandise coupon corresponding to the merchandise instance.
  • the product instance is equivalent to a coupon template.
  • multiple product coupons corresponding to the product instance can be created, and the specific number of creation depends on the issued volume of the coupon.
  • the instance meal information corresponding to each commodity coupon created based on the same commodity instance is exactly the same.
  • a commodity coupon template corresponding to the commodity instance is generated in advance, and a commodity coupon corresponding to the commodity instance is created according to the commodity coupon template.
  • a hamburger set meal coupon template is generated, which is used to store various coupon information of the corresponding product coupon, including the denomination data, validity period data, applicable store data, and Instance meal information and other related data.
  • merchandise coupons can be quickly created in batches.
  • Step S240 Issue the created merchandise coupon to the user terminal, and store the correspondence between the issued merchandise coupon and the user terminal receiving the merchandise coupon as a coupon user association record in the merchandise coupon database.
  • the created merchandise coupon when issued to the user terminal, it can be issued through various methods such as free receipt or paid receipt by the user terminal, and the present disclosure does not limit the specific issuing method.
  • the payment receiving method is taken as an example for description.
  • the created merchandise coupon is added to the merchandise coupon collection page, and a merchandise coupon collection entry is added to it.
  • a merchandise coupon receipt request triggered by the user terminal for the merchandise coupon receipt entry displayed in the merchandise coupon receipt page
  • generate and send a coupon payment notification message corresponding to the merchandise coupon receipt request when the coupon is received
  • the commodity coupon corresponding to the commodity coupon receiving request is issued to the user terminal.
  • the coupon system will issue the corresponding commodity coupon as the electronic vouchers for consumption after receiving the notification of the user's successful payment. Users can see the valid electronic vouchers that have been issued on their own order details page, or on the card package page.
  • Figure 6 shows a schematic flow chart of the issuance process of commodity coupons.
  • the user terminal sends a request to receive a merchandise coupon to the order system; in step 2.2, the order system creates an order corresponding to the merchandise coupon and applies for user payment; in step 2.3, the order The system returns the pending payment transaction to the user terminal; in step 2.4, the user terminal makes the payment; in step 2.5, the order system confirms that the payment is successful; in step 2.6, the order system sends a payment success notification to the commodity coupon database (ie coupon system) ; In step 2.7, the coupon system issues merchandise coupons to the user according to the received payment success notification.
  • the commodity coupon database ie coupon system
  • the commodity voucher database in this embodiment further includes a voucher database, correspondingly, the correspondence between the issued commodity voucher and the user terminal receiving the commodity voucher is stored in the voucher contained in the commodity voucher database as a coupon user association record. In the database. By querying the coupon database, it is possible to determine the merchandise coupons that each user terminal has received.
  • Step S250 When a meal ordering request sent by the user terminal is received, the user identification included in the meal ordering request is acquired.
  • the ordering request sent by the user terminal may be a scanning code ordering request sent by scanning a table code.
  • the code scanning ordering request includes a user ID corresponding to the user terminal performing the code scanning operation, and the identity of the user performing the code scanning operation can be determined according to the user ID.
  • the execution subject of this step may be the ordering system.
  • Step S260 According to the coupon user association record stored in the preset commodity coupon database, obtain the issued commodity coupon matching the user ID, and determine the obtained commodity coupon as the target commodity coupon.
  • the issued commodity coupons that match the user ID can be obtained. Through this step, it is possible to determine the various merchandise coupons that the user who performed the code scanning operation has already received. Correspondingly, the acquired merchandise coupon is determined as the target merchandise coupon.
  • the aforementioned ordering request further includes a store identifier
  • the coupon user association record specifically includes: store information applicable to each merchandise coupon that has been issued, and receiving each The user identification of the user terminal of the merchandise coupon; accordingly, when obtaining the issued merchandise coupon matching the user id according to the coupon user association record stored in the preset merchandise coupon database, the order request includes The user ID and store ID of the voucher are selected from the commodity voucher database to match the user ID and store ID contained in the ordering request respectively.
  • the voucher user association records that match the user ID and the store ID in the order request respectively; according to the filtered voucher user association records, the issued and user IDs are obtained Matching merchandise coupons.
  • the issued merchandise coupon that matches the user ID can also be implemented through preset filtering rules and matching algorithms. For example, you can filter the coupons in the coupon database based on factors such as whether the coupons have been verified through other channels, whether the coupons are still within the validity period, etc., to filter out coupons that have expired or that have been verified through other channels , So as to ensure that the coupons pushed to users are available.
  • Step S270 According to the instance meal association record stored in the commodity coupon database, obtain the instance meal information associated with the commodity instance of the target commodity coupon, and associate the target commodity coupon and the commodity instance of the target commodity coupon.
  • the product information is sent to the user terminal.
  • the merchandise coupons in this embodiment are generated based on the merchandise instance, in this step, first, determine the merchandise instance used to generate the target merchandise coupon. Specifically, the merchandise coupon and the merchandise will be pre-recorded in the merchandise coupon database. Correspondence between the instances, correspondingly, according to the corresponding relationship, the commodity instance corresponding to the target commodity coupon can be determined. Then, query the instance meal association record stored in the commodity coupon database and corresponding to the commodity instance used to generate the target commodity coupon. Finally, according to the mapping relationship between the product instance stored in the queried instance meal association record and the instance meal information associated with the product instance, obtain the instance meal information associated with the product instance of the target commodity coupon .
  • the instance meal information associated with the commodity instance of the target commodity coupon can be obtained, and the obtained target commodity coupon and its corresponding instance meal information can be sent to the user terminal , For the user terminal to choose during the ordering process.
  • the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are sent to the user terminal
  • the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are added to the user terminal.
  • the ordering page triggered by the ordering request allows the user terminal to display the ordering page; wherein the ordering page is used to display a list of store meals matching the store identifier included in the ordering request. It can be seen that, in the method provided in this embodiment, the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon can be directly displayed on the ordering page for the user to pass verification during the ordering process.
  • the way of selling target commodity coupons achieves the purpose of clicking on corresponding instance meal information, thus combining the ordering process and the process of verifying commodity coupons into one, which is convenient for users.
  • target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are added to the ordering page triggered by the ordering request, it can be implemented in either of the following two ways :
  • the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are directly displayed on the ordering page.
  • a verification entry element corresponding to the target merchandise coupon is set in the vicinity of the target commodity coupon, so that the user can verify the target merchandise coupon through the verification entry element.
  • take the burger set meal coupon as an example, add the burger set meal coupon and its corresponding verification entry element (specifically, the check box) on the order page, and in the burger set menu
  • the corresponding example meal information "a medium-sized chicken burger, a box of medium-sized French fries, and a glass of medium-sized coke" is directly displayed below a commodity coupon.
  • This method displays the target commodity coupons and the instance commodity information at the same time, which is beneficial for users to order meals quickly.
  • each target commodity coupon available to the user in the current store is displayed on the ordering page, and when the user views the target commodity coupon, the corresponding instance meal information is displayed.
  • the target merchandise coupon and the query entry element corresponding to the target merchandise coupon are added to the order page; when a merchandise coupon query request triggered by the query entry element corresponding to the target merchandise coupon is received, the target merchandise The instance meal information associated with the commodity instance of the coupon is displayed on the order page, and the query entry element corresponding to the target commodity coupon contained in the order page is replaced with the verification entry element corresponding to the target commodity coupon .
  • the instance meal information associated with the commodity instance of the target commodity coupon will be obtained and displayed.
  • the ordering page is quickly rendered before obtaining the sample meal information, and the sample meal information is obtained only when the commodity coupon query request is received, so that the speed of ordering can be improved when the user does not want to use the commodity coupon.
  • Step S280 When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the information corresponding to the user terminal. In the list of ordered meals.
  • the target commodity coupon corresponding to the verification request is determined as a pending verification Sell merchandise coupons.
  • the obtained instance meal information associated with the commodity instance of the commodity coupon to be verified is determined as the meal information to be verified.
  • the user is ordering After ticking "Little Emperor” and “Orange Juice” on the meal page, and further checking the entry element corresponding to the merchandise voucher of burger set, the "Little Emperor", “Orange Juice” and Hamburg Set will be
  • the example meal information "a medium chicken burger, a box of medium French fries, and a glass of medium Coke” corresponding to a commodity coupon are all added to the ordered meal list of the user terminal.
  • Step S290 When receiving the order submission request sent by the user terminal, the target commodity coupon corresponding to the verification request is verified according to the ordered meal list.
  • the list of meals to be paid corresponding to the order submission request is determined according to the ordered meals list.
  • the list of food to be paid is determined based on the status of the ordered food list when the order submission request is triggered. Since the list of ordered foods changes dynamically with the ordering process, the list of food to be paid is The list of food ordered when submitting the request.
  • the meal information to be verified refers to the content that matches the instance meal information corresponding to the target commodity coupon.
  • the target commodity coupon corresponding to the verification request and its corresponding instance meal information can be recorded in the background, and the meal to be paid can be queried accordingly. Whether the product list contains content that matches the instance meal information corresponding to the recorded target commodity coupon, if so, the content that matches the instance meal information corresponding to the recorded target commodity coupon is determined as pending verification Sell meal information. Finally, according to the received payment request triggered for the meal list to be paid, the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  • the commodity voucher to be verified corresponding to the meal information to be verified contained in the meal list to be paid is verified, based on the meal to be paid
  • the meal information to be verified in the product list is calculated, the actual payment amount of the order corresponding to the meal list to be paid is calculated, and the order payment notification message is generated according to the actual payment amount of the order; the payment is triggered according to the received payment notification message for the order Request that the commodity coupons to be verified corresponding to the meal information to be verified included in the meal list to be paid for verification should be verified.
  • the actual payment amount of the order refers to the amount corresponding to other ordered meals in the list of meals to be paid except for the information of the meals to be verified. It can be seen that in this way, the amount that the user should actually pay after using the merchandise coupon can be automatically calculated without manual confirmation by the cashier, which avoids the tedious and error-prone manual confirmation.
  • the commodity coupon database that matches the coupon identifier of the commodity coupon to be verified is queried. Perform verification processing for the inquired commodity vouchers; after the verification is successful, determine the total order payment amount corresponding to the order submission request according to the actual payment amount of the order and the amount of the coupon verification corresponding to the commodity vouchers to be verified.
  • Amount Update the account balance data in the store account database corresponding to the store ID according to the total amount paid for the order.
  • the user can trigger the verification request by checking the verification entry element corresponding to the target commodity coupon during the ordering process.
  • the server After the server receives the verification request, it will record the relevant information of the target commodity coupon to be verified, and when it receives the order submission request sent by the user, it will directly prompt the user to pay for other meals except the commodity coupon.
  • the recorded target commodity coupons to be verified are automatically written off.
  • the user does not need to separately verify the merchandise vouchers, just check the merchandise vouchers during the ordering process, so that the ordering process and the verification process are completed at one time, and the user only needs to pay the merchandise vouchers
  • the prices of other meals do not need to be paid twice, which provides convenience for users.
  • the total amount of order payment corresponding to the order submission request is determined directly based on the actual payment amount of the order and the amount of coupon verification corresponding to the commodity coupon to be verified, and the total amount of the order payment corresponding to the order submission request is determined according to the order
  • the total payment amount updates the account balance data in the store account database corresponding to the store identifier, so that the merchant can collect the payment for this ordering operation at one time, so that the merchant can write off the merchandise coupon without perception, which provides convenience for the merchant .
  • FIG. 7 shows a schematic diagram of the process of verifying and canceling commodity coupons during the ordering process.
  • the ordering system receives the table scan code request sent by the user terminal, that is, the scan code ordering request; in step 3.2, the ordering system queries according to the store ID contained in the ordering request The store’s recipe; in step 3.3, the ordering system queries the coupon system (ie coupon database) for the commodity coupons available to the user in the current store according to the user identification contained in the ordering request; in step 3.4, ordering The system returns the ordering page containing the recipe and available merchandise coupons to the user terminal; in step 3.5, the user terminal clicks to use the merchandise coupon through the query entry element of the merchandise coupon; in step 3.6, the ordering system selects the merchandise system from the merchandise system Query the dish (ie instance meal information) associated with the commodity coupon in the database); in step 3.7, the commodity system returns the deductible dish corresponding to the commodity coupon (ie instance meal information) to the ordering system; In step 3.8, the user selects the dish corresponding to the commodity coupon (i
  • the system will use the product coupon under the user name and the product coupon corresponding to the dish in the current recipe, through the rule filtering and matching algorithm, and return the user to
  • the merchandise coupons used in the current store are presented in the recipe as dishes for users to choose. Users can check commodity coupons to deduct applicable dishes.
  • the system queries and returns the available dish information to the user. After the user selects the dish and submits the order, the system automatically calculates the remaining amount that the user needs to pay. After the user has successfully paid, the coupon system will check off the product coupons selected by the user in conjunction with the notification of the user's successful payment.
  • the amount entered by the merchant includes the sum of the amount paid by the user for ordering food and the amount paid by the user when purchasing the merchandise coupon.
  • this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity vouchers, so that the correspondence relationship between the user’s self-service order can be automatically based on the correspondence.
  • the verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users.
  • this method can automatically calculate the actual payment amount after the user uses the merchandise coupon, so that the user only needs to perform the payment process once, and can update the store database according to the merchandise coupon amount and the user’s actual payment amount, so that the store is Completing the collection under the condition of perception.
  • coupon codes In the traditional way of redemption of merchandise coupons, verification is done through coupon codes: when a user orders a meal in a store, the merchant first confirms the dishes that the coupon applies to offline, and then enters or scans the coupon code of the coupon on the device The QR code generated by the coupon code will be verified. If the user consumes multiple dishes, the merchandise vouchers need to be written off one by one for each dish, and the remaining dishes need to be calculated for the additional payment.
  • the disadvantage of this verification method is that it is necessary to manually confirm the dishes applicable to each commodity coupon, write off one by one and manually calculate the payment amount, which is very inconvenient.
  • the method in the present disclosure can be based on the system background to match the user-available merchandise coupons and the applicable dishes of the merchandise coupons set by the merchant without the merchant's offline confirmation.
  • the system automatically calculates the additional amount that the user needs to pay, without manual offline calculation.
  • the system will automatically write off the merchandise coupons selected by the user without the cashier's offline verification.
  • This method can greatly improve the user's ordering experience, save the labor cost of the merchant, and effectively combine the online purchase coupon issued by the merchant with the offline ordering scene. Realize the integration of ordering and verification of commodities, which not only avoids the cumbersome process of verification and repayment of coupons for offline merchants, but also improves the user's ordering experience.
  • FIG. 3 shows a schematic structural diagram of a device for verifying and verifying a commodity certificate based on ordering provided by the third embodiment of the present disclosure, and the device includes:
  • the receiving module 31 is adapted to obtain the user identification included in the ordering request when the ordering request sent by the user terminal is received;
  • the coupon obtaining module 32 is adapted to obtain the issued merchandise coupons matching the user ID according to the coupon user association records stored in the preset merchandise coupon database, and determine the obtained merchandise coupon as the target merchandise coupon;
  • the instance meal obtaining module 33 is adapted to obtain instance meal information associated with the commodity instance of the target commodity coupon according to the instance meal association records stored in the commodity coupon database, and correlate the target commodity coupon and the commodity instance of the target commodity coupon The instance meal information of the joint is sent to the user terminal;
  • the verification module 34 is adapted to add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the user terminal when the verification request triggered by the user terminal for the target commodity coupon is received.
  • the target commodity voucher corresponding to the verification request is verified according to the ordered meal list.
  • the example meal obtaining module 33 is specifically adapted to:
  • the ordering page is used to display a list of store meals matching the store identifier included in the ordering request.
  • the example meal obtaining module 33 is specifically adapted to:
  • the instance meal information associated with the commodity instance of the target commodity coupon is displayed on the ordering page, and the ordering page
  • the included query entry element corresponding to the target commodity coupon is replaced with the verification entry element corresponding to the target commodity coupon.
  • the verification module 34 is specifically adapted to:
  • the target commodity coupon corresponding to the verification request is determined as the commodity coupon to be verified
  • the meal information to be verified is added to the ordered meal list corresponding to the user terminal.
  • the verification module 34 is specifically adapted to:
  • the commodity voucher to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  • the verification module 34 is specifically adapted to:
  • the commodity certificate to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  • the verification module 34 is specifically adapted to:
  • the total amount of the order payment corresponding to the order submission request is determined according to the actual payment amount of the order and the amount of coupon verification corresponding to the commodity coupon to be verified;
  • the ordering request further includes a store identifier
  • the coupon user association record includes: store information applicable to each merchandise coupon that has been issued, and the user identifier of the user terminal receiving each merchandise coupon;
  • coupon obtaining module 32 is specifically adapted to:
  • the issued merchandise coupons matching the user ID are obtained.
  • the example meal obtaining module 33 is specifically adapted to:
  • the instance meal information associated with the commodity instance of the target commodity coupon is obtained.
  • the device further includes:
  • Create a storage module which is suitable for creating commodity instances for generating commodity coupons, and determining the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance; combining the commodity instance and the instance meal
  • the relationship between the information is stored in the preset commodity voucher database as the instance meal association record; the commodity voucher corresponding to the commodity instance is created, and the created commodity voucher is issued to the user terminal; the issued commodity voucher is associated with
  • the corresponding relationship between the user terminals receiving the product coupon is stored in the product coupon database as a coupon user association record, so that when an ordering request issued by the user terminal is received, it can be based on the coupon user association record stored in the coupon database and the sample meal.
  • the product association record verifies the issued product coupons.
  • creating a storage module is specifically adapted to:
  • the instance meal information associated with the product instance is determined according to a plurality of target meals selected from the candidate meal list.
  • creating a storage module is specifically adapted to:
  • creating a storage module is specifically adapted to:
  • the commodity coupon database further includes: a commodity database and a coupon database;
  • the creation of the storage module is specifically adapted to: store the association between the product instance and the instance meal information as the instance meal association record in the product database included in the preset commodity coupon database;
  • the corresponding relationship between the user terminals of the commodity coupon is stored in the coupon database included in the commodity coupon database as a coupon user association record.
  • the fourth embodiment of the present disclosure provides a non-volatile computer-readable storage medium.
  • the non-volatile computer-readable storage medium stores at least one executable instruction.
  • the computer-executable instruction can execute any of the foregoing method embodiments. Based on order-based merchandise certificate verification method.
  • the executable instructions may be specifically used to make the processor execute the corresponding operations in the foregoing method embodiments.
  • FIG. 4 shows a schematic structural diagram of an electronic device according to the fifth embodiment of the present disclosure, and the specific embodiment of the present disclosure does not limit the specific implementation of the electronic device.
  • the electronic device may include: a processor (processor) 402, a communication interface (Communications Interface) 406, a memory (memory) 404, and a communication bus 408.
  • processor processor
  • Communication interface Communication Interface
  • memory memory
  • communication bus 408 a communication bus
  • the processor 402, the communication interface 406, and the memory 404 communicate with each other through the communication bus 408.
  • the communication interface 406 is used to communicate with other devices such as network elements such as clients or other servers.
  • the processor 402 is configured to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the method for verifying and canceling a commodity certificate based on ordering.
  • the program 410 may include program code, and the program code includes computer operation instructions.
  • the processor 402 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
  • the one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
  • the memory 404 is used to store the program 410.
  • the memory 404 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the program 410 may be specifically used to enable the processor 402 to perform corresponding operations in the foregoing method embodiments.
  • modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
  • the various component embodiments of the present disclosure may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the voice input information-based lottery system according to the embodiments of the present disclosure.
  • DSP digital signal processor
  • the present disclosure can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
  • Such a program for realizing the present disclosure may be stored on a computer-readable medium, or may have the form of one or more signals. Such signals can be downloaded from Internet websites, or provided on carrier signals, or provided in any other form.

Abstract

A commodity coupon verification method and device based on food ordering. Said method comprises: when a food ordering request sent by a user terminal is received, acquiring a user identifier included in the food ordering request (S110); acquiring a released commodity coupon matching the user identifier according to a coupon user association record stored in a preset commodity coupon database, and determining the acquired commodity coupon as a target commodity coupon (S120); acquiring example food information associated with a commodity example of the target commodity coupon according to an example food association record stored in the commodity coupon database, and sending the target commodity coupon and the example food information associated with the commodity example of the target commodity coupon to the user terminal (S130); and when a verification request triggered by the user terminal for the target commodity coupon is received, adding said example food information corresponding to the verification request to an ordered food list corresponding to the user terminal, so that when a food ordering submit request issued by the user terminal is received, the verification of the target commodity coupon corresponding to the verification request is completed according to the ordered food list (S140).

Description

基于点餐的商品券核销方法及装置Commodity certificate verification method and device based on ordering
相关申请的交叉参考Cross reference of related applications
本申请要求于2019年4月9日提交中国专利局、申请号为2019102807732、名称为“基于点餐的商品券核销方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 9, 2019, with application number 2019102807732, titled "Method and Apparatus for Verification of Commodity Certificates Based on Ordering", the entire contents of which are incorporated by reference In this application.
技术领域Technical field
本公开涉及电子信息领域,具体涉及一种基于点餐的商品券核销方法及装置。The present disclosure relates to the field of electronic information, and in particular to a method and device for verification of merchandise coupons based on ordering.
背景技术Background technique
目前,为了方便用户、减少排队时间,很多门店都开通了线下扫码点餐业务,用户直接通过手机扫桌码的方式即可进入到门店的菜单页进行点餐操作。该方式省去了用户前往收银台排队的时间,使用户能够坐在座位上完成点餐过程,提升了用户的舒适度。At present, in order to facilitate users and reduce queuing time, many stores have opened offline code scanning and ordering services. Users can directly scan the table code on their mobile phones to enter the store’s menu page to order food. This method saves users the time to queue up at the cash register, enables users to sit in their seats to complete the ordering process, and improves user comfort.
另外,很多用户习惯于预先领取商品券,并根据应用的卡包中已领取的商品券选择就餐门店。在现有技术中,应用的卡包中已领取的商品券存储在后台数据库中,并通过唯一的券码标识进行区分。在用户使用商品券的过程中,需要由用户将商品券展示给收银员,由收银员人工确认该商品券是否能在本店核销,并在确认能够核销时,人工确认该商品券所对应的各个餐品,然后核销该商品券并为用户准备与该商品券相对应的各个餐品。另外,如果用户还需要店内的其他餐品,则需要针对其他餐品单独进行支付。In addition, many users are accustomed to pre-collecting merchandise vouchers and choosing a dining outlet based on the received merchandise vouchers in the app’s card package. In the prior art, the received merchandise coupons in the card package of the application are stored in the background database and distinguished by unique coupon code identification. In the process of using the merchandise coupon, the user needs to show the merchandise coupon to the cashier, and the cashier manually confirms whether the merchandise coupon can be redeemed in our store, and when confirming that it can be redeemed, manually confirm the corresponding merchandise coupon And then write off the merchandise coupon and prepare each meal corresponding to the merchandise coupon for the user. In addition, if the user needs other meals in the store, he needs to pay for the other meals separately.
发明人在实现本公开的过程中发现,现有技术中的上述方式至少存在如下缺陷:现有的商品券只能通过人工确认的方式进行核销,核销过程无法实现自动化;并且,现有的商品券无法在线下扫码点餐业务场景中使用,使用场景受限。In the process of implementing the present disclosure, the inventor found that the above-mentioned methods in the prior art have at least the following defects: existing commodity coupons can only be verified by manual verification, and the verification process cannot be automated; The merchandise vouchers of can not be used in offline scan code ordering business scenarios, and the use scenarios are limited.
发明内容Summary of the invention
鉴于上述问题,提出了本公开以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于点餐的商品券核销方法及装置。In view of the above-mentioned problems, the present disclosure is proposed to provide a method and device for verification of merchandise coupons based on ordering to overcome or at least partially solve the above-mentioned problems.
根据本公开的一个方面,提供了一种基于点餐的商品券核销方法,包括:According to one aspect of the present disclosure, there is provided a method for verification of merchandise coupons based on ordering, including:
当接收到用户终端发送的点餐请求时,获取点餐请求中包含的用户标识;When receiving the ordering request sent by the user terminal, obtain the user identification included in the ordering request;
根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与用户标识相匹配的商品券,将获取到的商品券确定为目标商品券;According to the coupon user association records stored in the preset commodity coupon database, obtain the issued commodity coupons that match the user ID, and determine the obtained commodity coupons as the target commodity coupons;
根据商品券数据库中存储的实例餐品关联记录,获取与目标商品券的商品实例相关联的实例餐品信息,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端;According to the instance meal association records stored in the commodity coupon database, obtain the instance meal information associated with the commodity instance of the target commodity coupon, and send the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the user terminal;
当接收到用户终端针对目标商品券触发的核销请求时,将与核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与用户终端相对应的已点餐品列表中,以便在接收到用户终端发出的点餐提交请求时,根据已点餐品列表对核销请求所对应的目标商品券进行核销。When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the ordered meal list corresponding to the user terminal , So that when the order submission request sent by the user terminal is received, the target merchandise coupon corresponding to the verification request is verified according to the ordered meal list.
根据本公开的另一个方面,提供了一种基于点餐的商品券核销装置,包括:According to another aspect of the present disclosure, there is provided a merchandise certificate verification device based on ordering, including:
接收模块,适于当接收到用户终端发送的点餐请求时,获取点餐请求中包含的用户标 识;The receiving module is adapted to obtain the user identification included in the ordering request when the ordering request sent by the user terminal is received;
券获取模块,适于根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与用户标识相匹配的商品券,将获取到的商品券确定为目标商品券;The coupon obtaining module is adapted to obtain the issued coupon matching the user ID according to the coupon user association record stored in the preset coupon database, and determine the obtained coupon as the target coupon;
实例餐品获取模块,适于根据商品券数据库中存储的实例餐品关联记录,获取与目标商品券的商品实例相关联的实例餐品信息,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端;The instance meal acquisition module is adapted to obtain the instance meal information associated with the product instance of the target commodity coupon according to the instance meal association records stored in the commodity coupon database, and associate the target commodity coupon with the product instance of the target commodity coupon The instance meal information of is sent to the user terminal;
核销模块,适于当接收到用户终端针对目标商品券触发的核销请求时,将与核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与用户终端相对应的已点餐品列表中,以便在接收到用户终端发出的点餐提交请求时,根据已点餐品列表对核销请求所对应的目标商品券进行核销。The verification module is adapted to add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the instance meal information corresponding to the user terminal when the verification request triggered by the user terminal for the target commodity coupon is received In the ordered meal list of the user terminal, when the order submission request sent by the user terminal is received, the target commodity coupon corresponding to the verification request can be verified according to the ordered meal list.
根据本公开的再一方面,提供了一种电子设备,包括:处理器、存储器、通信接口和通信总线,处理器、存储器和通信接口通过通信总线完成相互间的通信;According to another aspect of the present disclosure, there is provided an electronic device, including: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus;
存储器用于存放至少一可执行指令,可执行指令使处理器执行如上述的基于点餐的商品券核销方法对应的操作。The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the operation corresponding to the above-mentioned method for verification of merchandise coupons based on ordering.
根据本公开的再一方面,提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质中存储有至少一可执行指令,可执行指令使处理器执行如上述的基于点餐的商品券核销方法对应的操作。According to another aspect of the present disclosure, there is provided a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores at least one executable instruction, and the executable instruction causes a processor to execute as described above Corresponding operations based on the order-based merchandise certificate verification method.
根据本公开的再又一方面,提供了一种计算机程序产品,该计算机程序产品包括存储在非易失性计算机存储介质上的计算机程序。According to still another aspect of the present disclosure, a computer program product is provided, and the computer program product includes a computer program stored on a non-volatile computer storage medium.
在本公开提供的基于点餐的商品券核销方法及装置中,一方面,能够在商品券数据库中将商品实例与实例餐品信息之间的关联关系作为实例餐品关联记录进行存储;另一方面,能够在商品券数据库中将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录进行存储,从而在用户点餐过程中直接根据券用户关联记录以及实例餐品关联记录对已发放的商品券进行核销。由此可见,该方式在创建商品券的过程中预先记录了商品券及其对应的实例餐品信息以及用户终端之间的对应关系,从而能够基于该对应关系在用户自助点餐的过程中自动核销商品券,省去了人工确认并核销的繁琐操作,使点餐过程与商品券的核销过程合二为一,简化了支付流程,为用户提供了便利。In the order-based merchandise certificate verification method and device provided by the present disclosure, on the one hand, the association relationship between the merchandise instance and the instance meal information can be stored in the merchandise voucher database as the instance meal association record; On the one hand, it is possible to store the corresponding relationship between the issued merchandise coupon and the user terminal receiving the merchandise coupon as the coupon user association record in the merchandise coupon database, so that the coupon user association record and the coupon user association record can be directly used during the user ordering process. The instance meal association record verifies the issued commodity coupons. It can be seen that this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity coupons, so that it can automatically be used in the process of user self-service ordering based on the correspondence. The verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users.
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solutions of the present disclosure. In order to understand the technical means of the present disclosure more clearly, they can be implemented in accordance with the content of the specification, and in order to make the above and other objectives, features and advantages of the present disclosure more obvious and understandable. In the following, specific embodiments of the present disclosure are specifically cited.
附图说明Description of the drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only used for the purpose of illustrating the preferred embodiments, and are not considered as a limitation to the present disclosure. Also, throughout the drawings, the same reference symbols are used to denote the same components. In the attached picture:
图1示出了本公开实施例一提供的一种基于点餐的商品券核销方法的流程图;FIG. 1 shows a flow chart of a method for verifying and canceling a commodity certificate based on ordering provided by the first embodiment of the present disclosure;
图2示出了本公开实施例二提供的一种基于点餐的商品券核销方法的流程图;FIG. 2 shows a flowchart of a method for verifying and canceling a commodity certificate based on ordering provided by the second embodiment of the present disclosure;
图3示出了本公开实施例三提供的一种基于点餐的商品券核销装置的结构图;FIG. 3 shows a structural diagram of a device for verifying and verifying a commodity certificate based on ordering provided in the third embodiment of the present disclosure;
图4示出了本公开实施例五提供的一种电子设备的结构示意图;FIG. 4 shows a schematic structural diagram of an electronic device provided by Embodiment 5 of the present disclosure;
图5示出了商品实例的创建过程的流程示意图;Figure 5 shows a schematic flow chart of the creation process of a commodity instance;
图6示出了商品券的发放过程的流程示意图;Figure 6 shows a schematic flow chart of the issuance process of commodity coupons;
图7示出了在点餐过程中核销商品券的流程示意图。FIG. 7 shows a schematic diagram of the process of verifying and canceling commodity coupons during the ordering process.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
实施例一Example one
图1示出了本公开实施例一提供的一种基于点餐的商品券核销方法的流程图。如图1所示,该方法包括:Fig. 1 shows a flowchart of a method for verifying and canceling a commodity certificate based on ordering provided by the first embodiment of the present disclosure. As shown in Figure 1, the method includes:
步骤S110:当接收到用户终端发送的点餐请求时,获取点餐请求中包含的用户标识。Step S110: When a meal ordering request sent by the user terminal is received, the user identification included in the meal ordering request is obtained.
其中,本步骤的执行主体可以为各类服务器,例如,可以为门店内部的服务器,也可以为点餐应用所对应的后台服务器,本公开对此不做限定。该点餐请求可以为扫码点餐请求等各类点餐请求。用户标识可以为用户ID等标识信息。Wherein, the execution subject of this step may be various servers, for example, it may be a server in a store, or a backend server corresponding to a food ordering application, which is not limited in the present disclosure. The ordering request may be various ordering requests such as a scanning code ordering request. The user identification may be identification information such as a user ID.
步骤S120:根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与该用户标识相匹配的商品券,将获取到的商品券确定为目标商品券。Step S120: According to the coupon user association record stored in the preset commodity coupon database, obtain the issued commodity coupon matching the user ID, and determine the obtained commodity coupon as the target commodity coupon.
其中,商品券数据库中的券用户关联记录用于预先记录已发放的各个商品券与领取该商品券的用户终端之间的对应关系。通过查询商品券数据库,能够自动匹配当前用户可用的商品券。Wherein, the coupon user association record in the commodity coupon database is used to pre-record the correspondence between each commodity coupon that has been issued and the user terminal that receives the commodity coupon. By querying the commodity coupon database, the commodity coupons available to the current user can be automatically matched.
步骤S130:根据商品券数据库中存储的实例餐品关联记录,获取与目标商品券的商品实例相关联的实例餐品信息,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端。Step S130: According to the instance meal association record stored in the commodity coupon database, obtain the instance meal information associated with the commodity instance of the target commodity coupon, and associate the target commodity coupon and the instance meal information of the commodity instance of the target commodity coupon Send to the user terminal.
其中,商品券数据库中的实例餐品关联记录用于存储已发放的商品券的商品实例所关联的实例餐品信息,从而确定与目标商品券相对应的实例餐品信息。其中,商品实例是指:商品券所对应的商品的实体信息,具体包括该商品券中包含的各个商品的名称、规格、数量等信息。本实施例中的商品主要是指餐品。其中,商品实例与其对应的实例餐品信息之间具有固定的对应关系,在预设的商品券数据库中,将每个商品实例与其对应的实例餐品信息之间的关联关系作为一条实例餐品关联记录进行存储,由此能够在后台数据库中绑定商品实例与实例餐品信息之间的映射关系,以便于查询某一商品实例所绑定的实例餐品信息。Wherein, the instance meal association record in the commodity coupon database is used to store instance meal information associated with the commodity instance of the issued commodity coupon, so as to determine the instance meal information corresponding to the target commodity coupon. Among them, the commodity instance refers to the entity information of the commodity corresponding to the commodity coupon, which specifically includes the name, specification, and quantity of each commodity contained in the commodity coupon. The commodities in this embodiment mainly refer to meals. Among them, there is a fixed correspondence between a commodity instance and its corresponding instance meal information. In the preset commodity coupon database, the association relationship between each commodity instance and its corresponding instance meal information is taken as an instance meal. The associated records are stored, so that the mapping relationship between the commodity instance and the instance meal information can be bound in the background database, so as to query the instance meal information bound to a certain commodity instance.
步骤S140:当接收到用户终端针对目标商品券触发的核销请求时,将与核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与用户终端相对应的已点餐品列表中,以便在接收到用户终端发出的点餐提交请求时,根据已点餐品列表对核销请求所对应的目标商品券进行核销。Step S140: When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the point corresponding to the user terminal In the meal list, when receiving the order submission request sent by the user terminal, the target commodity coupon corresponding to the verification request can be verified according to the ordered meal list.
其中,该核销请求可以在点餐过程中触发,相应地,本步骤能够将与核销请求相对应的目标商品券的商品实例相关联的实例餐品信息自动添加到与用户终端相对应的已点餐品列表中,从而实现在点餐过程中使用商品券的目的。该核销请求所对应的目标商品券将在接收到用户终端发出的点餐提交请求时进行核销。也就是说,在用户最终提交点餐提交 请求之前,还可以撤销针对目标商品券的核销请求。Wherein, the verification request can be triggered during the ordering process. Accordingly, this step can automatically add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the corresponding user terminal In the list of ordered meals, so as to achieve the purpose of using commodity coupons during the ordering process. The target commodity coupon corresponding to the verification request will be verified when the order submission request sent by the user terminal is received. In other words, before the user finally submits the order submission request, the verification request for the target commodity coupon can also be cancelled.
由此可见,该方式在创建商品券的过程中预先记录了商品券及其对应的实例餐品信息以及用户终端之间的对应关系,从而能够基于该对应关系在用户自助点餐的过程中自动核销商品券,省去了人工确认并核销的繁琐操作,使点餐过程与商品券的核销过程合二为一,简化了支付流程,为用户提供了便利。It can be seen that this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity coupons, so that it can automatically be used in the process of user self-service ordering based on the correspondence. The verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users.
实施例二Example two
图2示出了本公开实施例二提供的一种基于点餐的商品券核销方法的流程图。如图2所示,该方法包括:Fig. 2 shows a flow chart of a method for verifying and canceling a commodity certificate based on ordering provided in the second embodiment of the present disclosure. As shown in Figure 2, the method includes:
步骤S210:创建用于生成商品券的商品实例,根据获取到的与商品实例相对应的候选餐品列表,确定与商品实例相关联的实例餐品信息。Step S210: Create a commodity instance for generating a commodity coupon, and determine the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance.
其中,商品实例是指:商品券所对应的商品的实体信息,具体包括该商品券中包含的各个商品的名称、规格、数量等信息。本实施例中的商品主要是指餐品。例如,汉堡套餐即为一个商品实例,该商品实例中包含汉堡、薯条、可乐这三个餐品,其中,汉堡为一个中号鸡肉汉堡、薯条为一盒中号薯条、可乐为一杯中号可乐,其中的“鸡肉汉堡”、“薯条”、“可乐”分别为该商品实例所包含的三个餐品的名称,“中号”为餐品的规格,“一个”、“一盒”、“一杯”等则为餐品的数量。由此可见,一个商品实例对应于一个或多个餐品,与商品实例相对应的餐品即为与该商品实例相关联的实例餐品信息。例如,上述汉堡套餐这一商品实例所关联的实例餐品信息包括:一个中号鸡肉汉堡、一盒中号薯条、一杯中号可乐。Among them, the commodity instance refers to the entity information of the commodity corresponding to the commodity coupon, which specifically includes the name, specification, and quantity of each commodity contained in the commodity coupon. The commodities in this embodiment mainly refer to meals. For example, a burger set meal is an example of a product. The product example contains three meals: burger, french fries, and cola. Among them, burger is a medium chicken burger, french fries is a box of medium fries, and coke is a cup Medium cola, where "chicken burger", "fries" and "cola" are the names of the three meals included in the product instance, "medium" is the specification of the meal, "one", "one" "Box" and "a cup" are the number of meals. It can be seen that one commodity instance corresponds to one or more meals, and the meal corresponding to the commodity instance is the instance meal information associated with the commodity instance. For example, the instance meal information associated with the commodity instance of the aforementioned burger set meal includes: a medium-sized chicken burger, a box of medium-sized French fries, and a glass of medium-sized coke.
具体地,在确定与商品实例相关联的实例餐品信息时,根据获取到的与商品实例相对应的候选餐品列表进行确定。其中,与商品实例相对应的候选餐品列表通常根据该商品实例所适用的门店确定。相应地,首先,确定该商品实例所适用的目标门店;然后,根据该目标门店所对应的门店餐品列表,获取与该商品实例相对应的候选餐品列表;最后,根据从该候选餐品列表中选择的多个目标餐品确定与该商品实例相关联的实例餐品信息。例如,当该商品实例所适用的目标门店为多个时,分别获取每个目标门店所对应的门店餐品列表,并根据各个目标门店所对应的门店餐品列表确定与该商品实例相对应的候选餐品列表。其中,为了避免因多个目标门店中的门店餐品列表之间的差异性而导致部分目标门店无法提供与该商品实例相对应的餐品的问题,在本实施例中,针对多个目标门店所对应的门店餐品列表,获取多个门店餐品列表之间的交集子列表,根据该交集子列表确定与该商品实例相对应的候选餐品列表。由于该交集子列表中的餐品为各个目标门店都能提供的餐品,因此,确保各个门店均能核销该商品实例所对应的商品券。Specifically, when determining the instance meal information associated with the commodity instance, the determination is made according to the acquired candidate meal list corresponding to the commodity instance. Among them, the candidate meal list corresponding to the commodity instance is usually determined according to the store to which the commodity instance applies. Correspondingly, first, determine the target store to which the product instance applies; then, according to the restaurant meal list corresponding to the target store, obtain the candidate meal list corresponding to the product instance; finally, according to the candidate meal The multiple target meals selected in the list determine the instance meal information associated with the commodity instance. For example, when there are multiple target stores to which the product instance applies, the restaurant meal list corresponding to each target store is obtained separately, and the store meal list corresponding to each target store is determined to correspond to the product instance A list of candidate meals. Among them, in order to avoid the problem that some target stores cannot provide meals corresponding to the product instance due to the differences between the restaurant food lists in multiple target stores, in this embodiment, for multiple target stores For the corresponding store meal list, an intersection sub-list between multiple store meal lists is obtained, and the candidate meal list corresponding to the commodity instance is determined according to the intersection sub-list. Since the meals in the intersection sublist are those that can be provided by each target store, it is ensured that each store can write off the merchandise coupon corresponding to the product instance.
图5示出了商品实例的创建过程的流程示意图。如图5所示,在步骤1.1中,商户终端向商品系统(即商品券数据库中包含的商品数据库)发送创建商品的请求;在步骤1.2中,商品系统进行商品的创建;在步骤1.3中,商品系统向商户终端返回创建成功通知;在步骤1.4中,商户终端向菜品系统(即菜品数据库)发送查询菜品的请求,该步骤用于获取候选餐品列表;在步骤1.5中,菜品系统向商户终端返回查询结果,以供商户根据查询结果中包含的候选餐品列表确定与该商品实例相对应的实例餐品信息;在步骤1.6中,商户终端向商品系统返回商品所关联的指定菜品(即实例餐品信息);在步骤1.7中,商品系统根据菜品系统查询并校验商户返回的指定菜品的合法性,该步骤主要防止商户输入错误的、未包含在菜品系统中的实例餐品信息;在步骤1.8中,商品系统在校验通过后记录该创建的商品实例与其适用菜品信息(即实例餐品信息)之间的关联关系;在步骤1.9 中,商品系统向商户终端返回创建成功的结果通知消息。其中,商品系统包含上述的商品券数据库。Figure 5 shows a schematic flow chart of the creation process of a commodity instance. As shown in Figure 5, in step 1.1, the merchant terminal sends a request to create a product to the product system (ie, the product database contained in the product voucher database); in step 1.2, the product system creates the product; in step 1.3, The commodity system returns a notification of successful creation to the merchant terminal; in step 1.4, the merchant terminal sends a request for querying dishes to the dish system (i.e. dish database). This step is used to obtain a list of candidate dishes; in step 1.5, the dish system sends a request to the merchant The terminal returns the query result so that the merchant can determine the instance meal information corresponding to the product instance according to the candidate meal list contained in the query result; in step 1.6, the merchant terminal returns the designated dish (ie Instance meal information); In step 1.7, the commodity system queries and verifies the legitimacy of the specified dishes returned by the merchant based on the dish system. This step mainly prevents the merchant from inputting incorrect instance meal information that is not included in the dish system; In step 1.8, the commodity system records the relationship between the created commodity instance and its applicable dish information (ie, instance meal information) after the verification is passed; in step 1.9, the commodity system returns the result of successful creation to the merchant terminal Notification message. Among them, the commodity system includes the aforementioned commodity coupon database.
另外,商户还可以编辑已创建的商品实例,从而修改商品实例与其关联的实例餐品信息之间的对应关系。由此可见,在本实施例中,将实例餐品信息与商品实例关联存储,而非与商品券关联存储,该方式至少具备如下优势:由于一个商品实例能够对应于多张商品券,因此,若是将实例餐品信息直接与商品券关联存储,一旦需要修改商品实例与实例餐品信息之间的对应关系,则需要分别针对每张商品券进行修改,工作量繁琐耗时。因此,在本实施例中,将实例餐品信息与商品实例关联存储,只需修改商品实例即可修改对应的实例餐品信息,从而快速批量修改该商品实例所对应的各张商品券。In addition, the merchant can also edit the created commodity instance to modify the correspondence between the commodity instance and its associated instance meal information. It can be seen that, in this embodiment, the instance meal information is stored in association with the product instance instead of the merchandise coupon. This method has at least the following advantages: since one product instance can correspond to multiple merchandise coupons, therefore, If the instance meal information is directly associated and stored with the commodity coupons, once the correspondence between the commodity instance and the instance meal information needs to be modified, it is necessary to modify each commodity coupon separately, which is tedious and time-consuming. Therefore, in this embodiment, the instance meal information is stored in association with the commodity instance, and the corresponding instance meal information can be modified only by modifying the commodity instance, so that the commodity coupons corresponding to the commodity instance can be quickly modified in batches.
步骤S220:将商品实例与实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库中。Step S220: Store the association relationship between the commodity instance and the instance meal information as the instance meal association record in the preset commodity coupon database.
其中,商品实例与其对应的实例餐品信息之间具有固定的对应关系,在预设的商品券数据库中,将每个商品实例与其对应的实例餐品信息之间的关联关系作为一条实例餐品关联记录进行存储,由此能够在后台数据库中绑定商品实例与实例餐品信息之间的映射关系,以便于查询某一商品实例所绑定的实例餐品信息。Among them, there is a fixed correspondence between a commodity instance and its corresponding instance meal information. In the preset commodity coupon database, the association relationship between each commodity instance and its corresponding instance meal information is taken as an instance meal. The associated records are stored, so that the mapping relationship between the commodity instance and the instance meal information can be bound in the background database, so as to query the instance meal information bound to a certain commodity instance.
在本实施例中,为了便于管理,将商品券数据库进一步划分为商品数据库以及券数据库,相应地,将商品实例与实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库所包含的商品数据库中。通过该商品数据库,能够查询已创建的各个商品实例所关联的实例餐品信息。In this embodiment, in order to facilitate management, the commodity voucher database is further divided into a commodity database and a coupon database. Accordingly, the association relationship between the commodity instance and the instance meal information is stored in the preset as the instance meal association record. In the commodity database contained in the commodity coupon database. Through the commodity database, it is possible to query the instance meal information associated with each commodity instance that has been created.
步骤S230:创建与商品实例相对应的商品券。Step S230: Create a merchandise coupon corresponding to the merchandise instance.
具体创建时,商品实例相当于券模板,根据同一个商品实例,能够创建多个对应于该商品实例的商品券,具体创建数量取决于券的发行量。其中,基于同一个商品实例创建的各张商品券所对应的实例餐品信息完全相同。为了提升商品券的创建效率,预先生成与商品实例相对应的商品券模板,根据该商品券模板创建与商品实例相对应的商品券。例如,针对汉堡套餐这一商品实例,生成汉堡套餐商品券模板,该商品券模板用于存储对应的商品券的各项券信息,具体包括商品券的面额数据、有效期数据、适用门店数据、以及实例餐品信息等相关数据。相应地,基于商品券模板,能够快速批量创建商品券。During specific creation, the product instance is equivalent to a coupon template. According to the same product instance, multiple product coupons corresponding to the product instance can be created, and the specific number of creation depends on the issued volume of the coupon. Among them, the instance meal information corresponding to each commodity coupon created based on the same commodity instance is exactly the same. In order to improve the efficiency of creation of commodity coupons, a commodity coupon template corresponding to the commodity instance is generated in advance, and a commodity coupon corresponding to the commodity instance is created according to the commodity coupon template. For example, for the hamburger set meal product example, a hamburger set meal coupon template is generated, which is used to store various coupon information of the corresponding product coupon, including the denomination data, validity period data, applicable store data, and Instance meal information and other related data. Correspondingly, based on the merchandise coupon template, merchandise coupons can be quickly created in batches.
步骤S240:将已创建的商品券发放给用户终端,并将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在商品券数据库中。Step S240: Issue the created merchandise coupon to the user terminal, and store the correspondence between the issued merchandise coupon and the user terminal receiving the merchandise coupon as a coupon user association record in the merchandise coupon database.
其中,将已创建的商品券发放给用户终端时,可通过用户终端免费领取或付费领取等多种方式发放,本公开不限定具体的发放方式。在本实施例中,以付费领取方式为例进行说明。Among them, when the created merchandise coupon is issued to the user terminal, it can be issued through various methods such as free receipt or paid receipt by the user terminal, and the present disclosure does not limit the specific issuing method. In this embodiment, the payment receiving method is taken as an example for description.
具体地,将已创建的商品券添加到商品券领取页面中,并为其添加商品券领取入口。相应地,当接收到用户终端针对商品券领取页面中展示的商品券领取入口触发的商品券领取请求时,生成并发送与商品券领取请求相对应的券支付通知消息;当接收到与该券支付通知消息相对应的券支付响应消息时,将与该商品券领取请求相对应的商品券发放给用户终端。其中,当用户在线上购买商品实例所对应的商品券之后,券系统接收到用户支付成功的通知后,会发放对应的商品券作为消费的电子凭证。用户在自己的订单详情页,或者在卡包页等入口,可以看到已发放的有效的电子凭证。Specifically, the created merchandise coupon is added to the merchandise coupon collection page, and a merchandise coupon collection entry is added to it. Correspondingly, when receiving a merchandise coupon receipt request triggered by the user terminal for the merchandise coupon receipt entry displayed in the merchandise coupon receipt page, generate and send a coupon payment notification message corresponding to the merchandise coupon receipt request; when the coupon is received When the coupon payment response message corresponding to the payment notification message is issued, the commodity coupon corresponding to the commodity coupon receiving request is issued to the user terminal. Among them, after the user purchases the commodity coupon corresponding to the commodity instance online, the coupon system will issue the corresponding commodity coupon as the electronic vouchers for consumption after receiving the notification of the user's successful payment. Users can see the valid electronic vouchers that have been issued on their own order details page, or on the card package page.
图6示出了商品券的发放过程的流程示意图。如图6所示,在步骤2.1中,用户终端 向订单系统发送领取商品券的请求;在步骤2.2中,订单系统创建与该商品券相对应的订单并申请用户支付;在步骤2.3中,订单系统向用户终端返回待支付交易;在步骤2.4中,用户终端进行支付;在步骤2.5中,订单系统确认支付成功;在步骤2.6中,订单系统向商品券数据库(即券系统)发送支付成功通知;在步骤2.7中,券系统根据接收到的支付成功通知向用户发放商品券。Figure 6 shows a schematic flow chart of the issuance process of commodity coupons. As shown in Figure 6, in step 2.1, the user terminal sends a request to receive a merchandise coupon to the order system; in step 2.2, the order system creates an order corresponding to the merchandise coupon and applies for user payment; in step 2.3, the order The system returns the pending payment transaction to the user terminal; in step 2.4, the user terminal makes the payment; in step 2.5, the order system confirms that the payment is successful; in step 2.6, the order system sends a payment success notification to the commodity coupon database (ie coupon system) ; In step 2.7, the coupon system issues merchandise coupons to the user according to the received payment success notification.
在本实施例中,每成功发放一张商品券之后,将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在商品券数据库中。由于本实施例中的商品券数据库进一步包括券数据库,相应地,将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在商品券数据库所包含的券数据库中。通过查询该券数据库,能够确定各个用户终端已领取的商品券。In this embodiment, after each product coupon is successfully issued, the corresponding relationship between the issued product coupon and the user terminal receiving the product coupon is stored in the product coupon database as a coupon user association record. Since the commodity voucher database in this embodiment further includes a voucher database, correspondingly, the correspondence between the issued commodity voucher and the user terminal receiving the commodity voucher is stored in the voucher contained in the commodity voucher database as a coupon user association record. In the database. By querying the coupon database, it is possible to determine the merchandise coupons that each user terminal has received.
步骤S250:当接收到用户终端发送的点餐请求时,获取该点餐请求中包含的用户标识。Step S250: When a meal ordering request sent by the user terminal is received, the user identification included in the meal ordering request is acquired.
其中,用户终端发送的点餐请求可以为通过扫桌码的方式发送的扫码点餐请求。该扫码点餐请求中包含执行扫码操作的用户终端所对应的用户标识,根据该用户标识能够确定执行扫码操作的用户的身份。本步骤的执行主体可以为点餐系统。The ordering request sent by the user terminal may be a scanning code ordering request sent by scanning a table code. The code scanning ordering request includes a user ID corresponding to the user terminal performing the code scanning operation, and the identity of the user performing the code scanning operation can be determined according to the user ID. The execution subject of this step may be the ordering system.
步骤S260:根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与该用户标识相匹配的商品券,将获取到的商品券确定为目标商品券。Step S260: According to the coupon user association record stored in the preset commodity coupon database, obtain the issued commodity coupon matching the user ID, and determine the obtained commodity coupon as the target commodity coupon.
具体地,通过查询预设的商品券数据库中存储的券用户关联记录,能够获取到已发放的与该用户标识相匹配的商品券。通过本步骤,能够确定执行扫码操作的用户已经领取的各个商品券。相应地,将获取到的商品券确定为目标商品券。Specifically, by querying the coupon user association records stored in the preset commodity coupon database, the issued commodity coupons that match the user ID can be obtained. Through this step, it is possible to determine the various merchandise coupons that the user who performed the code scanning operation has already received. Correspondingly, the acquired merchandise coupon is determined as the target merchandise coupon.
另外,可选地,为了确保商品券能够在当前门店使用,上述的点餐请求中进一步包含门店标识,且券用户关联记录具体包括:已发放的各个商品券所适用的门店信息、以及领取各个商品券的用户终端的用户标识;相应地,在根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与该用户标识相匹配的商品券时,进一步根据点餐请求中包含的用户标识以及门店标识,从商品券数据库中筛选与该点餐请求中包含的用户标识以及门店标识分别匹配的券用户关联记录;根据筛选出的券用户关联记录,获取已发放的与用户标识相匹配的商品券。通过上述方式,能够自动匹配当前扫码点餐的用户在当前门店内能够使用的已领取商品券。In addition, optionally, in order to ensure that the merchandise coupon can be used in the current store, the aforementioned ordering request further includes a store identifier, and the coupon user association record specifically includes: store information applicable to each merchandise coupon that has been issued, and receiving each The user identification of the user terminal of the merchandise coupon; accordingly, when obtaining the issued merchandise coupon matching the user id according to the coupon user association record stored in the preset merchandise coupon database, the order request includes The user ID and store ID of the voucher are selected from the commodity voucher database to match the user ID and store ID contained in the ordering request respectively. The voucher user association records that match the user ID and the store ID in the order request respectively; according to the filtered voucher user association records, the issued and user IDs are obtained Matching merchandise coupons. Through the above method, it is possible to automatically match the received merchandise coupons that can be used in the current store by the user who currently scans the code to order.
另外,在获取已发放的与该用户标识相匹配的商品券时,还可以通过预设的过滤规则和匹配算法实现。例如,可以根据商品券是否已通过其他渠道核销、商品券是否仍在有效期内等因素,对商品券数据库中的商品券进行过滤,以滤除已经过期或已通过其他渠道核销的商品券,从而确保推送给用户的商品券均为可用状态。In addition, when obtaining the issued merchandise coupon that matches the user ID, it can also be implemented through preset filtering rules and matching algorithms. For example, you can filter the coupons in the coupon database based on factors such as whether the coupons have been verified through other channels, whether the coupons are still within the validity period, etc., to filter out coupons that have expired or that have been verified through other channels , So as to ensure that the coupons pushed to users are available.
步骤S270:根据该商品券数据库中存储的实例餐品关联记录,获取与该目标商品券的商品实例相关联的实例餐品信息,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端。Step S270: According to the instance meal association record stored in the commodity coupon database, obtain the instance meal information associated with the commodity instance of the target commodity coupon, and associate the target commodity coupon and the commodity instance of the target commodity coupon. The product information is sent to the user terminal.
由于本实施例中的商品券是根据商品实例生成的,因此,在本步骤中,首先,确定用于生成目标商品券的商品实例,具体地,在商品券数据库中会预先记录商品券与商品实例之间的对应关系,相应地,根据该对应关系即可确定与目标商品券相对应的商品实例。然后,查询商品券数据库中存储的与该用于生成目标商品券的商品实例相对应的实例餐品关联记录。最后,根据查询到的实例餐品关联记录中存储的商品实例以及与该商品实例相关联的实例餐品信息之间的映射关系,获取与该目标商品券的商品实例相关联的实例餐品信息。Since the merchandise coupons in this embodiment are generated based on the merchandise instance, in this step, first, determine the merchandise instance used to generate the target merchandise coupon. Specifically, the merchandise coupon and the merchandise will be pre-recorded in the merchandise coupon database. Correspondence between the instances, correspondingly, according to the corresponding relationship, the commodity instance corresponding to the target commodity coupon can be determined. Then, query the instance meal association record stored in the commodity coupon database and corresponding to the commodity instance used to generate the target commodity coupon. Finally, according to the mapping relationship between the product instance stored in the queried instance meal association record and the instance meal information associated with the product instance, obtain the instance meal information associated with the product instance of the target commodity coupon .
通过上述方式,能够分别针对每张目标商品券,获取到该目标商品券的商品实例相关联的实例餐品信息,并将获取到的目标商品券及其对应的实例餐品信息发送给用户终端,以供用户终端在点餐过程中选择。Through the above method, for each target commodity coupon, the instance meal information associated with the commodity instance of the target commodity coupon can be obtained, and the obtained target commodity coupon and its corresponding instance meal information can be sent to the user terminal , For the user terminal to choose during the ordering process.
具体实施时,在将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端时,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息添加到由点餐请求触发的点餐页面中,以使用户终端展示该点餐页面;其中,该点餐页面用于展示与点餐请求中包含的门店标识相匹配的门店餐品列表。由此可见,在本实施例提供的方式中,能够将目标商品券以及目标商品券的商品实例相关联的实例餐品信息直接显示在点餐页面中,以供用户在点餐过程中通过核销目标商品券的方式实现点选对应的实例餐品信息的目的,从而将点餐过程与核销商品券的过程合二为一,方便了用户。In specific implementation, when the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are sent to the user terminal, the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are added to the user terminal. The ordering page triggered by the ordering request allows the user terminal to display the ordering page; wherein the ordering page is used to display a list of store meals matching the store identifier included in the ordering request. It can be seen that, in the method provided in this embodiment, the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon can be directly displayed on the ordering page for the user to pass verification during the ordering process. The way of selling target commodity coupons achieves the purpose of clicking on corresponding instance meal information, thus combining the ordering process and the process of verifying commodity coupons into one, which is convenient for users.
具体实现时,在将目标商品券以及目标商品券的商品实例相关联的实例餐品信息添加到由点餐请求触发的点餐页面中时,可通过如下两种实现方式中的任意一种实现:In specific implementation, when the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are added to the ordering page triggered by the ordering request, it can be implemented in either of the following two ways :
在第一种实现方式中,直接在点餐页面中同时展示目标商品券以及目标商品券的商品实例相关联的实例餐品信息。相应地,在目标商品券的邻近区域内设置与该目标商品券相对应的核销入口元素,以供用户通过该核销入口元素核销该目标商品券。例如,以汉堡套餐这一目标商品券为例而言,在点餐页面中添加汉堡套餐这一商品券及其对应的核销入口元素(具体可以为勾选框),并且,在汉堡套餐这一商品券下方直接显示对应的实例餐品信息“一个中号鸡肉汉堡、一盒中号薯条、一杯中号可乐”。该方式将目标商品券以及实例商品信息同时显示,有利于用户快速点餐。In the first implementation manner, the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon are directly displayed on the ordering page. Correspondingly, a verification entry element corresponding to the target merchandise coupon is set in the vicinity of the target commodity coupon, so that the user can verify the target merchandise coupon through the verification entry element. For example, take the burger set meal coupon as an example, add the burger set meal coupon and its corresponding verification entry element (specifically, the check box) on the order page, and in the burger set menu The corresponding example meal information "a medium-sized chicken burger, a box of medium-sized French fries, and a glass of medium-sized coke" is directly displayed below a commodity coupon. This method displays the target commodity coupons and the instance commodity information at the same time, which is beneficial for users to order meals quickly.
在第二种实现方式中,先在点餐页面中展示用户在当前门店可用的各个目标商品券,当用户查看目标商品券时,展示对应的实例餐品信息。具体地,将目标商品券以及与目标商品券相对应的查询入口元素添加到点餐页面中;当接收到通过与目标商品券相对应的查询入口元素触发的商品券查询请求时,将目标商品券的商品实例相关联的实例餐品信息展示在点餐页面中,并且,将点餐页面中包含的与目标商品券相对应的查询入口元素替换为与目标商品券相对应的核销入口元素。在该方式中,只有当接收到用户通过目标商品券对应的查询入口元素发送的商品券查询请求时,才会获取目标商品券的商品实例相关联的实例餐品信息并展示,该方式可以在获取实例餐品信息之前快速渲染点餐页面,只有当接收到商品券查询请求时才获取实例餐品信息,从而能够在用户不希望使用商品券的情况下提升点餐速度。In the second implementation manner, firstly, each target commodity coupon available to the user in the current store is displayed on the ordering page, and when the user views the target commodity coupon, the corresponding instance meal information is displayed. Specifically, the target merchandise coupon and the query entry element corresponding to the target merchandise coupon are added to the order page; when a merchandise coupon query request triggered by the query entry element corresponding to the target merchandise coupon is received, the target merchandise The instance meal information associated with the commodity instance of the coupon is displayed on the order page, and the query entry element corresponding to the target commodity coupon contained in the order page is replaced with the verification entry element corresponding to the target commodity coupon . In this method, only when the user receives the commodity coupon query request sent by the query entry element corresponding to the target commodity coupon, the instance meal information associated with the commodity instance of the target commodity coupon will be obtained and displayed. The ordering page is quickly rendered before obtaining the sample meal information, and the sample meal information is obtained only when the commodity coupon query request is received, so that the speed of ordering can be improved when the user does not want to use the commodity coupon.
步骤S280:当接收到用户终端针对目标商品券触发的核销请求时,将与该核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与该用户终端相对应的已点餐品列表中。Step S280: When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the information corresponding to the user terminal. In the list of ordered meals.
具体实施时,首先,当接收到通过点餐页面中包含的与目标商品券相对应的核销入口元素触发的核销请求时,将与该核销请求相对应的目标商品券确定为待核销商品券。然后,将获取到的与该待核销商品券的商品实例相关联的实例餐品信息确定为待核销餐品信息。最后,将待核销餐品信息添加到与用户终端相对应的已点餐品列表中。通过该方式,能够直接在点餐页面中实现核销商品券的操作。例如,仍以汉堡套餐这一商品券为例,假设点餐页面中除包含汉堡套餐这一商品券之外,还包含“小皇堡”、“橙汁”等餐品,相应地,用户在点餐页面中勾选了“小皇堡”、“橙汁”之后,进一步勾选了汉堡套餐这一商品券所对应的核销入口元素,则将“小皇堡”、“橙汁”以及汉堡套餐这一商品券所对应的实例餐品信息“一个中号鸡肉汉堡、一盒中号薯条、一杯中号可乐”均添加到该用户终端的 已点餐品列表中。In specific implementation, first, when a verification request triggered by the verification entry element corresponding to the target commodity coupon contained in the order page is received, the target commodity coupon corresponding to the verification request is determined as a pending verification Sell merchandise coupons. Then, the obtained instance meal information associated with the commodity instance of the commodity coupon to be verified is determined as the meal information to be verified. Finally, add the meal information to be verified to the ordered meal list corresponding to the user terminal. In this way, the operation of verifying the merchandise coupon can be realized directly on the order page. For example, still taking the hamburger set meal coupon as an example, suppose the order page contains the hamburger set meal coupon as well as food such as "Little King Fort" and "Orange Juice". Accordingly, the user is ordering After ticking "Little Emperor" and "Orange Juice" on the meal page, and further checking the entry element corresponding to the merchandise voucher of burger set, the "Little Emperor", "Orange Juice" and Hamburg Set will be The example meal information "a medium chicken burger, a box of medium French fries, and a glass of medium Coke" corresponding to a commodity coupon are all added to the ordered meal list of the user terminal.
步骤S290:在接收到用户终端发出的点餐提交请求时,根据已点餐品列表对核销请求所对应的目标商品券进行核销。Step S290: When receiving the order submission request sent by the user terminal, the target commodity coupon corresponding to the verification request is verified according to the ordered meal list.
具体实施时,首先,当接收到用户终端针对点餐页面发出的点餐提交请求时,根据已点餐品列表确定与该点餐提交请求相对应的待付餐品列表。其中,待付餐品列表是根据已点餐品列表在触发点餐提交请求时的状态确定的,由于已点餐品列表随着点餐过程而动态变化,因此,待付餐品列表即为提交点餐提交请求时的已点餐品列表。然后,确定该待付餐品列表中包含的待核销餐品信息以及与待核销餐品信息相对应的待核销商品券。其中,待核销餐品信息是指:与目标商品券所对应的实例餐品信息相匹配的内容。具体实施时,可以在接收到用户终端针对目标商品券触发的核销请求后,在后台记录与核销请求相对应的目标商品券及其对应的实例餐品信息,相应地,查询待付餐品列表中是否包含与已记录的目标商品券所对应的实例餐品信息相匹配的内容,若是,则将与已记录的目标商品券所对应的实例餐品信息相匹配的内容确定为待核销餐品信息。最后,根据接收到的针对待付餐品列表触发的支付请求,对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。In specific implementation, first, when receiving the order submission request sent by the user terminal for the order page, the list of meals to be paid corresponding to the order submission request is determined according to the ordered meals list. Among them, the list of food to be paid is determined based on the status of the ordered food list when the order submission request is triggered. Since the list of ordered foods changes dynamically with the ordering process, the list of food to be paid is The list of food ordered when submitting the request. Then, determine the meal product information to be verified and the merchandise coupon to be verified corresponding to the meal product information to be verified contained in the meal product list to be verified. Among them, the meal information to be verified refers to the content that matches the instance meal information corresponding to the target commodity coupon. In specific implementation, after receiving the verification request triggered by the user terminal for the target commodity coupon, the target commodity coupon corresponding to the verification request and its corresponding instance meal information can be recorded in the background, and the meal to be paid can be queried accordingly. Whether the product list contains content that matches the instance meal information corresponding to the recorded target commodity coupon, if so, the content that matches the instance meal information corresponding to the recorded target commodity coupon is determined as pending verification Sell meal information. Finally, according to the received payment request triggered for the meal list to be paid, the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
具体地,在根据接收到的针对待付餐品列表触发的支付请求,对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销时,根据待付餐品列表中包含的待核销餐品信息,计算与待付餐品列表相对应的订单实付数额,根据订单实付数额生成订单支付通知消息;根据接收到的针对订单支付通知消息触发的支付请求,对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。其中,订单实付数额是指:待付餐品列表中除待核销餐品信息之外的其他已点餐品所对应的数额。由此可见,在该种方式中,能够自动计算用户使用商品券之后实际应该支付的数额,无需收银员人工确认,避免了人工确认的繁琐易错。Specifically, according to the received payment request triggered for the meal list to be paid, the commodity voucher to be verified corresponding to the meal information to be verified contained in the meal list to be paid is verified, based on the meal to be paid The meal information to be verified in the product list is calculated, the actual payment amount of the order corresponding to the meal list to be paid is calculated, and the order payment notification message is generated according to the actual payment amount of the order; the payment is triggered according to the received payment notification message for the order Request that the commodity coupons to be verified corresponding to the meal information to be verified included in the meal list to be paid for verification should be verified. Among them, the actual payment amount of the order refers to the amount corresponding to other ordered meals in the list of meals to be paid except for the information of the meals to be verified. It can be seen that in this way, the amount that the user should actually pay after using the merchandise coupon can be automatically calculated without manual confirmation by the cashier, which avoids the tedious and error-prone manual confirmation.
其中,在对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销时,查询商品券数据库中与待核销商品券的券标识相匹配的商品券,针对查询到的商品券进行核销处理;核销成功后,根据与订单实付数额,以及待核销商品券所对应的券核销数额,确定与点餐提交请求相对应的点餐支付总数额;根据点餐支付总数额更新与门店标识相对应的门店账户数据库中的账户余额数据。Wherein, when the commodity coupon to be verified corresponding to the meal product information to be verified included in the meal list to be verified is verified, the commodity coupon database that matches the coupon identifier of the commodity coupon to be verified is queried. Perform verification processing for the inquired commodity vouchers; after the verification is successful, determine the total order payment amount corresponding to the order submission request according to the actual payment amount of the order and the amount of the coupon verification corresponding to the commodity vouchers to be verified Amount: Update the account balance data in the store account database corresponding to the store ID according to the total amount paid for the order.
在上述方式中,用户在点餐过程中通过勾选目标商品券所对应的核销入口元素的方式即可触发核销请求。服务器接收到该核销请求后,会记录待核销的目标商品券的相关信息,等到接收到用户发送的点餐提交请求时,直接提示用户支付除商品券之外的其他餐品的数额,待用户支付成功后,才对已记录的待核销的目标商品券自动核销。对于用户而言,用户无需单独核销商品券,只需在点餐过程中勾选商品券即可,使点餐过程和核销过程一次性完成,且用户仅需支付除商品券之外的其他餐品的价格,无需支付两次,为用户提供了便利。对于商户而言,在核销成功后,直接根据与订单实付数额以及待核销商品券所对应的券核销数额确定与点餐提交请求相对应的点餐支付总数额,并根据点餐支付总数额更新与门店标识相对应的门店账户数据库中的账户余额数据,从而使商户能够一次性收取本次点餐操作的款项,做到了商户无感知地核销商品券,为商户提供了便利。In the above manner, the user can trigger the verification request by checking the verification entry element corresponding to the target commodity coupon during the ordering process. After the server receives the verification request, it will record the relevant information of the target commodity coupon to be verified, and when it receives the order submission request sent by the user, it will directly prompt the user to pay for other meals except the commodity coupon. After the user's payment is successful, the recorded target commodity coupons to be verified are automatically written off. For the user, the user does not need to separately verify the merchandise vouchers, just check the merchandise vouchers during the ordering process, so that the ordering process and the verification process are completed at one time, and the user only needs to pay the merchandise vouchers The prices of other meals do not need to be paid twice, which provides convenience for users. For merchants, after successful verification, the total amount of order payment corresponding to the order submission request is determined directly based on the actual payment amount of the order and the amount of coupon verification corresponding to the commodity coupon to be verified, and the total amount of the order payment corresponding to the order submission request is determined according to the order The total payment amount updates the account balance data in the store account database corresponding to the store identifier, so that the merchant can collect the payment for this ordering operation at one time, so that the merchant can write off the merchandise coupon without perception, which provides convenience for the merchant .
图7示出了在点餐过程中核销商品券的流程示意图。如图7所示,在步骤3.1中,点餐系统接收到用户终端发送的扫桌码请求,即扫码点餐请求;在步骤3.2中,点餐系统根据点餐请求中包含的门店标识查询该门店的菜谱;在步骤3.3中,点餐系统根据点餐请求 中包含的用户标识,从券系统(即券数据库)中查询该用户在当前门店可用的商品券;在步骤3.4中,点餐系统向用户终端返回包含菜谱和可用商品券的点餐页面;在步骤3.5中,用户终端通过商品券的查询入口元素,点击使用商品券;在步骤3.6中,点餐系统从商品系统(即商品数据库)中查询该商品券所关联的菜品(即实例餐品信息);在步骤3.7中,商品系统向点餐系统返回该商品券所对应的可抵扣菜品(即实例餐品信息);在步骤3.8中,用户根据商品券所对应的可抵扣菜品,选择商品券所对应的菜品,即通过核销入口元素核销对应的商品券;在步骤3.9中,点餐系统向订单系统提交订单;在步骤4.0中,订单系统引导用户完成支付;在步骤4.1中,订单系统向券系统发送支付成功通知;在步骤4.2中,券系统根据支付成功通知核销对应的商品券。FIG. 7 shows a schematic diagram of the process of verifying and canceling commodity coupons during the ordering process. As shown in Figure 7, in step 3.1, the ordering system receives the table scan code request sent by the user terminal, that is, the scan code ordering request; in step 3.2, the ordering system queries according to the store ID contained in the ordering request The store’s recipe; in step 3.3, the ordering system queries the coupon system (ie coupon database) for the commodity coupons available to the user in the current store according to the user identification contained in the ordering request; in step 3.4, ordering The system returns the ordering page containing the recipe and available merchandise coupons to the user terminal; in step 3.5, the user terminal clicks to use the merchandise coupon through the query entry element of the merchandise coupon; in step 3.6, the ordering system selects the merchandise system from the merchandise system Query the dish (ie instance meal information) associated with the commodity coupon in the database); in step 3.7, the commodity system returns the deductible dish corresponding to the commodity coupon (ie instance meal information) to the ordering system; In step 3.8, the user selects the dish corresponding to the commodity voucher according to the deductible dish corresponding to the commodity voucher, that is, the corresponding commodity voucher is verified through the verification entry element; in step 3.9, the ordering system submits the order to the order system ; In step 4.0, the order system guides the user to complete the payment; in step 4.1, the order system sends a payment success notification to the coupon system; in step 4.2, the coupon system writes off the corresponding merchandise coupon according to the payment success notification.
由此可见,用户到店扫码点餐,打开店铺菜单页面过程中,系统会根据用户名下的商品券、该商品券对应当前菜谱中的菜品,通过规则过滤和匹配算法,返回用户可以在当前门店进行使用的商品券,并以菜品的方式呈现在菜谱中,供用户选择。用户可以勾选商品券来抵扣适用菜品,当用户选择使用商品券时,系统查询并且返回给用户可用的菜品信息,用户选择菜品并且提交订单后,系统自动计算出用户需要支付的剩余金额。用户支付成功后,券系统根据用户支付成功的通知,联动的核销用户勾选的商品券。而商家入账的金额,包括点餐订单用户支付的金额以及购买商品券时用户支付的金额的总和。It can be seen that when the user goes to the store to scan the code to order and open the store menu page, the system will use the product coupon under the user name and the product coupon corresponding to the dish in the current recipe, through the rule filtering and matching algorithm, and return the user to The merchandise coupons used in the current store are presented in the recipe as dishes for users to choose. Users can check commodity coupons to deduct applicable dishes. When the user chooses to use the commodity coupons, the system queries and returns the available dish information to the user. After the user selects the dish and submits the order, the system automatically calculates the remaining amount that the user needs to pay. After the user has successfully paid, the coupon system will check off the product coupons selected by the user in conjunction with the notification of the user's successful payment. The amount entered by the merchant includes the sum of the amount paid by the user for ordering food and the amount paid by the user when purchasing the merchandise coupon.
综上可知,该方式在创建商品券的过程中预先记录了商品券及其对应的实例餐品信息以及用户终端之间的对应关系,从而能够基于该对应关系在用户自助点餐的过程中自动核销商品券,省去了人工确认并核销的繁琐操作,使点餐过程与商品券的核销过程合二为一,简化了支付流程,为用户提供了便利。并且,该方式能够自动计算用户使用商品券之后的实付数额,使用户只需进行一次支付过程即可,并且,能够根据商品券的数额以及用户的实付数额更新门店数据库,使门店在无感知的情况下完成收款。In summary, this method pre-records the correspondence between the commodity vouchers and their corresponding instance meal information and the user terminal in the process of creating commodity vouchers, so that the correspondence relationship between the user’s self-service order can be automatically based on the correspondence. The verification of commodity vouchers eliminates the tedious operation of manual confirmation and verification, which combines the ordering process and the verification process of commodity vouchers into one, which simplifies the payment process and provides convenience for users. In addition, this method can automatically calculate the actual payment amount after the user uses the merchandise coupon, so that the user only needs to perform the payment process once, and can update the store database according to the merchandise coupon amount and the user’s actual payment amount, so that the store is Completing the collection under the condition of perception.
在传统的商品券核销方式中,是通过券码进行核销:当用户到店点餐时,商家首先线下确认商品券适用的菜品,然后再在设备上输入商品券的券码或者扫描券码生成的二维码进行核销。如果用户消费了多个菜品,则需要针对每个菜品逐一核销商品券,剩下的菜品则需要计算额外需要补支付的金额。这种核销方式的缺点在于需要人工确认每一商品券所适用的菜品,逐一核销以及人工计算补支付金额,非常不方便。本公开中的方式能够基于系统后台匹配用户可用商品券以及商家设置的商品券的适用菜品,无需商家线下确认。当用户选择使用商品券下单后,系统自动计算用户需要支付的额外金额,无需人工线下计算。当用户支付成功后,系统会自动核销用户选择的商品券,无需收银员线下依次核销。该方式能够大幅提高用户点餐的体验,并且节约商户的人力成本,有效地把商户发放的线上购买的商品券和线下点餐的场景结合起来。实现点餐核销商品一体化,既避免了线下商家工作人员繁琐的券核销和补支付过程,又提升了用户点餐的体验。In the traditional way of redemption of merchandise coupons, verification is done through coupon codes: when a user orders a meal in a store, the merchant first confirms the dishes that the coupon applies to offline, and then enters or scans the coupon code of the coupon on the device The QR code generated by the coupon code will be verified. If the user consumes multiple dishes, the merchandise vouchers need to be written off one by one for each dish, and the remaining dishes need to be calculated for the additional payment. The disadvantage of this verification method is that it is necessary to manually confirm the dishes applicable to each commodity coupon, write off one by one and manually calculate the payment amount, which is very inconvenient. The method in the present disclosure can be based on the system background to match the user-available merchandise coupons and the applicable dishes of the merchandise coupons set by the merchant without the merchant's offline confirmation. When the user chooses to place an order using the commodity coupon, the system automatically calculates the additional amount that the user needs to pay, without manual offline calculation. When the user pays successfully, the system will automatically write off the merchandise coupons selected by the user without the cashier's offline verification. This method can greatly improve the user's ordering experience, save the labor cost of the merchant, and effectively combine the online purchase coupon issued by the merchant with the offline ordering scene. Realize the integration of ordering and verification of commodities, which not only avoids the cumbersome process of verification and repayment of coupons for offline merchants, but also improves the user's ordering experience.
实施例三Example three
图3示出了本公开实施例三提供的一种基于点餐的商品券核销装置的结构示意图,该装置包括:FIG. 3 shows a schematic structural diagram of a device for verifying and verifying a commodity certificate based on ordering provided by the third embodiment of the present disclosure, and the device includes:
接收模块31,适于当接收到用户终端发送的点餐请求时,获取点餐请求中包含的用户标识;The receiving module 31 is adapted to obtain the user identification included in the ordering request when the ordering request sent by the user terminal is received;
券获取模块32,适于根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与用户标识相匹配的商品券,将获取到的商品券确定为目标商品券;The coupon obtaining module 32 is adapted to obtain the issued merchandise coupons matching the user ID according to the coupon user association records stored in the preset merchandise coupon database, and determine the obtained merchandise coupon as the target merchandise coupon;
实例餐品获取模块33,适于根据商品券数据库中存储的实例餐品关联记录,获取与目 标商品券的商品实例相关联的实例餐品信息,将目标商品券以及目标商品券的商品实例相关联的实例餐品信息发送给用户终端;The instance meal obtaining module 33 is adapted to obtain instance meal information associated with the commodity instance of the target commodity coupon according to the instance meal association records stored in the commodity coupon database, and correlate the target commodity coupon and the commodity instance of the target commodity coupon The instance meal information of the joint is sent to the user terminal;
核销模块34,适于当接收到用户终端针对目标商品券触发的核销请求时,将与核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与用户终端相对应的已点餐品列表中,以便在接收到用户终端发出的点餐提交请求时,根据已点餐品列表对核销请求所对应的目标商品券进行核销。The verification module 34 is adapted to add the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request to the user terminal when the verification request triggered by the user terminal for the target commodity coupon is received. In the corresponding ordered meal list, when receiving the order submission request sent by the user terminal, the target commodity voucher corresponding to the verification request is verified according to the ordered meal list.
可选地,实例餐品获取模块33具体适于:Optionally, the example meal obtaining module 33 is specifically adapted to:
将目标商品券以及目标商品券的商品实例相关联的实例餐品信息添加到由点餐请求触发的点餐页面中,以使用户终端展示点餐页面;Adding the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the ordering page triggered by the ordering request, so that the user terminal displays the ordering page;
其中,点餐页面用于展示与点餐请求中包含的门店标识相匹配的门店餐品列表。Wherein, the ordering page is used to display a list of store meals matching the store identifier included in the ordering request.
可选地,实例餐品获取模块33具体适于:Optionally, the example meal obtaining module 33 is specifically adapted to:
将目标商品券以及与目标商品券相对应的查询入口元素添加到点餐页面中;Add the target product coupon and the query entry element corresponding to the target product coupon to the order page;
当接收到通过与目标商品券相对应的查询入口元素触发的商品券查询请求时,将目标商品券的商品实例相关联的实例餐品信息展示在点餐页面中,并且,将点餐页面中包含的与目标商品券相对应的查询入口元素替换为与目标商品券相对应的核销入口元素。When receiving the commodity coupon query request triggered by the query entry element corresponding to the target commodity coupon, the instance meal information associated with the commodity instance of the target commodity coupon is displayed on the ordering page, and the ordering page The included query entry element corresponding to the target commodity coupon is replaced with the verification entry element corresponding to the target commodity coupon.
可选地,核销模块34具体适于:Optionally, the verification module 34 is specifically adapted to:
当接收到通过点餐页面中包含的与目标商品券相对应的核销入口元素触发的核销请求时,将与核销请求相对应的目标商品券确定为待核销商品券;When a verification request triggered by the verification entry element corresponding to the target commodity coupon contained in the order page is received, the target commodity coupon corresponding to the verification request is determined as the commodity coupon to be verified;
将获取到的与待核销商品券的商品实例相关联的实例餐品信息确定为待核销餐品信息;Determine the obtained instance meal information associated with the commodity instance of the commodity certificate to be verified as the meal information to be verified;
将待核销餐品信息添加到与用户终端相对应的已点餐品列表中。The meal information to be verified is added to the ordered meal list corresponding to the user terminal.
可选地,核销模块34具体适于:Optionally, the verification module 34 is specifically adapted to:
当接收到用户终端针对点餐页面发出的点餐提交请求时,根据已点餐品列表确定与点餐提交请求相对应的待付餐品列表;When receiving the order submission request from the user terminal for the ordering page, determine the list of meals to be paid corresponding to the order submission request according to the ordered meals list;
确定待付餐品列表中包含的待核销餐品信息以及与待核销餐品信息相对应的待核销商品券;Determine the meal information to be verified and the commodity vouchers to be verified corresponding to the meal information to be verified contained in the meal list to be paid;
根据接收到的针对待付餐品列表触发的支付请求,对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered for the meal list to be paid, the commodity voucher to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
可选地,核销模块34具体适于:Optionally, the verification module 34 is specifically adapted to:
根据待付餐品列表中包含的待核销餐品信息,计算与待付餐品列表相对应的订单实付数额,根据订单实付数额生成订单支付通知消息;Calculate the actual payment amount of the order corresponding to the list of food items to be paid according to the food information to be verified in the list of items to be paid, and generate an order payment notification message according to the actual payment amount of the order;
根据接收到的针对订单支付通知消息触发的支付请求,对待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered by the order payment notification message, the commodity certificate to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
可选地,核销模块34具体适于:Optionally, the verification module 34 is specifically adapted to:
查询商品券数据库中与待核销商品券的券标识相匹配的商品券,针对查询到的商品券进行核销处理;Query the commodity coupons matching the coupon ID of the commodity coupon to be verified in the commodity coupon database, and perform verification processing for the inquired commodity coupon;
核销成功后,根据与订单实付数额,以及待核销商品券所对应的券核销数额,确定与点餐提交请求相对应的点餐支付总数额;After the verification is successful, the total amount of the order payment corresponding to the order submission request is determined according to the actual payment amount of the order and the amount of coupon verification corresponding to the commodity coupon to be verified;
根据点餐支付总数额更新与门店标识相对应的门店账户数据库中的账户余额数据。Update the account balance data in the store account database corresponding to the store identifier according to the total amount of payment for the order.
可选地,点餐请求中进一步包含门店标识,并且,券用户关联记录包括:已发放的各个商品券所适用的门店信息、以及领取各个商品券的用户终端的用户标识;Optionally, the ordering request further includes a store identifier, and the coupon user association record includes: store information applicable to each merchandise coupon that has been issued, and the user identifier of the user terminal receiving each merchandise coupon;
则券获取模块32具体适于:Then the coupon obtaining module 32 is specifically adapted to:
根据点餐请求中包含的用户标识以及门店标识,从商品券数据库中筛选与点餐请求中包含的用户标识以及门店标识分别匹配的券用户关联记录;According to the user ID and store ID contained in the ordering request, filter the coupon user association records that match the user ID and store ID contained in the ordering request from the commodity voucher database;
根据筛选出的券用户关联记录,获取已发放的与用户标识相匹配的商品券。According to the selected coupon user association records, the issued merchandise coupons matching the user ID are obtained.
可选地,实例餐品获取模块33具体适于:Optionally, the example meal obtaining module 33 is specifically adapted to:
确定用于生成目标商品券的商品实例;Determine the commodity instance used to generate the target commodity coupon;
查询商品券数据库中存储的与用于生成目标商品券的商品实例相对应的实例餐品关联记录;Query the instance meal association records stored in the commodity coupon database and corresponding to the commodity instance used to generate the target commodity coupon;
根据查询到的实例餐品关联记录中存储的商品实例以及与该商品实例相关联的实例餐品信息之间的映射关系,获取与目标商品券的商品实例相关联的实例餐品信息。According to the mapping relationship between the commodity instance stored in the queried instance meal association record and the instance meal information associated with the commodity instance, the instance meal information associated with the commodity instance of the target commodity coupon is obtained.
可选地,该装置进一步包括:Optionally, the device further includes:
创建存储模块,适于创建用于生成商品券的商品实例,根据获取到的与商品实例相对应的候选餐品列表,确定与商品实例相关联的实例餐品信息;将商品实例与实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库中;创建与商品实例相对应的商品券,将已创建的商品券发放给用户终端;将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在商品券数据库中,以便在接收到用户终端发出的点餐请求时根据商品券数据库中存储的券用户关联记录以及实例餐品关联记录对已发放的商品券进行核销。Create a storage module, which is suitable for creating commodity instances for generating commodity coupons, and determining the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance; combining the commodity instance and the instance meal The relationship between the information is stored in the preset commodity voucher database as the instance meal association record; the commodity voucher corresponding to the commodity instance is created, and the created commodity voucher is issued to the user terminal; the issued commodity voucher is associated with The corresponding relationship between the user terminals receiving the product coupon is stored in the product coupon database as a coupon user association record, so that when an ordering request issued by the user terminal is received, it can be based on the coupon user association record stored in the coupon database and the sample meal. The product association record verifies the issued product coupons.
可选地,创建存储模块具体适于:Optionally, creating a storage module is specifically adapted to:
确定商品实例所适用的目标门店;Determine the target store to which the product instance applies;
根据目标门店所对应的门店餐品列表,获取与商品实例相对应的候选餐品列表;According to the restaurant meal list corresponding to the target store, obtain the candidate meal list corresponding to the product instance;
根据从候选餐品列表中选择的多个目标餐品确定与商品实例相关联的实例餐品信息。The instance meal information associated with the product instance is determined according to a plurality of target meals selected from the candidate meal list.
可选地,创建存储模块具体适于:Optionally, creating a storage module is specifically adapted to:
生成与商品实例相对应的商品券模板,根据商品券模板创建与商品实例相对应的商品券。Generate a merchandise coupon template corresponding to the product instance, and create a merchandise coupon corresponding to the product instance based on the merchandise coupon template.
可选地,创建存储模块具体适于:Optionally, creating a storage module is specifically adapted to:
当接收到用户终端针对商品券领取页面中展示的商品券领取入口触发的商品券领取请求时,生成并发送与商品券领取请求相对应的券支付通知消息;When receiving a merchandise coupon receipt request triggered by the user terminal for the merchandise coupon receipt entry displayed in the merchandise coupon receipt page, generate and send a coupon payment notification message corresponding to the merchandise coupon receipt request;
当接收到与券支付通知消息相对应的券支付响应消息时,将与商品券领取请求相对应的商品券发放给用户终端。When a coupon payment response message corresponding to the coupon payment notification message is received, a merchandise coupon corresponding to the merchandise coupon claim request is issued to the user terminal.
可选地,商品券数据库进一步包括:商品数据库以及券数据库;Optionally, the commodity coupon database further includes: a commodity database and a coupon database;
则创建存储模块具体适于:将商品实例与实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库所包含的商品数据库中;将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在商品券数据库所包含的券数据库中。Then the creation of the storage module is specifically adapted to: store the association between the product instance and the instance meal information as the instance meal association record in the product database included in the preset commodity coupon database; The corresponding relationship between the user terminals of the commodity coupon is stored in the coupon database included in the commodity coupon database as a coupon user association record.
关于上述各个模块的具体结构和工作原理可参照方法实施例中相应部分的描述,此处不再赘述。For the specific structure and working principle of each of the above modules, please refer to the description of the corresponding part in the method embodiment, which will not be repeated here.
实施例四Example four
本公开实施例四提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的基于点餐的商品券核销方法。可执行指令具体可以用于使得处理器执行上述方法实施例中对应的各个操作。The fourth embodiment of the present disclosure provides a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores at least one executable instruction. The computer-executable instruction can execute any of the foregoing method embodiments. Based on order-based merchandise certificate verification method. The executable instructions may be specifically used to make the processor execute the corresponding operations in the foregoing method embodiments.
实施例五Example five
图4示出了根据本公开实施例五的一种电子设备的结构示意图,本公开具体实施例并不对电子设备的具体实现做限定。FIG. 4 shows a schematic structural diagram of an electronic device according to the fifth embodiment of the present disclosure, and the specific embodiment of the present disclosure does not limit the specific implementation of the electronic device.
如图4所示,该电子设备可以包括:处理器(processor)402、通信接口(Communications Interface)406、存储器(memory)404、以及通信总线408。As shown in FIG. 4, the electronic device may include: a processor (processor) 402, a communication interface (Communications Interface) 406, a memory (memory) 404, and a communication bus 408.
其中:among them:
处理器402、通信接口406、以及存储器404通过通信总线408完成相互间的通信。The processor 402, the communication interface 406, and the memory 404 communicate with each other through the communication bus 408.
通信接口406,用于与其它设备比如客户端或其它服务器等的网元通信。The communication interface 406 is used to communicate with other devices such as network elements such as clients or other servers.
处理器402,用于执行程序410,具体可以执行上述基于点餐的商品券核销方法实施例中的相关步骤。The processor 402 is configured to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the method for verifying and canceling a commodity certificate based on ordering.
具体地,程序410可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 410 may include program code, and the program code includes computer operation instructions.
处理器402可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本公开实施例的一个或多个集成电路。电子设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 402 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
存储器404,用于存放程序410。存储器404可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 404 is used to store the program 410. The memory 404 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
程序410具体可以用于使得处理器402执行上述方法实施例中对应的各个操作。The program 410 may be specifically used to enable the processor 402 to perform corresponding operations in the foregoing method embodiments.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本公开也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。The algorithms and displays provided here are not inherently related to any particular computer, virtual system or other equipment. Various general-purpose systems can also be used with the teaching based on this. From the above description, the structure required to construct this type of system is obvious. In addition, the present disclosure is not directed to any specific programming language. It should be understood that various programming languages can be used to implement the content of the present disclosure described herein, and the above description of a specific language is to disclose the best embodiment of the present disclosure.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the instructions provided here, a lot of specific details are explained. However, it can be understood that the embodiments of the present disclosure may be practiced without these specific details. In some instances, well-known methods, structures and technologies are not shown in detail, so as not to obscure the understanding of this specification.
类似地,应当理解,为了精简本公开并帮助理解各个公开方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,公开方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身 都作为本公开的单独实施例。Similarly, it should be understood that in order to streamline the present disclosure and help understand one or more of the various disclosed aspects, in the above description of the exemplary embodiments of the present disclosure, the various features of the present disclosure are sometimes grouped together into a single embodiment, Figure, or its description. However, the disclosed method should not be interpreted as reflecting the intention that the claimed disclosure requires more features than the features explicitly recorded in each claim. More precisely, as reflected in the following claims, the disclosure aspect lies in less than all the features of a single embodiment previously disclosed. Therefore, the claims following the specific embodiment are thus explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present disclosure.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that it is possible to adaptively change the modules in the device in the embodiment and set them in one or more devices different from the embodiment. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art can understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments means that they are within the scope of the present disclosure. Within and form different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的基于语音输入信息的抽奖系统中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present disclosure may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the voice input information-based lottery system according to the embodiments of the present disclosure. . The present disclosure can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for realizing the present disclosure may be stored on a computer-readable medium, or may have the form of one or more signals. Such signals can be downloaded from Internet websites, or provided on carrier signals, or provided in any other form.
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the present disclosure, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be constructed as a limitation to the claims. The word "comprising" 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 multiple such elements. The present disclosure can be realized by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims enumerating several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. do not indicate any order. These words can be interpreted as names.

Claims (31)

  1. 一种基于点餐的商品券核销方法,包括:A method for verification and cancellation of merchandise coupons based on ordering includes:
    当接收到用户终端发送的点餐请求时,获取所述点餐请求中包含的用户标识;When receiving the ordering request sent by the user terminal, acquiring the user identification included in the ordering request;
    根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与所述用户标识相匹配的商品券,将获取到的商品券确定为目标商品券;According to the coupon user association records stored in the preset commodity coupon database, obtain the issued commodity coupons that match the user ID, and determine the obtained commodity coupons as the target commodity coupons;
    根据所述商品券数据库中存储的实例餐品关联记录,获取与所述目标商品券的商品实例相关联的实例餐品信息,将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息发送给所述用户终端;According to the instance meal association records stored in the commodity coupon database, obtain instance meal information associated with the commodity instance of the target commodity coupon, and associate the target commodity coupon with the commodity instance of the target commodity coupon Sending the instance meal information of to the user terminal;
    当接收到所述用户终端针对所述目标商品券触发的核销请求时,将与所述核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与所述用户终端相对应的已点餐品列表中,以便在接收到所述用户终端发出的点餐提交请求时,根据所述已点餐品列表对所述核销请求所对应的目标商品券进行核销。When a verification request triggered by the user terminal for the target commodity coupon is received, the instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request is added to the user terminal In the corresponding ordered meal list, when a meal order submission request sent by the user terminal is received, the target commodity coupon corresponding to the verification request can be verified according to the ordered meal list.
  2. 根据权利要求1所述的方法,其中,所述将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息发送给所述用户终端包括:The method according to claim 1, wherein the sending the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the user terminal comprises:
    将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息添加到由所述点餐请求触发的点餐页面中,以使所述用户终端展示所述点餐页面;Adding the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the order page triggered by the order request, so that the user terminal displays the order page;
    其中,所述点餐页面用于展示与所述点餐请求中包含的门店标识相匹配的门店餐品列表。Wherein, the ordering page is used to display a list of store meals matching the store identifier contained in the ordering request.
  3. 根据权利要求2所述的方法,其中,所述将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息添加到由所述点餐请求触发的点餐页面中具体包括:The method according to claim 2, wherein the instance meal information associated with the target commodity coupon and the commodity instance of the target commodity coupon is added to the order page triggered by the order request. include:
    将所述目标商品券以及与所述目标商品券相对应的查询入口元素添加到所述点餐页面中;Adding the target commodity coupon and the query entry element corresponding to the target commodity coupon to the ordering page;
    当接收到通过所述与所述目标商品券相对应的查询入口元素触发的商品券查询请求时,将所述目标商品券的商品实例相关联的实例餐品信息展示在所述点餐页面中,并且,将所述点餐页面中包含的与所述目标商品券相对应的查询入口元素替换为与所述目标商品券相对应的核销入口元素。When receiving a commodity coupon query request triggered by the query entry element corresponding to the target commodity coupon, display the instance meal information associated with the commodity instance of the target commodity coupon on the order page And, replacing the query entry element corresponding to the target commodity coupon contained in the ordering page with the verification entry element corresponding to the target commodity coupon.
  4. 根据权利要求1-3任一所述的方法,其中,所述当接收到所述用户终端针对所述目标商品券触发的核销请求时,将与所述核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与所述用户终端相对应的已点餐品列表中具体包括:The method according to any one of claims 1 to 3, wherein, when a verification request triggered by the user terminal for the target commodity coupon is received, the target commodity coupon corresponding to the verification request is received Adding the instance meal information associated with the commodity instance of to the ordered meal list corresponding to the user terminal specifically includes:
    当接收到通过所述点餐页面中包含的与目标商品券相对应的核销入口元素触发的核销请求时,将与所述核销请求相对应的目标商品券确定为待核销商品券;When a verification request triggered by the verification entry element corresponding to the target commodity coupon contained in the order page is received, the target commodity coupon corresponding to the verification request is determined as the commodity coupon to be verified ;
    将获取到的与所述待核销商品券的商品实例相关联的实例餐品信息确定为待核销餐品信息;Determining the obtained instance meal information associated with the commodity instance of the commodity coupon to be verified as the meal information to be verified;
    将所述待核销餐品信息添加到与所述用户终端相对应的已点餐品列表中。The information of the meal to be verified is added to the ordered meal list corresponding to the user terminal.
  5. 根据权利要求4所述的方法,其中,所述在接收到所述用户终端发出的点餐提交请求时,根据所述已点餐品列表对所述核销请求所对应的目标商品券进行核销具体包括:The method according to claim 4, wherein, upon receiving the order submission request sent by the user terminal, the target commodity coupon corresponding to the verification request is verified according to the ordered meal list Sales specifically include:
    当接收到所述用户终端针对所述点餐页面发出的点餐提交请求时,根据所述已点餐品列表确定与所述点餐提交请求相对应的待付餐品列表;When receiving a meal order submission request from the user terminal for the meal order page, determine a meal list to be paid corresponding to the meal order submission request according to the ordered meal list;
    确定所述待付餐品列表中包含的待核销餐品信息以及与所述待核销餐品信息相对应的待核销商品券;Determining the meal information to be verified and the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid;
    根据接收到的针对所述待付餐品列表触发的支付请求,对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered for the meal list to be paid, the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  6. 根据权利要求5所述的方法,其中,所述根据接收到的针对所述待付餐品列表触发的支付请求,对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销具体包括:The method according to claim 5, wherein, according to the received payment request triggered for the meal list to be paid, the information corresponding to the meal information to be verified contained in the meal to be paid list The verification of commodity coupons to be verified includes:
    根据所述待付餐品列表中包含的待核销餐品信息,计算与所述待付餐品列表相对应的订单实付数额,根据所述订单实付数额生成订单支付通知消息;Calculate the actual payment amount of the order corresponding to the list of food to be paid according to the food information to be verified included in the list of food to be paid, and generate an order payment notification message according to the actual payment of the order;
    根据接收到的针对所述订单支付通知消息触发的所述支付请求,对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered by the order payment notification message, the commodity certificate to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  7. 根据权利要求6所述的方法,其中,所述对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销具体包括:8. The method according to claim 6, wherein the verification of the commodity certificate to be verified corresponding to the meal product information to be verified contained in the meal list to be paid specifically comprises:
    查询所述商品券数据库中与所述待核销商品券的券标识相匹配的商品券,针对查询到的商品券进行核销处理;Query the commodity coupons in the commodity coupon database that matches the coupon identifier of the commodity coupon to be verified, and perform verification processing for the inquired commodity coupon;
    核销成功后,根据与所述订单实付数额,以及所述待核销商品券所对应的券核销数额,确定与所述点餐提交请求相对应的点餐支付总数额;After the verification is successful, determine the total order payment amount corresponding to the order submission request according to the actual payment amount of the order and the coupon verification amount corresponding to the commodity coupon to be verified;
    根据所述点餐支付总数额更新与所述门店标识相对应的门店账户数据库中的账户余额数据。Update the account balance data in the store account database corresponding to the store identifier according to the total amount of payment for the order.
  8. 根据权利要求1-7任一所述的方法,其中,所述点餐请求中进一步包含门店标识,并且,所述券用户关联记录包括:已发放的各个商品券所适用的门店信息、以及领取各个商品券的用户终端的用户标识;The method according to any one of claims 1-7, wherein the order request further includes a store identifier, and the coupon user association record includes: store information applicable to each commodity coupon that has been issued, and receipt The user identification of the user terminal of each commodity coupon;
    则所述根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与所述用户标识相匹配的商品券包括:Then, according to the coupon user association records stored in the preset commodity coupon database, obtaining the issued commodity coupons that match the user ID includes:
    根据所述点餐请求中包含的用户标识以及门店标识,从所述商品券数据库中筛选与所述点餐请求中包含的用户标识以及门店标识分别匹配的券用户关联记录;According to the user identification and the store identification included in the ordering request, filter the coupon user association records from the commodity voucher database that respectively match the user identification and the store identification included in the ordering request;
    根据筛选出的券用户关联记录,获取已发放的与所述用户标识相匹配的商品券。According to the selected coupon user association records, the issued merchandise coupons matching the user ID are obtained.
  9. 根据权利要求1-8任一所述的方法,其中,所述根据所述商品券数据库中存储的实例餐品关联记录,获取与所述目标商品券的商品实例相关联的实例餐品信息包括:8. The method according to any one of claims 1-8, wherein said obtaining the instance meal information associated with the commodity instance of the target commodity coupon according to the instance meal association record stored in the commodity coupon database comprises :
    确定用于生成所述目标商品券的商品实例;Determining a commodity instance used to generate the target commodity coupon;
    查询所述商品券数据库中存储的与所述用于生成所述目标商品券的商品实例相对应的实例餐品关联记录;Querying the instance meal association records stored in the commodity coupon database and corresponding to the commodity instance used to generate the target commodity coupon;
    根据查询到的实例餐品关联记录中存储的商品实例以及与该商品实例相关联的实例餐品信息之间的映射关系,获取与所述目标商品券的商品实例相关联的实例餐品信息。According to the mapping relationship between the commodity instance stored in the queried instance meal association record and the instance meal information associated with the commodity instance, the instance meal information associated with the commodity instance of the target commodity coupon is obtained.
  10. 根据权利要求1所述的方法,其中,所述方法执行之前,进一步包括:The method according to claim 1, wherein before the method is executed, it further comprises:
    创建用于生成商品券的商品实例,根据获取到的与所述商品实例相对应的候选餐品列表,确定与所述商品实例相关联的实例餐品信息;Creating a commodity instance for generating a commodity coupon, and determining the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance;
    将所述商品实例与所述实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库中;Storing the association relationship between the commodity instance and the instance meal information as an instance meal association record in a preset commodity coupon database;
    创建与所述商品实例相对应的商品券,将已创建的商品券发放给用户终端;Create a commodity coupon corresponding to the commodity instance, and issue the created commodity coupon to the user terminal;
    将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在所述商品券数据库中,以便在接收到用户终端发出的点餐请求时根据所述商品券数据库中存储的所述券用户关联记录以及所述实例餐品关联记录对已发放的商品券进行核销。The correspondence between the issued merchandise coupon and the user terminal that received the merchandise coupon is stored as a coupon user association record in the merchandise voucher database, so that when a meal order request issued by the user terminal is received The coupon user association record and the instance meal association record stored in the database verify the issued commodity coupons.
  11. 根据权利要求10所述的方法,其中,所述根据获取到的与所述商品实例相对应的候选餐品列表,确定与所述商品实例相关联的实例餐品信息具体包括:The method according to claim 10, wherein the determining the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance specifically comprises:
    确定所述商品实例所适用的目标门店;Determine the target store to which the commodity instance applies;
    根据所述目标门店所对应的门店餐品列表,获取与所述商品实例相对应的候选餐品列表;According to the restaurant meal list corresponding to the target store, obtain a candidate meal list corresponding to the commodity instance;
    根据从所述候选餐品列表中选择的多个目标餐品确定与所述商品实例相关联的实例餐品信息。The instance meal information associated with the commodity instance is determined according to a plurality of target meals selected from the candidate meal list.
  12. 根据权利要求10或11所述的方法,其中,所述创建与所述商品实例相对应的商品券具体包括:The method according to claim 10 or 11, wherein the creating a merchandise coupon corresponding to the merchandise instance specifically comprises:
    生成与所述商品实例相对应的商品券模板,根据所述商品券模板创建与所述商品实例相对应的商品券。A commodity coupon template corresponding to the commodity instance is generated, and a commodity coupon corresponding to the commodity instance is created according to the commodity coupon template.
  13. 根据权利要求10-12任一所述的方法,其中,所述将已创建的商品券发放给用户终端具体包括:The method according to any one of claims 10-12, wherein the issuing the created merchandise coupon to the user terminal specifically comprises:
    当接收到用户终端针对商品券领取页面中展示的商品券领取入口触发的商品券领取请求时,生成并发送与所述商品券领取请求相对应的券支付通知消息;Generating and sending a coupon payment notification message corresponding to the merchandise coupon receipt request when receiving a merchandise coupon receipt request triggered by the user terminal for the merchandise coupon receipt entry displayed in the merchandise coupon receipt page;
    当接收到与所述券支付通知消息相对应的券支付响应消息时,将所述与所述商品券领取请求相对应的商品券发放给用户终端。When a coupon payment response message corresponding to the coupon payment notification message is received, the commodity coupon corresponding to the commodity coupon receiving request is issued to the user terminal.
  14. 根据权利要求10-13任一所述的方法,其中,所述商品券数据库进一步包括:商品数据库以及券数据库;The method according to any one of claims 10-13, wherein the commodity voucher database further comprises: a commodity database and a coupon database;
    则所述将所述商品实例与所述实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库中包括:将所述商品实例与所述实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库所包含的商品数据库中;Then, storing the association relationship between the commodity instance and the instance meal information as the instance meal association record in the preset commodity coupon database includes: comparing the commodity instance and the instance meal information The association relationship among them is stored as an example meal association record in the commodity database included in the preset commodity coupon database;
    并且,所述将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在所述商品券数据库中包括:将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在所述商品券数据库所包含的券数据库中。In addition, storing the correspondence between the issued merchandise coupon and the user terminal receiving the merchandise coupon as a coupon user association record in the merchandise coupon database includes: storing the issued merchandise coupon and the user receiving the merchandise coupon The correspondence between user terminals is stored as a coupon user association record in the coupon database included in the commodity coupon database.
  15. 一种基于点餐的商品券核销装置,包括:A commodity voucher verification device based on ordering includes:
    接收模块,适于当接收到用户终端发送的点餐请求时,获取所述点餐请求中包含的用户标识;The receiving module is adapted to obtain the user identification included in the ordering request when the ordering request sent by the user terminal is received;
    券获取模块,适于根据预设的商品券数据库中存储的券用户关联记录,获取已发放的与所述用户标识相匹配的商品券,将获取到的商品券确定为目标商品券;The coupon obtaining module is adapted to obtain the issued merchandise coupons matching the user ID according to the coupon user association records stored in the preset merchandise coupon database, and determine the obtained merchandise coupon as the target merchandise coupon;
    实例餐品获取模块,适于根据所述商品券数据库中存储的实例餐品关联记录,获取与所述目标商品券的商品实例相关联的实例餐品信息,将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息发送给所述用户终端;The instance meal obtaining module is adapted to obtain instance meal information associated with the commodity instance of the target commodity coupon according to the instance meal association records stored in the commodity coupon database, and combine the target commodity coupon and the Sending the instance meal information associated with the commodity instance of the target commodity coupon to the user terminal;
    核销模块,适于当接收到所述用户终端针对所述目标商品券触发的核销请求时,将与所述核销请求相对应的目标商品券的商品实例相关联的实例餐品信息添加到与所述用户终端相对应的已点餐品列表中,以便在接收到所述用户终端发出的点餐提交请求时,根据所述已点餐品列表对所述核销请求所对应的目标商品券进行核销。The verification module is adapted to add instance meal information associated with the commodity instance of the target commodity coupon corresponding to the verification request when the verification request triggered by the user terminal for the target commodity coupon is received To the ordered food list corresponding to the user terminal, so that when the order submission request sent by the user terminal is received, the target corresponding to the verification request is checked according to the ordered food list Commodity coupons are verified and cancelled.
  16. 根据权利要求15所述的装置,其中,所述实例餐品获取模块具体适于:The device according to claim 15, wherein the example meal obtaining module is specifically adapted to:
    将所述目标商品券以及所述目标商品券的商品实例相关联的实例餐品信息添加到由所述点餐请求触发的点餐页面中,以使所述用户终端展示所述点餐页面;Adding the target commodity coupon and the instance meal information associated with the commodity instance of the target commodity coupon to the order page triggered by the order request, so that the user terminal displays the order page;
    其中,所述点餐页面用于展示与所述点餐请求中包含的门店标识相匹配的门店餐品列表。Wherein, the ordering page is used to display a list of store meals matching the store identifier contained in the ordering request.
  17. 根据权利要求16所述的装置,其中,所述实例餐品获取模块具体适于:The device according to claim 16, wherein the example meal obtaining module is specifically adapted to:
    将所述目标商品券以及与所述目标商品券相对应的查询入口元素添加到所述点餐页面中;Adding the target commodity coupon and the query entry element corresponding to the target commodity coupon to the ordering page;
    当接收到通过所述与所述目标商品券相对应的查询入口元素触发的商品券查询请求时,将所述目标商品券的商品实例相关联的实例餐品信息展示在所述点餐页面中,并且,将所述点餐页面中包含的与所述目标商品券相对应的查询入口元素替换为与所述目标商品券相对应的核销入口元素。When receiving a commodity coupon query request triggered by the query entry element corresponding to the target commodity coupon, display the instance meal information associated with the commodity instance of the target commodity coupon on the order page And, replacing the query entry element corresponding to the target commodity coupon contained in the ordering page with the verification entry element corresponding to the target commodity coupon.
  18. 根据权利要求15-17任一所述的装置,其中,所述核销模块具体适于:The device according to any one of claims 15-17, wherein the verification module is specifically adapted to:
    当接收到通过所述点餐页面中包含的与目标商品券相对应的核销入口元素触发的核销请求时,将与所述核销请求相对应的目标商品券确定为待核销商品券;When a verification request triggered by the verification entry element corresponding to the target commodity coupon contained in the order page is received, the target commodity coupon corresponding to the verification request is determined as the commodity coupon to be verified ;
    将获取到的与所述待核销商品券的商品实例相关联的实例餐品信息确定为待核销餐品信息;Determining the obtained instance meal information associated with the commodity instance of the commodity coupon to be verified as the meal information to be verified;
    将所述待核销餐品信息添加到与所述用户终端相对应的已点餐品列表中。The information of the meal to be verified is added to the ordered meal list corresponding to the user terminal.
  19. 根据权利要求18所述的装置,其中,所述核销模块具体适于:The device according to claim 18, wherein the verification module is specifically adapted to:
    当接收到所述用户终端针对所述点餐页面发出的点餐提交请求时,根据所述已点餐品列表确定与所述点餐提交请求相对应的待付餐品列表;When receiving a meal order submission request from the user terminal for the meal order page, determine a meal list to be paid corresponding to the meal order submission request according to the ordered meal list;
    确定所述待付餐品列表中包含的待核销餐品信息以及与所述待核销餐品信息相对应的待核销商品券;Determining the meal information to be verified and the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid;
    根据接收到的针对所述待付餐品列表触发的支付请求,对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered for the meal list to be paid, the commodity coupon to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  20. 根据权利要求19所述的装置,其中,所述核销模块具体适于:The device according to claim 19, wherein the verification module is specifically adapted to:
    根据所述待付餐品列表中包含的待核销餐品信息,计算与所述待付餐品列表相对应的订单实付数额,根据所述订单实付数额生成订单支付通知消息;Calculate the actual payment amount of the order corresponding to the list of food to be paid according to the food information to be verified included in the list of food to be paid, and generate an order payment notification message according to the actual payment of the order;
    根据接收到的针对所述订单支付通知消息触发的所述支付请求,对所述待付餐品列表中包含的待核销餐品信息所对应的待核销商品券进行核销。According to the received payment request triggered by the order payment notification message, the commodity certificate to be verified corresponding to the meal information to be verified included in the meal list to be paid is verified.
  21. 根据权利要求20所述的装置,其中,所述核销模块具体适于:The device according to claim 20, wherein the verification module is specifically adapted to:
    查询所述商品券数据库中与所述待核销商品券的券标识相匹配的商品券,针对查询到的商品券进行核销处理;Query the commodity coupons in the commodity coupon database that matches the coupon identifier of the commodity coupon to be verified, and perform verification processing for the inquired commodity coupon;
    核销成功后,根据与所述订单实付数额,以及所述待核销商品券所对应的券核销数额,确定与所述点餐提交请求相对应的点餐支付总数额;After the verification is successful, determine the total order payment amount corresponding to the order submission request according to the actual payment amount of the order and the coupon verification amount corresponding to the commodity coupon to be verified;
    根据所述点餐支付总数额更新与所述门店标识相对应的门店账户数据库中的账户余额数据。Update the account balance data in the store account database corresponding to the store identifier according to the total amount of payment for the order.
  22. 根据权利要求15-21任一所述的装置,其中,所述点餐请求中进一步包含门店标识,并且,所述券用户关联记录包括:已发放的各个商品券所适用的门店信息、以及领取各个商品券的用户终端的用户标识;The device according to any one of claims 15-21, wherein the order request further includes a store identifier, and the coupon user association record includes: store information applicable to each commodity coupon that has been issued, and receipt The user identification of the user terminal of each commodity coupon;
    则所述券获取模块具体适于:Then the coupon obtaining module is specifically adapted to:
    根据所述点餐请求中包含的用户标识以及门店标识,从所述商品券数据库中筛选与所述点餐请求中包含的用户标识以及门店标识分别匹配的券用户关联记录;According to the user identification and the store identification included in the ordering request, filter the coupon user association records from the commodity voucher database that respectively match the user identification and the store identification included in the ordering request;
    根据筛选出的券用户关联记录,获取已发放的与所述用户标识相匹配的商品券。According to the selected coupon user association records, the issued merchandise coupons matching the user ID are obtained.
  23. 根据权利要求15-22任一所述的装置,其中,所述实例餐品获取模块具体适于:The device according to any one of claims 15-22, wherein the example meal obtaining module is specifically adapted to:
    确定用于生成所述目标商品券的商品实例;Determining a commodity instance used to generate the target commodity coupon;
    查询所述商品券数据库中存储的与所述用于生成所述目标商品券的商品实例相对应的实例餐品关联记录;Querying the instance meal association records stored in the commodity coupon database and corresponding to the commodity instance used to generate the target commodity coupon;
    根据查询到的实例餐品关联记录中存储的商品实例以及与该商品实例相关联的实例餐品信息之间的映射关系,获取与所述目标商品券的商品实例相关联的实例餐品信息。According to the mapping relationship between the commodity instance stored in the queried instance meal association record and the instance meal information associated with the commodity instance, the instance meal information associated with the commodity instance of the target commodity coupon is obtained.
  24. 根据权利要求15所述的装置,其中,所述装置进一步包括:The device according to claim 15, wherein the device further comprises:
    创建存储模块,适于创建用于生成商品券的商品实例,根据获取到的与所述商品实例相对应的候选餐品列表,确定与所述商品实例相关联的实例餐品信息;Creating a storage module, adapted to create a commodity instance for generating a commodity coupon, and determine the instance meal information associated with the commodity instance according to the obtained candidate meal list corresponding to the commodity instance;
    将所述商品实例与所述实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库中;Storing the association relationship between the commodity instance and the instance meal information as an instance meal association record in a preset commodity coupon database;
    创建与所述商品实例相对应的商品券,将已创建的商品券发放给用户终端;Create a commodity coupon corresponding to the commodity instance, and issue the created commodity coupon to the user terminal;
    将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在所述商品券数据库中,以便在接收到用户终端发出的点餐请求时根据所述商品券数据库中存储的所述券用户关联记录以及所述实例餐品关联记录对已发放的商品券进行核销。The correspondence between the issued merchandise coupon and the user terminal that received the merchandise coupon is stored as a coupon user association record in the merchandise voucher database, so that when a meal order request issued by the user terminal is received The coupon user association record and the instance meal association record stored in the database verify the issued commodity coupons.
  25. 根据权利要求24所述的装置,其中,所述创建存储模块具体适于:The device according to claim 24, wherein the creation and storage module is specifically adapted to:
    确定所述商品实例所适用的目标门店;Determine the target store to which the commodity instance applies;
    根据所述目标门店所对应的门店餐品列表,获取与所述商品实例相对应的候选餐品列表;According to the restaurant meal list corresponding to the target store, obtain a candidate meal list corresponding to the commodity instance;
    根据从所述候选餐品列表中选择的多个目标餐品确定与所述商品实例相关联的实例餐品信息。The instance meal information associated with the commodity instance is determined according to a plurality of target meals selected from the candidate meal list.
  26. 根据权利要求24或25所述的装置,其中,所述创建存储模块具体适于:The device according to claim 24 or 25, wherein the creation and storage module is specifically adapted to:
    生成与所述商品实例相对应的商品券模板,根据所述商品券模板创建与所述商品实例相对应的商品券。A commodity coupon template corresponding to the commodity instance is generated, and a commodity coupon corresponding to the commodity instance is created according to the commodity coupon template.
  27. 根据权利要求24-26任一所述的装置,其中,所述创建存储模块具体适于:The device according to any one of claims 24-26, wherein the creation and storage module is specifically adapted to:
    当接收到用户终端针对商品券领取页面中展示的商品券领取入口触发的商品券领取请求时,生成并发送与所述商品券领取请求相对应的券支付通知消息;Generating and sending a coupon payment notification message corresponding to the merchandise coupon receipt request when receiving a merchandise coupon receipt request triggered by the user terminal for the merchandise coupon receipt entry displayed in the merchandise coupon receipt page;
    当接收到与所述券支付通知消息相对应的券支付响应消息时,将所述与所述商品券领取请求相对应的商品券发放给用户终端。When a coupon payment response message corresponding to the coupon payment notification message is received, the commodity coupon corresponding to the commodity coupon receiving request is issued to the user terminal.
  28. 根据权利要求24-27任一所述的装置,其中,所述商品券数据库进一步包括:商品数据库以及券数据库;The device according to any one of claims 24-27, wherein the commodity coupon database further comprises: a commodity database and a coupon database;
    则所述创建存储模块具体适于:将所述商品实例与所述实例餐品信息之间的关联关系作为实例餐品关联记录存储在预设的商品券数据库所包含的商品数据库中;将已发放的商品券与领取该商品券的用户终端之间的对应关系作为券用户关联记录存储在所述商品券数据库所包含的券数据库中。Then the creation and storage module is specifically adapted to: store the association relationship between the commodity instance and the instance meal information as the instance meal association record in the commodity database included in the preset commodity coupon database; The corresponding relationship between the issued merchandise coupon and the user terminal receiving the merchandise coupon is stored as a coupon user association record in the coupon database included in the merchandise coupon database.
  29. 一种电子设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;An electronic device, comprising: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求1-14中任一项所述的基于点餐的商品券核销方法对应的操作。The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the method for verifying and verifying the order-based merchandise certificate according to any one of claims 1-14.
  30. 一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行如权利要求1-14中任一项所述的基于点餐的商品券核销方法对应的操作。A non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores at least one executable instruction, the executable instruction causes a processor to execute any one of claims 1-14 The operations corresponding to the method for verification of merchandise coupons based on ordering as described in the item
  31. 一种计算机程序产品,其中,所述计算机程序产品包括存储在非易失性计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被处理器执行时,使所述处理器执行如权利要求1-14中任一项所述的基于点餐的商品券核销方法对应的操作。A computer program product, wherein the computer program product includes a computer program stored on a non-volatile computer storage medium, the computer program includes program instructions, and when the program instructions are executed by a processor, the The processor executes the operation corresponding to the method for redemption of merchandise coupons based on ordering according to any one of claims 1-14.
PCT/CN2020/082159 2019-04-09 2020-03-30 Commodity coupon verification method and device based on food ordering WO2020207284A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910280773.2A CN110111132A (en) 2019-04-09 2019-04-09 Method and device is checked and write off based on the exchange ticket ordered
CN201910280773.2 2019-04-09

Publications (1)

Publication Number Publication Date
WO2020207284A1 true WO2020207284A1 (en) 2020-10-15

Family

ID=67483978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/082159 WO2020207284A1 (en) 2019-04-09 2020-03-30 Commodity coupon verification method and device based on food ordering

Country Status (2)

Country Link
CN (1) CN110111132A (en)
WO (1) WO2020207284A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111132A (en) * 2019-04-09 2019-08-09 口碑(上海)信息技术有限公司 Method and device is checked and write off based on the exchange ticket ordered
CN110111133A (en) * 2019-04-09 2019-08-09 口碑(上海)信息技术有限公司 Exchange ticket distribution method and device for ordering
CN111260411B (en) * 2020-01-21 2021-06-08 拉扎斯网络科技(上海)有限公司 Resource processing method and device
CN111243170A (en) * 2020-02-12 2020-06-05 北京儒商智达信息科技有限公司 Novel virtual product sell system by oneself
CN116245612A (en) * 2023-03-08 2023-06-09 拉扎斯网络科技(上海)有限公司 Commodity information display method, commodity information display device, storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076863A1 (en) * 2007-09-14 2009-03-19 Ward/Kraft, Inc. Designated user enabled retailing system
CN105678579A (en) * 2016-01-06 2016-06-15 北京京东尚科信息技术有限公司 Coupon-based commodity recommendation method and system
CN107392735A (en) * 2017-08-14 2017-11-24 福建米客互联网科技有限公司 A kind of information matching method and terminal
CN107545463A (en) * 2017-08-11 2018-01-05 广州基正投资有限公司 A kind of prize-winning prize registration and prize check and write off method, server and system
CN107944002A (en) * 2017-12-05 2018-04-20 北京汇积分数据科技有限公司 Reward voucher checks and writes off method, apparatus and electronic equipment
CN110111132A (en) * 2019-04-09 2019-08-09 口碑(上海)信息技术有限公司 Method and device is checked and write off based on the exchange ticket ordered

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9721285B2 (en) * 2013-03-15 2017-08-01 Home Depot Product Authority, Llc Facilitation of authorized in-store pickup in conjunction with online ordering
CN104021468B (en) * 2014-07-01 2017-09-05 广州云移信息科技有限公司 Support retail shop's intelligent management marketer terminal of Quick Response Code and one-dimension code scanning management
US20180130118A1 (en) * 2016-11-09 2018-05-10 John M. Guran System, Method and Related Software for Providing Seat Delivery Services of Goods
CN107944920A (en) * 2017-11-30 2018-04-20 口碑(上海)信息技术有限公司 Certificate bag creation method, device, certificate bag get method and device
CN108335140A (en) * 2018-02-09 2018-07-27 浙江口碑网络技术有限公司 Integral method, apparatus and system are checked and write off in the payment of O2O business
CN108520443A (en) * 2018-04-11 2018-09-11 口碑(上海)信息技术有限公司 The distribution method of intelligent certificate, device and check and write off method, apparatus using intelligent certificate
CN109102243A (en) * 2018-07-18 2018-12-28 口碑(上海)信息技术有限公司 Welfare distribution method, device, welfare check and write off method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090076863A1 (en) * 2007-09-14 2009-03-19 Ward/Kraft, Inc. Designated user enabled retailing system
CN105678579A (en) * 2016-01-06 2016-06-15 北京京东尚科信息技术有限公司 Coupon-based commodity recommendation method and system
CN107545463A (en) * 2017-08-11 2018-01-05 广州基正投资有限公司 A kind of prize-winning prize registration and prize check and write off method, server and system
CN107392735A (en) * 2017-08-14 2017-11-24 福建米客互联网科技有限公司 A kind of information matching method and terminal
CN107944002A (en) * 2017-12-05 2018-04-20 北京汇积分数据科技有限公司 Reward voucher checks and writes off method, apparatus and electronic equipment
CN110111132A (en) * 2019-04-09 2019-08-09 口碑(上海)信息技术有限公司 Method and device is checked and write off based on the exchange ticket ordered

Also Published As

Publication number Publication date
CN110111132A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
WO2020207284A1 (en) Commodity coupon verification method and device based on food ordering
WO2020207299A1 (en) Method and device for issuing merchandise coupon used for food ordering
US8160933B2 (en) Method and system to automate payment for a commerce transaction
JP6372951B2 (en) Processing method and system for debit transaction with PIN
US10127549B2 (en) Universal merchant application, registration and boarding platform
WO2020207301A1 (en) Ordering method and system supporting coupon verification integration
CN111340567B (en) Electronic ticket verification and sale method, device, store end, user terminal and system
US10546341B2 (en) System, computer-readable storage medium, and method for operation management
CN109690594A (en) Promote the method for payment using instant messaging application program
US20060277111A1 (en) Transaction system and method
CN112016946A (en) Method and device for verifying and selling electronic ticket
US20150332375A1 (en) Fulfillment of registered gifts and other items based on user-defined delivery parameters
WO2016054181A1 (en) Operation management
US11429997B2 (en) Providing discounts to non-partner merchants
US20230342828A1 (en) System and Method for Controlling Access to a Private Marketplace on Supply Chain Network
AU2006202365A1 (en) Transaction system and method
KR20220153526A (en) Method for processing information
AU2014280914B2 (en) Universal merchant application, registration and boarding platform
KR20120003554A (en) Exports are based on the operating way of the internet wholesale shopping mall
KR20030043853A (en) The manage method and the system, about a intermediation service of second-hand cars, using of communications network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20788406

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20788406

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17-01-2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20788406

Country of ref document: EP

Kind code of ref document: A1