Coupon management method, device, electronic device and storage medium
By obtaining and generating coupon information bound to the order, the problem that non-online users cannot use online coupons is solved, and the online coupon use of non-online users is realized, and the efficiency and convenience of coupons are improved. sex.
Patent Information
- Application Number
- CN202011620607.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-12-30
AI Technical Summary
Existing online coupons cannot be issued and used by non-online users, and there is a problem that online coupons cannot be issued to non-online users, and non-online users cannot use online coupons normally.
By obtaining the basic information of the reserve order, generating coupon information bound to the order based on the preset generation strategy, and when a payment instruction is detected, obtaining coupon information bound to the target order from the coupon information to determine the amount to be paid , realize the use of online coupons for non-online users.
It solves the problem that non-online users cannot use online coupons, enable non-online users to use online coupons normally, and improves the efficiency and convenience of coupons.
Smart Images

Figure CN114693296B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data management technology, and in particular to a coupon management method, device, electronic device, and computer-readable storage medium. Background Art
[0002] With the rapid development of the Internet, online shopping, online payment and other lifestyles that rely on Internet terminals have become a trend, and online coupons have also emerged. Compared with traditional paper coupons, online coupons can be presented in electronic form, which can save certain resources.
[0003] The existing online coupon management method is to issue the coupon to the user's online account to realize the use of the online coupon. However, the existing online coupons rely on online users, and for non-online users, online coupons cannot be issued and used normally. Summary of the invention
[0004] The present application provides a coupon management method, device, electronic device and computer-readable storage medium, aiming to solve the problem that online coupons cannot be issued to non-online users and non-online users cannot use online coupons normally.
[0005] In a first aspect, the present application provides a coupon management method, the method comprising:
[0006] Get basic information of the prepared order;
[0007] Generate information of the coupon bound to the prepared order according to the basic information and the preset generation strategy;
[0008] When a payment instruction of a target order is detected, basic target information of the target order is obtained, and information of a target coupon bound to the target order is obtained from information of the coupon, wherein the target order is a preparatory order;
[0009] The amount to be paid of the target order is determined according to the information of the target coupon and the target basic information.
[0010] In a possible implementation of the present application, the basic information includes a first order identifier of the prepared order, and when a payment instruction of a target order is detected, information of a target coupon bound to the target order is obtained from information of the coupon, and the above also includes:
[0011] Associating the first order identifier with the information of the coupon and storing it in a preset database;
[0012] When the payment instruction of the target order is detected, obtaining information of the target coupon bound to the target order from the information of the coupon includes:
[0013] When a payment instruction of the target order is detected, obtaining a second order identifier of the target order;
[0014] Acquire a target order identifier that is identical to the second order identifier from the first order identifier recorded in the database;
[0015] The information of the coupon associated with the target order identifier is obtained from the information of the coupon recorded in the database to serve as the information of the target coupon.
[0016] In a possible implementation of the present application, the target basic information includes the first order total of the target order, and determining the amount to be paid of the target order according to the information of the target coupon and the target basic information includes:
[0017] Displaying information of the target coupon;
[0018] Obtaining a coupon selection operation based on display feedback of information of the target coupon;
[0019] Determining a first target discount amount for the target order according to the coupon selection operation;
[0020] The amount to be paid is determined according to the first target discount amount and the first order total amount.
[0021] In a possible implementation of the present application, the information of displaying the target coupon includes:
[0022] Calling a preset third-party payment platform to display information of the target coupon;
[0023] The step of determining the amount to be paid according to the first target discount amount and the first order total amount further includes:
[0024] The third-party payment platform is called to complete the payment of the target order according to the amount to be paid.
[0025] In a possible implementation of the present application, the information of displaying the target coupon includes:
[0026] Obtain the validity date of the target coupon and the current date;
[0027] Detecting whether the effective date lags behind the current date;
[0028] When it is detected that the effective date lags behind the current date, displaying information of the target coupon;
[0029] The step of detecting whether the effective date lags behind the current date further includes:
[0030] When it is detected that the current date lags behind the effective date, the record status of the target coupon in the database is updated.
[0031] In a possible implementation of the present application, the preset generation strategy includes a relationship table between the discount amount and the order total amount, the basic information includes the corresponding product type of the prepared order and the second order total amount, and the information of the coupon bound to the prepared order is generated according to the basic information and the preset generation strategy, including:
[0032] Detecting whether the product type corresponding to the prepared order is the same as the preset product type;
[0033] When the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total amount from the relationship table;
[0034] According to the second target discount amount, information of a coupon bound to the preliminary order is generated.
[0035] In a possible implementation of the present application, the preliminary order is a cash on delivery order or a cash on delivery order.
[0036] In a second aspect, the present application provides a coupon management device, the coupon management device comprising:
[0037] A first acquisition unit, used to acquire basic information of a prepared order;
[0038] A generating unit, configured to generate information of a coupon bound to the prepared order according to the basic information and a preset generating strategy;
[0039] A second acquisition unit is configured to acquire target basic information of the target order and acquire information of a target coupon bound to the target order from information of the coupon when a payment instruction of the target order is detected, wherein the target order is a preparatory order;
[0040] A determination unit is used to determine the amount to be paid of the target order according to the information of the target coupon and the target basic information.
[0041] In a possible implementation of the present application, the basic information includes a first order identifier of the prepared order, and before the step of acquiring information of a target coupon bound to the target order from information of the coupon when a payment instruction of the target order is detected, the generating unit is specifically configured to:
[0042] Associating the first order identifier with the information of the coupon and storing it in a preset database;
[0043] In a possible implementation of the present application, the second acquiring unit is specifically configured to:
[0044] When a payment instruction of the target order is detected, obtaining a second order identifier of the target order;
[0045] Acquire a target order identifier that is identical to the second order identifier from the first order identifier recorded in the database;
[0046] The information of the coupon associated with the target order identifier is obtained from the information of the coupon recorded in the database to serve as the information of the target coupon.
[0047] In a possible implementation of the present application, the target basic information includes a first order total of the target order, and the determining unit is specifically configured to:
[0048] Displaying information of the target coupon;
[0049] Obtaining a coupon selection operation based on display feedback of information of the target coupon;
[0050] Determining a first target discount amount for the target order according to the coupon selection operation;
[0051] The amount to be paid is determined according to the first target discount amount and the first order total amount.
[0052] In a possible implementation of the present application, the determining unit is specifically configured to:
[0053] Calling a preset third-party payment platform to display information of the target coupon;
[0054] In a possible implementation of the present application, the coupon management device further includes a payment unit, and after the step of determining the amount to be paid according to the first target discount amount and the first order total amount, the payment unit is specifically configured to:
[0055] The third-party payment platform is called to complete the payment of the target order according to the amount to be paid.
[0056] In a possible implementation of the present application, the determining unit is specifically configured to:
[0057] Obtain the validity date of the target coupon and the current date;
[0058] Detecting whether the effective date lags behind the current date;
[0059] When it is detected that the effective date lags behind the current date, displaying information of the target coupon;
[0060] In a possible implementation of the present application, the coupon management device further includes an updating unit, and after the step of detecting whether the validity date lags behind the current date, the updating unit is specifically configured to:
[0061] When it is detected that the current date lags behind the effective date, the record status of the target coupon in the database is updated.
[0062] In a possible implementation of the present application, the updating unit is specifically used for:
[0063] When the payment of the target order is completed, the record status of the target coupon in the database is updated.
[0064] In a possible implementation of the present application, the preset generation strategy includes a relationship table between the discount amount and the order total amount, the basic information includes the corresponding product type of the preliminary order and the second order total amount, and the generation unit is specifically used to:
[0065] Detecting whether the product type corresponding to the prepared order is the same as the preset product type;
[0066] When the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total amount from the relationship table;
[0067] According to the second target discount amount, information of a coupon bound to the preliminary order is generated.
[0068] In a third aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the processor executes the steps of any coupon management method provided in the present application.
[0069] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the coupon management method.
[0070] This application can avoid the problem that existing online coupons can only be issued to the online account of the payer by binding the generated coupons with the order. When the payment instruction of the target order is detected, the target coupon bound to the target order is obtained from the generated coupons by obtaining the target basic information of the target order, and the amount to be paid of the target order is determined, so that non-online users can use the online coupons normally, avoiding the problem that non-online users cannot use the online coupons normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0072] Figure 1 It is a scenario diagram of a coupon management system provided in an embodiment of the present application;
[0073] Figure 2 It is a flow chart of the coupon management method provided in the embodiment of the present application;
[0074] Figure 3 This is a schematic diagram of a scenario of an order operation interface provided in an embodiment of the present application;
[0075] Figure 4 is a flowchart of an embodiment of step 204 provided in the embodiments of the present application;
[0076] Figure 5 It is a schematic diagram of the order operation interface provided in the embodiment of the present application displaying the information of the target coupon;
[0077] Figure 6 This is a schematic diagram of displaying a payment QR code on an order operation interface provided in an embodiment of the present application;
[0078] Figure 7 This is a schematic diagram of a third-party payment platform displaying target coupon information provided in an embodiment of the present application;
[0079] Figure 8 is a schematic diagram of the structure of an embodiment of a coupon management device provided in an embodiment of the present application;
[0080] Fig. 9 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0082] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0083] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, the known process will not be elaborated in detail to avoid unnecessary details that make the description of the present application embodiment obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in accordance with the embodiments of the present application.
[0084] The embodiments of the present application provide a coupon management method, device, electronic device and computer-readable storage medium. The coupon management device can be integrated in an electronic device, which can be a server or a terminal.
[0085] First of all, before introducing the embodiments of the present application, the relevant content about the application background of the embodiments of the present application is introduced.
[0086] When promoting activities, various industries will increase user participation by issuing coupons. However, existing online coupons rely on online users. For non-online users, online coupons cannot be issued and used normally. For example, in the express delivery industry, the express delivery process involves sending and receiving parcels. Ordinary coupons can only be used when users send parcels online. When the express delivery is cash on delivery, users who receive the parcels offline cannot use coupons, which has certain limitations.
[0087] Based on the above-mentioned defects in the existing related technologies, the embodiments of the present application provide a coupon management method, which at least overcomes the defects in the existing related technologies to a certain extent.
[0088] The executor of the coupon management method of the embodiment of the present application may be the coupon management device provided in the embodiment of the present application, or different types of electronic devices such as a server device, a physical host or a user equipment (UE) that integrates the coupon management device. The coupon management device may be implemented in hardware or software, and the UE may specifically be a terminal device such as a smart phone, a tablet computer, a laptop computer, a PDA, a desktop computer or a personal digital assistant (PDA).
[0089] The electronic device can adopt a working mode of independent operation or a working mode of a device cluster. By applying the coupon management method provided in the embodiment of the present application, it is possible to avoid the problem that existing online coupons can only be issued to the payer's online account and cannot be issued normally to non-online users, so that non-online users can use online coupons normally.
[0090] See also Figure 1 , Figure 1 It is a scenario diagram of the coupon management system provided in the embodiment of the present application. Among them, the coupon management system may include an electronic device 100, in which a coupon management device is integrated. For example, the electronic device can obtain basic information of a prepared order; generate information of a coupon bound to the prepared order according to the basic information and a preset generation strategy; when a payment instruction of a target order is detected, obtain the target basic information of the target order, and obtain information of a target coupon bound to the target order from the information of the coupon; determine the amount to be paid of the target order according to the information of the target coupon and the target basic information.
[0091] In addition, if Figure 1 As shown, the coupon management system may also include a memory 200 for storing data, such as coupon information, basic order information, and the like.
[0092] It should be noted that Figure 1 The scenario diagram of the coupon management system shown is only an example. The coupon management system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the coupon management system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
[0093] Next, we will begin to introduce the coupon management method provided in the embodiment of the present application. In the embodiment of the present application, an electronic device is used as the execution subject. For the sake of simplicity and ease of description, the execution subject will be omitted in the subsequent method embodiments. The coupon management method includes: obtaining basic information of a prepared order; generating information of a coupon bound to the prepared order based on the basic information and a preset generation strategy; when a payment instruction of a target order is detected, obtaining target basic information of the target order, and obtaining information of a target coupon bound to the target order from the information of the coupon, wherein the target order refers to a prepared order; determining the amount to be paid of the target order based on the information of the target coupon and the target basic information.
[0094] Reference Figure 2 , Figure 2 201 to 204, wherein:
[0095] 201. Obtain basic information of the prepared order.
[0096] The coupon management method of the embodiment of the present application can be applied to a variety of scenarios, such as coupon management for online shopping orders, coupon management for logistics waybills, and the like.
[0097] In the embodiments of the present application, an online account refers to an account registered online by a user based on identification information such as a mobile phone number used to identify different users. Generally speaking, the issuance and use of traditional online coupons are both based on online accounts. Coupon issuance refers to binding a coupon to a user's online account, and coupon use refers to selecting a coupon bound to an online account when a user places an order or pays through an online account.
[0098] In the embodiment of the present application, a non-online user (also referred to as an "offline user" in this article) refers to an order user who does not have an online account, and an online user refers to an order user who has an online account.
[0099] The payee of the prepared order can be an online user or a non-online user. If the payee of the prepared order is an online user, it means that the payee has an online account. If the payee of the prepared order is a non-online user, it means that the payee does not have an online account.
[0100] For easier understanding, the following examples introduce two situations where non-online users cannot use online coupons normally.
[0101] The first type is a cash on delivery order where the payer is not an online user. Due to the continuous iteration and deduction of online shopping, the ordering and payment methods of online shopping have become diversified. For example, for an order 1 to purchase daily necessities, user a can place an order on the shopping platform and complete the payment of order 1. For another example, for an order 2 to purchase daily necessities, user c can place an order on the shopping platform and send order 2 to user d through a link to complete the payment of order 2. For another example, for a courier waybill sent by user e to user f, user e can place an order through an online account and complete the payment. User e can also place an order through an online account and user f who does not have an online account can pay after receiving the package. It can be seen that the ordering and payment of an order may not be by the same party. Even if the order is placed by an online user, the payer may also be an offline user, such as a cash on delivery order. Therefore, online shopping orders also have the problem that offline users cannot use online coupons normally.
[0102] The second type is a cash on delivery express waybill where the payer is a non-online user. For example, for cash on delivery express waybill 1, the sender is an online user and the recipient is a non-online user. For another example, for cash on delivery express waybill 2, neither the sender nor the recipient has an online account. Therefore, cash on delivery express orders also have the problem that offline users cannot use online coupons normally.
[0103] Among them, the prepared order can be various types of orders, such as cash on delivery orders where the payee is an online user, cash on delivery express waybills where the payee is an online user, cash on delivery express waybills where the payee is an online user, cash on delivery orders where the payee is a non-online user, cash on delivery express waybills where the payee is a non-online user, cash on delivery express waybills where the payee is a non-online user, and so on.
[0104] For ease of understanding, in the embodiments of the present application, an example is given for explanation of a prepared order in which the payer is a cash on delivery express order that is a non-online user.
[0105] The basic information may include but is not limited to the order number, product type, order amount, shipping cost, time limit and other information of the prepared order.
[0106] 202. Generate information of the coupon bound to the preliminary order according to the basic information and a preset generation strategy.
[0107] It is understandable that, although in the embodiments of the present application, some of the payers of the prepared orders are non-online users, the basic information of the prepared orders and the information of the coupons will be recorded online. For example, for a cash on delivery express waybill, the express delivery collector will enter the basic information of the cash on delivery express waybill and the information of the coupons into the logistics system of the logistics company when receiving the parcel.
[0108] The information of the coupon may include but is not limited to the amount of the coupon bound to the preliminary order, identification information of the bound preliminary order (such as the order number), the validity date and other information.
[0109] The preset generation strategy may specifically refer to a rule for generating a coupon, and may include a condition for generating a coupon, a generation rule for the validity date of a coupon, a generation rule for the amount of a coupon, and the like.
[0110] For example, the preset generation strategy is: 1. Conditions for generating coupons: a coupon is generated when the product type is heavy cargo or cold transport, and a coupon is not generated when the product type is special offer or standard express; a coupon is not generated when the total waybill amount is <10 yuan, and a coupon is generated when the total waybill amount is ≥10 yuan; 2. Generation rules for the validity date of the coupon: the validity date of the coupon for heavy cargo is 30 days, and the validity date of the coupon for cold transport is 10 days; 3. Generation rules for the amount of the coupon: a coupon with a discount amount of 5 yuan is generated when 10≤the total waybill amount<30 yuan, a coupon with a discount amount of 10 yuan is generated when 30≤the total waybill amount<100 yuan, and a coupon with a discount amount of 20 yuan is generated when 100≤the total waybill amount is yuan.
[0111] In some embodiments, step 202 may specifically include: first, for each prepared order, according to the basic information of each prepared order and a preset generation strategy, generate the information of the coupon corresponding to each prepared order. Then, associate the information of the coupon corresponding to each prepared order with the basic information of each prepared order (such as the order number, etc.), and store them in a preset database, so as to achieve the binding of the information of the prepared order and the coupon.
[0112] In some embodiments, the basic information of the prepared order stored in the preset database may be all the basic information. For example, the basic information of the prepared order a includes the order number, product type, order amount, freight, and time limit of the prepared order, and all the basic information (order number, product type, order amount, freight, and time limit) and the information of the coupon corresponding to the prepared order a are stored in the preset database in an associated manner.
[0113] In some embodiments, the basic information of the prepared order associated and stored in a preset database may only include the order identification (such as the order number) of the prepared order. That is, the basic information of the prepared order includes the first order identification of the prepared order, and after step 202, it may also include: storing the first order identification in association with the information of the coupon in the preset database, thereby realizing the binding of the information of the prepared order and the coupon. Among them, the first order identification refers to the order identification (such as the order number) of the prepared order. For example, the basic information of the prepared order b includes the order number, product type, order amount, freight, and time limit of the prepared order, then only the order number and the information of the coupon corresponding to the prepared order b can be associated and stored in the preset database.
[0114] In an embodiment of the present application, by binding the information of the generated coupon with the order rather than binding the information of the generated coupon with the user's online account, the problem that the payer is a non-online user and the coupon cannot be issued normally to the non-online user can be avoided, thereby avoiding the problem that the non-online user cannot use the online coupon normally.
[0115] Furthermore, in some embodiments, for the prepared orders where the payee is an online user, the information of the coupon corresponding to the prepared orders where the payee is an online user can be generated according to the basic information of each prepared order where the payee is an online user and the preset generation strategy. Then, the information of the coupon corresponding to the prepared order where the payee is an online user is associated with the basic information (such as the order number, etc.) and stored in a preset database. That is, for the orders where the payee is an online user, the information of the generated coupon can also be bound to the order for subsequent users to use.
[0116] 203. When a payment instruction of a target order is detected, target basic information of the target order is obtained, and information of a target coupon bound to the target order is obtained from the information of the coupon.
[0117] Among them, the target order refers to the prepared order.
[0118] Target basic information is the basic information of the target order. The target basic information may include but is not limited to the order number, product type, order amount, freight, timeliness and other information of the target order.
[0119] The target coupon information refers to the information of the coupon bound to the target order, and may specifically include the amount, validity date, and other information of the coupon bound to the target order.
[0120] In some embodiments, all basic information of each prepared order and information of coupons corresponding to each prepared order are stored in a preset database. In this case, step 203 may specifically include: when a payment instruction of a target order is detected, first, the target basic information of the target order is obtained, and target information that is exactly the same as the target basic information is found from the basic information recorded in the preset database. Then, the information of the coupon stored in association with the target information is found from the information of the coupons recorded in the preset database, as the information of the target coupon bound to the target order.
[0121] For easier understanding, please refer to Figure 3 , Figure 3 This is a scenario diagram of the order operation interface provided in the embodiment of the present application. In actual application, the order operation interface can be integrated into the electronic device provided in the embodiment of the present application, or integrated into other terminal devices (such as mobile phones, etc.) that are connected to the electronic device provided in the embodiment of the present application.
[0122] For example, the preset database records the basic information of orders 1, 2, and 3, as well as the information of coupons a1, a2, and a3 associated with orders 1, 2, and 3, respectively (i.e., the information of coupons bound to orders 1, 2, and 3, respectively). Among them, the basic information of orders 1, 2, and 3 are: the order number "123" and the freight "30 yuan" of order 1, the order number "456" and the freight "25 yuan" of order 2, and the order number "789" and the freight "35 yuan" of order 3. The information of coupons a1, a2, and a3 are: the amount of coupon a1 is "5 yuan" and the effective date is "December 31, 2020", the amount of coupon a2 is "3 yuan" and the effective date is "November 31, 2020", and the amount of coupon a3 is "6 yuan" and the effective date is "October 31, 2020".
[0123] When delivering the target order (order number "123" and freight "25"), the courier can first select the target order based on the order operation interface provided by the logistics company, and then click "Pay", which will trigger the payment instruction of the target order. At this time, when the electronic device detects the payment instruction of the target order, it will obtain the target information (order number "123" and freight "30 yuan" of order 1) that is exactly the same as the basic information of the target order (order number "123" and freight "25") from the preset database, and obtain the information of coupon a1 (amount "5 yuan" and validity date "December 31, 2020") stored in association with the target information (order number "123" and freight "30 yuan" of order 1) as the target coupon information of the target order.
[0124] In some embodiments, among all the basic information of each prepared order, only the first order identifier (such as the order number) of the prepared order and the information of the coupon corresponding to each prepared order are associated and stored in a preset database. In this case, step 203 may specifically include:
[0125] When a payment instruction of the target order is detected, the second order identifier of the target order is obtained; the target order identifier that is the same as the second order identifier is obtained from the first order identifier recorded in the database; and the information of the coupon associated with the target order identifier is obtained from the information of the coupon recorded in the database as the information of the target coupon.
[0126] The second order identifier refers to the order identifier of the target order (such as the order number).
[0127] For example, the preset database records the order identifiers of orders 1, 2, and 3 (i.e., the first order identifier), and the information of coupons a1, a2, and a3 respectively associated with orders 1, 2, and 3 (i.e., the information of coupons respectively bound to orders 1, 2, and 3). Among them, the order identifiers of orders 1, 2, and 3 are respectively: the order number "123" of order 1, the order number "456" of order 2, and the order number "789" of order 3. The information of coupons a1, a2, and a3 are respectively: the amount of coupon a1 is "5 yuan", the amount of coupon a2 is "3 yuan", and the amount of coupon a3 is "6 yuan".
[0128] When delivering the target order (order number "123" and freight "25"), the courier can first select the target order based on the order operation interface provided by the logistics company, and then click "pay", which will trigger the payment instruction of the target order. At this time, when the electronic device detects the payment instruction of the target order, it will obtain the target order identification (order number "123" of order 1) that is exactly the same as the order number "123" of the target order (i.e., the second order identification) from the preset database, and obtain the information of coupon a1 (amount "5 yuan") stored in association with the target order identification (order number "123" of order 1) as the target coupon information of the target order.
[0129] From the above content, it can be seen that the target coupon bound to the target order can be quickly found through the order ID of the target order, which improves the efficiency of coupon usage to a certain extent.
[0130] 204. Determine the amount to be paid of the target order according to the information of the target coupon and the target basic information.
[0131] The target basic information includes the first order total of the target order, and the target coupon information includes the amount of the coupon bound to the target order.
[0132] Among them, the payer of the target order can freely choose whether to use the coupon bound to the target order for payment.
[0133] In some embodiments, the payer of the target order chooses to use the coupon bound to the target order for payment. At this time, the amount to be paid of the target order can be directly determined based on the information of the target coupon and the target basic information. For example, if the amount of the coupon bound to the target order is "5 yuan" and the first order total of the target order is "25 yuan", then the amount to be paid of the target order can be determined to be: 25-5=20 yuan.
[0134] In some embodiments, the payer of the target order chooses not to use the coupon for payment. In this case, the first order total of the target order is the amount to be paid of the target order. For example, the amount of the coupon bound to the target order is "5 yuan", the first order total of the target order is "25 yuan", and the amount to be paid of the target order is "25 yuan".
[0135] From the above content, it can be seen that by binding the generated coupons with the order, the problem that the existing online coupons can only be issued to the online account of the payer can be avoided. When the payment instruction of the target order is detected, the target basic information of the target order is obtained, and the target coupon bound to the target order is obtained from the generated coupons, and the amount to be paid of the target order is determined, so that non-online users can use online coupons when paying, avoiding the problem that non-online users cannot use online coupons normally.
[0136] Please refer to Figure 3 , Figure 4 and Figure 5 ,in, Figure 4 It is a flowchart of an embodiment of step 204 provided in the embodiments of the present application.
[0137] In some embodiments of the present application, step 204 may specifically include the following steps 401 to 404, wherein:
[0138] 401. Display information of the target coupon.
[0139] In some embodiments, the payer of the target order can pay in cash. Figure 3 The preset order operation interface shown further displays the target coupon information and target basic information of the target order, such as Figure 5 As shown, Figure 5It is a schematic diagram of the order operation interface provided in the embodiment of the present application displaying the information of the target coupon.
[0140] For example, Figure 3 As shown in the figure, when the delivery person is delivering the express delivery cash on delivery order 1, he can select the express delivery cash on delivery order 1 in the order operation interface and click the "Pay" button. Figure 5 As shown, the order operation interface will further display the information of the target coupon (such as the amount of the coupon, etc.), and the basic information of the express delivery cash on delivery order 1 (such as the order total, order number, etc.).
[0141] In some embodiments, the payer of the target order can use a third-party payment platform (such as WeChat Pay, Alipay, online banking, etc.) to complete the payment. At this time, step 401 can specifically include: calling a preset third-party payment platform to display the information of the target coupon.
[0142] For example, see Figure 3 , Figure 6 and Figure 7 ,in, Figure 6 This is a schematic diagram of displaying a payment QR code on an order operation interface provided in an embodiment of the present application. Figure 7 Schematic diagram of a third-party payment platform displaying target coupon information provided in an embodiment of the present application. Figure 3 As shown in the figure, when the delivery person is delivering the express delivery cash on delivery order 2, he can select the express delivery cash on delivery order 2 in the order operation interface and click the "Pay" button. Figure 6 As shown in the figure, the order operation interface will further display the payment QR code. After the payer scans the payment QR code through a terminal such as a mobile phone, Figure 7 As shown, the payee's (such as a mobile phone, etc.) terminal will call the third-party payment platform and display the target coupon information (such as the amount of the coupon, etc.) and the basic information of the express delivery cash on delivery order 2 (such as the order total, order number, etc.) on the payment interface of the third-party payment platform.
[0143] 402. Obtain a coupon selection operation based on display feedback of information of the target coupon.
[0144] In some embodiments, the third-party payment platform is called to display the target coupon information and target basic information of the target order. At this time, based on the target coupon information displayed by the third-party payment platform, the user (such as the delivery person or the payer of the target order) can perform a coupon selection operation on the third-party payment platform. When the user selects the coupon, the electronic device will detect the coupon selection operation based on the feedback from the third-party payment platform.
[0145] In some embodiments, the target coupon information and target basic information of the target order are displayed on a preset order operation interface. At this time, based on the target coupon information displayed on the order operation interface, the user (such as a delivery person or the payer of the target order) can perform a coupon selection operation on the order operation interface. When the user selects a coupon, the electronic device will detect the coupon selection operation based on the feedback from the order operation interface.
[0146] 403. Determine a first target discount amount for the target order according to the coupon selection operation.
[0147] The first target discount amount refers to the discount amount of the target order determined according to the coupon selected corresponding to the coupon selection operation.
[0148] For example, the target coupon information includes coupon 1 (the coupon amount is "3 yuan") and coupon 2 (the coupon amount is "5 yuan") bound to the target order. According to the coupon selection operation, it can be determined that the coupon selected by the user is coupon 1 or 2. When it is determined that the coupon selected by the user is coupon 1, the discount amount (first target discount amount) of the target order is determined to be "3 yuan". When it is determined that the coupon selected by the user is coupon 2, the discount amount (first target discount amount) of the target order is determined to be "5 yuan".
[0149] 404. Determine the amount to be paid according to the first target discount amount and the first order total amount.
[0150] The target basic information includes the first order total of the target order. The first order total refers to the total amount originally required to be paid for the target order.
[0151] For example, if the first target discount amount of the target order is "5 yuan" and the first order total amount is "25 yuan", then the amount to be paid of the target order can be determined as: 25-5=20 yuan.
[0152] From the above content, it can be seen that by displaying the information of the target coupon, the user can choose whether to use the coupon according to the needs, which improves the convenience of using the coupon to a certain extent.
[0153] Furthermore, after step 404, the third-party payment platform can be called to complete the payment of the target order according to the amount to be paid. It can be seen that by calling the third-party payment platform to complete the payment of the target order, non-online users can choose multiple payment methods while using online coupons normally, meeting different payment needs.
[0154] In order to improve the management and use efficiency of coupons, in some embodiments, step 401 may specifically include: obtaining the validity date corresponding to the information of the target coupon and the current date; detecting whether the validity date lags behind the current date; and displaying the information of the target coupon when it is detected that the validity date lags behind the current date. By first detecting whether the validity date of the target coupon lags behind the current date, the information of the target coupon is displayed only when the validity date lags behind the current date, which can avoid displaying expired coupons, causing abnormal use of coupons, waste of display resources, etc., and improves the management and use efficiency of coupons to a certain extent.
[0155] In order to further improve the management and use efficiency of coupons, when it is detected that the current date lags behind the effective date, the record status of the target coupon in the database is updated. For example, if the effective date of coupon 1 is "October 31, 2020" and the current date is "November 31, 2020", the information of coupon 1 recorded in the database will be deleted.
[0156] Furthermore, in order to improve the management and use efficiency of coupons, the coupon management method may also include: when the payment of the target order is completed, updating the record status of the target coupon in the database. For example, when coupon 2 is used to complete the payment of the target order, the use status of coupon 2 recorded in the database is changed to used, or the information of coupon 2 recorded in the database is deleted.
[0157] In some embodiments, the preset generation strategy includes a relationship table between the discount amount and the order total amount, the basic information includes the corresponding product type of the prepared order and the second order total amount, and step 202 may specifically include the following steps a to c, wherein:
[0158] a. Detect whether the corresponding product type of the prepared order is the same as the preset product type.
[0159] According to the specific business scenario requirements, it is necessary to limit the use of coupons to a certain type of order. For this reason, in some embodiments, when generating a coupon bound to a prepared order, it is pre-checked whether the corresponding product type of the prepared order is the same as the preset product type.
[0160] For example, if the preset product type is "heavy goods" or "cold transportation", when the corresponding product type of the prepared order is also "heavy goods" or "cold transportation", it is determined that the corresponding product type of the prepared order is the same as the preset product type. When the corresponding product type of the prepared order is "special offer", it is determined that the corresponding product type of the prepared order is different from the preset product type.
[0161] b. When the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total from the relationship table.
[0162] The second order total refers to the total amount originally required to be paid for the preliminary order.
[0163] The second target discount amount refers to the discount amount of the coupon bound to the preliminary order, which is determined based on the total amount of the second order and the relationship between the preset discount amount and the total order amount.
[0164] Please refer to Table 1, which is a relationship table between the discount amount and the order total provided in the embodiment of the present application. For example, the discount amount and the order total present a relationship as shown in Table 1. When the corresponding product type is the same as the preset product type, the order totals of the prepared orders (orders 1, 2, and 3) are 15 yuan, 25 yuan, and 35 yuan respectively, then the second target discount amounts (3 yuan, 5 yuan, and 10 yuan) that match the second order totals (15 yuan, 25 yuan, and 35 yuan) can be determined.
[0165] Table 1
[0166] Order Total Discount amount 20 <Total Order Amount 3 20≤Order Total<30 5 30≤Order Total 10
[0167] c. Generate information of a coupon bound to the preliminary order based on the second target discount amount.
[0168] Specifically, the second target discount amount is used as the amount of the coupon bound to the preliminary order, and information of the coupon bound to the preliminary order is generated.
[0169] For ease of understanding, the example of step b above is continued. For example, the second target discount amounts that match the second order total amount (15 yuan, 25 yuan, 35 yuan) are 3 yuan, 5 yuan, and 10 yuan respectively. At this time, coupons a1, a2, and a3 bound to orders 1, 2, and 3 can be generated respectively. Among them, the information of coupon a1 includes the amount of 3 yuan, the information of coupon a2 includes the amount of 5 yuan, and the information of coupon a3 includes the amount of 10 yuan.
[0170] From the above content, it can be seen that by detecting whether the corresponding product type of the prepared order is the same as the preset product type, a coupon for the prepared order that meets the usage conditions can be generated according to the specific business scenario requirements; the prepared orders that do not meet the usage conditions are quickly filtered out, avoiding the situation where coupons are generated for the prepared orders that do not meet the usage conditions, and improving the efficiency of coupon generation. Through the preset relationship table between the discount amount and the total order amount, the amount of the coupon can be quickly determined, and then the information of the coupon bound to the prepared order can be quickly generated.
[0171] In order to better implement the coupon management method in the embodiment of the present application, based on the coupon management method, the embodiment of the present application also provides a coupon management device, such as Figure 8 FIG. 8 is a schematic diagram of a structure of a coupon management device in an embodiment of the present application. The coupon management device 800 includes:
[0172] A first acquisition unit 801 is used to acquire basic information of a prepared order;
[0173] A generating unit 802, configured to generate information of a coupon bound to the preliminary order according to the basic information and a preset generating strategy;
[0174] The second acquisition unit 803 is used to acquire target basic information of the target order when a payment instruction of the target order is detected, and acquire information of a target coupon bound to the target order from information of the coupon, wherein the target order is a preparatory order;
[0175] The determination unit 804 is used to determine the amount to be paid of the target order according to the information of the target coupon and the target basic information.
[0176] In some embodiments of the present application, the basic information includes the first order identifier of the prepared order, and before the step of acquiring information of a target coupon bound to the target order from information of the coupon when a payment instruction of the target order is detected, the generating unit 802 is specifically used to:
[0177] Associating the first order identifier with the information of the coupon and storing it in a preset database;
[0178] In some embodiments of the present application, the second acquiring unit 803 is specifically configured to:
[0179] When a payment instruction of the target order is detected, obtaining a second order identifier of the target order;
[0180] Acquire a target order identifier that is identical to the second order identifier from the first order identifier recorded in the database;
[0181] The information of the coupon associated with the target order identifier is obtained from the information of the coupon recorded in the database to serve as the information of the target coupon.
[0182] In some embodiments of the present application, the target basic information includes the first order total of the target order, and the determining unit 804 is specifically configured to:
[0183] Displaying information of the target coupon;
[0184] Obtaining a coupon selection operation based on display feedback of information of the target coupon;
[0185] Determining a first target discount amount for the target order according to the coupon selection operation;
[0186] The amount to be paid is determined according to the first target discount amount and the first order total amount.
[0187] In some embodiments of the present application, the determining unit 804 is specifically configured to:
[0188] Calling a preset third-party payment platform to display information of the target coupon;
[0189] In some embodiments of the present application, the coupon management device 800 further includes a payment unit (not shown in the figure). After the step of determining the amount to be paid according to the first target discount amount and the first order total amount, the payment unit is specifically used to:
[0190] The third-party payment platform is called to complete the payment of the target order according to the amount to be paid.
[0191] In some embodiments of the present application, the determining unit 804 is specifically configured to:
[0192] Obtain the validity date of the target coupon and the current date;
[0193] Detecting whether the effective date lags behind the current date;
[0194] When it is detected that the effective date lags behind the current date, displaying information of the target coupon;
[0195] In some embodiments of the present application, the coupon management device 800 further includes an updating unit (not shown in the figure), and after the step of detecting whether the validity date lags behind the current date, the updating unit is specifically used to:
[0196] When it is detected that the current date lags behind the effective date, the record status of the target coupon in the database is updated.
[0197] In some embodiments of the present application, the updating unit is specifically used for:
[0198] When the payment of the target order is completed, the record status of the target coupon in the database is updated.
[0199] In some embodiments of the present application, the preset generation strategy includes a relationship table between the discount amount and the order total amount, the basic information includes the corresponding product type of the preliminary order and the second order total amount, and the generation unit 802 is specifically used to:
[0200] Detecting whether the product type corresponding to the prepared order is the same as the preset product type;
[0201] When the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total amount from the relationship table;
[0202] According to the second target discount amount, information of a coupon bound to the preliminary order is generated.
[0203] In some embodiments of the present application, the preliminary order is a cash on delivery order or a cash on delivery order.
[0204] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0205] Since the coupon management device can execute the present application as follows Figures 1 to 7 Corresponding to the steps in the coupon management method in any embodiment, the present application can be implemented as follows Figures 1 to 7 For the beneficial effects that can be achieved by the coupon management method in any embodiment, please refer to the previous description in detail and will not be repeated here.
[0206] In addition, in order to better implement the coupon management method in the embodiment of the present application, on the basis of the coupon management method, the embodiment of the present application also provides an electronic device, referring to Fig. 9 , Fig. 9 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. Specifically, the electronic device provided by the embodiment of the present application includes a processor 901, and the processor 901 is used to execute the computer program stored in the memory 902 to implement the following Figures 1 to 7 Corresponding to each step of the coupon management method in any embodiment; or, the processor 901 is used to execute the computer program stored in the memory 902 to implement the following Figure 8 The functions of each unit in the corresponding embodiment.
[0207] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 902, and executed by the processor 901 to complete the embodiment of the present application. One or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.
[0208] The electronic device may include, but is not limited to, a processor 901 and a memory 902. Those skilled in the art will appreciate that the illustration is merely an example of an electronic device and does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the illustration, or a combination of certain components, or different components. For example, the electronic device may also include an input / output device, a network access device, a bus, etc., and the processor 901, the memory 902, the input / output device, and the network access device are connected via a bus.
[0209] The processor 901 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0210] The memory 902 can be used to store computer programs and / or modules. The processor 901 implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 902 and calling the data stored in the memory 902. The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, video data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0211] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the coupon management device, electronic device and its corresponding units described above can refer to the following. Figures 1 to 7 The description of the coupon management method in any embodiment will not be repeated here in detail.
[0212] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0213] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the present application as follows: Figures 1 to 7 For the steps in the coupon management method in any embodiment, the specific operations can be referred to as follows: Figures 1 to 7 The description of the coupon management method in any embodiment will not be repeated here.
[0214] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0215] Due to the instructions stored in the computer-readable storage medium, the present application can be executed. Figures 1 to 7 Corresponding to the steps in the coupon management method in any embodiment, the present application can be implemented as follows Figures 1 to 7For the beneficial effects that can be achieved by the coupon management method in any embodiment, please refer to the previous description in detail and will not be repeated here.
[0216] The above is a detailed introduction to a coupon management method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A coupon management method, characterized in that: The method comprises: Acquire basic information of a preliminary order, the basic information including a first order identifier of the preliminary order, a corresponding product type of the preliminary order, and a second order total amount; Detecting whether the product type corresponding to the prepared order is the same as the preset product type; When the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total amount from a relationship table between discount amounts and order total amounts; generating information of a coupon bound to the preliminary order according to the second target discount amount; Associating the first order identifier with the information of the coupon and storing it in a preset database; When a payment instruction of a target order is detected, obtaining a second order identifier of the target order; Acquire a target order identifier that is identical to the second order identifier from the first order identifier recorded in the database; Acquire information of a coupon associated with the target order identifier from the information of the coupon recorded in the database as information of a target coupon, wherein the target order is a pre-order; The amount to be paid of the target order is determined according to the information of the target coupon and the target basic information.
2. The coupon management method according to claim 1, characterized in that: The target basic information includes the first order total of the target order, and determining the amount to be paid of the target order according to the information of the target coupon and the target basic information includes: Displaying information of the target coupon; Obtaining a coupon selection operation based on display feedback of information of the target coupon; Determining a first target discount amount for the target order according to the coupon selection operation; The amount to be paid is determined according to the first target discount amount and the first order total amount.
3. The coupon management method according to claim 2, characterized in that: The information displaying the target coupon includes: Calling a preset third-party payment platform to display information of the target coupon; The step of determining the amount to be paid according to the first target discount amount and the first order total amount further includes: The third-party payment platform is called to complete the payment of the target order according to the amount to be paid.
4. The coupon management method according to claim 2, characterized in that: The information displaying the target coupon includes: Obtain the validity date of the target coupon and the current date; Detecting whether the effective date lags behind the current date; When it is detected that the effective date lags behind the current date, displaying information of the target coupon; The step of detecting whether the effective date is later than the current date further comprises: When it is detected that the current date lags behind the effective date, the record status of the target coupon in the database is updated.
5. The coupon management method according to any one of claims 1 to 4, characterized in that: The pre-order is a cash on delivery order or a cash on delivery order.
6. A coupon management device, characterized in that: The coupon management device comprises: A first acquisition unit is used to acquire basic information of a preliminary order, wherein the basic information includes a first order identifier of the preliminary order, a corresponding product type of the preliminary order, and a second order total amount; a generating unit, configured to detect whether the corresponding product type of the prepared order is the same as the preset product type; when the corresponding product type is the same as the preset product type, obtaining a second target discount amount matching the second order total amount from a relationship table between the discount amount and the order total amount; generating information of a coupon bound to the prepared order according to the second target discount amount; and associating the first order identifier with the information of the coupon and storing it in a preset database; a second acquisition unit, configured to acquire a second order identifier of the target order when a payment instruction of the target order is detected; acquire a target order identifier identical to the second order identifier from the first order identifier recorded in the database; and acquire information of a coupon associated with the target order identifier from information of the coupon recorded in the database as information of the target coupon, wherein the target order is a preparatory order; A determination unit is used to determine the amount to be paid of the target order according to the information of the target coupon and the target basic information.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the coupon management method according to any one of claims 1 to 5 is executed.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the coupon management method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Coupon using method and device
CN106875231A
Coupon management method and device and storage medium
CN111507772A
