Article resource replacement method and device, computer equipment and storage medium
By obtaining the demand parameters and background parameters of the candidate items, verifying the resource replacement situation, and determining the target item from the candidate items in the resource status to be paid, the resource occupation problem caused by the user's failure to pay is solved, and the resource replacement process is ensured smoothly.
Patent Information
- Application Number
- CN202411173541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-08-26
AI Technical Summary
During the process of network resource replacement, some users fail to pay resources, resulting in the items being occupied, affecting the smooth progress of the resource replacement process.
By obtaining the demand parameters of the candidate item, verify the resource replacement situation of the target user for the candidate item. If it fails, filter the target order that meets the demand parameters from the candidate items whose replacement status is in the resource status to be paid, determine the target item, and cancel the target Order to ensure successful resource replacement.
Prevent abnormal occupancy of items, ensure that the target user successfully completes resource replacement operations, improves replacement experience, and promotes the smooth progress of the resource replacement process.
Smart Images

Figure CN118917926A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a resource replacement method, device, computer equipment and storage medium for items. Background Art
[0002] As network technology continues to develop, the scale of network resource exchange is also expanding; users can select items in applications to achieve resource exchange for items (for example, internal employees of an enterprise can select items in internal applications).
[0003] However, as the number of users participating in resource exchange and the amount of resource exchange continue to increase, some users will not pay for resources after selecting an item, which will cause the item to be occupied and unable to be selected by other users, affecting the smooth progress of the resource exchange process. Summary of the invention
[0004] Based on this, it is necessary to provide a resource replacement method, device, computer equipment and storage medium for items that can ensure the smooth progress of the resource replacement process in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for replacing resources of items. The method comprises:
[0006] Extracting parameters of the target user's acquisition request for the candidate item to determine the demand parameters of the candidate item;
[0007] When it is determined that the target user has failed to replace the candidate item with resources according to the background parameters of the candidate item and the demand parameters, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters;
[0008] According to the target item, resources are replaced for the target user.
[0009] In one embodiment, the background parameters include the amount to be replaced, the remaining credit limit and the remaining credit limit; the demand parameters include the required replacement amount, the required credit limit and the required credit limit; and determining that the target user has failed to perform resource replacement for the candidate item based on the background parameters of the candidate item and the demand parameters includes:
[0010] If the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
[0011] In one embodiment, determining the target item from the candidate items whose replacement status is a resource status to be paid for according to the demand parameter includes:
[0012] Selecting target orders that meet the demand parameters from the replacement orders whose replacement status is a resource status to be paid;
[0013] The candidate items in the target order are used as target items, and the target order is canceled.
[0014] In one embodiment, when the amount to be replaced is less than the required replacement amount, selecting a target order that meets the required parameters from the replacement orders whose replacement status is a resource status to be paid includes:
[0015] Determining the number of candidate items included in each of the replacement orders;
[0016] The replacement order whose quantity of items is greater than or equal to the demand quantity is used as the target order.
[0017] In one embodiment, when the remaining credit limit is less than the required credit limit, selecting a target order that meets the required parameters from the replacement orders whose replacement status is a resource to be paid status includes:
[0018] Determine the occupation credit amount corresponding to each replacement order;
[0019] The replacement order whose occupied credit amount is greater than or equal to the required credit amount is taken as the target order.
[0020] In one embodiment, when the remaining credit limit is less than the required credit limit, selecting a target order that meets the required parameters from the replacement orders whose replacement status is a resource to be paid status includes:
[0021] Determine the occupied credit line corresponding to each replacement order;
[0022] The replacement order whose occupied credit line is greater than or equal to the required credit line is taken as the target order.
[0023] In a second aspect, the present application also provides a resource replacement device for items. The device comprises:
[0024] A first determination module is used to extract parameters from a target user's acquisition request for a candidate item and determine a demand parameter of the candidate item;
[0025] A second determination module is used to determine the target item from the candidate items whose replacement status is a resource status to be paid according to the demand parameters when it is determined that the target user fails to replace the candidate item according to the background parameters of the candidate item and the demand parameters;
[0026] A replacement module is used to replace resources for the target user according to the target item.
[0027] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0028] Extracting parameters of the target user's acquisition request for the candidate item to determine the demand parameters of the candidate item;
[0029] When it is determined that the target user has failed to replace the candidate item with resources according to the background parameters of the candidate item and the demand parameters, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters;
[0030] According to the target item, resources are replaced for the target user.
[0031] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0032] Extracting parameters of the target user's acquisition request for the candidate item to determine the demand parameters of the candidate item;
[0033] When it is determined that the target user has failed to replace the candidate item with resources according to the background parameters of the candidate item and the demand parameters, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters;
[0034] According to the target item, resources are replaced for the target user.
[0035] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0036] Extracting parameters of the target user's acquisition request for the candidate item to determine the demand parameters of the candidate item;
[0037] When it is determined that the target user has failed to replace the candidate item with resources according to the background parameters of the candidate item and the demand parameters, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters;
[0038] According to the target item, resources are replaced for the target user.
[0039] The resource replacement method, device, computer equipment and storage medium of the above-mentioned items obtain the demand parameters of the candidate items so that when the target user fails to replace the resources for the candidate items, the target item is determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters, and then the target user is replaced with resources according to the target item; according to the above content, it can be known that when the target user replaces the resources, the application will verify the situation of the target user replacing the resources for the candidate items according to the background parameters and demand parameters of the candidate items, so as to ensure that when it is determined that the target user fails to replace the resources for the candidate items , determine the target item among the candidate items, so as to replace the resources of the target user through the target item, thereby ensuring that the target user can successfully complete the resource replacement operation for the candidate items, and realizing that when the candidate items cannot meet the corresponding acquisition request of the target user, the candidate items whose replacement status is the resource status to be paid can be reasonably allocated to prevent the candidate items from being abnormally occupied, ensuring that the target user can have a good replacement experience when performing resource replacement, preventing some items from being abnormally occupied due to some users not paying for resources after selecting the items, and promoting the smooth progress of the resource replacement process for the candidate items. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1 is an application environment diagram of a resource replacement method for items provided in an embodiment of the present application;
[0041] FIG2 is a schematic diagram of a flow chart of a resource replacement method for a first type of item provided in an embodiment of the present application;
[0042] FIG3 is a schematic diagram of a flow chart of a second method for replacing resources of an item provided in an embodiment of the present application;
[0043] FIG4 is a schematic diagram of a flow chart of a third method for replacing resources of an item provided in an embodiment of the present application;
[0044] FIG5 is a schematic diagram of a structure of an item resource replacement process provided in an embodiment of the present application;
[0045] FIG6 is a structural block diagram of a resource replacement device for an item provided in an embodiment of the present application;
[0046] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms is not necessarily for the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradicting each other.
[0049] The resource replacement method of items provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. By obtaining the demand parameters of the candidate items, in the case where the target user fails to replace the resources for the candidate items, according to the demand parameters, the target items are determined from the candidate items whose replacement status is the state of the resources to be paid, and then, according to the target items, the target user is replaced with resources. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0050] In one embodiment, as shown in FIG. 2 , a resource replacement method for items is provided, which is described by taking the method applied to the terminal 102 in FIG. 1 as an example, and includes the following steps:
[0051] S201, extracting parameters from a target user's acquisition request for candidate items to determine demand parameters of the candidate items.
[0052] Among them, the demand parameters of candidate items refer to the target user's demand replacement quantity, demand discount amount and demand credit amount for candidate items; among them, the demand replacement quantity refers to the number of candidate items that the target user needs to replace; the demand discount amount refers to the amount of coupons used by the target user in the process of resource replacement for candidate items (such as voucher amount, etc.); the demand credit amount refers to the resource advance amount of the target user's target enterprise occupied by the target user in the process of resource replacement for candidate items.
[0053] It should be noted that when it is necessary to determine the demand parameters of the candidate items, the parameters of the target user's acquisition request for the candidate items can be extracted to obtain the request parameters contained in the acquisition request; the request parameters are parsed to obtain the demand parameters of the candidate items recorded in the request parameters.
[0054] In one embodiment of the present application, when it is necessary to parse the meaning of request parameters, a meaning parsing model can be pre-trained to input the request parameters contained in the acquisition request into the meaning parsing model and obtain the output result of the meaning parsing model, which is the demand parameter of the candidate item.
[0055] Among them, the training process of the meaning parsing model includes: obtaining sample requests in advance, extracting parameters from the sample requests, obtaining sample parameters contained in the sample requests, annotating each sample parameter with required parameters through manual annotation, and then training the initial model through each sample parameter annotated with required parameters to obtain a trained meaning parsing model.
[0056] S202, when it is determined that the target user fails to replace the candidate item with resources according to the background parameters and demand parameters of the candidate item, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters.
[0057] It should be noted that in order to ensure that the target user's resource replacement process for the candidate items can proceed smoothly, it is necessary to verify whether the target user's resource replacement for the candidate items will fail; specifically, based on the background parameters and demand parameters of the candidate items, it can be verified whether the candidate items at the current moment can meet the target user's acquisition request for the candidate items. If it cannot be satisfied, it is determined that the target user has failed to replace the candidate items with resources; conversely, if it can be satisfied, it is determined that the target user has successfully replaced the candidate items with resources.
[0058] To further explain, the background parameters include the quantity to be replaced, the remaining credit limit and the remaining credit limit; the demand parameters include the required replacement quantity, the required credit limit and the required credit limit. Therefore, when it is necessary to verify whether the candidate items at the current moment can meet the target user's acquisition request for the candidate items, it can be verified whether the quantity to be replaced is less than the required replacement quantity, whether the remaining credit limit is less than the required credit limit, and whether the remaining credit limit is less than the required credit limit; if the quantity to be replaced is less than the required replacement quantity, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the candidate items at the current moment cannot meet the target user's acquisition request for the candidate items, and it is determined that the target user has failed to replace resources for the candidate items.
[0059] In one embodiment of the present application, when it is necessary to determine that the target user has failed to replace resources for the candidate item based on the background parameters and demand parameters of the candidate item, the following contents may be included: if the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, then it is determined that the target user has failed to replace resources for the candidate item.
[0060] It should be noted that when it is necessary to determine the target item from the candidate items whose replacement status is the resource status to be paid according to the demand parameters, the target orders that meet the demand parameters can be screened from the replacement orders whose replacement status is the resource status to be paid; then, the candidate items in the target order can be used as the target items, and the target order can be canceled.
[0061] S203, performing resource replacement for the target user according to the target item.
[0062] It should be noted that after determining the target item, a resource exchange relationship can be established between the target item and the target user, so that after receiving the resources paid by the target user, the target item can be sent to the corresponding delivery address of the target user to realize resource exchange for the target user.
[0063] The resource replacement method of the above-mentioned items obtains the demand parameters of the candidate items so that when the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters, and then, the target user is replaced with resources according to the target items; according to the above content, it can be known that when the target user replaces the resources for the target user, the application will verify the situation of the target user replacing the resources for the candidate items according to the background parameters and demand parameters of the candidate items, so as to ensure that when it is determined that the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items, so as to replace the resources for the target user through the target items, thereby ensuring that the target user can successfully complete the resource replacement operation for the candidate items, and when the candidate items cannot meet the corresponding acquisition request of the target user, the candidate items whose replacement status is the resource status to be paid can be reasonably allocated, so as to prevent the candidate items from being abnormally occupied, and ensure that the target user can have a good replacement experience when performing resource replacement, and prevent some items from being abnormally occupied due to some users not paying for resources after selecting the items, so as to promote the smooth progress of the resource replacement process for the candidate items.
[0064] In one embodiment, as shown in FIG3 , when it is necessary to determine the target item from the candidate items whose replacement status is the resource status to be paid according to the demand parameter, the following contents may be specifically included:
[0065] S301, selecting target orders that meet the demand parameters from the replacement orders whose replacement status is a resource status to be paid.
[0066] It should be noted that in order to ensure that the target orders obtained by screening can effectively solve the problem of target users' failure to replace resources for candidate items, when screening target orders that meet the demand parameters, it is necessary to perform adaptive screening based on the reasons that cause the target users' failure to replace resources for candidate items.
[0067] In one embodiment of the present application, when the quantity to be replaced is less than the required replacement quantity, when it is necessary to screen the target orders that meet the demand parameters, it may specifically include the following contents: determining the number of candidate items contained in each replacement order; and taking the replacement orders with a quantity of items greater than or equal to the required quantity as the target orders.
[0068] In another embodiment of the present application, when the remaining credit amount is less than the required credit amount, when it is necessary to screen the target orders that meet the demand parameters, the following contents may be specifically included: determining the occupied credit amount corresponding to each replacement order; and taking the replacement orders whose occupied credit amount is greater than or equal to the required credit amount as the target orders.
[0069] In another embodiment of the present application, when the remaining credit limit is less than the required credit limit, when it is necessary to screen the target orders that meet the demand parameters, the following contents may be specifically included: determining the occupied credit limit corresponding to each replacement order; and taking the replacement orders whose occupied credit limit is greater than or equal to the required credit limit as the target orders.
[0070] To further explain, if at least two target orders that meet the demand parameters are screened, the order generation time of each target order is determined respectively, and the target order with the longest time interval between the order generation time and the current time is used as the target order for the target item to be determined subsequently.
[0071] S302: taking the candidate items in the target order as the target items and canceling the target order.
[0072] In one embodiment of the present application, after the target order is determined, since the replacement status of the target order is a resource status to be paid, it can be considered that the user corresponding to the target order has no arrangement to pay for the resources for the target order. In order to ensure that the resource replacement process for the candidate items can proceed smoothly, the candidate items in the target order are used as target items, so that the resources of the target user can be replaced according to the target items later, and the target order is canceled.
[0073] The resource replacement method of the above-mentioned items determines the target order that meets the demand parameters to realize the use of candidate items in the target order as target items and cancel the target order, thereby realizing reasonable allocation of candidate items whose replacement status is a resource status to be paid for, preventing candidate items from being abnormally occupied, ensuring that target users can have a good replacement experience when performing resource replacement, preventing some items from being abnormally occupied due to some users not making resource payments after selecting the items, and promoting the smooth progress of the resource replacement process for candidate items.
[0074] In one embodiment, as shown in FIG4 , when it is necessary to replace resources for a target user, the following contents may be included:
[0075] S401, extracting parameters from a target user's acquisition request for candidate items to determine demand parameters of the candidate items.
[0076] S402, based on the background parameters and demand parameters of the candidate items, determine that when the target user fails to replace the candidate items, if the amount to be replaced is less than the required replacement amount, execute step S403; if the remaining credit limit is less than the required credit limit, execute step S404; if the remaining credit limit is less than the required credit limit, execute step S405.
[0077] S403, determining the number of candidate items included in each replacement order; and taking the replacement orders with a number of items greater than or equal to the required quantity as target orders.
[0078] S404, determining the occupied credit amount corresponding to each replacement order; taking the replacement order whose occupied credit amount is greater than or equal to the required credit amount as the target order.
[0079] S405, determining the occupied credit line corresponding to each replacement order; taking the replacement order whose occupied credit line is greater than or equal to the required credit line as the target order.
[0080] S406: Perform resource replacement for the target user based on the target item.
[0081] In one embodiment of the present application, as shown in Figure 5, in order to ensure the smooth execution of the resource replacement method of the items of the present application, it is necessary to mark the replacement status of each candidate item when the resource replacement is performed. When the replacement status is changed to the resource status to be paid, the item status of the corresponding candidate item is determined to be the pre-occupied status; when the replacement status is changed to the resource status to be paid, the item status of the corresponding candidate item is determined to be the occupied status; when the replacement status is changed to the abnormal status, the item status of the corresponding candidate item is determined to be the unoccupied status. Specifically, after the user establishes a resource replacement relationship with the candidate item, the information such as the demand replacement quantity, demand credit limit, and replacement activities participated in by the demand credit limit can be stored in the form of Rediskey; specifically, the replacement quantity key: user + site code + order code, the replacement quantity value: records the replacement quantity change information and the current status pre-occupancy; the credit limit key: user + site code + order code, the credit limit value: the credit limit information and the pre-occupancy status; the replacement activity key: user + site code + order code, the replacement activity value: the replacement activity information and the pre-occupancy status; the demand credit key: user + site code + order code, the demand credit value: the demand credit information and the pre-occupancy status. After the user has paid for the resources, the order service adopts the design of queue messages, notifies the replacement quantity service to modify the replacement quantity information to occupied status (deducting inventory), notifies the credit limit service to modify the credit limit status to occupied status (deducting the amount of welfare beans and vouchers), and notifies the credit service to modify the required credit status to occupied status (deducting the enterprise credit limit); when the user fails to pay for the resources (order service exception), the order service adopts the design of queue messages, notifies the replacement quantity service to modify the replacement quantity information to unoccupied status, notifies the credit limit service to modify the credit limit status to unoccupied status, and notifies the credit service to modify the required credit status to unoccupied status.
[0082] The resource replacement method of the above-mentioned items obtains the demand parameters of the candidate items so that when the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters, and then, the target user is replaced with resources according to the target items; according to the above content, it can be known that when the target user replaces the resources for the target user, the application will verify the situation of the target user replacing the resources for the candidate items according to the background parameters and demand parameters of the candidate items, so as to ensure that when it is determined that the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items, so as to replace the resources for the target user through the target items, thereby ensuring that the target user can successfully complete the resource replacement operation for the candidate items, and when the candidate items cannot meet the corresponding acquisition request of the target user, the candidate items whose replacement status is the resource status to be paid can be reasonably allocated, so as to prevent the candidate items from being abnormally occupied, and ensure that the target user can have a good replacement experience when performing resource replacement, and prevent some items from being abnormally occupied due to some users not paying for resources after selecting the items, so as to promote the smooth progress of the resource replacement process for the candidate items.
[0083] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0084] Based on the same inventive concept, the embodiment of the present application also provides a resource replacement device for items used to implement the resource replacement method for items involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the resource replacement device for one or more items provided below can refer to the limitations of the resource replacement method for items above, and will not be repeated here.
[0085] In one embodiment, as shown in FIG6 , a resource replacement device for items is provided, comprising: a first determination module 10, a second determination module 20 and a replacement module 30, wherein:
[0086] The first determination module 10 is used to extract parameters from the target user's acquisition request for the candidate items and determine the demand parameters of the candidate items.
[0087] The second determination module 20 is used to determine the target item from the candidate items whose replacement status is the resource status to be paid according to the demand parameters when it is determined that the target user fails to replace the candidate item according to the background parameters and demand parameters of the candidate item.
[0088] The replacement module 30 is used to replace resources for the target user according to the target item.
[0089] In one embodiment, if the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
[0090] In one embodiment, a target order that meets the demand parameters is screened from replacement orders whose replacement status is a resource status to be paid; candidate items in the target order are used as target items, and the target order is canceled.
[0091] In one embodiment, the number of candidate items contained in each replacement order is determined; and replacement orders with a number of items greater than or equal to the required quantity are taken as target orders.
[0092] In one embodiment, the occupied credit amount corresponding to each replacement order is determined; and the replacement order whose occupied credit amount is greater than or equal to the required credit amount is taken as the target order.
[0093] In one embodiment, the occupied credit line corresponding to each replacement order is determined; and the replacement order whose occupied credit line is greater than or equal to the required credit line is taken as the target order.
[0094] The resource replacement device of the above-mentioned item obtains the demand parameters of the candidate items so that when the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters, and then, the target user is replaced with resources according to the target items; according to the above content, it can be known that when the target user replaces the resources for the target user, the application will verify the situation of the target user replacing the resources for the candidate items according to the background parameters and demand parameters of the candidate items, so as to ensure that when it is determined that the target user fails to replace the resources for the candidate items, the target items are determined from the candidate items, so as to replace the resources for the target user through the target items, thereby ensuring that the target user can successfully complete the resource replacement operation for the candidate items, and when the candidate items cannot meet the corresponding acquisition request of the target user, the candidate items whose replacement status is the resource status to be paid can be reasonably allocated, so as to prevent the candidate items from being abnormally occupied, and ensure that the target user can have a good replacement experience when performing resource replacement, and prevent some items from being abnormally occupied due to some users not paying for resources after selecting the items, so as to promote the smooth progress of the resource replacement process for the candidate items.
[0095] Each module in the resource replacement device of the above-mentioned items can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0096] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource replacement method of an item is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0097] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0098] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0099] Extract parameters of the target user's request for candidate items to determine the demand parameters of the candidate items;
[0100] According to the background parameters and demand parameters of the candidate items, when it is determined that the target user fails to replace the resources for the candidate items, the target item is determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters;
[0101] Based on the target items, resources are replaced for target users.
[0102] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0103] If the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
[0104] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0105] From the replacement orders whose replacement status is the resource status to be paid, select the target orders that meet the requirement parameters;
[0106] The candidate items in the target order are taken as the target items, and the target order is canceled.
[0107] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0108] Determine the number of candidate items included in each replacement order;
[0109] The replacement order with the quantity of items greater than or equal to the demand quantity is regarded as the target order.
[0110] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0111] Determine the occupation credit amount corresponding to each replacement order;
[0112] The replacement orders whose occupied credit amount is greater than or equal to the required credit amount will be taken as the target orders.
[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0114] Determine the credit limit occupied by each replacement order;
[0115] Replacement orders whose occupied credit line is greater than or equal to the required credit line will be taken as target orders.
[0116] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0117] Extract parameters of the target user's request for candidate items to determine the demand parameters of the candidate items;
[0118] According to the background parameters and demand parameters of the candidate items, when it is determined that the target user fails to replace the resources for the candidate items, the target item is determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters;
[0119] Based on the target items, resources are replaced for target users.
[0120] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0121] If the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
[0122] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0123] From the replacement orders whose replacement status is the resource status to be paid, select the target orders that meet the requirement parameters;
[0124] The candidate items in the target order are taken as the target items, and the target order is canceled.
[0125] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0126] Determine the number of candidate items included in each replacement order;
[0127] The replacement order with the quantity of items greater than or equal to the demand quantity is regarded as the target order.
[0128] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0129] Determine the occupation credit amount corresponding to each replacement order;
[0130] The replacement orders whose occupied credit amount is greater than or equal to the required credit amount will be taken as the target orders.
[0131] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0132] Determine the credit limit occupied by each replacement order;
[0133] Replacement orders whose occupied credit line is greater than or equal to the required credit line will be taken as target orders.
[0134] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0135] Extract parameters of the target user's request for candidate items to determine the demand parameters of the candidate items;
[0136] According to the background parameters and demand parameters of the candidate items, when it is determined that the target user fails to replace the resources for the candidate items, the target item is determined from the candidate items whose replacement status is the resource status to be paid according to the demand parameters;
[0137] Based on the target items, resources are replaced for target users.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0139] If the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
[0140] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0141] From the replacement orders whose replacement status is the resource status to be paid, select the target orders that meet the requirement parameters;
[0142] The candidate items in the target order are taken as the target items, and the target order is canceled.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0144] Determine the number of candidate items included in each replacement order;
[0145] The replacement order with the quantity of items greater than or equal to the demand quantity is regarded as the target order.
[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0147] Determine the occupation credit amount corresponding to each replacement order;
[0148] The replacement orders whose occupied credit amount is greater than or equal to the required credit amount will be taken as the target orders.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0150] Determine the credit limit occupied by each replacement order;
[0151] Replacement orders whose occupied credit line is greater than or equal to the required credit line will be taken as target orders.
[0152] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0153] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource replacement method for items, characterized in that: The method comprises: Extracting parameters of the target user's acquisition request for the candidate item to determine the demand parameters of the candidate item; When it is determined that the target user fails to replace the candidate item with resources according to the background parameters of the candidate item and the demand parameters, the target item is determined from the candidate items whose replacement status is a resource status to be paid according to the demand parameters; According to the target item, resources are replaced for the target user.
2. The method according to claim 1, characterized in that The background parameters include the amount to be replaced, the remaining credit limit and the remaining credit limit; the demand parameters include the required replacement amount, the required credit limit and the required credit limit; the determining, based on the background parameters of the candidate item and the demand parameters, that the target user has failed to perform resource replacement for the candidate item includes: If the amount to be replaced is less than the required replacement amount, the remaining credit limit is less than the required credit limit, or the remaining credit limit is less than the required credit limit, it is determined that the target user has failed to perform resource replacement for the candidate item.
3. The method according to claim 2, characterized in that The step of determining the target item from the candidate items whose replacement status is a resource status to be paid for according to the demand parameter comprises: Selecting target orders that meet the demand parameters from the replacement orders whose replacement status is a resource status to be paid; The candidate items in the target order are used as target items, and the target order is canceled.
4. The method according to claim 3, characterized in that In the case that the amount to be replaced is less than the required replacement amount, selecting a target order that meets the required parameters from the replacement orders whose replacement status is a resource status to be paid for includes: Determining the number of candidate items included in each of the replacement orders; The replacement order whose quantity of items is greater than or equal to the demand quantity is used as the target order.
5. The method according to claim 3, characterized in that: In the case that the remaining credit limit is less than the required credit limit, selecting a target order that meets the required parameters from the replacement orders whose replacement status is a resource to be paid status includes: Determine the occupation credit amount corresponding to each replacement order; The replacement order whose occupied credit amount is greater than or equal to the required credit amount is taken as the target order.
6. The method according to claim 3, characterized in that In the case that the remaining credit limit is less than the required credit limit, the step of selecting target orders that meet the required parameters from the replacement orders whose replacement status is a resource to be paid status includes: Determine the occupied credit line corresponding to each replacement order; The replacement order whose occupied credit line is greater than or equal to the required credit line is taken as the target order.
7. A resource replacement device for items, characterized in that: The device comprises: A first determination module is used to extract parameters from a target user's acquisition request for a candidate item and determine a demand parameter of the candidate item; A second determination module is used to determine the target item from the candidate items whose replacement status is a resource status to be paid according to the demand parameters when it is determined that the target user fails to replace the candidate item according to the background parameters of the candidate item and the demand parameters; A replacement module is used to replace resources for the target user according to the target item.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Big data-based online shopping order management method and device
CN105608612A
Online sales order creation method
CN111445301A
Data interaction processing method, device and equipment and storage medium
CN112036855A
Inventory management method and device
CN113379258A
Credit-based rental management method and device
CN116188123A
