Data processing method and apparatus, electronic device, and medium

By acquiring inventory data and setting preset conditions, combined with the probability of retrieving inventory items, controlling user operations, and providing alternative items, the problem of users being unable to retrieve items when inventory is insufficient is solved, thus achieving efficient inventory management and improved user satisfaction.

CN119417523BActive Publication Date: 2025-11-11CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411331342.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-11-11
Estimated Expiration
2044-09-24

AI Technical Summary

Technical Problem

In business activities or inventory management, users may find that there is no inventory available when they try to retrieve their stock items, resulting in wasted time and costs and a reduced user experience.

Method used

By acquiring inventory data and setting preset conditions, the system controls the enabling and disabling of user operations, combines the probability of retrieving inventory items to determine the user's target information, and provides alternative items when inventory is scarce, ensuring that the user can successfully retrieve inventory items.

Benefits of technology

It saves users time and effort, improves operational smoothness and user satisfaction, maintains a balanced inventory supply, and reduces user dissatisfaction caused by uneven inventory distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119417523B_ABST
    Figure CN119417523B_ABST
Patent Text Reader

Abstract

This disclosure provides a data processing method applicable to the financial and big data technology fields. The method includes: responding to a user performing a first operation on a display interface, controlling the display interface to switch to a first interface and acquiring first inventory data, whereby the first inventory data represents the inventory data of inventory items; responding to the first inventory data meeting a first preset condition, activating controls on the first interface; responding to the user clicking the controls and starting a second operation, determining first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items; responding to the first target information meeting a second preset condition and the user completing the second operation, switching the first interface to a second interface and generating second prompt information on the second interface, whereby the second prompt information indicates the existence of target inventory data corresponding to the user. This disclosure also provides a data processing method apparatus, electronic device, storage medium, and program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of big data technology, and more specifically to a data processing method, apparatus, electronic device, medium, and program product. Background Technology

[0002] In some business activities or inventory management, users gain the permission or qualification to retrieve inventory items (such as event prizes) after performing a series of preliminary operations. However, when they try to retrieve the corresponding inventory items, they find that there are no longer any available in the system. This not only wastes the user's time and effort but also degrades the user experience. Summary of the Invention

[0003] In view of the above problems, this disclosure provides a data processing method, apparatus, electronic device, medium and program product that can balance inventory supply, reduce inventory costs and improve user satisfaction.

[0004] According to a first aspect of this disclosure, a data processing method is provided, comprising: responding to a user performing a first operation on a display interface based on a first prompt message, controlling the display interface to switch to a first interface and acquiring first inventory data, the first inventory data representing the inventory data of at least one inventory item at a first time; responding to the first inventory data satisfying a first preset condition, activating 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; responding 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 item, the first target information representing the result of the user extracting the inventory item; responding to the first target information satisfying a second preset condition and the user completing the second operation, switching the first interface to a second interface and generating second prompt message on the second interface, the second prompt message indicating the existence of target inventory data corresponding to the user.

[0005] According to embodiments of this disclosure, the data processing method further includes: disabling a control in response to the first inventory data not meeting a first preset condition.

[0006] According to embodiments of this disclosure, in response to a user clicking a control and starting to execute a second operation, determining first target information corresponding to the user based on first inventory data and the extraction probability of inventory items includes: in response to the user starting to execute the second operation, determining second target information of the user under the first inventory data based on the first inventory data and the extraction probability of inventory items, and obtaining 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 as the first target information, wherein the third preset condition indicates that the inventory data is greater than a second preset threshold.

[0007] According to an embodiment of this disclosure, in response to a user clicking a control and starting to execute a second operation, based on the first inventory data and the extraction probability of the inventory items, a first target information corresponding to the user is determined, and the method further includes: in response to the second inventory data not meeting a third preset condition but meeting a fourth preset condition, the corresponding inventory data in the second target information is replaced to obtain the first target information, wherein the fourth preset condition indicates that the inventory data used for replacement is greater than the third preset threshold.

[0008] According to an embodiment of this disclosure, the data processing method further includes: in response to the second inventory data not meeting a third preset condition and not meeting a fourth preset condition, suspending the second operation and generating a third prompt message, the third prompt message being used to indicate that there is no target inventory data corresponding to the user in the second inventory data.

