Data processing method and device, electronic equipment and medium
By obtaining and utilizing real-time inventory data and determining the user's target information in combination with the extraction probability, the problem of users being out of stock when extracting inventory items is solved, improving user experience and inventory utilization rate and reducing cost waste.
Patent Information
- Application Number
- CN202411331342.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-09-24
AI Technical Summary
In commercial activities or inventory management, when users are preparing to withdraw inventory items, they may find that there is no corresponding inventory available for extraction in the system, resulting in wasting user time and cost and reducing user experience.
By obtaining the first time inventory data when the user performs the first operation and determining the user's target information based on the inventory data and extraction probability, controlling when the user is allowed to perform the extraction operation to avoid the situation where there is no stock to be collected.
It effectively avoids the waste of user time and cost due to no stock to be taken, improves user experience and inventory utilization, and reduces the waste of cost due to blindly increasing inventory.
Smart Images

Figure CN119417523A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of big data technology, and in particular to a data processing method, device, electronic device, medium and program product. Background Art
[0002] In some business activities or inventory management, users obtain the authority or qualification to extract inventory items (such as event prizes) after a series of pre-operations, but when they are ready to extract the corresponding inventory items, they find that there are no corresponding inventory items available in the system. This not only wastes the user's operation time and operation costs, but also reduces the user experience. Summary of the invention
[0003] In view of the above problems, the present disclosure provides a data processing method, device, electronic device, medium and program product that can balance inventory supply, reduce inventory cost and improve user satisfaction.
[0004] According to a first aspect of the present disclosure, a data processing method is provided, comprising: in response to a user performing a first operation on a display interface based on first prompt information, controlling the display interface to switch to a first interface, and acquiring first inventory data, the first inventory data representing inventory data of at least one inventory item at a first time; in response to the first inventory data satisfying a first preset condition, opening a control on the first interface for performing a second operation, the first preset condition representing that the inventory data is greater than a first preset threshold; in response to the user clicking the control and starting to perform the second operation, determining first target information corresponding to the user based on the first inventory data and an extraction probability of the inventory item, the first target information representing a result of the user extracting the inventory item; in response to the first target information satisfying the second preset condition and the user completing the second operation, switching the first interface to the second interface, and generating second prompt information on the second interface, the second prompt information being used to prompt that there is target inventory data corresponding to the user.
[0005] According to an embodiment of the present disclosure, the data processing method further includes: in response to the first inventory data not satisfying the first preset condition, disabling the control.
[0006] According to an embodiment of the present disclosure, in response to a user clicking a control and starting to perform a second operation, first target information corresponding to the user is determined based on the first inventory data and the extraction probability of inventory items, including: in response to the user starting to perform the second operation, the second target information of the user under the first inventory data is determined based on the first inventory data and the extraction probability of inventory items, and the second inventory data is acquired, wherein the second inventory data represents inventory data of at least one inventory item at a second time, and the second target information is used to determine the first target information; in response to the second inventory data satisfying a third preset condition, the second target information is set to the first target information, and the third preset condition characterizes that the inventory data is greater than a second preset threshold.
[0007] According to an embodiment of the present disclosure, in response to a user clicking a control and starting to execute a second operation, first target information corresponding to the user is determined based on the first inventory data and the extraction probability of the inventory items, and also includes: in response to the second inventory data not satisfying the third preset condition but satisfying the fourth preset condition, the corresponding inventory data in the second target information is replaced to obtain the first target information, and the fourth preset condition characterizes that the inventory data used for replacement is greater than the third preset threshold.
[0008] According to an embodiment of the present disclosure, the data processing method also includes: in response to the second inventory data not satisfying the third preset condition and not satisfying the fourth preset condition, terminating the second operation and generating a third prompt information, wherein the third prompt information is used to prompt that the target inventory data corresponding to the user does not exist in the second inventory data.
[0009] According to an embodiment of the present disclosure, in response to a user clicking a control and starting to execute a second operation, first target information corresponding to the user is determined based on the first inventory data and the extraction probability of the inventory items, and also includes: in response to the user executing the second operation, the first target information is determined based on the first inventory data, the extraction probability and the user's feature data.
[0010] According to an embodiment of the present disclosure, the data processing method further includes: in response to the first target information not satisfying the second preset condition and the user completing the second operation, generating fourth prompt information, the fourth prompt information being used to prompt the user that the target inventory data has not been extracted.
[0011] A second aspect of the present disclosure provides a data processing device, including: an inventory data acquisition module, for controlling the display interface to switch to the first interface in response to a user performing a first operation on a display interface based on first prompt information, and acquiring first inventory data, the first inventory data representing inventory data of at least one inventory item at a first time; an operation control activation module, for activating a control on the first interface for performing a second operation in response to the first inventory data satisfying a first preset condition, the first preset condition representing that the inventory data is greater than a first preset threshold; a target information determination module, for determining first target information corresponding to the user based on the first inventory data and an extraction probability of the inventory item in response to the user clicking the control and starting to perform the second operation, the first target information representing a result of the user extracting the inventory item; a prompt information generation module, for switching the first interface to the second interface in response to the first target information satisfying the second preset condition and the user completing the second operation, and generating second prompt information on the second interface, the second prompt information being used to prompt that there is target inventory data corresponding to the user.
[0012] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0013] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0014] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0015] The data processing method, device, electronic device, medium and program product provided by the present disclosure obtain inventory data at a first time (for example, the time of the first operation) when the user performs a first operation, and allow the user to perform a second operation when the inventory is sufficient (satisfying the first preset condition), thereby avoiding the situation where the user is allowed to find that there is no goods to pick up after performing a series of pre-operations due to the failure to obtain real-time inventory data, thereby saving the user's time and energy, and improving the smoothness of the operation and the user's satisfaction. By setting the first preset condition (the inventory is greater than the first preset threshold) to control when the user is allowed to perform the extraction operation, the cost waste caused by blindly increasing the inventory is effectively avoided. By introducing the extraction probability of the inventory items and combining the first inventory data to determine the corresponding first target information of the user, the user can still extract the inventory items when the inventory is tight, thereby improving the inventory utilization rate and user satisfaction without significantly increasing the inventory cost. The method does not rely on the accumulation of a large amount of pre-stock to maintain user satisfaction, and can better maintain the balance of inventory supply before and after the activity, reducing user dissatisfaction caused by uneven inventory distribution. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 The application scenario diagram of the data processing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown;
[0018] Figure 2 A flowchart schematically shows a data processing method according to an embodiment of the present disclosure;
[0019] Figure 3 Schematically shows a flow chart of a lottery activity according to an embodiment of the present disclosure;
[0020] Figure 4 A structural block diagram schematically shows a data processing device according to an embodiment of the present disclosure; and
[0021] Figure 5 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0022] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0023] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0024] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0025] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0026] It should be noted that the data processing method and device disclosed herein can be used for data processing applications in the financial field, and can also be used for data processing applications in any field other than the financial field. The application field of the data processing method and device disclosed herein is not limited.
[0027] It should be noted that in the embodiments of the present disclosure, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present disclosure, but it does not mean that the applicant has or will necessarily use the solution.
[0028] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0029] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0030] An embodiment of the present disclosure provides a data processing method, including: in response to a user performing a first operation on a display interface based on first prompt information, controlling the display interface to switch to a first interface, and acquiring first inventory data, the first inventory data representing inventory data of at least one inventory item at a first time; in response to the first inventory data satisfying a first preset condition, opening a control on the first interface for performing a second operation, the first preset condition representing that the inventory data is greater than a first preset threshold; in response to the user clicking the control and starting to perform the second operation, determining first target information corresponding to the user based on the first inventory data and an extraction probability of the inventory item, the first target information representing a result of the user extracting the inventory item; in response to the first target information satisfying the second preset condition and the user completing the second operation, switching the first interface to the second interface, and generating second prompt information on the second interface, the second prompt information being used to prompt that there is target inventory data corresponding to the user.
[0031] Figure 1 The application scenario diagram of the data processing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0032] like Figure 1As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0033] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0034] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0035] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0036] It should be noted that the data processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the data processing device provided in the embodiment of the present disclosure can generally be set in the server 105. The data processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the data processing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0037] It should be understood that Figure 1 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.
[0038] The following will be based on Figure 1 The scene described by Figure 2~Figure 3 The data processing method of the disclosed embodiment is described in detail.
[0039] Figure 2 The flowchart of the data processing method according to the embodiment of the present disclosure is schematically shown.
[0040] like Figure 2 As shown, the data processing method of this embodiment includes operations S210 to S240, and the data processing method can be executed by a server.
[0041] In operation S210, in response to the user performing a first operation on the display interface based on the first prompt information, the display interface is controlled to switch to the first interface, and first inventory data is obtained, where the first inventory data represents inventory data of at least one inventory item at a first time.
[0042] Specifically, the first prompt information may be text, an image or an animation, which is intended to guide the user to perform the first operation on the display interface. The first operation may be a simple click action or a complex gesture operation or input behavior. When the user (the inventory item extractor) performs the operation, the system may control the display interface to jump to the first interface through the built-in component. To enhance the user experience, the jump process may be set to be smooth and fast. The first inventory data may include information such as the name, specification, and quantity of the inventory items. The first inventory data changes dynamically over time, and the inventory categories and data volume may increase or decrease. The first time may be the time when the user performs the first operation to obtain the latest inventory item data. Before obtaining the data, a data interface definition may be performed to query and return the inventory data.
[0043] In some embodiments, the display interface may be a lottery interface, the user may be a lottery participant, and the inventory items may be lottery prizes. The relevant content of this embodiment in the lottery will be further described in the specific embodiments below.
[0044] In operation S220, in response to the first inventory data satisfying a first preset condition, a control for performing a second operation on the first interface is opened, and the first preset condition indicates that the inventory data is greater than a first preset threshold.
[0045] After obtaining the first inventory data, judgment logic can be executed to determine whether these data meet a preset threshold value. The size of the preset threshold value can be reasonably set as needed, and the preset threshold value can be as low as zero. That is, when it is detected that the inventory items meet the minimum inventory, the user can be allowed to perform subsequent operations. The control of the second operation can be a button, link or other interactive element. By enabling the control, it becomes clickable or interactive. The control can be enabled or disabled by changing the color, visibility or style of the control. Additional information or prompts can also be displayed next to the control to guide the user to perform the second operation.
[0046] In operation S230, in response to the user clicking the control and starting to perform the second operation, first target information corresponding to the user is determined based on the first inventory data and the extraction probability of the inventory item, and the first target information represents the result of the user extracting the inventory item.
[0047] The extraction probability of an inventory item refers to the probability that a user can obtain a certain item during an operation, and can be pre-set in the system. For example, a corresponding extraction probability can be set for the market value of each inventory item. The higher the market value of the inventory item, the lower the corresponding extraction probability. Considering the first inventory data and the extraction probability of the inventory item, items with a high extraction probability or sufficient inventory can be more easily extracted, and items with a low extraction probability or insufficient inventory can be less likely to be extracted. The first target information can indicate whether the inventory item data is successfully extracted, as well as the details of the extracted inventory item data, such as the name and quantity of the inventory item.
[0048] It is worth mentioning that when the first target information indicates that the user has extracted the inventory item data, the corresponding inventory item data can be locked in the database to prevent it from being extracted by other users in another inventory extraction operation. For example, when user A is obtaining inventory items, there are items A, B, and C in his first inventory database, with quantities of a, b, and c, respectively, which all meet the preset threshold. During the second operation of user A, the system determines that user A has obtained an item A based on factors such as extraction probability. Regardless of whether user A has completed the second operation, the data volume of A, B, and C in the inventory data is a-1, b, and c, respectively. At this time, if user B is also obtaining inventory items, the data volume of A, B, and C in the first inventory data obtained by user B is a-1, b, and c, respectively. In this way, when there are many users participating in the extraction of inventory items in a short period of time, and the data volume of each inventory item is quite limited, it can be guaranteed that the user who first locks the inventory item will obtain the inventory item first.
[0049] In operation S240, in response to the first target information satisfying the second preset condition and the user performing the second operation, the first interface is switched to the second interface, and second prompt information is generated on the second interface, the second prompt information is used to prompt that there is target inventory data corresponding to the user.
[0050] The second preset condition may indicate whether the user has extracted the target inventory data. When the first target information meets the specific second preset condition and the user successfully performs the second operation, the system will switch the current first interface to the second interface and generate a second prompt message on the new interface. The purpose of this prompt message is to inform the user that there is target inventory data corresponding to it, that is, the user has successfully extracted the inventory item. The second prompt message may also include further operation instructions or related information. For example, it may provide delivery information so that the user can receive the physical inventory item by mail, self-pickup, etc. The second prompt message may be displayed to the user in an appropriate manner, including but not limited to displaying a prompt box, pop-up window, or modifying the text and style of existing elements in a prominent position on the interface to enhance the user experience.
[0051] According to the data processing method provided by the present disclosure, when the user performs the first operation, the inventory data of the first time (for example, the time of the first operation) is obtained, and when the inventory is sufficient (satisfying the first preset condition), the user is allowed to perform the second operation, which avoids the situation that the user finds that there is no stock to pick up after performing a series of pre-operations, thereby saving the user's time and energy, and improving the smoothness of the operation and the user's satisfaction. By setting the first preset condition (the inventory is greater than the first preset threshold) to control when the user is allowed to perform the extraction operation, the cost waste caused by blindly increasing the inventory is effectively avoided. By introducing the extraction probability of the inventory items, the first inventory data is used to determine the corresponding first target information of the user, so that the user can still extract the inventory items when the inventory is tight, thereby improving the inventory utilization rate and user satisfaction without significantly increasing the inventory cost. The sum of the extraction probabilities of the inventory items is equal to or less than 1. The method does not rely on the accumulation of a large amount of pre-stock to maintain user satisfaction, and can better maintain the balance of inventory supply before and after the activity, reducing user dissatisfaction caused by uneven inventory distribution.
[0052] On the basis of the above embodiment, the data processing method may further include: in response to the first inventory data not satisfying the first preset condition, disabling the control. That is, when the first inventory data satisfies the first preset condition, the control for performing the second operation is enabled, and when the first inventory data does not satisfy the first preset condition, the control is disabled, so that it becomes unclickable or non-interactive. This can be achieved by modifying the disabled property of the control, removing the event listener, or changing the style of the control. In this way, when the inventory data is insufficient, the user can be prohibited from performing subsequent operations to avoid wasting the user's time. In some specific embodiments, a prompt message can be displayed next to the control or other appropriate location on the interface to inform the user why the control is disabled, which helps to improve the user experience and reduce user confusion and dissatisfaction.
[0053] It is understandable that, since the first inventory data changes dynamically, when the user refreshes the page or logs into the operation interface at another time, the system verifies that the first inventory data meets the first preset condition, and the disabled control can become enabled.
[0054] Please continue reading Figure 2 In some embodiments, the operation S230 may further include: in response to the user starting to perform the second operation, determining the second target information of the user under the first inventory data according to the first inventory data and the extraction probability of the inventory items, and acquiring the second inventory data, wherein the second inventory data represents the inventory data of at least one inventory item at a second time, and the second target information is used to determine the first target information; in response to the second inventory data satisfying a third preset condition, setting the second target information to the first target information, and the third preset condition characterizing that the inventory data is greater than a second preset threshold.
[0055] That is to say, this embodiment further considers the influence of the second inventory data on the basis of obtaining the first inventory data. The main difference between the second inventory data and the first inventory data is the difference in time, that is, the first time and the second time. The first time and the second time can respectively represent the time of the first operation and the time of the second operation, that is, the inventory data is obtained in real time. This is because, when facing some activity scenarios where inventory is consumed quickly and there is no time to replenish in time, such as a large number of users participating in online lottery activities at the same time, the inventory data may have changed significantly in a very short time after the first inventory data is obtained. Obtaining the second inventory data again can ensure the accuracy and real-time nature of the inventory data. The second inventory data and the first inventory data can be obtained in the same way. Determining the second target information based on the second inventory data and the probability of extracting inventory items is also similar to determining the first target information based on the first inventory data and the probability of extracting inventory, so it will not be repeated.
[0056] When the second inventory data satisfies the third preset condition, that is, the inventory data at the second time is greater than the second preset threshold, the determined second target information is the first target information, so that operation S240 can be continued. The second preset threshold can be the same as or different from the first preset threshold, and can be reasonably set according to needs, and this disclosure does not make specific requirements.
[0057] By acquiring inventory data once more to determine the target information corresponding to the user, it is ensured that when the user meets the preset conditions and performs subsequent operations (such as payment operations), there is inventory item data available for extraction, thereby avoiding the user from wasting time on subsequent operations. Multiple real-time acquisitions of inventory data make the data processing method of this embodiment more suitable for application scenarios where inventory data changes dramatically in a short period of time.
[0058] On the basis of the above embodiment, in response to the user clicking the control and starting to execute the second operation, determining the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items may also include: in response to the second inventory data not satisfying the third preset condition but satisfying the fourth preset condition, replacing the corresponding inventory data in the second target information to obtain the first target information, and the fourth preset condition indicates that the inventory data used for replacement is greater than the third preset threshold.
[0059] Specifically, the third preset condition may indicate that there is inventory data determined in the second target information, and the fourth preset condition may indicate that there is inventory data that is not determined in the second target information. The third preset condition is not met but the fourth preset condition is met, that is, the system determines that the inventory data that the user should have obtained does not exist based on the inventory data and the extraction probability of the inventory items, but there is alternative inventory data. For example, after calculation, the user should have obtained item A in the inventory, but the reserve of item A in the second inventory data is insufficient or zero, so the user cannot obtain item A. When the second inventory data meets the fourth preset condition, that is, there is an alternative item B, then item B can be allocated to the user as a substitute for item A.
[0060] It is understandable that if item B, which is used as a substitute, is also insufficiently stocked or cleared in the second inventory data, item C can be used as a substitute for item A. And so on, the user has successfully locked the inventory item. Substitutes and the logical order of substitutes can be pre-set in the system so that the system can quickly replace inventory items. The value of the inventory item used as a substitute can be lower than, higher than or equal to the initial inventory item, and the present disclosure does not make specific limitations. In this way, it can be ensured that when the result of extracting the inventory item is determined, when the original inventory item is out of stock or out of stock, the user can still obtain a substitute item, thereby improving user satisfaction. At the same time, it can also alleviate the imbalance of the data of each inventory item in the inventory data, making the inventory data more balanced.
[0061] Further, based on the above embodiment, the data processing method may further include: in response to the second inventory data not satisfying the third preset condition and not satisfying the fourth preset condition, terminating the second operation and generating a third prompt information, wherein the third prompt information is used to prompt that the target inventory data corresponding to the user does not exist in the second inventory data. That is, when the inventory items and the replacement inventory items that the user originally wants to extract are out of stock or out of stock, the user's subsequent operations (such as payment) are terminated, and the third prompt information is sent to the user to prompt that the target inventory data that the user can extract does not exist in the current inventory data, thereby avoiding the situation where the user continues the subsequent operations but cannot obtain the inventory items. The third prompt information may further include additional instructions, instructions or links to eliminate the user's confusion and dissatisfaction. The third prompt information may be displayed to the user in an appropriate manner, such as popping up a dialog box on the user interface, displaying a status message, updating a certain page element, etc., to provide clear and friendly user feedback.
[0062] Please continue reading Figure 2 In some embodiments, in response to the user clicking on the control and starting to perform the second operation, the first target information corresponding to the user is determined based on the first inventory data and the extraction probability of the inventory items. It may also include: in response to the user performing the second operation, the first target information is determined based on the first inventory data, the extraction probability and the user's feature data.
[0063] The user's characteristic data can be the user's inventory item acquisition history data, credit rating, membership level, new and old level, etc., to classify users into different categories or assign different identity weights. It should be noted that before using the user's characteristic data, the user's consent and authorization must be obtained first. For example, the higher the user's credit rating and membership level, the greater the weight obtained. When the number of inventory items is limited and the extraction probability of each inventory item is certain, the greater the weight of the user, the greater the probability of successfully extracting inventory items and extracting high-value inventory items. For example, for new users with low levels, by setting weights, it can be easier for them to extract low-value inventory items, so as to achieve the effect of attracting new users. For old users with higher levels, by setting different weights, it can be easier for them to extract high-value inventory items, so as to achieve the effect of retaining old users.
[0064] By introducing user feature data, inventory items can be allocated more effectively based on user features, improving user experience and satisfaction. At the same time, inventory can be better balanced.
[0065] Please continue reading Figure 2Based on this embodiment, the data processing method may further include: in response to the first target information not satisfying the second preset condition and the user completing the second operation, generating a fourth prompt information, the fourth prompt information being used to prompt the user that the target inventory data has not been extracted.
[0066] Specifically, each inventory item has a certain probability of extraction. When the sum of the extraction probabilities of the inventory items is less than 1, even if each inventory item has inventory, it means that the user may not be able to extract any of the inventory items. The first target information does not meet the second preset condition, which means that the user did not successfully obtain the inventory item after performing the second operation. The fourth prompt information can be displayed to the user in an appropriate manner, such as through a message, pop-up window, notification bar or other user-visible elements on the user interface. By generating and displaying the fourth prompt information, the system can effectively notify the user that the target inventory data has not been extracted, and provide necessary guidance and, thereby improving user experience and satisfaction.
[0067] In order to better understand the present disclosure, the following Figure 3 The application of the embodiments of the present disclosure in a lottery activity is described. It should be emphasized that the following specific embodiments are only examples and are not intended to limit the scope of application of the present disclosure.
[0068] Taking the online lucky draw as an example, the existing lucky draw process is usually as follows:
[0069] (1) The user enters the data processing page.
[0070] (2) The user reads the data processing activity rules and clicks a button.
[0071] (3) Jump to the payment page to complete the payment and jump back to the data processing page.
[0072] (4) After the user clicks the lucky draw button, the system determines whether the customer wins the prize and the prize won based on the prizes and winning rates configured in the event background.
[0073] (5) When the user clicks the "Claim Prize" button to claim the prize, the prize inventory is deducted. If the inventory is insufficient, the user will be prompted that the prize is out of stock and cannot be claimed. Subsequently, an automatic refund will be triggered or the prize claim will be marked as failed and the customer service will be notified to reissue the prize.
[0074] It can be seen that in the existing lottery process, it is easy for customers to spend time to pay but cannot receive the prizes after winning them, which affects the user experience. In order to avoid the situation where customers win prizes but fail to receive them due to insufficient inventory, the only way is to increase the inventory supply, but it is easy to cause the prizes to be consumed too quickly in the early stage of the event, resulting in an unbalanced phenomenon that no prizes can be received in the second half.
[0075] Figure 3A flowchart of a lottery activity according to an embodiment of the present disclosure is schematically shown to solve the above-mentioned problems faced in the existing lottery process.
[0076] like Figure 2 and Figure 3 As shown, in a lucky draw activity, a user may be a participant of the lucky draw activity, and the first prompt information may be information prompting the user to participate in the lucky draw. The first interface may be a display page of the lucky draw, which may display the lucky draw rules and lucky draw prizes to the user. The inventory items may be prizes for the lucky draw activity. The first inventory data may be the number of prizes corresponding to each prize, such as the first prize, the second prize, the third prize, etc.
[0077] like Figure 3 As shown, when the lottery participant enters the lottery interface, the lottery background server can verify the prize inventory quantity (i.e., the first inventory data) in the lottery database. When the first inventory data is verified to meet the first inventory requirement, the lottery user is allowed to perform subsequent operations through the control, such as entering the payment page. When the first inventory data does not meet the first inventory requirement, the lottery user is not allowed to perform subsequent operations through the control, that is, the lottery is ended, so as to save the lottery user's time and avoid having no prizes to draw after payment.
[0078] After the lottery user enters the payment page, the system can generate second target information, such as whether the user has won the prize and what prize he has won, based on the first inventory data, the extraction probability of inventory items (the probability of winning each prize), the user's characteristic information, etc.
[0079] Then, the latest inventory data, i.e., the second inventory data, can be obtained again. Between obtaining the first inventory data and obtaining the second inventory data, when there are many users participating in the lottery at the same time and the inventory data is consumed quickly, the inventory items that were originally in the first inventory data may no longer be in the second inventory data. Re-obtaining the inventory data can ensure the real-time and accuracy of the data.
[0080] After obtaining the second inventory data, it is determined whether the second inventory data meets the third preset condition and the fourth preset condition. For example, in the second target information, it is determined that the prize that the lottery user can obtain is a second prize item, and then the second inventory data is queried whether there are any second prize items. If there are any second prize items (i.e., the third preset condition is met), the user can obtain the second prize item after payment is completed. If the second prize item in the second inventory data is out of stock (i.e., the third preset condition is not met), it is queried whether there are any third prizes in the second inventory data. If there are any third prizes in the second inventory data (i.e., the fourth preset condition is met), the third prize will be issued to the user as a substitute for the second prize after the user completes payment. The number of substitutions can be one or more. For example, if there is no third prize, it is checked whether there is any fourth prize. If there is any fourth prize in the second inventory data (i.e., the fourth preset condition is met), the fourth prize will be issued to the user after the user completes payment. By analogy, if within the set number of substitutions, there are no prizes corresponding to the second prize and all the alternative prizes (that is, neither the third preset condition nor the fourth preset condition is met), the user cannot complete the payment, and the lottery activity is terminated to avoid the situation where the user has no prize to collect after completing the payment.
[0081] It should be noted that the above prize replacement process is carried out in the background, and the lottery users can only know their final prizes after completing the payment. Therefore, the prize replacement will not affect the experience of the lottery users. On the contrary, the prize replacement can enable the lottery users to obtain prizes as much as possible when the inventory is limited, thereby improving the user experience.
[0082] The system determines the user's lottery result (i.e., whether the first target information meets the second preset condition), and displays the winning result to the user after the user completes the payment. The winning result includes two types: winning a prize or not winning. Since the inventory data verification link is placed before the payment link, when the lottery user completes the payment, if he wins the prize, he will definitely get the corresponding prize, and if he does not win the prize, he can also receive the lottery result. In addition, by replacing the prizes, the number of prizes can be balanced to avoid the uneven inventory caused by excessive consumption of some prizes in a short period of time and less consumption of some prizes.
[0083] Based on the above data processing method, the present disclosure also provides a data processing device, which has the same technical features and effective effects as the above data processing method. Figure 4 The device is described in detail.
[0084] Figure 4 The structure block diagram of a data processing device according to an embodiment of the present disclosure is schematically shown.
[0085] like Figure 4As shown, the data processing device 400 of this embodiment includes: an inventory data acquisition module 410, an operation control activation module 420, a target information determination module 430 and a prompt information generation module 440.
[0086] The inventory data acquisition module 410 is used to control the display interface to switch to the first interface in response to the user performing a first operation on the display interface based on the first prompt information, and to acquire first inventory data, where the first inventory data represents inventory data of at least one inventory item at a first time. In one embodiment, the inventory data acquisition module 410 can be used to perform the operation S210 described above, which will not be described in detail here.
[0087] The operation control activation module 420 is used to activate a control for performing a second operation on the first interface in response to the first inventory data satisfying a first preset condition, wherein the first preset condition indicates that the inventory data is greater than a first preset threshold. In one embodiment, the operation control activation module 420 can be used to perform the operation S220 described above, which will not be described in detail herein.
[0088] The target information determination module 430 is used to determine the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory item in response to the user clicking the control and starting to perform the second operation, wherein the first target information represents the result of the user extracting the inventory item. In one embodiment, the target information determination module 430 can be used to perform the operation S230 described above, which will not be described in detail here.
[0089] The prompt information generation module 440 is used to switch the first interface to the second interface in response to the first target information satisfying the second preset condition and the user performing the second operation, and generate second prompt information on the second interface, the second prompt information being used to prompt that there is target inventory data corresponding to the user. In one embodiment, the prompt information generation module 440 can be used to perform the operation S240 described above, which will not be described in detail here.
[0090] According to an embodiment of the present disclosure, any multiple modules of the inventory data acquisition module 410, the operation control activation module 420, the target information determination module 430, and the prompt information generation module 440 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the inventory data acquisition module 410, the operation control activation module 420, the target information determination module 430, and the prompt information generation module 440 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the inventory data acquisition module 410, the operation control activation module 420, the target information determination module 430 and the prompt information generation module 440 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
[0091] Figure 5 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is schematically shown.
[0092] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0093] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0094] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the input / output (I / O) interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
[0095] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0096] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0097] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0098] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0099] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0100] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0101] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0102] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. 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.
[0103] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0104] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A data processing method, characterized in that: include: In response to a user performing a first operation on a display interface based on first prompt information, controlling the display interface to switch to a first interface, and acquiring first inventory data, where the first inventory data represents inventory data of at least one inventory item at a first time; In response to the first inventory data satisfying a first preset condition, opening a control on the first interface for performing a second operation, the first preset condition indicating that the inventory data is greater than a first preset threshold; In response to the user clicking the control and starting to perform the second operation, first target information corresponding to the user is determined based on the first inventory data and the probability of extracting the inventory item, wherein the first target information represents a result of the user extracting the inventory item; In response to the first target information satisfying a second preset condition and the user completing the second operation, the first interface is switched to a second interface, and second prompt information is generated on the second interface, wherein the second prompt information is used to prompt that there is target inventory data corresponding to the user.
2. The data processing method according to claim 1, characterized in that: Also includes: In response to the first inventory data not satisfying the first preset condition, disabling the control.
3. The data processing method according to claim 1, characterized in that: In response to the user clicking the control and starting to perform the second operation, determining first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items includes: In response to the user starting to perform the second operation, second target information of the user under the first inventory data is determined according to the first inventory data and the extraction probability of the inventory item, and second inventory data is acquired, wherein the second inventory data represents inventory data of the at least one inventory item at a second time, and the second target information is used to determine the first target information; In response to the second inventory data satisfying a third preset condition, the second target information is set to the first target information, and the third preset condition indicates that the inventory data is greater than a second preset threshold.
4. The data processing method according to claim 3, characterized in that: In response to the user clicking the control and starting to perform the second operation, determining first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, further comprising: In response to the second inventory data not satisfying the third preset condition but satisfying the fourth preset condition, the corresponding inventory data in the second target information is replaced to obtain the first target information, and the fourth preset condition indicates that the inventory data used for replacement is greater than the third preset threshold.
5. The data processing method according to claim 4, characterized in that: The data processing method further includes: In response to the second inventory data not satisfying the third preset condition and not satisfying the fourth preset condition, the second operation is terminated and a third prompt message is generated, wherein the third prompt message is used to prompt that the target inventory data corresponding to the user does not exist in the second inventory data.
6. The data processing method according to claim 1 or 3, characterized in that: In response to the user clicking the control and starting to perform the second operation, determining first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, further comprising: In response to the user performing a second operation, the first target information is determined based on the first inventory data, the extraction probability, and the feature data of the user.
7. The data processing method according to claim 1, characterized in that: Also includes: In response to the first target information not satisfying the second preset condition and the user completing the second operation, fourth prompt information is generated, where the fourth prompt information is used to prompt the user that the target inventory data has not been extracted.
8. A data processing device, characterized in that: include: an inventory data acquisition module, configured to, in response to a user performing a first operation on a display interface based on first prompt information, control the display interface to switch to a first interface, and acquire first inventory data, wherein the first inventory data represents inventory data of at least one inventory item at a first time; an operation control activation module, configured to activate a control for executing a second operation on the first interface in response to the first inventory data satisfying a first preset condition, wherein the first preset condition indicates that the inventory data is greater than a first preset threshold; a target information determination module, configured to determine, in response to the user clicking the control and starting to perform the second operation, first target information corresponding to the user based on the first inventory data and the probability of extracting the inventory item, wherein the first target information represents a result of the user extracting the inventory item; A prompt information generating module is used to switch the first interface to a second interface in response to the first target information satisfying a second preset condition and the user performing the second operation, and generate second prompt information on the second interface, wherein the second prompt information is used to prompt that there is target inventory data corresponding to the user.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Article information display method and device
CN110189201A
Data processing method and device, computer system and storage medium
CN113610417A
Seckilling commodity inventory calculation method and device, electronic equipment and storage medium
CN113763133A
Lottery drawing management method and device, computer equipment and storage medium
CN115271817A
Inventory early warning information generation method and device, equipment and storage medium
CN116109236A