Order generation method and device, computer device and readable storage medium
By calculating the actual resource quantity based on user location information and delivery address during the order generation process, the problem of discrepancies between the original price of the product and the order amount is solved, enabling faster order generation and improved flexibility.
Patent Information
- Application Number
- CN202310552285.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-03-15
AI Technical Summary
In existing technologies, there is a numerical difference between the original price of a product and the final order amount, which causes the price seen by the user to be inconsistent with the price actually paid. When generating an order, it needs to be recalculated, which is inefficient and lacks flexibility.
By determining the user's location information, the system displays the display resources of candidate products, generates the actual resource quantity in response to user actions, and determines the resource quantity to be transferred when there is a difference between the displayed resource quantity and the actual resource quantity, and generates an order that includes the resource quantity to be transferred.
It enables faster order generation and improved flexibility, automatically recalculating resource quantities based on the delivery location entered by the user, reducing extra workload and improving order generation efficiency.
Smart Images

Figure CN116797314B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application filed on March 15, 2021, with application number 2021102760729, entitled "Order Generation Method, Apparatus, Computer Equipment and Readable Storage Medium". Technical Field
[0002] This application relates to the field of Internet technology, and in particular to an order generation method, apparatus, computer equipment, and readable storage medium. Background Technology
[0003] With the continuous development of internet technology, users in most service industries are demanding higher and higher levels of experience, leading to a proliferation of services offered by delivery platforms. For example, the food delivery industry has become an integral part of people's daily lives, allowing them to enjoy consumption and services without leaving home. Currently, food delivery platforms typically use subsidies to attract users, such as waiving delivery and packaging fees. The discounted price is then displayed to the user as the amount of resources they need to pay when placing an order, allowing them to clearly understand the discount amount and thus generating an order.
[0004] In related technologies, platforms typically display the original resource quantity (i.e., original price) of a product to users. When a user confirms placing an order for a product, the platform then summarizes the packaging fees, delivery fees, and other related costs to obtain the actual amount the user needs to pay for the product, and generates an order for the user based on this actual amount.
[0005] In the process of developing this application, the applicant discovered that the relevant technology has at least the following problems:
[0006] There is a numerical difference between the original price of the product and the actual amount of the final order, which causes the price seen by the user to be inconsistent with the price in the generated order. When generating an order, the price needs to be recalculated, which involves a lot of extra work, resulting in low order generation efficiency and poor flexibility. Summary of the Invention
[0007] In view of this, this application provides an order generation method, apparatus, computer device, and readable storage medium, the main purpose of which is to solve the problem that the current order generation process requires recalculation of prices, which involves a large amount of extra work, resulting in low order generation efficiency and poor flexibility.
[0008] According to a first aspect of this application, an order generation method is provided, the method comprising:
[0009] Determine the user's location information, and based on the location information, display candidate products and the corresponding display resource quantity for the candidate products to the user. The display resource quantity is generated by reducing the user's subsidy resource quantity from the rated resource quantity of the candidate products. The rated resource quantity is the sum of the original resource quantity, the estimated delivery consumption resource quantity, and the packaging consumption resource quantity of the candidate products.
[0010] In response to a click on the candidate product, the delivery address provided by the user is obtained, and the actual resource quantity of the candidate product is generated based on the delivery address;
[0011] When there is a numerical difference between the displayed resource quantity and the actual resource quantity, the resource quantity to be transferred is determined based on the displayed resource quantity and the actual resource quantity, and the resource quantity to be transferred is displayed.
[0012] In response to the confirmation operation of the amount of resources to be transferred, a first commodity order including the amount of resources to be transferred is generated.
[0013] In another embodiment, displaying candidate products and the corresponding display resource quantity to the user based on the location information includes:
[0014] The candidate product is determined, and the rated resource quantity of the candidate product is calculated based on the location information and the store location of the target store to which the candidate product belongs. The distance between the store location and the location information is less than or equal to a distance threshold.
[0015] Obtain the amount of subsidy resources provided to the user, wherein the value of the subsidy resources is any random value or a preset value of the target store;
[0016] Calculate the difference between the rated resource amount and the subsidized resource amount, and use the difference as the display resource amount;
[0017] The candidate products are marked using the amount of display resources, and the marked candidate products are then displayed to the user.
[0018] In another embodiment, calculating the rated resource quantity of the candidate product based on the location information and the store location of the target store to which the candidate product belongs includes:
[0019] Calculate the first location distance between the location information and the store location, and determine the estimated delivery resource consumption corresponding to the first location distance;
[0020] Query the original resource quantity and packaging resource consumption quantity of the candidate product at the target store;
[0021] The sum of the original resource quantity, the estimated distribution resource consumption quantity, and the packaging resource consumption quantity is taken as the rated resource quantity.
[0022] In another embodiment, obtaining the delivery address provided by the user and generating the actual resource quantity of the candidate goods based on the delivery address includes:
[0023] Calculate the second location distance between the delivery address and the store location of the target store providing the candidate products, and determine the actual delivery resource consumption corresponding to the second location distance;
[0024] The actual resource quantity is obtained by calculating the sum of the original resource quantity, the actual delivery resource quantity, and the packaging resource quantity, and then reducing the subsidized resource quantity from the sum.
[0025] In another embodiment, determining the amount of resources to be transferred based on the displayed resource amount and the actual resource amount includes:
[0026] When the actual resource quantity is greater than the displayed resource quantity, query the expanded resource quantity of the target store to which the candidate product belongs, and determine the resource quantity to be transferred based on the expanded resource quantity and the numerical difference.
[0027] When the actual resource quantity is less than the displayed resource quantity, the actual resource quantity is used as the resource quantity to be transferred.
[0028] In another embodiment, determining the amount of resource to be transferred based on the expanded resource amount and the numerical difference includes:
[0029] If the expanded resource quantity is successfully obtained, the expanded resource quantity is reduced from the actual resource quantity, and the reduced actual resource quantity is used as the resource quantity to be transferred.
[0030] If obtaining the expanded resource quantity fails, the actual resource quantity will be used as the resource quantity to be transferred.
[0031] In another embodiment, after obtaining the delivery address provided by the user in response to a click on the candidate product, and generating the actual resource quantity of the candidate product based on the delivery address, the method further includes:
[0032] When there is no numerical difference between the displayed resource quantity and the actual resource quantity, a second product order including the displayed resource quantity is generated.
[0033] According to a second aspect of this application, an order generation apparatus is provided, the apparatus comprising:
[0034] The display module is used to determine the user's location information and, based on the location information, display candidate products and the corresponding display resource quantity to the user. The display resource quantity is generated by reducing the user's subsidy resource quantity from the rated resource quantity of the candidate product. The rated resource quantity is the sum of the original resource quantity, the estimated delivery consumption resource quantity, and the packaging consumption resource quantity of the candidate product.
[0035] The first generation module is used to respond to the click operation on the candidate product, obtain the delivery address provided by the user, and generate the actual resource quantity of the candidate product based on the delivery address;
[0036] The display module is further configured to determine the amount of resources to be transferred based on the displayed resource amount and the actual resource amount when there is a numerical difference between the displayed resource amount and the actual resource amount, and to display the amount of resources to be transferred.
[0037] The second generation module is used to generate a first commodity order including the amount of resources to be transferred in response to the confirmation operation of the amount of resources to be transferred.
[0038] In another embodiment, the display module is configured to: determine the candidate product; calculate the rated resource quantity of the candidate product based on the location information and the store location of the target store to which the candidate product belongs, wherein the distance between the store location and the location information is less than or equal to a distance threshold; obtain the subsidy resource quantity provided to the user, wherein the value of the subsidy resource quantity is any random value or a preset value of the target store; calculate the difference between the rated resource quantity and the subsidy resource quantity, and use the difference as the display resource quantity; mark the candidate product using the display resource quantity, and display the marked candidate product to the user.
[0039] In another embodiment, the display module is configured to calculate a first location distance between the location information and the store location, determine the estimated delivery resource consumption corresponding to the first location distance; query the original resource quantity and the packaging resource consumption corresponding to the candidate product at the target store; and calculate the sum of the original resource quantity, the estimated delivery resource consumption, and the packaging resource consumption as the rated resource quantity.
[0040] In another embodiment, the first generation module is configured to calculate a second location distance between the delivery address and the store location of the target store providing the candidate product, determine the actual delivery resource consumption corresponding to the second location distance, calculate the sum of the original resource quantity, the actual delivery resource consumption, and the packaging resource consumption, and reduce the subsidy resource quantity on the sum to obtain the actual resource quantity.
[0041] In another embodiment, the display module is further configured to: query the expanded resource quantity of the target store to which the candidate product belongs when the actual resource quantity is greater than the displayed resource quantity; and determine the resource quantity to be transferred based on the expanded resource quantity and the numerical difference; and use the actual resource quantity as the resource quantity to be transferred when the actual resource quantity is less than the displayed resource quantity.
[0042] In another embodiment, the display module is configured to, if the acquisition of the inflated resource quantity is successful, reduce the inflated resource quantity from the actual resource quantity and use the reduced actual resource quantity as the resource quantity to be transferred; if the acquisition of the inflated resource quantity fails, use the actual resource quantity as the resource quantity to be transferred.
[0043] In another embodiment, the second generation module is further configured to generate a second product order including the displayed resource quantity when there is no numerical difference between the displayed resource quantity and the actual resource quantity.
[0044] According to a third aspect of this application, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect above.
[0045] According to a fourth aspect of this application, a readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect above.
[0046] By employing the above technical solutions, this application provides an order generation method, apparatus, computer device, and readable storage medium. This application displays candidate products and their resource quantities to a user based on the user's location information. When the user triggers a candidate product, the actual resource quantity of the candidate product is generated based on the delivery address provided by the user. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, the actual amount of resources to be transferred that the user needs to pay for the candidate product is determined. Then, when the user confirms the amount of resources to be transferred, a first product order including the amount of resources to be transferred is generated. While estimating the resource quantity required to purchase the candidate product based on the user's location information, the application can also automatically recalculate the actual resource quantity based on the delivery location entered by the user. Based on the difference between the displayed resource quantity and the actual resource quantity, an order for reminding the user is automatically generated. This utilizes the processing power of a computer to achieve rapid order processing and generation, improving order generation efficiency and offering good flexibility.
[0047] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0048] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0049] Figure 1 This paper illustrates a flowchart of an order generation method provided in an embodiment of this application.
[0050] Figure 2 This paper illustrates a flowchart of an order generation method provided in an embodiment of this application.
[0051] Figure 3 This paper shows a schematic diagram of the structure of an order generation device provided in an embodiment of this application;
[0052] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of this application is shown. Detailed Implementation
[0053] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.
[0054] This application provides an order generation method, such as... Figure 1 As shown, the method includes:
[0055] 101. Determine the user's location information. Based on the location information, display candidate products and the corresponding display resource quantity for each candidate product. The display resource quantity is generated by reducing the user's subsidy resource quantity from the candidate product's rated resource quantity. The rated resource quantity is the sum of the candidate product's original resource quantity, estimated delivery consumption resource quantity, and packaging consumption resource quantity.
[0056] 102. In response to a click on a candidate product, obtain the delivery address provided by the user and generate the actual resource quantity of the candidate product based on the delivery address.
[0057] 103. When there is a numerical difference between the displayed resource quantity and the actual resource quantity, determine the resource quantity to be transferred based on the displayed resource quantity and the actual resource quantity, and then display the resource quantity to be transferred.
[0058] 104. In response to the confirmation operation of the amount of resources to be transferred, generate a first commodity order including the amount of resources to be transferred.
[0059] The method provided in this application embodiment displays candidate products and their resource quantities to the user based on the user's location information. When the user triggers a candidate product, the actual resource quantity of the candidate product is generated based on the delivery address provided by the user. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, the actual amount of resources to be transferred that the user needs to pay for purchasing the candidate product is determined. Then, when the user confirms the amount of resources to be transferred, a first product order including the amount of resources to be transferred is generated. While estimating the amount of resources required to purchase the candidate product based on the user's location information, the method can also automatically recalculate the actual resource quantity based on the delivery location entered by the user. Based on the difference between the displayed resource quantity and the actual resource quantity, an order for reminding the user is automatically generated. The method utilizes the processing power of the computer to achieve fast order processing and generation, improves order generation efficiency, and has good flexibility.
[0060] This application provides an order generation method, such as... Figure 2 As shown, the method includes:
[0061] 201. Determine the user's location information, and based on the location information, display candidate products and the corresponding display resources for each candidate product to the user.
[0062] In recent years, the number of platforms catering to people's online shopping needs has increased significantly, with many using subsidies to attract and retain users. Currently, these subsidies are typically distributed to users' accounts via coupons or red envelopes. Users must manually select and redeem these subsidies during the purchase process. Furthermore, additional packaging and shipping fees are incurred when purchasing goods. However, the applicant recognizes that subsidies are only displayed in a specific area of the user's account, meaning users can only see which subsidies are still available. These subsidies are not reflected in the actual product price, and packaging and shipping fees are not shown alongside the product price displayed at the time of purchase. This can lead to a significant discrepancy between the displayed price and the actual cost. Recalculating the price based on available subsidies during order generation involves substantial additional work, resulting in low order generation efficiency and poor flexibility. Therefore, this application proposes an order generation method that displays candidate products and their resource quantities to the user based on the user's location information. When the user triggers a candidate product, the actual resource quantity of the candidate product is generated based on the delivery address provided by the user. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, the actual amount of resources to be transferred that the user needs to pay for purchasing the candidate product is determined. Then, when the user confirms the amount of resources to be transferred, a first product order including the amount of resources to be transferred is generated. While estimating the amount of resources required to purchase the candidate product based on the user's location information, the method can also automatically recalculate the actual resource quantity based on the delivery location entered by the user. Based on the difference between the displayed resource quantity and the actual resource quantity, an order for reminding the user is automatically generated. This method utilizes the processing power of computers to achieve rapid order processing and generation, improves order generation efficiency, and offers good flexibility.
[0063] Currently, many platforms charge delivery and packaging fees after users place orders, which are unavoidable. To directly display the actual resource amount the user needs to pay when showcasing products, these fees must be taken into account. Therefore, in this embodiment, the user's location information is determined, and candidate products and their corresponding display resource amounts are displayed based on this information. These display resource amounts are generated by subtracting the user's subsidized resource amount from the candidate product's rated resource amount. The rated resource amount is the sum of the candidate product's original resource amount, estimated delivery resource consumption, and packaging resource consumption. Candidate products can be those offered by merchants within a one-kilometer or two-kilometer radius of the user's current location, or they can be products in the user's vicinity that match their current environment. For example, assuming it's breakfast time, candidate products could be breakfast options in the user's vicinity. Therefore, the platform sets a distance threshold, displaying random or related products from stores whose distance from the user's location is less than or equal to the distance threshold as candidate products. Alternatively, candidate products can be any product a user might browse during the browsing process. There can be one or more candidate products. In this embodiment, we will use one candidate product as an example, but it is not limited to this. The amount of subsidy resources refers to the user's red envelopes, coupons, discount coupons, etc. The amount of rated resources is the sum of the original price of the product, the estimated delivery fee, and the packaging fee. The calculation process of the rated resources of the candidate products will be briefly described below:
[0064] First, determine the user's location information while browsing the platform, obtain the location of the target store providing the candidate products, and calculate the first location distance between the user's current location and the store location to determine the estimated delivery resource consumption corresponding to the first location distance. Then, query the original resource quantity and packaging resource consumption of the candidate product at the target store. Finally, sum the original resource quantity, estimated delivery resource consumption, and packaging resource consumption as the rated resource quantity. For example, for candidate product A, assuming the distance between the user's current location and the store location is 1 kilometer, and the delivery fee for 1 kilometer is 2 yuan, then the estimated delivery resource consumption is 2 yuan. On the other hand, the store stipulates a packaging fee of 2 yuan for product A, and the original price of product A is 10 yuan. Therefore, the packaging resource consumption is 2 yuan, and the original resource quantity is 10 yuan. Thus, the rated resource quantity for product A is 2 yuan + 2 yuan + 10 yuan, which is 14 yuan. It should be noted that some stores may not have a packaging fee; in this case, the packaging resource consumption can be set to 0. Through the above process, the process of identifying candidate products and calculating the rated resource quantity of candidate products based on location information and the store location of the target store to which the candidate products belong is completed.
[0065] After determining the allocated resources for candidate products, since the subsidy resources held by users can be redeemed during consumption, or the platform actually sets a certain amount of subsidy resources for each user, or the store also sets some subsidy resources for users, etc., the price of the product after these subsidy resources are redeemed is the final price that the user needs to pay. Therefore, in order to ensure that the subsidy resources held by users, obtained on the platform, or obtained in the store can also be reflected in the resource quantity displayed for the products, this application embodiment will obtain the amount of subsidy resources provided to users. The value of this subsidy resource quantity is any random value or a preset value of the target store. That is, it can be any random value of red envelopes, coupons, etc. provided by the platform, or it can be red envelopes, coupons, etc. with preset values in the store. It should be noted that since some platforms will directly issue subsidy resources when users enter the platform, the amount of subsidy resources can actually be the amount of subsidy resources that the user already holds in the account on the platform. Subsequently, the platform calculates the difference between the rated resource quantity and the subsidized resource quantity, using this difference as the display resource quantity. Candidate products are then marked using this display resource quantity, and the marked candidate products are shown to the user. This binds the candidate product with the display resource quantity, making it easier for users to determine how much resource quantity they need to pay for purchasing the candidate product. For example, assuming candidate product A has a rated resource quantity of 14 yuan and a subsidized resource quantity of 4 yuan, then A's display resource quantity is 10 yuan.
[0066] 202. In response to a click on a candidate product, obtain the delivery address provided by the user, and generate the actual resource quantity of the candidate product based on the delivery address. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, execute steps 203 and 204 below. If there is no numerical difference between the displayed resource quantity and the actual resource quantity, execute step 205 below.
[0067] In this embodiment, since the candidate products displayed on the platform are for users to select and place orders, in response to a click on a candidate product, the platform obtains the delivery address provided by the user, calculates the actual resource quantity based on the delivery address, and generates a product order for the user according to the actual resource quantity. The delivery address used by the user when placing the order may not be exactly the same as the user's location when browsing the candidate products; there may be discrepancies. Alternatively, the user may be purchasing for another customer in a different location, and the required delivery location may be far from the user's current location. The rated resource quantity determined for the candidate products is an estimated delivery resource consumption. Therefore, it is necessary to calculate the actual resource quantity based on the delivery address used by the user when placing the order, and then use the actual resource quantity to generate a product order for the user to pay for the product order. The calculation process of the actual resource quantity is briefly described below:
[0068] First, calculate the second location distance between the delivery address and the target store location providing the candidate products, and determine the actual delivery resource consumption corresponding to this second location distance. Then, calculate the sum of the original resource quantity, the actual delivery resource consumption, and the packaging resource consumption, and reduce the subsidy resource quantity from the sum to obtain the actual resource quantity. The specific calculation process is consistent with the process of calculating the displayed resource quantity in step 201 above, except that the delivery resource consumption is changed from an estimate to the actual value.
[0069] In practical applications, the displayed resource quantity may be larger, smaller, or equal to the actual resource quantity, meaning there may be a numerical difference between them. If this difference exists, there are two scenarios: First, the displayed resource quantity is greater than the actual resource quantity. In this case, the estimated price is actually higher than the actual price, and the actual price can be directly used as the user's resource quantity to be transferred. Second, the actual resource quantity is greater than the displayed resource quantity. In this case, the estimated price is actually higher than the actual price, and it's necessary to further examine the activities in the target store to determine if the numerical difference can be ignored. Based on whether it can be ignored, the corresponding resource quantity to be transferred is generated. That is, when there is a numerical difference between the displayed and actual resource quantities, steps 203 and 204 are executed. If there is no numerical difference, it means the displayed resource quantity shown to the user is equal to the calculated actual resource quantity, and the corresponding product order can be generated directly without further consideration. That is, when there is no numerical difference between the displayed and actual resource quantities, step 205 is executed.
[0070] 203. When there is a numerical difference between the displayed resource quantity and the actual resource quantity, determine the resource quantity to be transferred based on the displayed resource quantity and the actual resource quantity, and display the resource quantity to be transferred.
[0071] In this embodiment, when there is a numerical difference between the displayed resource quantity and the actual resource quantity, there are actually two situations: one is that the displayed resource quantity is greater than the actual resource quantity, in which case the estimated price is actually higher than the actual price, and the actual price can be directly used as the user's resource quantity to be transferred. Therefore, when the actual resource quantity is less than the displayed resource quantity, the actual resource quantity is used as the resource quantity to be transferred.
[0072] Another scenario is where the actual resource quantity exceeds the displayed resource quantity. In this case, the estimated price is actually higher than the actual price. It's necessary to further examine the promotions in the target store and determine whether the difference can be ignored based on the promotional activities. Based on whether it can be ignored, a corresponding amount of resource to be transferred is generated. In other words, when the actual resource quantity exceeds the displayed resource quantity, the inflated resource quantity of the target store to which the candidate product belongs is queried. Based on the inflated resource quantity and the difference, the amount of resource to be transferred is determined. The specific process is as follows:
[0073] If acquiring the inflated resource quantity is successful, the inflated resource quantity is reduced from the actual resource quantity, and the reduced actual resource quantity is used as the resource quantity to be transferred. If acquiring the inflated resource quantity fails, the actual resource quantity is used as the resource quantity to be transferred. For example, assuming the target store provides an inflated resource quantity of 1 yuan and the actual resource quantity is 14 yuan, the resource quantity to be transferred is 13 yuan. If the target store does not provide any inflated resource quantity, then 14 yuan is directly used as the resource quantity to be transferred.
[0074] After generating the amount of resources to be transferred, the platform will display the amount of resources to be transferred to the user for confirmation.
[0075] 204. In response to the confirmation operation of the amount of resources to be transferred, generate a first commodity order including the amount of resources to be transferred.
[0076] In this embodiment, after the amount of resources to be transferred is displayed to the user, the user decides whether to purchase the candidate products based on the price. Specifically, the content of the candidate products can also be displayed simultaneously when the amount of resources to be transferred is displayed. When the user confirms the amount of resources to be transferred, it indicates that the user is requesting to place an order. Therefore, in response to the confirmation operation of the amount of resources to be transferred, the platform will generate a first product order including the amount of resources to be transferred.
[0077] It should be noted that the amount of resources to be transferred in the first product order may differ from the previously displayed amount due to changes in the delivery address. Therefore, if the amount of resources to be transferred is significantly larger than the displayed amount, the platform will generate a resource increase alert showing the difference between the two amounts, as well as the actual resources consumed during delivery. This alert will be displayed in the first product order to inform the user that the price displayed in the order has increased due to increased delivery costs. The user can then decide whether they can accept the increased resource amount, thus serving as a reminder. For example, a resource increase alert could be generated such as, "Due to the longer delivery distance, the price has increased by 1 yuan. Do you still want to place the order?", with options to continue ordering or return to the event page. Furthermore, in this embodiment, the resource growth reminder is displayed in the first product order after the first product order is generated. However, in actual application, the amount of resources to be transferred can be calculated when the user requests to place an order, and the resource growth reminder can be displayed directly after it is determined that an increase has occurred, without displaying the corresponding first product order. This application does not specifically limit the timing and location of the display of the resource growth reminder.
[0078] 205. When there is no numerical difference between the displayed resource quantity and the actual resource quantity, generate a second product order that includes the displayed resource quantity.
[0079] In this embodiment of the application, when there is no numerical difference between the displayed resource quantity and the actual resource quantity, it means that the displayed resource quantity shown to the user is equal to the actual calculated resource quantity, and a second product order including the displayed resource quantity is generated for the user to pay.
[0080] The method provided in this application embodiment displays candidate products and their resource quantities to the user based on the user's location information. When the user triggers a candidate product, the actual resource quantity of the candidate product is generated based on the delivery address provided by the user. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, the actual amount of resources to be transferred that the user needs to pay for purchasing the candidate product is determined. Then, when the user confirms the amount of resources to be transferred, a first product order including the amount of resources to be transferred is generated. While estimating the amount of resources required to purchase the candidate product based on the user's location information, the method can also automatically recalculate the actual resource quantity based on the delivery location entered by the user. Based on the difference between the displayed resource quantity and the actual resource quantity, an order for reminding the user is automatically generated. The method utilizes the processing power of the computer to achieve fast order processing and generation, improves order generation efficiency, and has good flexibility.
[0081] Furthermore, as Figure 1 To specifically implement the method, this application provides an order generation device, such as... Figure 3 As shown, the device includes: a display module 301, a first generation module 302, and a second generation module 303.
[0082] The display module 301 is used to determine the user's location information and, based on the location information, display candidate products and the corresponding display resource quantity to the user. The display resource quantity is generated by reducing the user's subsidy resource quantity from the rated resource quantity of the candidate products. The rated resource quantity is the sum of the original resource quantity, the estimated delivery consumption resource quantity, and the packaging consumption resource quantity of the candidate products.
[0083] The first generation module 302 is used to respond to a click operation on the candidate product, obtain the delivery address provided by the user, and generate the actual resource quantity of the candidate product based on the delivery address;
[0084] The display module 301 is also used to determine the amount of resources to be transferred based on the display amount and the actual amount of resources when there is a numerical difference between the displayed amount of resources and the actual amount of resources, and to display the amount of resources to be transferred.
[0085] The second generation module 303 is used to generate a first commodity order including the amount of resources to be transferred in response to the confirmation operation of the amount of resources to be transferred.
[0086] In a specific application scenario, the display module 301 is used to determine the candidate product, calculate the rated resource quantity of the candidate product based on the location information and the store location of the target store to which the candidate product belongs, wherein the distance between the store location and the location information is less than or equal to a distance threshold; obtain the subsidy resource quantity provided to the user, wherein the value of the subsidy resource quantity is any random value or a preset value of the target store; calculate the difference between the rated resource quantity and the subsidy resource quantity, and use the difference as the display resource quantity; mark the candidate product using the display resource quantity, and display the marked candidate product to the user.
[0087] In a specific application scenario, the display module 301 is used to calculate a first location distance between the location information and the store location, determine the estimated delivery resource consumption corresponding to the first location distance; query the original resource quantity and the packaging resource consumption corresponding to the candidate product at the target store; and calculate the sum of the original resource quantity, the estimated delivery resource consumption, and the packaging resource consumption as the rated resource quantity.
[0088] In a specific application scenario, the first generation module 302 is used to calculate the second location distance between the delivery address and the store location of the target store providing the candidate product, determine the actual delivery resource consumption corresponding to the second location distance, calculate the sum of the original resource quantity, the actual delivery resource consumption, and the packaging resource consumption, and reduce the subsidy resource quantity on the sum to obtain the actual resource quantity.
[0089] In specific application scenarios, the display module 301 is also used to query the expanded resource quantity of the target store to which the candidate product belongs when the actual resource quantity is greater than the displayed resource quantity, and determine the resource quantity to be transferred based on the expanded resource quantity and the numerical difference; when the actual resource quantity is less than the displayed resource quantity, the actual resource quantity is used as the resource quantity to be transferred.
[0090] In a specific application scenario, the display module 301 is used to reduce the expanded resource amount from the actual resource amount if the acquisition of the expanded resource amount is successful, and use the reduced actual resource amount as the resource amount to be transferred; if the acquisition of the expanded resource amount fails, the actual resource amount is used as the resource amount to be transferred.
[0091] In specific application scenarios, the second generation module 303 is also used to generate a second product order including the display resource quantity when there is no numerical difference between the displayed resource quantity and the actual resource quantity.
[0092] The device provided in this application embodiment displays candidate products and their resource quantities to the user based on the user's location information. When the user triggers a candidate product, the device generates the actual resource quantity of the candidate product based on the delivery address provided by the user. If there is a numerical difference between the displayed resource quantity and the actual resource quantity, the device determines the actual amount of resources to be transferred that the user needs to pay for the candidate product. Then, when the user confirms the amount of resources to be transferred, a first product order including the amount of resources to be transferred is generated. While estimating the amount of resources required to purchase the candidate product based on the user's location information, the device can also automatically recalculate the actual resource quantity based on the delivery location entered by the user. The device automatically generates an order to remind the user based on the difference between the displayed resource quantity and the actual resource quantity. The device utilizes the processing power of a computer to achieve rapid order processing and generation, improving order generation efficiency and providing good flexibility.
[0093] It should be noted that other corresponding descriptions of the functional units involved in the order generation device provided in this application embodiment can be found by referring to... Figure 1 and Figure 2 The corresponding descriptions in [the document] will not be repeated here.
[0094] In an exemplary embodiment, see Figure 4 Furthermore, a device 400 is provided, comprising a communication bus, a processor, a memory, and a communication interface. It may also include an input / output interface and a display device, wherein the various functional units can communicate with each other via the bus. The memory stores a computer program, and the processor executes the program stored in the memory to perform the order generation method described in the above embodiments. A computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the order generation method described above.
[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by hardware or by using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various implementation scenarios of this application. Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of preferred implementation scenarios, and the modules or processes in the drawings are not necessarily necessary for implementing this application. Those skilled in the art can understand that the modules in the device in the implementation scenario can be distributed in the device of the implementation scenario as described in the implementation scenario, or can be located in one or more devices different from this implementation scenario with corresponding changes. The modules of the above implementation scenarios can be merged into one module or further divided into multiple sub-modules. The serial numbers of this application above are only for description and do not represent the superiority or inferiority of the implementation scenarios. The above disclosures are only a few specific implementation scenarios of this application, but this application is not limited thereto, and any changes that those skilled in the art can conceive of should fall within the protection scope of this application.
Claims
1. An order generation method, characterized in that, include: The system displays candidate products and the corresponding display resources for each candidate product. The display resources are generated by reducing the amount of subsidy resources held by the user from the rated resources of the candidate products. The rated resources are the sum of the original resources of the candidate products, the estimated delivery resources, and the packaging resources. The estimated delivery resources are related to the user's location information. In response to a click on the candidate product, the delivery address provided by the user is obtained, and the actual resource quantity of the candidate product is determined based on the user's delivery address. When there is a numerical difference between the displayed resource quantity and the actual resource quantity, the amount of resources to be transferred for the candidate product is determined based on the displayed resource quantity and the actual resource quantity. In response to the confirmation operation of the amount of resources to be transferred, a first product order of the candidate products is generated. If the amount of resources to be transferred is greater than the amount of resources to be displayed, a resource growth reminder is displayed. The resource growth reminder is used to remind the user of the increase in the amount of resources and to inform the user that the price displayed in the first product order has increased due to the increase in delivery fees.
2. The method according to claim 1, characterized in that, Before displaying the candidate products and the corresponding display resources for the candidate products, the method further includes: Determine the user's location; Based on the user's location, the candidate products and the amount of display resources are determined.
3. The method according to claim 2, characterized in that, Determining the candidate products and the amount of display resources based on the user's location includes: Based on the user's location, the candidate products are determined, wherein the distance between the target store location of the candidate products and the user's location is less than or equal to a distance threshold. Based on the user location and the store location, determine the rated resource quantity of the candidate products; The difference between the rated resource amount and the subsidized resource amount provided to the user is determined as the display resource amount.
4. The method according to claim 3, characterized in that, Determining the rated resource quantity of the candidate products based on the user location and the store location includes: Based on the first location distance between the user's location and the store's location, the estimated delivery resource consumption for delivering the candidate product to the user is determined; Obtain the original resource quantity and packaging resource consumption quantity of the candidate product at the target store; The sum of the estimated delivery resource consumption, the original resource quantity, and the packaging resource consumption is determined as the rated resource quantity of the candidate product.
5. The method according to claim 1, characterized in that, The candidate products to be displayed and the corresponding display resources for the candidate products include: The candidate products are marked using the amount of display resources, and the marked candidate products are then displayed.
6. The method according to claim 1, characterized in that, Determining the actual resource quantity of the candidate goods based on the user's delivery address includes: Determine the second location distance between the user's delivery address and the store location of the target store to which the candidate product belongs; Based on the second location distance, determine the actual delivery resource consumption for delivering the candidate goods to the user; Obtain the original resource quantity and packaging resource consumption quantity of the candidate product at the target store; The difference between the sum of the actual delivery resource consumption, the original resource quantity, and the packaging resource consumption and the subsidy resource quantity provided to the user is determined as the actual resource quantity.
7. The method according to claim 1, characterized in that, The step of determining the amount of resources to be transferred for the candidate product based on the displayed resource quantity and the actual resource quantity includes: If the actual resource quantity is greater than the displayed resource quantity, determine the expanded resource quantity of the target store to which the candidate product belongs; based on the acquisition of the expanded resource quantity and the actual resource quantity, determine the resource quantity to be transferred. If the actual resource quantity is less than the displayed resource quantity, the actual resource quantity will be used as the resource quantity to be transferred.
8. The method according to claim 7, characterized in that, The determination of the amount of resources to be transferred based on the acquisition of the expanded resource amount and the actual resource amount includes: If the expanded resource quantity is successfully acquired, the expanded resource quantity is reduced from the actual resource quantity; the reduced actual resource quantity is determined as the resource quantity to be transferred. If it fails to obtain the expanded resource amount, the actual resource amount will be used as the resource amount to be transferred.
9. The method according to any one of claims 1-8, characterized in that, After responding to a click on the candidate product, obtaining the delivery address provided by the user, and determining the actual resource quantity of the candidate product based on the user's delivery address, the method further includes: If there is no numerical difference between the displayed resource quantity and the actual resource quantity, a second product order is generated, and the second product order includes the displayed resource quantity.
10. The method according to any one of claims 1-8, characterized in that, The resource growth alert carries the difference between the amount of resources to be transferred and the amount of resources displayed, as well as the actual amount of resources consumed during delivery corresponding to the delivery address.
11. An order generation device, characterized in that, include: The display module is used to display candidate products and the display resource quantity corresponding to the candidate products. The display resource quantity is generated by reducing the amount of subsidy resources held by the user from the rated resource quantity of the candidate products. The rated resource quantity is the sum of the original resource quantity, the estimated delivery consumption resource quantity, and the packaging consumption resource quantity of the candidate products. The estimated delivery consumption resource quantity is related to the user's location information. The first generation module is used to obtain the delivery address provided by the user in response to a click operation on the candidate product; The display module is also used to determine the actual resource quantity of the candidate product based on the user's delivery address; when there is a numerical difference between the displayed resource quantity and the actual resource quantity, the module determines the resource quantity of the candidate product to be transferred based on the displayed resource quantity and the actual resource quantity. The second generation module is used to generate a first product order for the candidate products in response to the confirmation operation of the amount of resources to be transferred. In the case that the amount of resources to be transferred is greater than the amount of resources to be displayed, a resource growth reminder is displayed. The resource growth reminder is used to remind the user of the increase in the amount of resources and to inform the user that the price displayed in the first product order has increased due to the increase in delivery fees.
12. The apparatus according to claim 11, characterized in that, The display module is used to determine the user's location; and based on the user's location, to determine the candidate products and the amount of display resources.
13. The apparatus according to claim 12, characterized in that, The display module is used to determine the candidate products based on the user's location, wherein the distance between the target store location of the candidate product and the user's location is less than or equal to a distance threshold; and to determine the rated resource quantity of the candidate products based on the user's location and the store location. The difference between the rated resource amount and the subsidized resource amount provided to the user is determined as the display resource amount.
14. The apparatus according to claim 13, characterized in that, The display module is used to determine the estimated delivery resource consumption for delivering the candidate product to the user based on a first location distance between the user's location and the store's location; and to obtain the original resource quantity and packaging resource consumption of the candidate product at the target store. The sum of the estimated delivery resource consumption, the original resource quantity, and the packaging resource consumption is determined as the rated resource quantity of the candidate product.
15. The apparatus according to claim 11, characterized in that, The display module is used to mark the candidate products using the display resource quantity and display the marked candidate products.
16. The apparatus according to claim 11, characterized in that, The display module is used to determine a second location distance between the user's delivery address and the store location of the target store to which the candidate product belongs; and based on the second location distance, to determine the actual delivery resource consumption for delivering the candidate product to the user; Obtain the original resource quantity and packaging resource consumption quantity of the candidate product at the target store; The difference between the sum of the actual delivery resource consumption, the original resource quantity, and the packaging resource consumption and the subsidy resource quantity provided to the user is determined as the actual resource quantity.
17. The apparatus according to claim 11, characterized in that, The display module is further configured to determine the expanded resource quantity of the target store to which the candidate product belongs when the actual resource quantity is greater than the displayed resource quantity; and to determine the resource quantity to be transferred based on the acquisition of the expanded resource quantity and the actual resource quantity. If the actual resource quantity is less than the displayed resource quantity, the actual resource quantity will be used as the resource quantity to be transferred.
18. The apparatus according to claim 17, characterized in that, The display module is further configured to, if the acquisition of the expanded resource quantity is successful, reduce the expanded resource quantity from the actual resource quantity; determine the reduced actual resource quantity as the resource quantity to be transferred; and if the acquisition of the expanded resource quantity fails, use the actual resource quantity as the resource quantity to be transferred.
19. The apparatus according to any one of claims 11-18, characterized in that, The second generation module is further configured to generate a second product order, wherein the second product order includes the displayed resource quantity, if there is no numerical difference between the displayed resource quantity and the actual resource quantity.
20. The apparatus according to any one of claims 11-18, characterized in that, The resource growth alert carries the difference between the amount of resources to be transferred and the amount of resources displayed, as well as the actual amount of resources consumed during delivery corresponding to the delivery address.
21. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.
22. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
A method and system for price remind
CN109461058A
Resource acquisition method, device and equipment and storage medium
CN110276659A