[0009] According to embodiments of this disclosure, in response to a user clicking a control and starting to perform a second operation, determining first target information corresponding to the user based on first inventory data and the extraction probability of inventory items, further comprising: in response to the user performing the second operation, determining the first target information based on first inventory data, extraction probability, and user feature data.

[0010] According to an embodiment of this disclosure, the data processing method further includes: in response to the first target information not meeting the second preset condition and the user completing the second operation, generating a fourth prompt message, the fourth prompt message being used to prompt the user that the target inventory data has not been retrieved.

[0011] A second aspect of this disclosure provides a data processing apparatus, comprising: an inventory data acquisition module, configured to, in response to a user performing a first operation on a display interface based on a first prompt message, control the display interface to switch to a first interface and acquire first inventory data, the first inventory data representing the inventory data of at least one inventory item at a first time; an operation control activation module, configured to, in response to the first inventory data meeting a first preset condition, activate 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; a target information determination module, configured to, in response to a user clicking a control and starting to perform the second operation, determine first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory item, the first target information representing the result of the user extracting the inventory item; and a prompt message generation module, configured to, in response to the first target information meeting a second preset condition and the user completing the second operation, switch the first interface to a second interface and generate second prompt information on the second interface, the second prompt information indicating the existence of target inventory data corresponding to the user.

[0012] A third aspect of this 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 method described above.

[0013] A fourth aspect of this disclosure also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method.

[0014] The fifth aspect of this disclosure also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method.

[0015] The data processing method, apparatus, electronic device, medium, and program products disclosed herein acquire inventory data at a first moment (e.g., the time of the first operation) when a user performs a first operation. When inventory is sufficient (meeting a first preset condition), the user is allowed to perform a second operation. This avoids situations where users perform a series of preliminary operations only to find no items available due to a lack of real-time inventory data, thus saving users time and effort and improving operational smoothness and user satisfaction. By setting a first preset condition (inventory greater than a first preset threshold) to control when users are allowed to perform a retrieval operation, cost waste caused by blindly increasing inventory is effectively avoided. By introducing the retrieval probability of inventory items and combining it with the first inventory data to determine the user's corresponding first target information, users can still retrieve inventory items even when inventory is tight, thereby improving inventory utilization and user satisfaction without significantly increasing inventory costs. This method does not rely on the accumulation of large amounts of pre-positioned inventory 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. Attached Figure Description

[0016] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0017] Figure 1 The illustrations depict application scenarios of data processing methods, apparatuses, devices, media, and program products according to embodiments of the present disclosure.

[0018] Figure 2 A flowchart illustrating a data processing method according to an embodiment of the present disclosure is shown schematically.

[0019] Figure 3 A flowchart of a lottery activity according to an embodiment of the present disclosure is illustrated schematically;

[0020] Figure 4 A schematic block diagram of a data processing apparatus according to embodiments of the present disclosure is shown; and

[0021] Figure 5 A block diagram schematically illustrates an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure. Detailed Implementation

[0022] The embodiments of the present disclosure will now 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 disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0023] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0024] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0025] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0026] It should be noted that the data processing method and apparatus disclosed herein can be used in the financial field for data processing applications, as well as in any field other than the financial field for data processing applications. The application fields of the data processing method and apparatus disclosed herein are not limited.

[0027] It should be noted that in the embodiments disclosed herein, certain software, components, models, and other existing solutions in the industry may be mentioned. These should be considered as exemplary and are intended only to illustrate the feasibility of implementing the technical solutions disclosed herein. However, they do not mean that the applicant has used or necessarily used such solutions.

[0028] In the technical solution disclosed herein, the user information (including but not limited to user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, and displayed data) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with relevant laws, regulations, and standards, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse.

[0029] In scenarios involving automated decision-making using personal information, the methods, devices, and systems provided in this disclosure all offer users corresponding entry points for choosing to agree to or reject the automated decision-making results. If the user chooses to reject, the process proceeds to the expert decision-making stage. Here, "automated decision-making" refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests, or economic, health, and credit status through computer programs, and then making a decision. Here, "expert decision-making" refers to the activity of making decisions by personnel who specialize in a particular field, possess specialized experience, knowledge, and skills, and have reached a certain level of professional expertise.

