User resource processing method and device
By automatically pre-occupying and managing user resources, it solves the problem of low user resource usage efficiency when returning goods on e-commerce platforms, realizes the automatic use and timely release of high-priority resources, and improves user experience.
Patent Information
- Application Number
- CN202011608266.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-30
AI Technical Summary
When users return goods on the e-commerce platform, the use and timely release of high-priority user resources cannot be automatically triggered, resulting in low resource usage efficiency and poor user experience.
By receiving task information, it determines user information and priority, automatically pre-occupies and uses user resources, reserves or releases them accordingly when the task is completed or incomplete, and triggers the payment process based on member information.
It improves the efficiency and flexibility of user resource use, improves user experience, and ensures the automatic use and timely release of high-priority resources.
Smart Images

Figure CN113781063B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing user resources in the field of logistics. Background Art
[0002] Currently, users often have the need to return goods after purchasing them on e-commerce platforms. When a return occurs, different users on the platform usually have various user resources for deducting or reducing shipping costs (such as freight insurance, consumer points to offset shipping costs, free shipping for members, etc.), but users are usually required to choose which benefit to use when initiating a return application.
[0003] There are at least the following problems in the prior art:
[0004] When a user initiates a return or other task in which the user can use user resources (such as freight insurance for return, freight offset by consumption points, free shipping for members), the user needs to choose which user resource to use through the client. If the user forgets to make a choice, the user resource will not be automatically triggered to offset the cost, resulting in user losses. At the same time, since the user cannot judge the priority of various user resources, the user resource selection error usually occurs. In addition, after the user selects a user resource to use, if the task has not been completed, the user resource will be occupied all the time. When the user continues to perform other operations, the occupied user resource cannot be used. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a user resource processing method and device, which can pre-occupy and use user resources in order of priority without relying on user operations; and can release or retain the pre-occupied user's available resources according to different scenarios, thereby improving the efficiency and flexibility of user resource use and enhancing user experience.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a user resource processing method on a terminal side is provided, including:
[0007] Receive task information and determine user information corresponding to the task information;
[0008] Acquire available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource;
[0009] If there are pre-occupied user available resources, after the task is completed, a task completion message is sent to use the pre-occupied user available resources;
[0010] If there is no pre-occupied user available resources, the payment process is initiated according to the user's membership information.
[0011] Preferably, obtaining the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource includes:
[0012] sorting at least one user resource according to priority;
[0013] Sending a user resource query request, querying the at least one user resource in descending order of priority, and receiving a query result;
[0014] Determine the available resources and pre-occupancy results of the user according to the target query result;
[0015] Among them, if it is determined that there are pre-occupied user available resources according to the query result corresponding to the high-priority query request, the query result is used as the target query result and the sending of low-priority query requests is stopped; otherwise, query requests continue to be sent until all user resource queries are completed.
[0016] Preferably, obtaining the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource includes:
[0017] Synchronously sending a user resource query request for the at least one user resource;
[0018] receiving a query result corresponding to the query request, and sorting the query result according to the priority of the at least one user resource;
[0019] Selecting a target query result to determine the user's available resources and pre-occupancy results;
[0020] If it is determined that there are pre-occupied user available resources according to the high-priority query result, the query result is used as the target query result and the selection is terminated; otherwise, the query result of the next priority is processed until all query results are processed.
[0021] Preferably, the method further comprises:
[0022] If there are pre-occupied user available resources, after the task fails, a task incomplete message is sent to reserve or release the pre-occupied user available resources.
[0023] Preferably, the task is a collection task, and the task unfinished message includes:
[0024] Messages on collection termination, waybill cancellation, recollection, and / or freight settlement entity update.
[0025] Preferably, the task completion message is a broadcast message; or
[0026] The task completion message is a unicast message corresponding to the reserved user available resources to be used.
[0027] Preferably, the charging according to the user's membership information includes:
[0028] Determine whether the user is a member based on the member ID. If yes, the member discount will be used. If not, the user will pay directly.
[0029] Preferably, the method further comprises:
[0030] Send a secondary query request corresponding to the same task information, query the user's available resources, and receive the query results;
[0031] Among them, the user available resources and pre-occupied results carried by the query results are generated in the following manner: if the previous query results correspond to pre-occupied user available resources, it is further determined whether there are user available resources with higher priority. If so, the user available resources with higher priority are pre-occupied and the original pre-occupied user available resources are released; if not, the original pre-occupied user available resources continue to be used.
[0032] Another aspect of the present invention provides a method for processing user resources on a server side, comprising:
[0033] receiving a query request sent by a terminal;
[0034] After querying the user resources according to the query request, pre-occupying the user's available resources and sending the query result, the query result includes the user's available resources and the pre-occupation result;
[0035] A task completion message sent by the receiving terminal is used according to the task completion message; and / or a task incomplete message sent by the receiving terminal is reserved or released.
[0036] Preferably, the method further comprises:
[0037] A time threshold is set. If neither a task completion message nor a task incomplete message sent by the terminal is received within the threshold, the available resources of the pre-occupied user are directly released or reserved.
[0038] Preferably, the method further comprises:
[0039] A secondary query request corresponding to the same task information is sent by the receiving terminal. If the previous query result corresponds to the pre-occupied user available resources, it is further determined whether there are user available resources with higher priority. If so, the user available resources with higher priority are pre-occupied and the original pre-occupied user available resources are released; if not, the original pre-occupied user available resources continue to be used.
[0040] Preferably, after receiving the task completion message, the task status is reconfirmed, and the reserved user available resources are used according to the result of the reconfirmation.
[0041] Another aspect of the present invention provides a user resource processing device, comprising:
[0042] A receiving module, used to receive task information and determine user information corresponding to the task information;
[0043] An acquisition module, used for acquiring the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource;
[0044] A sending module, used for sending a task completion message when there are available resources for the pre-occupied user and after the task is completed, wherein the task completion message is used for using the available resources for the pre-occupied user;
[0045] The billing module is used to initiate the payment process according to the membership information of the user when there is no pre-occupied user available resources.
[0046] Another aspect of the present invention provides another user resource processing device, comprising:
[0047] A first receiving module, used for receiving a query request sent by a terminal;
[0048] The pre-occupancy module is used to query the user resources according to the query request and pre-occupy the user's available resources; and / or, according to the instruction of the second receiving module, use, reserve or release the pre-occupied user's available resources.
[0049] A sending module, used to send query results, wherein the query results include user available resources and pre-occupancy results;
[0050] The second receiving module is used to receive a task completion message sent by the terminal, and instruct the pre-occupied module to use the available resources of the pre-occupied user according to the task completion message; and / or, to receive a task incomplete message sent by the terminal, and instruct the pre-occupied module to reserve or release the available resources of the pre-occupied user according to the task incomplete message.
[0051] Another aspect of the present invention provides an electronic device for processing user resources, comprising:
[0052] one or more processors;
[0053] a storage device for storing one or more programs,
[0054] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.
[0055] Another aspect of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program is executed by a processor to execute the aforementioned method.
[0056] The above invention has the following advantages or beneficial effects: because it adopts the method of receiving task information and determining the user information corresponding to the task information; according to the user information and the priority of at least one user resource, obtaining the available resources and pre-occupancy results of the user; if there are pre-occupied user available resources, after the task is completed, sending a task completion message for using the pre-occupied user available resources; if there are no pre-occupied user available resources, triggering the payment process according to the user's membership information, the technical means overcomes the technical problem that the user cannot automatically use high-priority user resources and the user resources cannot be released in time, thereby improving the efficiency and flexibility of user resource utilization and enhancing the user experience.
[0057] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0059] Figure 1 is a schematic diagram of the main process of the user resource processing method according to an embodiment of the present invention;
[0060] Figure 2 is a schematic diagram of a main process of a terminal receiving task information according to an embodiment of the present invention;
[0061] Figure 3 is a schematic diagram of the main process of a terminal querying user resources according to an embodiment of the present invention;
[0062] Figure 4 It is a schematic diagram of the main process of another method for a terminal to query user resources according to an embodiment of the present invention.
[0063] Figure 5 is a schematic diagram of the main process of using, releasing or retaining pre-occupied user resources according to an embodiment of the present invention;
[0064] Figure 6 is a schematic diagram of the main process of another method for processing user resources according to an embodiment of the present invention;
[0065] Figure 7 is a schematic diagram of main modules of a terminal device for performing user resource processing according to an embodiment of the present invention;
[0066] Figure 8is a schematic diagram of main modules of a server device for performing user resource processing according to an embodiment of the present invention;
[0067] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0068] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0069] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0070] Currently, when users make payments on e-commerce platforms, they usually have various user resources available to deduct or reduce part of the user's payment fees, such as points, coupons, etc. For example, when a user initiates a return, there are usually various free shipping rights for users to use. Common ones include freight insurance, points to offset freight, and free shipping for VIP members.
[0071] Freight insurance: refers to the return freight insurance purchased by consumers or given by merchants when placing orders on e-commerce platforms. It is used according to the order dimension. During the validity period, generally there is only one freight insurance for an order.
[0072] Points can be used to offset shipping costs: When users accumulate a certain number of points on an e-commerce platform within each period (such as each month), they will be given a certain number of free shipping benefits (such as 3 times), which will be distributed according to their account.
[0073] VIP members: When a user is a VIP member of an e-commerce platform, returns are free of shipping, with no limit on the number of returns, but VIP membership usually has an expiration date.
[0074] With respect to the above user resources, it can be seen that since VIP members are not subject to the number of restrictions, the use of membership rights by existing waybills will not affect the subsequent ordering of waybills, and there will usually be no usage conflicts; however, for freight insurance and points offsetting freight, there are usage conflicts due to the number of restrictions, and a pre-occupancy mechanism can be introduced to flexibly meet the return order requirements of users in different scenarios through the use or release of pre-occupancy. During the implementation of the present invention, user resources that support pre-occupancy are queried according to priority, and when it is determined that there are no available resources, member information is further selected to trigger the payment process.
[0075] It should be noted that the freight insurance and points offsetting freight in the present invention are only exemplary of the user resources that can support pre-occupation, and VIP membership is also an exemplary user resource that does not need to be pre-occupied. In the actual process of implementing the present invention, it is not limited by the above-mentioned user resource types.
[0076] Figure 1 is a schematic diagram of the main process of the user resource processing method according to an embodiment of the present invention, such as Figure 1 shown.
[0077] Step S101, receiving task information and determining user information corresponding to the task information;
[0078] Taking user returns as an example, when a user returns goods, the collection terminal will receive a collection task. The collection task usually refers to a door-to-door pickup task corresponding to a waybill. Usually, an order will correspond to one or more waybills, and one waybill will correspond to one or more service orders.
[0079] Take a user's single order containing items A, B, C, and D as an example. When the user applies to return item A for the first time, a service order is generated; if there is no other return operation, the service order will correspond to a waybill and be collected. If after returning item A, the user initiates a return of item B, and at this time the waybill for item A has not been generated or the waybill has not been collected, then the two service orders for the user's return of items A and B can be completed with one waybill (as long as the collection is not completed, the information of the waybill can be modified, and the service orders before the collection is not completed can be merged into one waybill). If the user initiates a return of item B, the waybill for the returned item A has been collected (that is, the transfer of the goods from the user to the logistics company is completed, and the service order information contained in the waybill is no longer allowed to be modified), then a waybill needs to be generated separately for the service order of the returned item B for collection, that is: one order can correspond to two waybills.
[0080] After receiving the collection task, the terminal needs to determine the user information first in order to query the user resources of different priorities later. Preferably, the user information can be a user identifier for distinguishing different users, such as a user identification code or a user account.
[0081] Step S102, obtaining the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource;
[0082] In this step, the terminal can obtain the user's available resources and the server's pre-occupancy results for available resources by sending a query request to the server based on the user information. For example, the server can determine whether the requirements for free shipping of freight insurance are met based on the detailed information of all service orders under the waybill (such as the delivery city, product details, etc.). Normally, an order can only be exempted from freight once, so it is necessary to determine whether all service orders belong to the same order, and determine whether the freight insurance free shipping is met based on the use of the existing freight insurance of the order. If it is met, pre-occupancy is performed.
[0083] The implementation of step 102 includes but is not limited to the following two methods:
[0084] Method 1: Send query requests in sequence according to the priority of user resources.
[0085] Specifically:
[0086] sorting at least one user resource according to priority;
[0087] Sending a user resource query request, querying the at least one user resource in descending order of priority, and receiving a query result;
[0088] Determine the available resources and pre-occupancy results of the user according to the target query result;
[0089] Among them, if it is determined that there are pre-occupied user available resources according to the query result corresponding to the high-priority query request, the query result is used as the target query result and the sending of low-priority query requests is stopped; otherwise, query requests continue to be sent until all user resource queries are completed.
[0090] Method 2: Send query requests in parallel and select query results according to the priority of user resources.
[0091] Specifically:
[0092] Synchronously sending a user resource query request for the at least one user resource;
[0093] receiving a query result corresponding to the query request, and sorting the query result according to the priority of the at least one user resource;
[0094] Selecting a target query result to determine the user's available resources and pre-occupancy results;
[0095] If it is determined that there are pre-occupied user available resources according to the high-priority query result, the query result is used as the target query result and the selection is terminated; otherwise, the query result of the next priority is processed until all query results are processed.
[0096] The implementation of the above two methods will be further described in detail in the subsequent embodiments of the specification.
[0097] Step S103, determine whether there are any pre-occupied user available resources, if yes, execute step 104, if not, execute step 105.
[0098] Specifically, it can be determined whether there are any pre-occupied user available resources according to the query result returned in step 102 .
[0099] Step 104, after the task is completed, a task completion message is sent to use the pre-occupied user's available resources.
[0100] Taking the collection task as an example, the collection completion message is a consumption message sent by the terminal after the collection is completed. It can be a broadcast message or a unicast message corresponding to the pre-occupied user available resources that need to be used.
[0101] Furthermore, this step may also include, if the acquisition is not completed, sending an acquisition incomplete message to reserve or release the available resources of the pre-occupied user. No specific requirements are made for the specific reservation or release rules, which can be determined according to the use requirements of the available resources.
[0102] Unfinished collection messages include: collection termination, waybill cancellation, collection re-collection, and freight settlement subject change messages, etc. Details are as follows:
[0103] Termination of collection: After the user places an order, the courier is unable to complete the collection of the waybill, and the task is terminated;
[0104] Waybill cancellation: After placing an order, the user cancels the waybill by himself;
[0105] Pick up and pick up again: If the courier cannot complete the pickup at the scheduled door-to-door time, the courier can pick up and pick up again to change the door-to-door pickup time;
[0106] Change of freight settlement entity: The freight payer of the waybill is changed, for example, from freight insurance to freight points offset or from freight points offset to freight insurance, etc.
[0107] Step 105, triggering the payment process according to the user's membership information.
[0108] In this step, it can be determined whether the user is a VIP member based on the member ID. If yes, the member discount is used. If not, the user pays directly. The member ID can be used before the service order is issued. The after-sales system goes to the VIP member system to determine whether the user is a VIP member and saves the member ID on the service order.
[0109] In the above implementation, the available resources and pre-occupancy results of the user can be obtained based on the user information and the priority of at least one user resource, and the user resources can be flexibly used according to the completion of the task, thereby overcoming the technical problems in the prior art that users cannot automatically use high-priority user resources and user resources cannot be released in time, thereby improving the efficiency and flexibility of user resource utilization and enhancing the user experience.
[0110] In the collection scenario, in order to further illustrate the user resource processing method on the collection terminal side of the present invention, the subsequent description of the terminal side of the present invention takes the user resources including freight insurance, points offset freight and VIP membership free freight as an example (wherein freight insurance has a higher priority than points offset freight). In the specific implementation process, the main entities involved include: terminal, after-sales system, order system, waybill system, freight insurance system, points system and membership system. Those skilled in the art know that the above systems can be distributed separately, partially or completely deployed on physical servers or virtual servers, and query and transmit data through interfaces or networks.
[0111] Figure 2 It is a schematic diagram of a main process of a terminal receiving task information according to an embodiment of the present invention.
[0112] like Figure 2 As shown, the terminal will query user resources only after the collection task is received. Therefore, before the collection task is received, the data interaction mainly involves the after-sales system, the order system and the waybill system. At the same time, since the VIP member ID needs to be carried in the collection task, it is also necessary to obtain the VIP member ID from the membership system before issuing the collection task.
[0113] Specific:
[0114] After the user initiates a return operation, the after-sales system will call the VIP membership system when generating a service order to query whether the user is a VIP member, and mark whether the user is a VIP member on the service order based on the returned query result. You can set a VIP member ID in the service order to indicate whether the user is a VIP member. Accordingly, in subsequent processing, the terminal can determine whether the user is a VIP member based on the ID and use the user's VIP member free shipping rights.
[0115] Service order placement: After the after-sales system generates a service order, it will be sent to the order system. The service order information includes user ID, user VIP member ID, return product information, shipping and receiving cities, etc.
[0116] Waybill generation and issuance: Based on one or more service orders received, the order system can determine which service orders belong to a waybill, further generate waybill information, and then send the waybill information to the waybill system, which saves and processes the waybill details to facilitate subsequent terminals to query the waybill information and the service order details corresponding to the waybill information.
[0117] Issuance of collection tasks: After the order system generates the waybill, it will send the waybill number and other relevant information to the corresponding collection terminal according to the collection address corresponding to the waybill. The collection terminal can query the waybill information and the corresponding service order details through the waybill number and other relevant information; optionally, the waybill information and its corresponding service order details can also be sent to the collection terminal together, and the collection terminal can directly use this information in the subsequent user resource query process.
[0118] It should be noted that after the order system generates a waybill, the steps of issuing the waybill to the waybill system and the step of issuing the collection task can be executed in parallel or in sequence, and the execution order is not restricted.
[0119] Figure 3 It is a schematic diagram of the main process of a terminal querying user resources according to an embodiment of the present invention.
[0120] like Figure 3 As shown, in this embodiment, user resources are first prioritized and then queried in order of priority.
[0121] Specifically:
[0122] After receiving the collection task, the terminal obtains the service order details according to the waybill information in the collection task, and then makes an inquiry on the availability of free freight under freight insurance and freight offset by points. Preferably, the service order details can be queried in the waybill system through the waybill in the collection task; or they can be directly parsed based on the detailed information of the waybill issued by the collection task. According to the parsed situation, when the collection task is issued, the waybill information and its corresponding service order details need to be sent to the collection terminal together.
[0123] After the terminal obtains the service order details, it can initiate a query of the user's available resources. In this embodiment, the two user available resources of freight insurance free of charge and points offsetting freight are prioritized, for example: freight insurance free of charge has a higher priority than points offsetting freight.
[0124] After determining the priority of user resources, first send a query request to the high-priority freight insurance system to inquire whether the user can use freight insurance to exempt freight. The query information may carry one or more of the waybill number, order number, and service order number. The present invention is not limited to this. It is only necessary to query whether the user can use freight insurance to exempt freight based on the relevant information carried in the query information sent. For example, in the case where there is only one free freight insurance for a single order, when it is determined based on the order information that the user has used the freight insurance for the order, it can be determined that the waybill cannot enjoy the free freight insurance. When the freight insurance system determines that the user can use freight insurance to exempt freight, the user resources are pre-occupied to prevent the user resources from being used by other waybills before the waybill is collected.
[0125] The freight insurance system returns the query result, which carries the result of whether the user can use the freight insurance to exempt the freight and the pre-occupancy of the user's resources. If the terminal determines that the freight insurance can be used to exempt the freight according to the query result, and the freight insurance has been pre-occupied, the query is terminated to confirm that the user will use the freight insurance to pay the freight. Otherwise, the query request is continued to be sent to the low-priority points system, and the query result is received. The query process is similar to the query process of freight insurance.
[0126] After the points system returns the query result, if the terminal determines that points can be used to offset the freight according to the query result and has already made a pre-reservation of points to offset the freight, the query is terminated to confirm that the user will use points to pay the freight. Otherwise, if there are user resources with lower priority, the above query process can be continued. In this embodiment, points to offset freight is already the lowest priority user resource. After determining that it is unavailable, the terminal determines whether the user uses the member free freight or the user directly pays the freight according to the user's VIP member ID.
[0127] In addition, it should be noted that the present invention does not limit the timing of the terminal initiating the above query, as long as it can be executed before the collection is completed. Preferably, the above query process can be executed within a period of time after the terminal receives the collection task or within a period of time before the door-to-door collection, so as to complete the pre-occupation of user available resources.
[0128] Figure 4 It is a schematic diagram of the main process of another method for a terminal to query user resources according to an embodiment of the present invention.
[0129] like Figure 4 As shown, in this embodiment, Figure 3 Different from the embodiment of the present invention, the user resources are queried in a parallel query manner, and then the query results are selected according to the priority of the user resources.
[0130] Specifically:
[0131] The steps for the terminal to confirm the service order details after receiving the collection task are as follows Figure 3 The embodiments are the same as those of the present invention and will not be described in detail.
[0132] After the terminal obtains the service order details, it simultaneously initiates a query to the freight insurance system and the points system, and receives the returned query results. Multiple parallel query requests can be multiple or one. When using a query request, the query can be initiated in the form of broadcast.
[0133] The terminal receives query results 1 and 2 returned by the freight insurance system and the points system, and determines the selection order of query results 1 and 2 according to the priority of freight insurance free freight and points offset freight. Similar to the previous embodiment, the priority of freight insurance free freight is higher than points offset freight. Accordingly, it is first determined based on query result 1 whether freight insurance free freight can be used. If so, a pre-occupation instruction 1 is sent to the freight insurance system, and the freight insurance system completes the pre-occupation; if it is determined in query result 1 that freight insurance free freight cannot be used, it is determined based on query result 2 whether member points can be used for free freight; if member points can be used for free freight, a pre-occupation instruction 2 is sent to the member system, and the freight insurance system completes the pre-occupation.
[0134] If it is determined based on query results 1 and 2 that the user can neither use freight insurance to exempt freight nor use points to offset freight, the terminal will determine whether the user uses member-level free freight or pays the freight directly based on the user's VIP membership ID.
[0135] Figure 5 It is a schematic diagram of the main process of pre-empting the use, release or reservation of user resources according to an embodiment of the present invention.
[0136] After pre-occupying the user's available resources (freight insurance for free freight, points for freight offset, etc.), the available resources can be used, released or retained according to the task completion status of the terminal.
[0137] like Figure 5 As shown, when the terminal completes the collection, it can send a consumption message of the collection completion to the freight insurance system and the points system. Specifically, the message can be implemented as a message queue MQ. During the implementation process, the message can be a broadcast message or a unicast message corresponding to the message receiving end. For example: the terminal can send the consumption information of the collection completion to the freight insurance system and the points system at the same time, and the freight insurance system and the points system will pre-occupy the use of user resources; in another embodiment, when the terminal determines that only the freight insurance free freight or the points offset freight is pre-occupied, the collection completion consumption information can be sent separately to the corresponding pre-occupied system, thereby saving system overhead.
[0138] In this embodiment, after the freight insurance system receives the collection completion consumption message, in order to further confirm the accuracy of the collection status, it can query the waybill system for the collection status of the waybill. When the collection status is confirmed to be completed, the freight insurance pre-occupancy for freight is marked as collection completed, thereby preventing the available resources from being released by other processes. In addition, since freight insurance is a freight reduction with post-payment nature, its official use is after the successful delivery is completed, and the merchant will make compensation. Therefore, as shown in the figure, after the waybill is confirmed, the terminal synchronizes the successful delivery status with the waybill system, and the waybill system sends the successful delivery message queue MQ to the freight insurance system, and the freight insurance system makes claims based on the successful delivery MQ message.
[0139] Accordingly, when the points system receives the collection completion MQ, it can use a similar processing method to the freight insurance system to perform a second confirmation on the collection completion status. Preferably, in this embodiment, the points system can also skip the above confirmation process and directly use the pre-occupied user resources. Similarly, the freight insurance system can also skip the second confirmation and directly mark the pre-occupied rights status as collection completion after receiving the collection completion MQ.
[0140] In addition to completed collection, there is also the case of incomplete collection. At this time, the terminal sends the incomplete collection MQ to the freight insurance system and the points system to release or reserve the pre-occupied user resources.
[0141] As described in the above embodiments, the unfinished collection message includes: collection termination, waybill cancellation, collection re-collection, and freight settlement subject change message, etc. In the present invention, after receiving the unfinished collection message, there is no restriction on releasing or retaining the available resources of the pre-occupied user, which can be formulated according to different business requirements.
[0142] Preferably, since freight insurance is only available once for each order and needs to be released in time, the release process can be performed after receiving any of the above four unfinished collection messages.
[0143] As for points offsetting freight, since free shipping is usually given multiple times according to the user's consumption points within a predetermined period (such as 3 times after a certain amount of consumption is reached each month), it can be retained in the case of collection and re-taken (that is, the user's available resources will be used again), and released when the collection is terminated, the waybill is cancelled, and the freight settlement entity is changed.
[0144] In addition, in the actual implementation process, there are cases where user available resources are occupied, but neither task completion message nor task incomplete message is received for a period of time, that is, there has been no subsequent operation after the occupation. In this case, it is also necessary to release or retain the occupied user available resources. Specifically, a time threshold can be set. When there is no subsequent operation after exceeding the threshold, the occupied user available resources are released or retained. For example, in the return scenario, the pre-occupied freight insurance free freight can be released, and the pre-occupied points for freight can be retained. Furthermore, due to the existence of the pre-occupied release mechanism, it is possible that the available user resources obtained by querying at different times for the same task are different. For example: during the initial query, points are pre-reserved to offset freight costs; and before the collection is completed, high-priority freight insurance may be released for free freight. Therefore, a second query can be made on available user resources during door-to-door collection or within a set time to re-determine the freight payment entity. If the previous query result corresponds to pre-reserved user available resources, it is further determined whether there are higher-priority user available resources. If so, the higher-priority user available resources are pre-reserved to release the original pre-reserved user available resources; if not, the original pre-reserved user available resources continue to be used.
[0145] Figure 6 FIG. 1 is a schematic diagram of the main process of another method for processing user resources according to an embodiment of the present invention. Figure 6 shown.
[0146] Step S601: receiving a query request sent by a terminal.
[0147] Step S602, querying the user resources according to the query request, pre-occupying the user's available resources, and sending the query result, the query result including the user's available resources and the pre-occupation result;
[0148] Step S602, receiving a task completion message sent by a terminal, and using the pre-occupied user's available resources according to the task completion message; and / or receiving a task incomplete message sent by a terminal, and reserving or releasing the pre-occupied user's available resources.
[0149] A time threshold can be set on the server. If no task completion message or task incomplete message sent by the terminal is received within the threshold, the pre-occupied user available resources are directly released or reserved. At the same time, the server can also receive a secondary query request corresponding to the same task information sent by the terminal. If the previous query result corresponds to the pre-occupied user available resources, it is further determined whether there are higher priority user available resources. If so, the higher priority user available resources are pre-occupied and the original pre-occupied user available resources are released; if not, the original pre-occupied user available resources continue to be used.
[0150] Figure 74 is a schematic diagram of main modules of a terminal device for user resource processing according to an embodiment of the present invention.
[0151] like Figure 7 As shown, the terminal device 700 includes:
[0152] The receiving module 701 is used to receive task information and determine user information corresponding to the task information;
[0153] An acquisition module 702, configured to acquire the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource;
[0154] The sending module 703 is used to send a task completion message to indicate the use of the pre-occupied user available resources after the task is completed if there are pre-occupied user available resources;
[0155] The billing module 704 is used to trigger the payment process according to the membership information of the user when there is no pre-occupied user available resources.
[0156] Figure 8 is a schematic diagram of main modules of a server device for user resource processing according to an embodiment of the present invention;
[0157] like Figure 8 As shown, the terminal device 800 includes:
[0158] The first receiving module 801 is used to receive a query request sent by a terminal;
[0159] The pre-occupancy module 802 is used to query the user resources according to the query request and pre-occupy the user's available resources; and according to the instruction of the second receiving module, use, reserve or release the user resources of the pre-occupied user.
[0160] The sending module 803 is used to send the query result, wherein the query result includes the user's available resources and the pre-occupancy result;
[0161] The second receiving module 804 is used to receive a task completion message sent by the terminal, and instruct the pre-occupied module to use the pre-occupied user's available resources according to the task completion message; and / or, to receive a task incomplete message sent by the terminal, and instruct the pre-occupied module to reserve or release the pre-occupied user's available resources according to the task incomplete message.
[0162] Fig. 9 An exemplary system architecture 900 is shown to which the user resource processing method or user resource processing device according to the embodiment of the present invention can be applied.
[0163] like Fig. 9As shown, system architecture 900 may include terminal devices 901-903, network 904 and servers 905-910. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0164] Terminal devices 901, 902, and 903 can be used to interact with servers 905-910 through network 904 to receive or send messages, etc. Various applications can be installed on terminal devices 901, 902, and 903. For example, when the terminal is a collection terminal, an application program related to the collection task processing of a logistics company can be installed to collect and deliver the waybill (for example only).
[0165] The terminal devices 901 , 902 , and 903 may be various electronic devices having display screens and supporting information interaction, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0166] Servers 905-910 may be servers that provide various services, such as the after-sales system, order system, waybill system, freight insurance system, points system, and membership system server in the embodiment of the present invention. Optionally, each of the above system servers may be distributed separately in the above servers 905-910, or may be distributed centrally on one or more of the 905-910 servers. The above server may be a background management server (only an example) that processes query requests sent by users using terminal devices 901, 902, 903 and provides user resource pre-occupancy, release, or reservation functions.
[0167] It should be noted that the user resource processing method provided in the embodiment of the present invention is generally executed by the terminal device 901, 902, 903 or the server 905~910, and accordingly, the user resource processing device is generally arranged in the terminal device 901, 902, 903 or the server 905~910.
[0168] It should be understood that Fig. 9 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0169] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device or server suitable for implementing an embodiment of the present invention. Fig.10 The device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0170] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0171] The following components are connected to the input / output (I / O) interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the input / output (I / O) interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0172] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0173] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0174] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0175] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a receiving module, an acquisition module, a sending module and a billing module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, "receiving module" may also be described as "module for receiving task information".
[0176] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device:
[0177] Receive task information and determine user information corresponding to the task information;
[0178] Acquire available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource;
[0179] If there are pre-occupied user available resources, after the task is completed, a task completion message is sent to use the pre-occupied user available resources;
[0180] If there are no pre-occupied user available resources, the payment process is triggered according to the membership information of the user.
[0181] According to the technical solution of the embodiment of the present invention, the terminal can automatically pre-occupy and use user resources in order of priority without relying on user operations; and can release or retain the pre-occupied user's available resources according to different scenarios, thereby improving the efficiency and flexibility of user resource use and enhancing the user experience.
[0182] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A user resource processing method, characterized in that: include: Receive task information and determine user information corresponding to the task information; Obtain the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource; wherein the user resources are first prioritized and then queried in order of priority, or the user resources are queried in parallel and then the query results are selected according to the priority of the user resources, wherein the user resources refer to resources used to deduct or reduce part of the user's payment fees; If there are pre-occupied user available resources, after the task is completed, a task completion message is sent to use the pre-occupied user available resources; If there is no pre-occupied user available resources, trigger the payment process according to the user's membership information; The pre-occupancy result is the pre-occupancy status of the available resources. If the user has pre-occupied the available resources, the available resources are the pre-occupied user's available resources.
2. The method according to claim 1, characterized in that First, prioritize user resources and then query them in order of priority, including: sorting at least one user resource according to priority; Sending a user resource query request, querying the at least one user resource in descending order of priority, and receiving a query result; Determine the available resources and pre-occupancy results of the user according to the target query result; Among them, if it is determined that there are pre-occupied user available resources according to the query result corresponding to the high-priority query request, the query result is used as the target query result and the sending of low-priority query requests is stopped; otherwise, query requests continue to be sent until all user resource queries are completed.
3. The method according to claim 1, characterized in that: Use parallel query to query user resources, and then select query results according to the priority of user resources, including: Synchronously sending a user resource query request for the at least one user resource; receiving a query result corresponding to the query request, and sorting the query result according to the priority of the at least one user resource; Selecting a target query result to determine the user's available resources and pre-occupancy results; If it is determined that there are pre-occupied user available resources according to the high-priority query result, the query result is used as the target query result and the selection is terminated; otherwise, the query result of the next priority is processed until all query results are processed.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: If there are pre-occupied user available resources, after the task fails, a task incomplete message is sent to reserve or release the pre-occupied user available resources.
5. The method according to claim 4, characterized in that The task is a collection task, and the task unfinished message includes: Messages on collection termination, waybill cancellation, recollection, and / or freight settlement entity update.
6. The method according to any one of claims 1 to 3, characterized in that: The task completion message is a broadcast message; or The task completion message is a unicast message corresponding to the reserved user available resources to be used.
7. The method according to any one of claims 1 to 3, characterized in that The payment process triggered according to the user's membership information includes: Determine whether the user is a member based on the member ID. If yes, the member discount will be used. If not, the user will pay directly.
8. The method according to claim 2 or 3, characterized in that: The method further comprises: Send a secondary query request corresponding to the same task information, query the user's available resources, and receive the query results; Among them, the user available resources and pre-occupied results carried by the query results are generated in the following manner: if the previous query results correspond to pre-occupied user available resources, it is further determined whether there are user available resources with higher priority. If so, the user available resources with higher priority are pre-occupied and the original pre-occupied user available resources are released; if not, the original pre-occupied user available resources continue to be used.
9. A method for processing user resources, characterized in that: include: receiving a query request sent by a terminal; After querying the user resources according to the query request, pre-occupying the user's available resources and sending the query result, the query result includes the user's available resources and the pre-occupation result; the query result is obtained according to the user information and the priority of at least one user resource, wherein the user resources are first prioritized and then queried in order of priority, or the user resources are queried in a parallel query manner and then the query results are selected according to the priority of the user resources, and the user resources refer to resources used to deduct or reduce part of the user's payment fees; Receiving a task completion message sent by a terminal, and using the pre-occupied user's available resources according to the task completion message; and / or receiving a task incomplete message sent by a terminal, and reserving or releasing the pre-occupied user's available resources; The pre-occupancy result is the pre-occupancy status of the available resources. If the user has pre-occupied the available resources, the available resources are the pre-occupied user's available resources.
10. The method according to claim 9, characterized in that The method further comprises: A time threshold is set. If neither a task completion message nor a task incomplete message sent by the terminal is received within the threshold, the available resources of the pre-occupied user are directly released or reserved.
11. The method according to claim 9 or 10, characterized in that: The method further comprises: A secondary query request corresponding to the same task information is sent by the receiving terminal. If the previous query result corresponds to the pre-occupied user available resources, it is further determined whether there are user available resources with higher priority. If so, the user available resources with higher priority are pre-occupied and the original pre-occupied user available resources are released; if not, the original pre-occupied user available resources continue to be used.
12. The method according to claim 9, characterized in that: After receiving the task completion message, the task status is reconfirmed, and the pre-occupied user available resources are used according to the result of the reconfirmation.
13. A user resource processing device, characterized in that: include: A receiving module, used to receive task information and determine user information corresponding to the task information; An acquisition module, used to acquire the available resources and pre-occupancy results of the user according to the user information and the priority of at least one user resource; wherein the user resources are first prioritized and then queried in order of priority, or the user resources are queried in a parallel query manner and then the query results are selected according to the priority of the user resources, and the user resources refer to resources used to deduct or reduce part of the user's payment fees; A sending module, used for sending a task completion message when there are available resources for the pre-occupied user and after the task is completed, wherein the task completion message is used for using the available resources for the pre-occupied user; A billing module, used to trigger a payment process according to the membership information of the user when there is no pre-occupied user available resources; The pre-occupancy result is the pre-occupancy status of the available resources. If the user has pre-occupied the available resources, the available resources are the pre-occupied user's available resources.
14. A user resource processing device, characterized in that: include: A first receiving module, used for receiving a query request sent by a terminal; A pre-occupancy module, used to query user resources according to the query request and pre-occupy user available resources; and / or, according to the instruction of the second receiving module, use, reserve or release the pre-occupied user available resources; wherein, the user resources are first prioritized and then queried in order of priority, or the user resources are queried in parallel and then the query results are selected according to the priority of the user resources, wherein the user resources refer to resources used to deduct or reduce part of the user's payment fees; A sending module, used to send a query result, wherein the query result includes user available resources and pre-occupancy results; the query result is obtained based on user information and the priority of at least one user resource; A second receiving module is used to receive a task completion message sent by the terminal, and instruct the pre-occupied module to use the pre-occupied user's available resources according to the task completion message; and / or to receive a task incomplete message sent by the terminal, and instruct the pre-occupied module to reserve or release the pre-occupied user's available resources according to the task incomplete message; The pre-occupancy result is the pre-occupancy status of the available resources. If the user has pre-occupied the available resources, the available resources are the pre-occupied user's available resources.
15. An electronic device for processing user resources, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 12.
16. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Method for achieving distributed database query priority management based on peer deployment
CN104391918A
Resource distribution method, device and server
CN105763485A
Member consumption information processing method, device and system
CN109784896A
Resource preemption method and device
CN110324262A
Resource Releasing Method, Apparatus, and System
US20160019486A1