[0030] Embodiments of this disclosure provide a data processing method, comprising: responding to a user performing a first operation on a display interface based on a first prompt message, controlling the display interface to switch to a first interface and acquiring first inventory data, the first inventory data representing the inventory data of at least one inventory item at a first time; responding to the first inventory data satisfying a first preset condition, activating 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; responding 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 item, the first target information representing the result of the user extracting the inventory item; responding to the first target information satisfying a second preset condition and the user completing the second operation, switching the first interface to a second interface and generating second prompt message on the second interface, the second prompt message indicating the existence of target inventory data corresponding to the user.

[0031] Figure 1 The illustrations depict application scenarios of data processing methods, apparatuses, devices, media, and program products according to embodiments of the present disclosure.

[0032] like Figure 1As shown, 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 serves as a medium for providing 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 or wireless communication links, or fiber optic cables, etc.

[0033] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via 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 media platform software, etc. (for example only).

[0034] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0035] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received 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 devices.

[0036] It should be noted that the data processing method provided in this embodiment can generally be executed by server 105. Correspondingly, the data processing device provided in this embodiment can generally be located in server 105. The data processing method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the data processing device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.

[0037] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0038] The following will be based on Figure 1 The described scene, through Figures 2-3 The data processing method of the disclosed embodiments will be described in detail.

[0039] Figure 2 A flowchart illustrating a data processing method according to an embodiment of the present disclosure is shown schematically.

[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 switched to the first interface, and the first inventory data is obtained, the first inventory data representing the inventory data of at least one inventory item at the first moment.

[0042] Specifically, the initial prompt can be text, an image, or an animation, designed to guide the user to perform an initial action on the display interface. This initial action can be a simple click, a complex gesture, or an input behavior. After the user (the person retrieving the inventory item) performs this action, the system can use built-in components to control the display interface to jump to the first screen. To enhance the user experience, the jump process can be designed to be smooth and fast. The initial inventory data can include information such as the name, specifications, and quantity of the inventory items. The initial inventory data changes dynamically over time; the inventory categories and data volume can increase or decrease. The initial time can be the time when the user performs the initial action to obtain the latest inventory item data. Before retrieving the data, a data interface can be defined to query and return the inventory data.

[0043] In some embodiments, the display interface can be a lottery interface, the user can be a lottery participant, and the inventory items can be lottery prizes. The relevant content of the lottery activity in this embodiment will be further explained in the specific embodiments below.

[0044] In operation S220, in response to the first inventory data meeting the first preset condition, the control on the first interface for performing the second operation is activated, whereby the first preset condition indicates that the inventory data is greater than the first preset threshold.

[0045] After obtaining the initial inventory data, a judgment logic can be executed to determine whether this data exceeds a preset threshold. The preset threshold can be set reasonably as needed, and the minimum preset threshold can be zero. That is, when the inventory of an item is detected to meet the minimum inventory level, the user can be allowed to perform subsequent operations. The control for the second operation can be a button, link, or other interactive element. Enabling this control makes it clickable or interactive. The control can be enabled or disabled by changing its color, visibility, or style. 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 execute the second operation, based on the first inventory data and the extraction probability of the inventory items, the first target information corresponding to the user is determined. The first target information represents the result of the user extracting the inventory items.

[0047] The probability of retrieving an inventory item refers to the likelihood that a user can obtain a particular item during an operation, and it can be pre-set in the system. For example, a corresponding retrieval 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 retrieval probability. Considering the initial inventory data and the retrieval probability of inventory items, items with high retrieval probabilities or sufficient stock are easier to retrieve, while items with low retrieval probabilities or insufficient stock are less likely to be retrieved. The initial target information can indicate whether the inventory item data was successfully retrieved, as well as details of the retrieved inventory item data, such as the name and quantity of the inventory item.

[0048] It's worth noting that when the first target information indicates that a user has retrieved inventory item data, the corresponding inventory item data can be locked in the database to prevent other users from retrieving it during subsequent inventory retrieval operations. For example, when user A retrieves inventory items, their first inventory database contains items A, B, and C, with quantities of a, b, and c respectively, all meeting preset thresholds. During user A's second operation, if the system determines that user A has retrieved one item A based on factors such as retrieval probability, then regardless of whether user A completes the second operation, the data quantities of A, B, and C in the inventory data will be a-1, b, and c respectively. If user B is also retrieving inventory items at this time, then the data quantities of A, B, and C in user B's first inventory data will be a-1, b, and c respectively. Thus, when many users participate in inventory item retrieval within a short period, and the data quantity of each inventory item is quite limited, it can be guaranteed that the user who locks the inventory item first will retrieve it first.

[0049] In operation S240, in response to the first target information satisfying the second preset condition and the user completing the second operation, the first interface is switched to the second interface, and a second prompt message is generated on the second interface. The second prompt message is used to indicate that there is target inventory data corresponding to the user.

[0050] The second preset condition indicates whether the user has retrieved the target inventory data. When the first target information meets the specific second preset condition, and the user successfully completes 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 the corresponding target inventory data exists, that is, the user has successfully retrieved the inventory item. The second prompt message may also include further operation guidance or relevant information, such as providing delivery information so that the user can receive the physical inventory item via mail, self-pickup, or other means. 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 improve the user experience.

[0051] According to the data processing method provided in this disclosure, inventory data at a specific time (e.g., the time of the first operation) is obtained when a user performs the first operation. When inventory is sufficient (meeting a first preset condition), the user is allowed to perform the second operation. This avoids situations where users find no items available after performing a series of preliminary operations, thus saving users time and effort and improving operational smoothness and user satisfaction. By setting a first preset condition (inventory greater than a first preset threshold) to control when users are allowed to perform a retrieval operation, cost waste caused by blindly increasing inventory is effectively avoided. By introducing the retrieval probability of inventory items, the first inventory data is geometrically used to determine the user's corresponding first target information, enabling users to retrieve inventory items even when inventory is tight. This improves inventory utilization and user satisfaction without significantly increasing inventory costs. The sum of the retrieval probabilities of inventory items is equal to or less than 1. This method does not rely on the accumulation of large amounts of pre-operated inventory 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] Based on the above embodiments, the data processing method may further include: disabling a control in response to the first inventory data not meeting a first preset condition. That is, when the first inventory data meets the first preset condition, the control used to perform the second operation is enabled; when the first inventory data does not meet the first preset condition, the control is disabled, making it unclickable or uninteractive. This can be achieved by modifying the control's disabled attribute, removing event listeners, or changing the control's style. In this way, when inventory data is insufficient, subsequent operations by the user can be prevented, avoiding wasting the user's time. In some specific embodiments, a prompt message can be displayed next to the control or in other appropriate locations on the interface, informing the user why the control is disabled, which helps improve the user experience and reduce user confusion and dissatisfaction.

[0053] Understandably, since the first inventory data changes dynamically, when a 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 then the disabled control can become enabled.

[0054] Please continue reading. Figure 2 In some embodiments, the above operation S230 may further include: in response to the user starting to perform the second operation, determining the user's second target information under the first inventory data based on the first inventory data and the extraction probability of the inventory items, and obtaining 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 as the first target information, wherein the third preset condition indicates that the inventory data is greater than a second preset threshold.

[0055] In other words, this embodiment further considers the impact of the second inventory data based on the acquisition of the first inventory data. The main difference between the second inventory data and the first inventory data lies in the time difference, namely, the first time and the second time. The first time and the second time can represent the time of the first operation and the time of the second operation, respectively, that is, the inventory data is acquired in real time. This is because, in some scenarios where inventory is rapidly depleted and replenishment cannot be completed in time, such as a large number of users participating in an online lottery activity at the same time, the inventory data may change significantly within a very short period of time after the first inventory data is acquired. Acquiring the second inventory data again can ensure the accuracy and real-time nature of the inventory data. The acquisition methods of the second inventory data and the first inventory data can be the same. Determining the second target information based on the second inventory data and the extraction probability of the inventory items is similar to determining the first target information based on the first inventory data and the extraction probability of the inventory, so it will not be described in detail again.

[0056] When the second inventory data meets 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 becomes the first target information, and operation S240 can continue. The second preset threshold and the first preset threshold can be the same or different, and can be reasonably set according to needs. This disclosure does not make specific requirements.

[0057] By acquiring inventory data again, the target information corresponding to the user can be determined. This ensures that when the user meets the preset conditions and performs subsequent operations (such as payment), there is inventory data available for retrieval, thus avoiding wasting the user's time on subsequent operations. The multiple real-time acquisitions of inventory data make the data processing method in this embodiment more suitable for application scenarios where inventory data changes drastically within a short period.

[0058] Based on the above embodiments, 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 further include: in response to the second inventory data not meeting the third preset condition but meeting the fourth preset condition, replacing the corresponding inventory data in the second target information to obtain the first target information, wherein 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 can indicate the existence of inventory data specified in the second target information, while the fourth preset condition can indicate the existence of inventory data not specified in the second target information. If the third preset condition is not met but the fourth preset condition is met, it means the system determines, based on the inventory data and the retrieval probability of the inventory item, that the inventory data the user should have obtained does not exist, but a substitute inventory data exists. For example, calculations show that the user should have obtained item A from the inventory, but the reserve of item A in the second inventory data is insufficient or zero, then the user cannot obtain item A. When the second inventory data meets the fourth preset condition, i.e., a substitute item B exists, then item B can be allocated to the user as a substitute for item A.

[0060] Understandably, if item B, as a substitute, is also insufficient or depleted in the second inventory data, item C can be used as a substitute for item A. This process continues until the user successfully locks in the inventory items. The substitutes and their logical order can be pre-set in the system to allow for rapid substitution of inventory items. The value of the substitute inventory items can be lower, higher, or equivalent to the initial inventory items; this disclosure does not impose specific limitations. This ensures that even when the original inventory item is unavailable or out of stock, the user can still obtain a substitute item, thus improving user satisfaction. Simultaneously, it alleviates imbalances in the inventory data across different items, resulting in a more balanced inventory database.

[0061] Furthermore, based on the above embodiments, the data processing method may further include: in response to the second inventory data not meeting a third preset condition and not meeting a fourth preset condition, suspending the second operation and generating a third prompt message. The third prompt message is used to indicate that the target inventory data corresponding to the user does not exist in the second inventory data. That is, when both the inventory item and the substitute inventory item that the user originally wanted to retrieve are out of stock or unavailable, the user's subsequent operations (such as payment) are suspended, and a third prompt message is sent to the user to indicate that the target inventory data that the user can retrieve does not exist in the current inventory data, thereby preventing the user from continuing subsequent operations and being unable to obtain the inventory item. The third prompt message may further include additional explanations, guidance, or links to eliminate user confusion and dissatisfaction. The third prompt message can 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 page element, etc., to provide clear and user-friendly feedback.

[0062] Please continue reading. Figure 2 In some embodiments, in response to a user clicking a control and starting to perform a second operation, determining first target information corresponding to the user based on first inventory data and the extraction probability of inventory items may further include: in response to a user performing a second operation, determining first target information based on first inventory data, extraction probability, and user feature data.

[0063] User profile data can include a user's historical inventory acquisition data, credit rating, membership level, and whether they are a new or returning user. This data can be used to categorize users or assign them different weights. It's important to note that user consent and authorization are required before using user profile data. For example, higher credit ratings and membership levels result in greater weight. Given a limited number of inventory items and a fixed probability of extraction for each item, users with higher weights have a greater chance of successfully extracting inventory items, especially high-value items. For instance, by assigning weights to new users with lower membership levels, it's easier for them to extract low-value inventory items, thus attracting new users. Conversely, by assigning different weights to returning users with higher membership levels, it's easier for them to extract high-value inventory items, thus retaining existing users.

[0064] By incorporating user characteristic data, inventory items can be allocated more effectively based on user characteristics, improving user experience and satisfaction. Simultaneously, it also allows for better inventory balancing.

[0065] Please continue reading. Figure 2Based on this embodiment, the data processing method may further include: in response to the first target information not meeting the second preset condition and the user completing the second operation, generating a fourth prompt message, the fourth prompt message being used to prompt the user that the target inventory data has not been retrieved.

[0066] Specifically, each inventory item has a certain probability of being retrieved. When the sum of the retrieval probabilities of the inventory items is less than 1, even if each inventory item is in stock, it means that the user may not be able to retrieve any of the inventory items. The first target information not meeting the second preset condition means that the user did not successfully retrieve the inventory item after performing the second operation. The fourth prompt message can be displayed to the user in an appropriate manner, such as through messages on the user interface, pop-ups, notification bars, or other user-visible elements. By generating and displaying the fourth prompt message, the system can effectively notify the user that the target inventory data could not be retrieved and provide necessary guidance, thereby improving user experience and satisfaction.

[0067] To facilitate a better understanding of this disclosure, the following is combined with Figure 3 This document describes the application of embodiments of this disclosure in a lottery activity. It should be emphasized that the following specific embodiments are merely examples and are not intended to limit the scope of this disclosure.

[0068] Taking online lucky draw events 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 rules for the data processing activity and clicks the button.

[0071] (3) Redirect to the payment page to complete the payment and then redirect back to the data processing page.

[0072] (4) After the user clicks the lottery button, the system determines whether the customer has won a prize and the prize they have won based on the prizes and winning rates configured in the activity backend.

[0073] (5) When a user clicks the "Claim Prize" button to claim the prize, the prize inventory is reduced. If the inventory is insufficient, the user will be notified that the prize is out of stock and cannot be claimed. Subsequently, an automatic refund will be triggered or the prize will be marked as a failed claim and customer service will be notified to reissue the prize.

[0074] It is evident that the existing lottery system is prone to the contradiction of customers spending time making payments but not being able to claim their prizes after winning them, thus impacting user experience. To avoid this situation where customers win prizes but fail to claim them due to insufficient inventory, the only solution is to increase the inventory supply. However, this could easily lead to an imbalance where prizes are consumed too quickly in the early stages of the event, resulting in a lack of prizes available in the later stages.

[0075] Figure 3A flowchart of a lottery activity according to an embodiment of the present disclosure is illustrated to address the aforementioned problems faced in existing lottery processes.

[0076] like Figure 2 and Figure 3 As shown, in a lottery event, users can be participants. The first notification message can be a message prompting the user to participate in the lottery. The first interface can be the lottery display page, showing the user the lottery rules and prizes. The inventory items can be the prizes for the lottery event. The first inventory data can be the quantity of prizes corresponding to each prize level, such as first prize, second prize, third prize, etc.

[0077] like Figure 3 As shown, when a participant enters the lottery interface, the lottery's backend server verifies the prize inventory quantity (i.e., the initial inventory data) in the lottery database. If the initial inventory data meets the requirements, the participant is allowed to perform subsequent operations via controls, such as accessing the payment page. If the initial inventory data does not meet the requirements, the participant is not allowed to perform subsequent operations via controls, thus ending the lottery. This saves the participant's time and avoids situations where payment is made but no prizes are available for drawing.

[0078] After a user enters the payment page, the system can generate secondary target information based on the primary inventory data, the probability of extracting inventory items (the winning probability of each prize), and the user's characteristic information, such as whether the user has won a prize and what prize they won.

[0079] Next, the latest inventory data can be retrieved again, i.e., the second inventory data. Between retrieving the first inventory data and retrieving the second inventory data, when there are many users participating in the lottery at the same time and the inventory data is consumed rapidly, the inventory items that were still in the first inventory data may no longer be in the second inventory data. Retrieving the inventory data again can ensure the real-time nature and accuracy of the data.

[0080] After obtaining the second inventory data, the system checks whether it meets the third and fourth preset conditions. For example, if the second target information indicates that the prize a lucky draw user can obtain is a second-prize item, the system checks if the second inventory data still contains a second-prize item. If it does (meeting the third preset condition), the user can obtain the second-prize item after payment. If the second-prize item in the second inventory data is out of stock (not meeting the third preset condition), the system checks if the second inventory data still contains a third-prize item. If it does (meeting the fourth preset condition), the third-prize item is given to the user after payment as a substitute for the second-prize. This substitution can be done once or multiple times. For example, if the third-prize item is also unavailable, the system checks if the fourth-prize item is available. If it does (meeting the fourth preset condition), the fourth-prize item is given to the user after payment. Similarly, if, within the set number of substitutions, there are no prizes corresponding to the second prize or any of the substituted prizes (i.e., neither the third nor the fourth preset condition is met), the user cannot complete the payment, thus terminating the lottery activity, to avoid the situation where the user completes the payment but has no prize to claim.

[0081] It should be noted that the entire prize substitution process is conducted in the background, and users will only know their final prize after completing payment. Therefore, prize substitution will not negatively impact the user experience. On the contrary, with limited inventory, prize substitution can maximize the chances of users receiving a prize, 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). After the user completes payment, the system displays the winning result to the user, which includes two options: winning a prize or not winning. Because the inventory data verification process is placed before the payment process, once the user completes payment, if they win, they will definitely receive the corresponding prize; if they don't win, they will still receive the lottery result. Furthermore, by substituting prizes, the system can balance the quantity of prizes, avoiding inventory imbalances caused by some prizes being overused in a short period while others are used less frequently.

[0083] Based on the above data processing method, this disclosure also provides a data processing apparatus, which has the same technical features and effective effects as the above data processing method. The following will be combined with... Figure 4 The device is described in detail.

[0084] Figure 4 A schematic block diagram of a data processing apparatus according to an embodiment of the present disclosure is 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 respond to a user performing a first operation on the display interface based on a first prompt message, controlling the display interface to switch to a first interface, and acquiring first inventory data, which represents the inventory data of at least one inventory item at a first moment. In one embodiment, the inventory data acquisition module 410 can be used to perform the operation S210 described above, which will not be repeated here.

[0087] The operation control activation module 420 is used to activate the control on the first interface for performing the second operation in response to the first inventory data meeting a first preset condition. 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 repeated here.

[0088] The target information determination module 430 is used to respond to the user clicking the control and start executing the second operation. Based on the first inventory data and the extraction probability of the inventory items, it determines the first target information corresponding to the user. The first target information represents the result of the user extracting the inventory items. In one embodiment, the target information determination module 430 can be used to execute the operation S230 described above, which will not be repeated here.

[0089] The prompt message generation module 440 is used to switch the first interface to the second interface in response to the first target information meeting the second preset condition and the user completing the second operation, and to generate a second prompt message on the second interface. The second prompt message is used to indicate the existence of target inventory data corresponding to the user. In one embodiment, the prompt message generation module 440 can be used to perform the operation S240 described above, which will not be repeated here.

[0090] According to embodiments of this disclosure, any multiple modules among the inventory data acquisition module 410, operation control activation module 420, target information determination module 430, and prompt information generation module 440 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module. According to embodiments of this disclosure, at least one of the inventory data acquisition module 410, operation control activation module 420, target information determination module 430, and prompt information generation module 440 can be at least partially implemented as hardware circuitry, 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-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in a suitable combination of any of these. 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 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.

[0091] Figure 5 A block diagram schematically illustrates an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure.

[0092] like Figure 5 As shown, an 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 portion 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include 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] RAM 503 stores various programs and data required for the operation of electronic device 500. Processor 501, ROM 502, and RAM 503 are interconnected via bus 504. Processor 501 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 502 and / or RAM 503. It should be noted that programs may also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.

[0094] According to embodiments of this disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to a bus 504. The electronic device 500 may also include one or more of the following components connected to the input / output (I / O) interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 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 disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 510 as needed so that computer programs read from it can be installed into the storage section 508 as needed.

[0095] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0096] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 502 and / or RAM 503 and / or one or more memories other than ROM 502 and RAM 503 described above.

[0097] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods provided in the embodiments of this disclosure.

[0098] When the computer program is executed by the processor 501, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0099] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 509, and / or installed from a removable medium 511. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0100] In such an embodiment, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by processor 501, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0101] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0103] Those skilled in the art will understand that the features described in the various embodiments of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments of this disclosure can be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0104] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A data processing method, characterized in that, include: In response to a user performing a first operation on the display interface based on a first prompt message, the display interface is controlled to switch to the first interface, and first inventory data is obtained, wherein the first inventory data represents the inventory data of at least one inventory item at a first moment; In response to the first inventory data meeting a first preset condition, the control on the first interface for performing a second operation is activated, wherein the first preset condition indicates that the inventory data is greater than a first preset threshold. In response to the user clicking the control and starting to execute the second operation, based on the first inventory data and the extraction probability of the inventory items, first target information corresponding to the user is determined, and the first target information represents the result of the user extracting the inventory items; In response to the first target information satisfying the second preset condition and the user completing the second operation, the first interface is switched to the second interface, and a second prompt message is generated on the second interface. The second prompt message is used to indicate that there is target inventory data corresponding to the user. In response to the first inventory data not meeting the first preset condition, the control is disabled; In response to the first target information not meeting the second preset condition and the user completing the second operation, a fourth prompt message is generated, which is used to prompt the user that the target inventory data has not been retrieved. In response to the user clicking the control and starting the second operation, the method determines the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, including: In response to the user starting to perform the second operation, based on the first inventory data and the extraction probability of the inventory items, the second target information of the user under the first inventory data is determined, and the second inventory data is obtained, wherein the second inventory data represents the 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 meeting a third preset condition, the second target information is set as the first target information, wherein the third preset condition indicates that the inventory data is greater than a second preset threshold.

2. The data processing method according to claim 1, characterized in that, The step of responding to the user clicking the control and starting to execute the second operation, and determining the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, further includes: In response to the second inventory data not meeting the third preset condition but meeting the fourth preset condition, the corresponding inventory data in the second target information is replaced to obtain the first target information. The fourth preset condition indicates that the inventory data used for replacement is greater than the third preset threshold.

3. The data processing method according to claim 2, characterized in that, The data processing method further includes: In response to the second inventory data not meeting the third preset condition and not meeting the fourth preset condition, the second operation is terminated, and a third prompt message is generated. The third prompt message is used to indicate that there is no target inventory data corresponding to the user in the second inventory data.

4. The data processing method according to claim 1, characterized in that, The step of responding to the user clicking the control and starting to execute the second operation, and determining the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, further includes: 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 user's feature data.

5. A data processing apparatus, characterized in that, include: The inventory data acquisition module is used to respond to a user performing a first operation on the display interface based on a first prompt message, control the display interface to switch to the first interface, and acquire first inventory data, wherein the first inventory data represents the inventory data of at least one inventory item at a first time. The operation control activation module is used to activate the control on the first interface for performing the second operation in response to the first inventory data meeting the first preset condition. The first preset condition indicates that the inventory data is greater than the first preset threshold. The target information determination module is used to respond to the user clicking the control and starting to execute the second operation, and determine the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items. The first target information represents the result of the user extracting the inventory items. The prompt information generation module is used to switch the first interface to the second interface in response to the first target information meeting the second preset condition and the user completing the second operation, and to generate a second prompt information on the second interface. The second prompt information is used to indicate that there is target inventory data corresponding to the user. The operation control activation module is also used to disable the control in response to the first inventory data not meeting the first preset condition; The prompt message generation module is also used to generate a fourth prompt message in response to the first target information not meeting the second preset condition and the user completing the second operation. The fourth prompt message is used to prompt the user that the target inventory data has not been retrieved. In response to the user clicking the control and starting the second operation, the method determines the first target information corresponding to the user based on the first inventory data and the extraction probability of the inventory items, including: In response to the user starting to perform the second operation, based on the first inventory data and the extraction probability of the inventory items, the second target information of the user under the first inventory data is determined, and the second inventory data is obtained, wherein the second inventory data represents the 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 meeting a third preset condition, the second target information is set as the first target information, wherein the third preset condition indicates that the inventory data is greater than a second preset threshold.

6. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs. The characteristic feature is 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 4.

7. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 4.

8. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Lottery drawing management method and device, computer equipment and storage medium

    CN115271817A

  • Activity configuration method and device, computer equipment and computer readable storage medium

    CN116664191A