Product distribution control method and device, equipment and medium

By allocating and synchronizing inventory information in the product distribution control system, the fuse module is used for inventory inquiry and interception, and the lack of real -time monitoring and automated early warning in existing technologies has been solved. It has reduced the loss of corporate funds and improved the user experience.

CN119379355APending Publication Date: 2025-01-28CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411439476.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

The existing technology lacks real-time monitoring and automated early warning and interception mechanisms before the risk of over-issuance of inventory occurs, and cannot take effective measures in a timely manner to prevent over-issuance of inventory.

Method used

By configuring the product inventory information and synchronize the inventory information to the product inventory secondary confirmation module and product promotional module; when receiving the product distribution request, the fuse module sends out the inventory query request through the activity number to determine whether the inventory is sufficient; if the inventory Pinded, implement product collection qualification verification, and decide whether to distribute the product based on the verification results; after distribution, check the inventory status; if the inventory is lower than the preset threshold, generate the inventory super warning mark, and perform the inventory interception operation.

Benefits of technology

The real -time monitoring of the inventory status during the distribution process of the product was realized, and the warning of the inventory state before the distribution of the distribution was avoided before the distribution of the distribution. The mechanism intercepted the distribution request in time to prevent the occurrence of an over -issuing accident.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119379355A_ABST
    Figure CN119379355A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing and the field of financial science and technology, and discloses a product distribution control method, and the method comprises the steps: configuring product inventory information, and synchronizing the inventory information to a product inventory confirmation module and a product promotion module; when a product distribution request is received, an inventory query request is sent out according to the activity number through the fuse module, and the current inventory state is returned and judged; when the inventory is sufficient, product receiving qualification verification is executed, and whether product distribution is carried out or not is determined; determining inventory state update after distribution and checking the inventory state; and when the inventory is lower than a preset threshold value, generating an inventory over-sending early warning mark, and executing an inventory interception operation. In the product distribution process, the inventory state is monitored in real time, and early warning can be carried out before overdelivery. Through verification of the fuse module and updating and verification of the inventory state, accuracy of the inventory state before each distribution operation is ensured, and inventory overdelivery caused by program vulnerabilities or high-concurrency requests is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of data processing technology and financial technology, and in particular to a product distribution control method, device, equipment and storage medium. Background Art

[0002] With the rapid development of Internet technology, e-commerce platforms and enterprises use online promotional activities (such as flash sales, lucky draws, etc.) to increase user activity and attract new customers. These promotional activities are usually accompanied by the distribution of prizes, aiming to promote user purchasing behavior and platform traffic growth through discounts or free goods. In the financial field, these promotional activities are particularly reflected in credit card points redemption, insurance product promotion and other scenarios, attracting user participation by giving away prizes or discounts.

[0003] However, in actual operation, the risks of prize inventory management are gradually exposed. Since promotional activities usually attract a large number of users in a short period of time, companies are prone to over-issuance of prize inventory due to technical problems, system design defects, or loopholes. Especially in the financial field, over-issuance of prizes or gift cards will not only cause financial losses to the company, but also affect customer experience, thereby damaging the company's brand image.

[0004] Traditional prize inventory management methods mainly rely on manual inspections after the event ends, and offline regular statistics are conducted to see whether the number of prizes issued matches the actual inventory. This approach is often delayed and cannot be controlled in a timely manner when over-issuance occurs. When over-issuance is discovered, it usually has already caused damage to the user experience, leading to user complaints. Especially in the financial field, this lag will cause companies to face more serious economic losses.

[0005] Due to the errors in manual inspection, traditional prize inventory management is difficult to monitor inventory changes in real time, especially in large-scale promotional activities. The system's immediate response capability is insufficient and often cannot cope with high-concurrency operations. This inaccurate processing method, especially in high-frequency transactions and credit card points management scenarios in the financial field, can easily lead to over-issuance of prizes and uncontrollable results.

[0006] Existing prize inventory management technology lacks prevention mechanisms for abnormal events and real-time risk control measures. Since there is no automated inventory monitoring and interception mechanism, once there is a loophole or program error in the system, the over-issuance of prizes cannot be immediately blocked. This deficiency will increase the potential risks of enterprises in financial promotion activities, thereby affecting the overall operational benefits.

[0007] When the prize inventory is over-issued, the company has to cancel user orders or refuse to issue prizes, which directly damages the user experience. Especially in the financial industry, user trust and experience are crucial. Over-issuance of prizes will lead to a large number of complaints and a decline in brand trust, which not only affects the company's image, but may also bring legal risks. Summary of the invention

[0008] The main purpose of the present invention is to provide a product distribution control method, device, equipment and storage medium, aiming to solve the technical problem that the existing technology lacks real-time monitoring and automatic early warning interception mechanism before the risk of inventory over-issuance occurs, and cannot take effective measures in time to prevent inventory over-issuance.

[0009] To achieve the above object, the present invention provides a product distribution control method, comprising:

[0010] Configure product inventory information in the background inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0011] When the product promotion module receives a product distribution request of a target promotion activity, the fuse module sends an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity;

[0012] The product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status;

[0013] If the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and decides whether to perform a product distribution operation based on the verification result;

[0014] If it is determined to perform the product distribution operation, sending an inventory status update notification to the product inventory secondary confirmation module through the product promotion module;

[0015] The product inventory secondary confirmation module executes an inventory status update operation and verifies whether the inventory status after distribution is sufficient upon receiving an inventory status update notification;

[0016] If the product inventory after distribution is sufficient, the inventory deduction operation and product distribution operation will be executed; if the product inventory after distribution is insufficient, the product distribution operation will be stopped and the insufficient inventory will be prompted;

[0017] After executing the product distribution operation and the inventory deduction operation, checking the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module;

[0018] If it is detected that the product inventory is lower than the set safety inventory threshold, an inventory over-issuance warning mark for the target promotion activity is generated;

[0019] The fuse module performs an inventory interception operation according to the over-issuance warning mark to intercept subsequent product distribution requests for the target promotion activity.

[0020] Furthermore, to achieve the above object, the present invention provides a product distribution control device, comprising:

[0021] A backstage inventory processing module, used to configure product inventory information in the backstage inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0022] A product promotion module, configured to send an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity through the fuse module when the product promotion module receives a product distribution request of the target promotion activity;

[0023] A product inventory secondary confirmation module, which is used for the product inventory secondary confirmation module to return the current inventory status of the target promotion activity, and to determine whether the inventory is sufficient according to the current inventory status through the fuse module;

[0024] A qualification verification module, used to perform a product collection qualification verification operation through the product promotion module if the inventory is sufficient, and decide whether to perform a product distribution operation according to the verification result;

[0025] An inventory status update module, configured to send an inventory status update notification to the product inventory secondary confirmation module through the product promotion module if it is determined to perform a product distribution operation;

[0026] The inventory status secondary checking module is used for the product inventory secondary confirmation module to perform an inventory status update operation and verify whether the inventory status after distribution is sufficient when receiving an inventory status update notification;

[0027] The product distribution confirmation module is used to execute the inventory deduction operation and product distribution operation if the product inventory after distribution is sufficient; if the product inventory after distribution is insufficient, the product distribution operation is stopped and the insufficient inventory is prompted;

[0028] A product distribution execution module, which is used to check the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module after executing the product distribution operation and the inventory deduction operation;

[0029] An over-issuance warning mark module is used to generate an inventory over-issuance warning mark for the target promotion activity if it is detected that the product inventory is lower than a set safety inventory threshold;

[0030] A fuse module is used to perform an inventory interception operation according to the over-issuance warning mark through the fuse module to intercept subsequent product distribution requests of the target promotion activity.

[0031] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer device, which includes a memory, a processor, and a product distribution control program stored in the memory and executable on the processor, and the product distribution control program, when executed by the processor, implements the steps of the product distribution control method as described above.

[0032] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a product distribution control program is stored, and when the product distribution control program is executed by a processor, the steps of the product distribution control method as described above are implemented.

[0033] Beneficial effects: The present invention relates to the fields of data processing technology and financial technology, and discloses a product distribution control method, which configures product inventory information and synchronizes the inventory information to a product inventory confirmation module and a product promotion module; when a product distribution request is received, an inventory query request is issued according to the activity number through a fuse module, and the current inventory status is returned and judged; when the inventory is sufficient, the product collection qualification verification is performed to determine whether to distribute the product; the inventory status is updated after distribution and the inventory status is checked; when the inventory is lower than a preset threshold, an inventory over-issuance warning mark is generated, and an inventory interception operation is performed. The present invention can provide an early warning before over-issuance by monitoring the inventory status in real time during the product distribution process. Through the verification of the fuse module and the update and verification of the inventory status, the accuracy of the inventory status before each distribution operation is ensured, and the over-issuance of inventory caused by program loopholes or high concurrent requests is avoided. Finally, the distribution request is intercepted in time through the early warning mechanism to prevent the occurrence of over-issuance accidents. The reliability and response speed of inventory management are effectively improved, the capital loss of the enterprise is reduced, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0035] Figure 1 A schematic diagram of an application environment of a product distribution control method in an embodiment of the present invention;

[0036] Figure 2 It is a flow chart of an embodiment of a product distribution control method of the present invention;

[0037] Figure 3 It is a functional module schematic diagram of a preferred embodiment of the product distribution control device of the present invention;

[0038] Figure 4A schematic diagram of the structure of a computer device in one embodiment of the present invention;

[0039] Figure 5 FIG. 4 is another schematic diagram of the structure of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0041] The product distribution control method provided by the embodiment of the present invention can be applied in Figure 1 In the application environment, the user end communicates with the server end through the network. The server end can configure product inventory information through the user end, and synchronize the inventory information to the product inventory confirmation module and the product promotion module; when receiving a product distribution request, the fuse module sends an inventory query request according to the activity number, returns the current inventory status and makes a judgment; when the inventory is sufficient, performs product collection qualification verification to decide whether to distribute the product; determines that the inventory status is updated after distribution and checks the inventory status; generates an inventory over-issuance warning mark when the inventory is lower than the preset threshold, and performs an inventory interception operation. The present invention can provide an early warning before over-issuance by monitoring the inventory status in real time during the product distribution process. Through the verification of the fuse module and the update and verification of the inventory status, the accuracy of the inventory status before each distribution operation is ensured, and the over-issuance of inventory caused by program vulnerabilities or high concurrent requests is avoided. Finally, the distribution request is intercepted in time through the early warning mechanism to prevent the occurrence of over-issuance accidents. The reliability and response speed of inventory management are effectively improved, the capital loss of the enterprise is reduced, and the user experience is improved. Among them, the user end can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server end can be implemented by an independent server or a server cluster composed of multiple servers. The present invention is described in detail below through specific embodiments.

[0042] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of a product distribution control method provided by the present invention. It should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0043] like Figure 2 As shown, the product distribution control method proposed by the present invention includes the following steps:

[0044] S10, configuring product inventory information in the background inventory processing module, and synchronizing the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0045] In this embodiment, the configuration of product inventory information refers to the system administrator or the automated system setting the initial inventory quantity, product number, inventory restriction conditions and other related information of each product according to the actual inventory situation in the background inventory processing module. This operation is usually input or batch imported through the system's user interface to ensure the accuracy and completeness of the inventory data. The content of the inventory information includes detailed information such as the unique identification, name, total inventory, current available inventory, etc. of the product. This can be done through the database configuration tool. The inventory information is persisted in the database and is regularly updated or manually modified in the system background. Users can enter or update inventory information through the background interface, and the system automatically stores the information in the specified database table to ensure the consistency of the inventory information throughout the system.

[0046] Synchronizing inventory information to the product inventory secondary confirmation module is to ensure the consistency of inventory data between multiple systems. This module serves as a secondary verification layer to verify the current inventory situation again before distributing products to avoid inventory information asynchronization caused by program errors or delays. Synchronization refers to transmitting product inventory information to the secondary confirmation module through a data interface or message queue, so that it can obtain updated inventory data in real time or regularly. Data is transmitted through an interface or API, and the background inventory processing module sends inventory data to the product inventory secondary confirmation module regularly or in real time to ensure that the inventory information of this module is consistent with the main database. Data synchronization can be performed through a message queue or HTTPAPI. After the message is sent successfully, the secondary confirmation module will update its internal inventory status information and keep it synchronized with the actual inventory.

[0047] Synchronizing inventory information to the product promotion module ensures that when users participate in promotional activities, the system can make accurate decisions based on the latest inventory status. This module interacts directly with users and controls the distribution and collection of products through inventory information. Synchronization refers to pushing inventory information to the promotion module through an internal communication mechanism, so that it can obtain accurate inventory data in real time during the execution of the activity. The inventory processing module transmits inventory data to the product promotion module through an internal message push mechanism or a database update mechanism. This process can be implemented through database triggers and event-driven mechanisms to ensure that the promotion module can obtain the latest inventory information in real time at any time, thereby avoiding over-issuance or insufficient inventory.

[0048] Example: In the financial sector, accurate inventory management is crucial for promotional activities such as points redemption, product rebates, or insurance product giveaways. For example, when a bank conducts a points redemption activity, users can redeem specific products with their points. At this point, the backend inventory processing module configures the inventory quantity of redeemable products and synchronizes it to the promotion system and secondary confirmation module. Through real-time data synchronization and inventory confirmation, the system can ensure the accuracy of product inventory when users submit redemption applications, avoid over-issuance issues, and ensure user experience and corporate reputation.

[0049] By synchronizing the backend inventory information to the secondary confirmation module and the promotion module, the problem of overstocking caused by inconsistent data can be effectively prevented. Before product distribution, the secondary confirmation module can be used for re-verification to avoid corporate financial losses caused by abnormal inventory. At the same time, after the inventory information is synchronized to the promotion module, it can ensure that users can accurately collect products during promotion activities, greatly improving the reliability and operational efficiency of the system.

[0050] S20, when the product promotion module receives a product distribution request of a target promotion activity, the fuse module sends an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity;

[0051] In this embodiment, the product promotion module is an interface for users to interact with the system. When a user participates in a promotional activity, he submits a product distribution request, and the system receives the request through the product promotion module. The request usually includes the activity number, user information, and the number of products requested. The product promotion module processes by capturing the user's operation and passing the request to the next step. In the implementation process, the product promotion module receives the user's product distribution request through HTTP requests, message queues, or other communication protocols. The request contains the specific promotional activity information in which the user participates, and is stored in the cache or temporary database of the promotion module, ready for subsequent processing.

[0052] The function of the fuse module is to prevent the system from overissuing in high concurrency or abnormal situations. It extracts the activity number of the target promotion activity from the user's distribution request as the basis for subsequent inventory query. The activity number is the information that uniquely identifies a promotion activity and is used to distinguish different activities and products. After receiving the request from the promotion module, the fuse module first extracts the activity number of the target promotion activity from the request parameters. Through the internal verification mechanism, the validity of the number is confirmed, and then an inventory query request is generated. The extracted activity number can be completed through the HTTP parameter of the request or the data field in the message, and is encapsulated in the subsequent query request.

[0053] After the fuse module extracts the activity number, it needs to send an inventory query request to the product inventory secondary confirmation module. The function of this module is to perform secondary confirmation of the product inventory status to prevent the system from having inventory inconsistencies due to program errors or concurrency. The inventory query request contains information such as the activity number, request initiation time, and requested product quantity. During the implementation process, the fuse module sends a query request to the product inventory secondary confirmation module through a preset communication protocol (such as RESTful API, RPC call, or message queue). The request carries the activity number of the target promotion and relevant information of the product distribution request, such as request time, product ID, etc. After receiving the request, the inventory secondary confirmation module will query the inventory information in the inventory database or cache and return the current inventory status.

[0054] Example description: In the point redemption promotion in the financial field, users can use points to redeem goods. The promotion module receives the user's point redemption request, and the fuse module performs inventory checks based on the activity number of each promotion. During the point redemption process, the inventory secondary confirmation module ensures that the product redeemed by the user has sufficient inventory through inventory query. This can not only avoid over-issuance of points, but also ensure the stability of the system under high concurrency conditions, providing users with a smooth redemption experience.

[0055] The fuse module parses the activity number when receiving a product distribution request and sends an inventory query request to the inventory secondary confirmation module, which can effectively prevent inventory over-issuance caused by high system concurrency or abnormal conditions. The fuse module plays a protective role before inventory query, ensuring that the inventory status is strictly confirmed before product distribution, improving the stability and reliability of the system. At the same time, under the uniqueness of the activity number, the system can effectively distinguish the inventory status of different promotional activities and ensure the consistency of inventory information.

[0056] S30, the product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status;

[0057] In this embodiment, the function of the product inventory secondary confirmation module is to verify the product inventory status and return the result. The module obtains the current inventory status of the target promotion by querying the product inventory database. The inventory status includes the specific available inventory quantity and whether the issuance conditions are met. This technical feature ensures the accuracy and timeliness of the inventory status to prevent over-issuance caused by data delays or errors.

[0058] After receiving the inventory query request, the product inventory secondary confirmation module obtains the inventory information in real time by internally calling the inventory database or the data in the cache. Then, the module encapsulates the inventory status into an inventory status response message and returns it to the fuse module. The inventory status usually includes the current available inventory quantity, whether the distribution conditions are met, the inventory query timestamp, etc.

[0059] After receiving the current inventory status returned by the product inventory secondary confirmation module, the fuse module parses the inventory status. Based on the available inventory quantity in the inventory status and the required quantity in the distribution request, the fuse module determines whether the current inventory is sufficient to meet the distribution request. This judgment process is crucial because it determines whether the subsequent distribution process can continue.

[0060] The fuse module parses the inventory status information returned from the secondary confirmation module and extracts the available inventory quantity. Then, it compares this quantity with the product distribution quantity requested by the user. If the available inventory is greater than or equal to the requested quantity, it is considered that the inventory is sufficient and the fuse module allows the distribution operation to continue; if the available inventory is insufficient, the fuse module prevents further distribution and returns a prompt indicating insufficient inventory. This process is implemented through comparison operations, which are usually completed through simple conditional judgments in the background business logic.

[0061] Example description: In the financial points redemption system, after the user submits a points redemption request, the system obtains the inventory status of the current redemption product through the inventory secondary confirmation module. If the inventory status of the product indicates that the stock is sufficient, the fuse module will allow the user to continue the redemption process, otherwise it will prompt the user that the current stock is insufficient. This design can ensure that the inventory status of the product is always monitored during the points redemption activity, preventing users from being unable to complete the redemption due to insufficient stock, maintaining user satisfaction and the normal operation of the system.

[0062] Through the inventory status returned by the product inventory secondary confirmation module, the system can determine in real time whether the current inventory is sufficient to support the user's distribution request, avoiding the risk of over-issuance of inventory. The fuse module plays a protective role when parsing the inventory status and making judgments, ensuring that product distribution operations are allowed to continue only when there is sufficient inventory. This not only improves the accuracy of inventory management, but also enhances the system's ability to cope with high-concurrency requests, reducing system pressure and user complaints caused by insufficient inventory.

[0063] S40, if the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and determines whether to perform a product distribution operation according to the verification result;

[0064] In this embodiment, when the product inventory secondary confirmation module verifies that the current inventory is sufficient through the fuse module, the system will enter the product collection qualification verification stage. This step is to ensure that only qualified users can collect products and prevent unqualified users from collecting them.

[0065] The system first determines whether the stock is sufficient based on the stock verification results of the fuse module. This judgment is completed through simple logical comparison. Once the stock is sufficient, the system will enter the qualification verification stage.

[0066] Product collection qualification verification is to ensure that the user meets the participation conditions of the target promotion. Qualification verification usually includes verifying the user's identity and whether the user meets the requirements of the promotion (such as age, region, historical participation times, etc.). This verification step prevents unqualified users from collecting products and ensures the validity of the activity rules. The product promotion module receives relevant information from the user (such as user ID, account status, user participation history, etc.) and compares this information with the activity conditions. The comparison operation usually involves querying user information, historical transaction records, or other systems in the database to ensure that the user's identity and participation qualifications meet the activity requirements. If all conditions are met, the system records the verification as passed, otherwise it prompts the user that the conditions are not met.

[0067] After the qualification verification is completed, the system decides whether to distribute the product based on the verification results. If the user passes the qualification verification and the activity conditions are met, the system will distribute the product; if not, the system will terminate the distribution operation and prompt the user that the qualifications are not met. The system will make judgments based on the verification results. Through simple conditional judgment statements (such as "if" statements), if the verification passes, the product distribution process will be entered, otherwise the user prompt information will be returned. The system may call the distribution operation function or interrupt the current process to prevent the product from being distributed to unqualified users.

[0068] Example description: In the financial field, banks or insurance companies often carry out points redemption activities or gift giving activities. By verifying whether the user is eligible through the promotion module, it can be ensured that only qualified users can participate. For example, when redeeming bank points for gifts, the system first verifies whether the user is a VIP customer of the bank, whether the account status is normal, and whether the points requirements are met. After these verifications, the system decides whether to redeem the gift based on the results. This can effectively avoid the problem of over-issuance of points due to incorrect verification, and maintain the fairness and compliance of financial activities.

[0069] Through product qualification verification, we ensure that users participating in promotional activities meet the preset conditions, avoiding the situation where unqualified users receive products. This not only improves the fairness and standardization of promotional activities, but also reduces unnecessary expenses of enterprises during the activities. After qualification verification, the system can flexibly decide whether to distribute products based on the verification results, avoiding the waste of system resources and optimizing the user experience.

[0070] S50, if it is determined to perform the product distribution operation, sending an inventory status update notification to the product inventory secondary confirmation module through the product promotion module;

[0071] In this embodiment, the system has passed the product collection qualification verification and decided to proceed with the product distribution operation. At this point, the system confirms that the user meets the distribution conditions and the product inventory is sufficient, so it decides to continue the product distribution process. This operation ensures that the product distribution stage can only be entered if the user is qualified and the inventory is sufficient. The system will make decisions based on the combined results of qualification verification and sufficient inventory status. If the user meets the distribution conditions, the system will control the flow through the built-in business logic to enter the product distribution operation stage. At this point, the system will start the relevant operations of the product distribution process.

[0072] When the system decides to distribute a product, the product promotion module needs to send an inventory status update notification to the product inventory secondary confirmation module. The purpose of this notification is to inform the inventory secondary confirmation module that the product distribution operation is about to take place and to ask it to prepare to update the inventory information. The inventory status update notification contains the product information that needs to be distributed and the information of the target promotion activity so that the inventory secondary confirmation module can identify and update the relevant inventory data. The product promotion module sends the inventory status update notification through a preset communication protocol (such as REST API, message queue, or remote procedure call). The notification message usually contains data such as the number of the target promotion activity, product ID, distribution quantity, etc. After receiving the notification, the product inventory secondary confirmation module will prepare to update the inventory information to ensure the synchronous update of the inventory data after the distribution is completed.

[0073] Example: In the bank's points redemption system, when a user submits a points redemption request and passes verification, the system will perform product distribution operations. Prior to this, the bank's promotion module needs to send an inventory status update notification to the inventory secondary confirmation module to inform the product information and quantity to be distributed. The purpose of this is to allow the inventory system to prepare and update inventory in advance before the actual distribution of products, ensuring that the consistency and accuracy of inventory data are guaranteed in high concurrency situations, and avoiding over-issuance or insufficient inventory.

[0074] By sending inventory status update notifications before product distribution operations, the inventory secondary confirmation module can receive inventory change information in a timely manner, thereby maintaining the accuracy and consistency of inventory data. This can avoid the problem of asynchronous or delayed inventory data after distribution, ensuring the smoothness and efficiency of the entire promotion process. The inventory status update notification mechanism improves the stability and responsiveness of the system and reduces errors in the inventory management process.

[0075] S60, upon receiving the inventory status update notification, the product inventory secondary confirmation module performs an inventory status update operation and verifies whether the inventory status after distribution is sufficient;

[0076] In this embodiment, the product inventory secondary confirmation module starts to update the inventory when it receives the inventory status update notification issued by the product promotion module. The inventory status update notification is mainly used to inform the inventory secondary confirmation module that the product distribution operation is about to take place, requiring it to make corresponding adjustments to the inventory. The notification generally contains information such as the number of products distributed, the target promotion activity number, etc., so that the inventory secondary confirmation module can identify specific inventory items. After receiving the inventory status update notification, the product inventory secondary confirmation module will parse the notification message and extract information related to the inventory, such as product number, distribution quantity, promotion activity number, etc. Next, the system prepares to update the inventory data in the database to reflect the inventory changes that are about to be distributed.

[0077] The core of the inventory status update operation is to update the inventory quantity through the inventory secondary confirmation module to reflect the fact that the product is about to be distributed. The purpose of the update operation is to ensure that the inventory quantity recorded in the system is consistent with the actual operation to prevent subsequent over-issuance or under-inventory. The inventory status update operation will reduce the inventory quantity of the corresponding product according to the number of product distributions. The inventory secondary confirmation module calls the database operation function based on the distribution quantity information in the notification to update the inventory quantity in the inventory table. The specific operations include locking the inventory records that need to be updated, reducing the corresponding amount of inventory, and writing the updated inventory status back to the database. In order to avoid concurrency issues, the system may use database transactions or optimistic locking mechanisms to ensure the accuracy and consistency of inventory updates.

[0078] After the inventory status is updated, the system needs to verify whether the distributed inventory is still sufficient to ensure that subsequent promotional activities can proceed smoothly. This verification step is crucial to prevent insufficient inventory after multiple distribution operations. If the verification fails, the system will block subsequent distribution requests and prompt insufficient inventory. After the inventory is updated, the inventory secondary confirmation module verifies whether the inventory status meets the next distribution request by reading the updated inventory quantity. The system determines whether the inventory is sufficient through simple logical judgments (such as whether the inventory quantity is greater than zero). If the inventory quantity is less than zero or insufficient to meet future requests, the system will mark the inventory as insufficient and may generate an over-issuance warning mark to prevent subsequent operations.

[0079] By combining inventory status updates and verification mechanisms, the system can maintain the accuracy and consistency of inventory data before and after product distribution. The inventory secondary confirmation module can effectively prevent over-issuance by performing inventory update operations and verifying whether the inventory is sufficient. At the same time, this operation ensures that the system can still accurately manage inventory under high concurrency conditions, avoiding operational risks caused by inaccurate inventory data.

[0080] S70, if the product inventory after distribution is sufficient, then perform the inventory deduction operation and product distribution operation; if the product inventory after distribution is insufficient, then stop the product distribution operation and prompt insufficient inventory;

[0081] In this embodiment, after the inventory status is updated, the system will determine whether the inventory after distribution is sufficient. If after verification, the product inventory still meets the requirements of the subsequent distribution operation, the system will perform an inventory deduction operation and perform the actual distribution of the product at the same time. The inventory deduction operation means that the system subtracts the number of products received by the user from the current inventory to ensure that the inventory record is consistent with the actual distribution situation.

[0082] Inventory deduction operations are usually implemented by calling database update functions. The specific process is to first lock the inventory record, then deduct the distribution quantity, and write the updated inventory status back to the database. The distribution operation is the responsibility of the product promotion module, which executes the actual product distribution process, such as shipping, generating orders, etc. Inventory deduction operations and product distribution operations must be closely integrated to ensure the accuracy of inventory data.

[0083] If the inventory status verification finds that the stock after distribution is insufficient, the system will interrupt the distribution operation and will not continue the inventory deduction or product distribution process. At the same time, the system will prompt the user that the current product inventory is insufficient to prevent subsequent requests from continuing to try to distribute the product. This mechanism can prevent over-issuance and user complaints caused by insufficient inventory.

[0084] When the system finds that the inventory is insufficient, the distribution process will be forced to terminate. The system determines whether to continue the distribution operation by checking the inventory status. If the inventory is insufficient, the system will call the interruption operation function, stop subsequent operations, and return the "Insufficient Inventory" prompt message through the user interface or API. At this time, the inventory data will not change, and the distribution operation will not be executed, ensuring that the system will not over-issue when the inventory is insufficient.

[0085] Example description: In the bank's points redemption scenario, when a user submits a points redemption request, the system will check the inventory status of the redemption product in real time. If the inventory is sufficient, the system will deduct the corresponding inventory and complete the redemption product issuance process. If the system detects insufficient inventory, it will immediately stop the redemption operation and prompt the user that the current product is out of stock, avoiding user dissatisfaction caused by over-issuance of points or redemption failures. This process ensures that the bank can accurately manage inventory in high-concurrency points redemption activities and effectively prevent transaction failures caused by insufficient inventory.

[0086] By reconfirming the inventory status after distribution and performing inventory deduction operations, the system can ensure the accuracy of each product distribution operation and the consistency of inventory. It prevents erroneous operations when the inventory is over-issued or insufficient, especially in a high-concurrency environment. Through timely inventory verification and feedback, the system can dynamically adjust the distribution process and improve overall stability and reliability.

[0087] S80, after executing the product distribution operation and the inventory deduction operation, checking the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module;

[0088] In this embodiment, after the product is successfully distributed and the inventory deduction operation is performed, the system will update the inventory status to ensure that the inventory quantity is consistent with the actual number of products distributed. This step means that after the actual distribution of the product and the reduction of inventory data are completed, the system needs to reconfirm the inventory status to ensure that the next promotional activities can accurately understand the remaining inventory situation and prevent over-issuance or insufficient inventory. The product promotion module first completes the actual product distribution operation, such as shipping to the user or generating electronic vouchers, and at the same time calls the background database to perform inventory deduction operations. The system deducts the corresponding number of products from the inventory and updates the inventory records. After that, the system will proceed to the next inventory check.

[0089] The product inventory reconfirmation module is responsible for ensuring the accuracy and consistency of inventory data. The core function of the inventory reconfirmation module is to verify the inventory deduction operation in the previous step to ensure that the inventory data is not inconsistent due to system errors or concurrency issues. After the inventory deduction is completed, the reconfirmation module will perform an independent inventory check to ensure the accuracy of the inventory status. The inventory reconfirmation module verifies whether the result after inventory deduction is consistent with the system expectation by querying the inventory status data in the database or cache. The system reads the distributed inventory records, checks whether the inventory quantity is updated correctly, and ensures that the data is not interfered with by other operations. Usually, this process is achieved through database reading and comparison operations.

[0090] Check the inventory status of the target promotion to ensure that the inventory records of the activity are still accurate after the product distribution is completed. Through the inspection of the inventory reconfirmation module, the system can further confirm whether the inventory data in the promotion is consistent with the actual situation. If the inventory status is incorrect, the system will take appropriate measures according to different error conditions. The inventory reconfirmation module will check the inventory status of the target promotion in real time, and ensure that the remaining inventory after distribution is correct by comparing the latest inventory data with the inventory status before the deduction operation. If the inventory quantity is found to be inconsistent with the expectation, the system will generate a warning or error prompt, and may take recovery actions or trigger an early warning mechanism.

[0091] After executing product distribution and inventory deduction, the system performs inventory checks through the inventory secondary confirmation module to ensure that the inventory records are consistent with the actual product distribution, effectively preventing inventory record errors caused by concurrency issues, system failures or other abnormal operations.

[0092] S90, if it is detected that the product inventory is lower than the set safety inventory threshold, generating an inventory over-issuance warning mark for the target promotion activity;

[0093] In this embodiment, the system sets a safety stock threshold to prevent the risk of over-issuance or under-inventory. The safety stock threshold refers to a minimum inventory value preset in the system. When it is lower than this value, it means that the inventory may not be able to meet subsequent demand, so additional measures need to be taken to prevent risks. This step refers to the inventory secondary confirmation module checking the inventory status and finding that the current inventory is lower than the set safety stock threshold. The inventory secondary confirmation module checks the current inventory quantity after each distribution operation and compares it with the preset safety stock threshold. The system determines whether the current inventory is lower than the threshold through simple comparison operations (such as "if" statements). If it is lower than the set threshold, the system will enter the over-issuance warning process. The safety stock threshold is usually set by the administrator during system configuration and stored in a database or configuration file.

[0094] When the system finds that the inventory is lower than the safety stock threshold, the inventory secondary confirmation module generates an inventory over-issuance warning mark. This mark is used to remind the system or management personnel that the current inventory is insufficient to meet future demand and there may be a risk of over-issuance. The warning mark is a system signal that triggers subsequent interception mechanisms or other protective measures to prevent further distribution operations. When the inventory quantity is lower than the threshold, the system automatically generates an over-issuance warning mark. The mark is usually an identifier or event stored in a database or system log. The inventory secondary confirmation module creates the warning signal by calling the mark generation function. The warning mark is passed to other modules (such as the fuse module or the monitoring system) to trigger corresponding protective measures to prevent further inventory over-issuance.

[0095] By setting safety stock thresholds and generating warning marks for overstocking, the system can proactively take protective measures before inventory reaches dangerous levels to avoid overstocking or failure to meet future demand. The warning mechanism plays a key protective role in the product distribution process. Once inventory falls below the set value, the system can automatically generate a warning mark and stop subsequent distribution operations to ensure the safety and stability of inventory management. This mechanism effectively reduces the risk of overstocking and improves inventory management efficiency.

[0096] S100, executing an inventory interception operation according to the over-issuance warning mark through the fuse module to intercept subsequent product distribution requests of the target promotion activity.

[0097] In this embodiment, the fuse module is one of the protection mechanisms of the system, which is mainly used to perform corresponding protection operations when there is a risk of over-issuance of inventory. When the system generates an inventory over-issuance warning mark, the fuse module will judge whether the inventory situation has reached the over-issuance critical point based on the mark, and then take subsequent interception measures. The over-issuance warning mark is an indication signal of insufficient inventory, and the fuse module is responsible for responding to this mark. The fuse module monitors whether an over-issuance warning mark is generated in the system through an event monitoring or query mechanism. When the mark is detected, the fuse module will extract the identifier and related information of the target promotion activity from the mark, and perform subsequent operations based on this information. This process can be implemented through a real-time event-driven or timed polling mechanism to ensure that the fuse module can respond to the generation of the warning mark in a timely manner.

[0098] The core of the inventory interception operation is to prevent the system from continuing to perform product distribution operations when there is insufficient inventory or there is a risk of over-issuance. Once the fuse module confirms the inventory over-issuance warning mark, the system will immediately perform an inventory interception operation to prevent any subsequent product collection or distribution requests from entering the processing flow. The interception operation ensures that the system's inventory will not drop further and effectively prevents over-issuance from occurring. When performing an inventory interception operation, the fuse module activates an interception rule that intercepts all product distribution requests for the target promotion. The specific implementation can be achieved by interrupting the process, locking the inventory record, or pausing the API call of a certain activity. The fuse module will record the information of the interception request in the system log for subsequent management and monitoring.

[0099] When an insufficient inventory or over-issuance warning is detected, no subsequent distribution requests related to the promotion will be accepted. Subsequent product distribution requests for the target promotion will be intercepted, and the system will prevent users from continuing to collect products to avoid further over-issuance or other system anomalies caused by insufficient inventory. After the interception operation is executed, the system will comprehensively intercept distribution requests generated by the target promotion. Specific implementations may include suspending the product collection function of the promotion and prohibiting the API or front-end page from continuing to accept distribution requests from users. The fuse module may also pass this information to the user interface or related system modules to prompt users why the current product cannot continue to be distributed.

[0100] Example: In the point redemption activities in the financial field, banks will set a certain inventory of goods to meet the redemption needs of users. When the inventory is lower than the safety stock threshold, the system generates an over-issuance warning mark through the fuse module, and then stops the subsequent redemption operation of the product. For example, when the inventory of a popular gift is insufficient, the fuse module will intercept all requests related to the gift redemption to prevent users from continuing the redemption operation. This not only effectively protects the bank's inventory management system, but also avoids the problem of over-issuance of points, improving user experience and system stability.

[0101] By using the fuse module to perform inventory interception operations based on the over-issuance warning mark, the system can take proactive measures to prevent further distribution operations when inventory is insufficient or there is a risk of over-issuance. This mechanism greatly improves the security and stability of inventory management, ensuring that product distribution in promotional activities is always within a controllable range. At the same time, the inventory interception mechanism can reduce system crashes or user complaints caused by over-issuance of inventory, and maintain the image and economic interests of the company.

[0102] The present invention relates to the fields of data processing technology and financial technology, and discloses a product distribution control method, which configures product inventory information and synchronizes the inventory information to a product inventory confirmation module and a product promotion module; when a product distribution request is received, an inventory query request is issued according to an activity number through a fuse module, and the current inventory status is returned and judged; when the inventory is sufficient, product collection qualification verification is performed to determine whether to distribute the product; the inventory status is updated after distribution and the inventory status is checked; when the inventory is lower than a preset threshold, an inventory over-issuance warning mark is generated, and an inventory interception operation is performed. The present invention can provide an early warning before over-issuance by monitoring the inventory status in real time during the product distribution process. Through the verification of the fuse module and the update and verification of the inventory status, the accuracy of the inventory status before each distribution operation is ensured, and the over-issuance of inventory caused by program loopholes or high concurrent requests is avoided. Finally, the distribution request is intercepted in time through the early warning mechanism to prevent the occurrence of over-issuance accidents. The reliability and response speed of inventory management are effectively improved, the capital loss of the enterprise is reduced, and the user experience is improved.

[0103] In one embodiment, the above S20 includes:

[0104] S201, when the product promotion module receives a product distribution request, a request parameter is generated, wherein the request parameter includes an activity number and a user identifier of a target promotion activity;

[0105] S202, passing the request parameters to a fuse module, and the fuse module performs an integrity check on the received request parameters;

[0106] S203, after the integrity check passes, the fuse module constructs an inventory query request message according to the activity number, and the inventory query request message includes the activity number, the request initiation time, and the product information to be queried;

[0107] S204: Send the inventory query request message to the product inventory secondary confirmation module through a preset communication protocol.

[0108] In this embodiment, when a user submits a product collection request through the system, the product promotion module will receive the request. The request content includes the target promotion activity that the user wishes to participate in and the request information for collecting the product. The promotion module is responsible for processing the request submitted by the user and forwarding it to the fuse module for subsequent operations. The product promotion module receives the product collection request through the user's interface (such as a mobile application or a web page). The request usually contains relevant information about the target promotion activity, such as the activity number, product ID, user ID, etc. The promotion module will encapsulate the request information into a data packet and prepare to pass it to the fuse module.

[0109] The system parses the product distribution request submitted by the user into request parameters, including the activity number and user ID of the target promotion. These parameters are key information for the system to identify the user and the promotion, ensuring that subsequent inventory queries can accurately locate specific products and activities. After receiving the user request, the promotion module extracts the activity number and user ID information from it and generates request parameters. This process is usually completed by parsing the request data packet. The generated request parameters will serve as the basis for subsequent queries and verifications.

[0110] After generating the request parameters, the promotion module passes them to the fuse module. The fuse module first performs an integrity check on the received request parameters to ensure that no data is lost or tampered with during the transmission process. The integrity check is to ensure the accuracy and security of the request. After receiving the request parameters, the fuse module first confirms the integrity of the request parameters through hash verification, signature verification, etc. If the verification is successful, it indicates that the request parameters have not been damaged or tampered with during the transmission process, and the fuse module will continue to process the request. If the verification fails, the system will reject the request and return an error message.

[0111] When the integrity check succeeds, the fuse module will construct an inventory query request based on the activity number in the request. The inventory query request message is used to send a query request to the inventory secondary confirmation module to confirm the inventory status of the current promotion. The fuse module extracts the activity number based on the received request parameters and generates an inventory query request message. The message contains key information such as the activity number, product ID, request initiation time, and inventory quantity to be queried. The generated message will be used for inventory query operations to ensure the accuracy of inventory status in the subsequent product distribution process.

[0112] The fuse module sends the constructed inventory query request message to the product inventory secondary confirmation module through the preset communication protocol to confirm the inventory status of the target promotion activity. The communication protocol ensures that messages can be transmitted safely and effectively between modules. The fuse module sends the inventory query request message to the inventory secondary confirmation module through the communication protocol within the system (such as RESTAPI, message queue or remote procedure call). This module is responsible for receiving and processing the message and returning relevant inventory status information for subsequent processing. This process ensures that the inventory query request can be smoothly transmitted between different modules of the system.

[0113] In this embodiment, the system can ensure that each product distribution request is based on accurate inventory status information by processing and sending inventory query requests through the fuse module. The integrity check ensures the security of the request and avoids data tampering or erroneous transmission. The process of inventory query requests optimizes the coordination of inventory management and product distribution and reduces distribution problems caused by insufficient inventory or system delays.

[0114] In one embodiment, the above S30 includes:

[0115] S301, receiving the current inventory status information returned by the product inventory secondary confirmation module through the fuse module;

[0116] S302, parsing the current inventory status information through the fuse to extract the current inventory quantity, and extracting the quantity of products to be distributed from the product distribution request;

[0117] S303, comparing the quantity of the product to be distributed with the current inventory quantity;

[0118] S304, if the quantity of the product to be distributed is less than or equal to the current inventory quantity, it is determined that the inventory is sufficient;

[0119] S305: If the quantity of the products that need to be distributed is greater than the current inventory quantity, it is determined that the inventory is insufficient.

[0120] In this embodiment, the fuse module receives inventory status information from the product inventory secondary confirmation module, including the current inventory quantity under the promotion activity. This step ensures that the fuse module has the basic information to determine whether the inventory is sufficient. The inventory secondary confirmation module sends the current inventory status information (such as inventory quantity, product ID, activity number, etc.) to the fuse module through communication methods such as API and message queue. After receiving the information, the fuse module saves it to the memory or cache and prepares to make an inventory adequacy judgment.

[0121] The fuse module parses the inventory status information and extracts the current inventory quantity. At the same time, it extracts the number of products the user wants to receive from the initial product distribution request. These two quantities are key data for determining whether the inventory is sufficient. The fuse module extracts the inventory quantity field by parsing the received inventory status information (usually in JSON or XML format). At the same time, the fuse module also reads the user's product distribution request and extracts the product quantity information contained in the request (such as product ID, distribution quantity, etc.). This data will be used for subsequent comparison logic.

[0122] The fuse module determines whether the inventory can meet the distribution requirements by comparing the current inventory quantity with the product quantity requested by the user. If the inventory is sufficient, the system will continue to perform the distribution operation; if it is insufficient, the system will terminate the operation. The system compares the extracted inventory quantity with the user's product demand quantity through a simple comparison operation (such as if (inventory quantity>=required quantity)). If the inventory quantity is greater than or equal to the required quantity, it means that the inventory is sufficient; otherwise, the inventory is insufficient. This comparison operation is the core logic of inventory judgment.

[0123] If the quantity of the product requested by the user is less than or equal to the current inventory quantity, the fuse module will determine that the inventory is sufficient, indicating that the system can continue to process the distribution request and perform subsequent operations. In the actual system, when the fuse module determines that the inventory is sufficient, the system will allow the user's product distribution request to enter the next stage. At this time, the product promotion module may start to perform operations such as qualification verification, deducting inventory, and issuing products.

[0124] If the number of products requested by the user exceeds the current inventory, the fuse module will determine that the inventory is insufficient, indicating that the system cannot meet the current distribution request and the operation will be aborted. When the inventory is insufficient, the system will stop processing the user's product collection request and generate prompt information feedback to the user. This may include displaying "Insufficient Stock" on the front end or returning an error message through the API to inform of the insufficient inventory and avoid further distribution operations.

[0125] In this embodiment, the fuse module analyzes and compares the inventory status information, and the system can promptly and accurately determine whether the inventory is sufficient to support product distribution operations. This mechanism ensures the accuracy of inventory management and avoids the problem of over-issuance when the inventory is insufficient. At the same time, timely feedback when the inventory is insufficient can effectively reduce the user's waiting time and dissatisfaction, and improve the system's operational efficiency.

[0126] In one embodiment, the above S40 includes:

[0127] S401, extracting the identity information submitted by the user from the product distribution request, and comparing the identity information with the registration information in the user information database to verify whether the user is a registered user;

[0128] S402, querying the current status of the user account to verify whether the user account is in an abnormal state, wherein the abnormal state includes a frozen state or a locked state;

[0129] S403, verifying whether the user meets the participation conditions of the target promotion activity, wherein the participation conditions include a geographical restriction condition and an activity time period condition;

[0130] S404, obtaining the historical participation record of the user in the target promotion activity, and verifying whether the number of participations of the user has reached the number limit of the target promotion activity;

[0131] S405, decide whether to execute the product distribution operation according to the verification result. If all the verifications are passed, decide to execute the product distribution operation to the user; if any verification fails, stop executing the product distribution operation.

[0132] In this embodiment, after receiving a product distribution request, the system will first extract the user's identity information (such as user ID, mobile phone number, etc.) and compare it with the registration information in the user information database to confirm whether the user is a registered user. This is the first step in qualification verification to ensure that only registered users can participate in promotional activities. The system parses the distribution request data packet and extracts the user identity information field from it. Next, the system compares it with the registration data in the user information database through database query or API request. If the comparison is successful, the next step of verification will be continued; if the comparison fails, the system will terminate the distribution operation and return a prompt message indicating that the user is not registered.

[0133] The system verifies whether the user account is in an abnormal state, such as frozen, locked, etc., by querying the current status of the user account. Users in abnormal states will not be able to participate in promotional activities to ensure the security and compliance of the system. The system retrieves the status field of the user account from the database. Abnormal states may include account freezing, being locked, or other restricted states. If the user account is in a normal state, the system proceeds to the next step of verification; if the account is in an abnormal state, the system will stop the distribution operation and return a prompt message of account abnormality to the user.

[0134] The system needs to verify whether the user meets the conditions for participating in the promotion according to the rules of the promotion. The conditions for participating usually include geographical restrictions (for example, only users from certain countries or regions can participate) and activity time restrictions (for example, the activity must be valid within a certain time period). The system checks the promotion rules table and extracts the conditions for participating in the activity. Next, the system matches the user's geographic location with the activity geographical restrictions and checks whether the activity time period is within the allowed range. If the user meets these conditions, the next step of verification will be carried out; if not, the system stops the distribution operation and prompts the user that he cannot participate in the activity.

[0135] Some promotions may limit the number of times a user can participate, for example, each user can only receive a product once or several times. The system will check the user's historical participation record to confirm whether the user has reached the promotion's participation limit. The system retrieves the user's participation history from the event participation record database to check the number of times the user has participated in the promotion. If the user's participation number has not reached the limit, the system will allow the user to continue the distribution operation; if the number limit has been reached, the system will stop the distribution and prompt the user that he cannot continue to participate.

[0136] The system will decide whether to continue the product distribution operation based on the results of all the above verification steps. If all verifications are passed, the system will allow product distribution; otherwise, the system will terminate the distribution process and provide feedback to the user on the reason for the verification failure. The system uses logic to determine the results of all verification steps. If all conditions are met, the system generates a product distribution request and sends it to the inventory management module; if any step of the verification fails, the system terminates the operation and returns the corresponding error message. The distribution operation will be triggered based on the successful verification results.

[0137] By verifying user identity information, account status, promotion activity participation conditions and historical participation records, this embodiment enables the system to accurately identify users who meet the promotion activity rules and ensure the compliance and security of product distribution operations. This not only improves the fairness of the activity, but also effectively prevents abnormal users or illegal operations from affecting the activity. At the same time, the automated qualification verification process improves the system's processing efficiency and ensures the smooth progress of large-scale promotion activities.

[0138] In one embodiment, the above S60 includes:

[0139] S601, when the product inventory secondary confirmation module receives an inventory status update notification, determining the latest current inventory quantity before product distribution;

[0140] S602, determining the remaining inventory quantity after distribution by subtracting the number of products to be distributed from the latest current inventory quantity;

[0141] S603, determining whether the remaining inventory quantity after distribution is greater than or equal to zero;

[0142] S604, if the remaining inventory quantity after distribution is greater than or equal to zero, confirming that the inventory status after distribution is sufficient;

[0143] S605: Update the inventory status in the product inventory secondary confirmation module according to the remaining inventory quantity after distribution.

[0144] In this embodiment, when the inventory status update notification is issued, the product inventory secondary confirmation module first obtains the latest status information of the current inventory. This step is used to ensure that the system accurately obtains the current inventory quantity before the product is distributed before the inventory update. The inventory secondary confirmation module obtains the latest inventory quantity of the product before distribution by querying the inventory database or cache in the system. The system will lock the current inventory before the distribution request is issued to avoid data errors caused by concurrency. This information is extracted through the "SELECT" query operation of the database or from the real-time cache.

[0145] After obtaining the current inventory quantity, the system will calculate the remaining inventory quantity after distribution based on the number of products to be distributed in the distribution request. This calculation ensures that the system can update the inventory data after executing the product distribution. The system uses simple arithmetic operations to subtract the number of products in the distribution request from the current inventory quantity (such as remaining inventory = current inventory - distribution quantity). This calculation is usually done directly by the application layer code to ensure that the result can accurately reflect the inventory status after distribution.

[0146] The system will check the remaining inventory after distribution to determine whether there are enough products to continue distribution. This step ensures that the inventory will not be negative and prevents over-distribution. The inventory secondary confirmation module verifies whether the inventory is sufficient after distribution through conditional judgment operations (such as if (remaining inventory>=0)). If the remaining inventory is a positive number or zero, it means that the inventory is sufficient; if it is a negative number, it means that the inventory is insufficient. In this case, the system will terminate the distribution process and issue a warning.

[0147] If the inventory quantity after distribution is greater than or equal to zero, the system will confirm that the inventory status after distribution is sufficient and allow the distribution operation to continue. This confirmation process ensures that the inventory quantity is within a safe range to prevent further distribution operations from causing over-issuance. Through the previous judgment operation, the system confirms whether the inventory is sufficient. If sufficient, the system will mark the inventory status as valid and continue the subsequent distribution process. This is usually reflected through a database update operation to reflect the change in inventory status and may trigger subsequent distribution logic.

[0148] When sufficient inventory is confirmed, the system will update the inventory record based on the calculated remaining inventory quantity after distribution to ensure that the inventory data in the inventory secondary confirmation module is consistent with the actual operation. The system writes the remaining inventory quantity after distribution to the database or cache. The new inventory data is updated to the inventory management system through the UPDATE operation to ensure that the inventory records in the system are synchronized with the actual operation. This operation provides accurate inventory status for subsequent distribution and inventory inspection.

[0149] In this embodiment, the system can effectively avoid product inventory over-issuance or under-inventory through inventory status updates and inventory verification after distribution. Real-time inventory checks and updates ensure the accuracy of inventory and improve the reliability and operating efficiency of the system. At the same time, this mechanism avoids the problem of inconsistent inventory data, effectively reduces errors caused by data asynchrony, and ensures that each distribution operation is supported by accurate inventory data.

[0150] In one embodiment, in the above S70, if the product inventory after distribution is sufficient, then performing an inventory deduction operation and a product distribution operation includes:

[0151] S701, if it is confirmed that the product inventory status after distribution is sufficient, the product inventory secondary confirmation module generates an inventory deduction request, and the inventory deduction request includes product quantity information to be distributed and target promotion activity information;

[0152] S702, sending the inventory deduction request to the background inventory processing module through the product inventory secondary confirmation module;

[0153] S703, the background inventory processing module receives the inventory deduction request, and deducts a corresponding number of products from the current inventory according to the inventory deduction request;

[0154] S704, updating the inventory database through the background inventory processing module to record the inventory quantity after deduction;

[0155] S705, sending confirmation information of successful inventory deduction to the product promotion module through the background inventory processing module;

[0156] S706, the product promotion module generates a product distribution instruction according to the confirmation information of the successful inventory deduction, and the product distribution instruction includes user information, product information, distribution quantity and target promotion activity information;

[0157] S707: Execute a product distribution operation based on the product distribution instruction.

[0158] In this embodiment, when the system confirms that the inventory after distribution is sufficient, the product inventory secondary confirmation module will generate an inventory deduction request. The request contains the number of products requested by the user and the relevant promotional information to ensure that the inventory deduction operation is performed according to the correct quantity and activity information. After confirming that the inventory is sufficient, the inventory secondary confirmation module automatically generates an inventory deduction request. The request usually contains information such as product ID, promotional activity ID, and the number of products to be distributed. After the request is generated, the module will send this request to the background inventory processing module through the API or message queue to start the actual inventory update operation.

[0159] After the inventory deduction request is generated by the product inventory secondary confirmation module, it will be sent to the background inventory processing module through the system's communication mechanism (such as API or message queue). This step is the key to inventory processing and ensures that the deduction operation can be performed according to the correct request. The secondary confirmation module passes the inventory deduction request to the background inventory processing module through a preset communication protocol. This transmission process can be implemented through HTTP requests, message middleware, etc., to ensure that the data can reach the inventory processing module accurately and in a timely manner for subsequent operations.

[0160] After receiving the inventory deduction request, the backend inventory processing module will perform the actual inventory update operation according to the distribution quantity in the request and deduct the corresponding number of products. The inventory processing module extracts the number of products to be deducted and the relevant promotional information by parsing the received deduction request. Then, the inventory is actually deducted through operations on the inventory database (such as UPDATE query). This operation ensures that the inventory quantity is consistent with the distribution request to prevent over-issuance or erroneous deductions.

[0161] After the inventory deduction operation is completed, the system needs to update the latest inventory status to the inventory database to ensure data consistency. This operation records the inventory quantity after deduction to ensure that subsequent queries can accurately reflect the current inventory status. The background inventory processing module writes the inventory quantity after deduction through the "UPDATE" operation on the inventory database. This step ensures that the inventory records in the system are consistent with the actual operation. After the inventory database is updated, other modules in the system can query the latest inventory status at any time.

[0162] After the inventory deduction operation is completed, the background inventory processing module will send a confirmation message to the product promotion module to inform it that the inventory has been successfully deducted. This information ensures that the promotion module can perform subsequent distribution operations based on changes in inventory status. The background inventory processing module sends a confirmation message of successful inventory deduction to the promotion module through an API or message queue. The message contains key information such as the deducted inventory quantity and the promotion activity ID. After receiving the confirmation message, the promotion module can perform distribution operations based on the inventory status.

[0163] After receiving confirmation of successful inventory deduction, the product promotion module will generate a product distribution instruction. The instruction contains user information, product information, distribution quantity and promotion activity information to ensure that the distribution operation can be carried out accurately. The promotion module parses the inventory deduction confirmation information and generates a distribution instruction containing user ID, product ID, distribution quantity, promotion activity ID and other information. This instruction is passed to the specific distribution execution module through the internal system or external interface to start the actual product distribution operation.

[0164] Finally, the system performs the actual product distribution operation according to the generated distribution instructions to ensure that the user can receive the correct product. The system provides products or services to users according to the distribution instructions. The distribution operation can be achieved in many ways, such as online distribution of virtual goods, logistics distribution of physical products, etc. This step is the final execution part of the entire process to ensure that the system can complete the user's request.

[0165] In this embodiment, through the system's inventory deduction and product distribution operations, the system can ensure that each distribution request is processed based on the accurate inventory status. The cooperation between the inventory secondary confirmation module and the background inventory processing module ensures the real-time and accuracy of inventory data and prevents the occurrence of over-issuance or under-issuance. Through multi-module coordination, product distribution can respond to user requests in a timely manner, improving user experience and system efficiency.

[0166] In one embodiment, the above S100 includes:

[0167] S1001, the fuse module receives the over-issuance warning mark from the product inventory secondary confirmation module;

[0168] S1002, extracting a target promotion activity identifier from the over-issuance warning mark through the fuse module;

[0169] S1003, the fuse module activates the corresponding inventory interception operation according to the target promotion activity identifier to intercept subsequent product distribution requests of the target promotion activity;

[0170] S1004, generating an interception notification through the fuse module, and sending the interception notification to the product promotion module;

[0171] S1005, displaying the interception notification through the product promotion module to prompt that the product distribution request has been intercepted.

[0172] In this embodiment, when the inventory secondary confirmation module detects that the inventory is below the safety threshold, an over-issuance warning mark is generated and sent to the fuse module. This step indicates that the system has identified the risk of over-issuance of inventory. When the inventory secondary confirmation module detects insufficient inventory through the inventory monitoring mechanism, it automatically generates an over-issuance warning mark. The mark contains the identifier and inventory information of the target promotion activity. The fuse module receives this mark through the API or message queue to perform the inventory interception operation later.

[0173] The fuse module extracts the identifier of the target promotion from the received over-issuance warning mark, which is used to identify the subsequent product distribution request of the promotion. This is the key to the interception operation, ensuring that the subsequent interception action is targeted at a specific promotion. The fuse module parses the received over-issuance warning mark data packet and extracts the identifier of the target promotion. The identifier is usually the ID or unique mark of the promotion, which is used to lock the distribution request of a specific promotion. This information can be parsed and extracted in JSON or XML format.

[0174] The fuse module activates the corresponding inventory blocking mechanism based on the extracted target promotion identifier. This mechanism blocks all subsequent product distribution requests related to the promotion identifier to avoid over-issuance due to insufficient inventory. The fuse module activates the inventory blocking operation through the internal rule engine or preset business logic. This operation mainly filters and blocks all distribution requests related to a specific promotion identifier to ensure that no new distribution requests are accepted when there is insufficient inventory.

[0175] After the Fuse Module performs the inventory interception operation, it will generate an interception notification, indicating that the distribution request for the promotion has been intercepted. This notification will be sent to the Product Promotion Module so that the module can adjust the status of the promotion in time or provide feedback to the user. The Fuse Module generates an interception notification containing information such as the promotion identifier, interception time, and reason for insufficient inventory. This notification is sent to the Product Promotion Module through the API or messaging mechanism to ensure information synchronization between different modules of the system.

[0176] After the product promotion module receives the interception notification from the fuse module, it will display the notification in the system to inform the user that the product distribution request has been blocked. This step ensures that the user can receive feedback in a timely manner and understand the reason why the product collection cannot continue. The promotion module displays the inventory interception notification through the user interface or API response. The system will display a friendly prompt message to the user, usually through the front-end display (such as page pop-up window, notification bar, etc.), to inform the user that the current promotion activity has stopped accepting new distribution requests due to insufficient inventory.

[0177] In this embodiment, the system can effectively avoid the risk of over-issuance due to insufficient inventory by performing inventory interception operations through the fuse module. When insufficient inventory is detected, the fuse module can quickly respond and block subsequent distribution requests to ensure the stability of the system and the accuracy of inventory management. In addition, the timely generation and sending of interception notifications improves the information synchronization between the system and the user, which helps to optimize the user experience and the transparency of promotional activities.

[0178] In one embodiment, a product distribution control device is provided, and the product distribution control device corresponds one-to-one to the product distribution control method in the above embodiment. Figure 3 , Figure 3 This is a functional module diagram of a preferred embodiment of the product distribution control device of the present invention. Backstage inventory processing module 10, product promotion module 20, product inventory secondary confirmation module 30, qualification verification module 40, inventory status update module 50, inventory status secondary inspection module 60, product distribution confirmation module 70, product distribution execution module 80, over-issuance warning marking module 90 and fuse module 100. The functional modules are described in detail as follows:

[0179] A backstage inventory processing module 10, configured to configure product inventory information in the backstage inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0180] The product promotion module 20 is used to send an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity through the fuse module when the product promotion module receives a product distribution request of the target promotion activity;

[0181] A product inventory secondary confirmation module 30, which is used for the product inventory secondary confirmation module to return the current inventory status of the target promotion activity, and to determine whether the inventory is sufficient according to the current inventory status through the fuse module;

[0182] The qualification verification module 40 is used to perform a product collection qualification verification operation through the product promotion module if the inventory is sufficient, and decide whether to perform a product distribution operation according to the verification result;

[0183] The inventory status updating module 50 is used to send an inventory status update notification to the product inventory secondary confirmation module through the product promotion module if it is determined to perform the product distribution operation;

[0184] The inventory status secondary checking module 60 is used for the product inventory secondary confirmation module to perform an inventory status update operation and verify whether the inventory status after distribution is sufficient when receiving an inventory status update notification;

[0185] The product distribution confirmation module 70 is used to execute the inventory deduction operation and the product distribution operation if the product inventory after distribution is sufficient; if the product inventory after distribution is insufficient, stop executing the product distribution operation and prompt insufficient inventory;

[0186] A product distribution execution module 80, which is used to check the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module after executing the product distribution operation and the inventory deduction operation;

[0187] An overstock warning marking module 90 is used to generate an overstock warning mark for the target promotion activity if it is detected that the product inventory is lower than a set safety inventory threshold;

[0188] The fuse module 100 is used to perform an inventory interception operation according to the over-issuance warning mark through the fuse module to intercept subsequent product distribution requests of the target promotion activity.

[0189] In one embodiment, the product promotion module 20 is specifically used to:

[0190] When the product promotion module receives the product distribution request, a request parameter is generated, wherein the request parameter includes an activity number of the target promotion activity and a user identifier;

[0191] Passing the request parameters to the fuse module, and the fuse module performing integrity check on the received request parameters;

[0192] After the integrity check is passed, the fuse module constructs an inventory query request message according to the activity number, and the inventory query request message includes the activity number, the request initiation time, and the product information to be queried;

[0193] The inventory query request message is sent to the product inventory secondary confirmation module through a preset communication protocol.

[0194] In one embodiment, the product inventory secondary confirmation module 30 is specifically used to:

[0195] Receive the current inventory status information returned by the product inventory secondary confirmation module through the fuse module;

[0196] Parsing the current inventory status information through the fuse to extract the current inventory quantity, and extracting the quantity of products to be distributed from the product distribution request;

[0197] comparing the quantity of the product to be distributed with the current inventory quantity;

[0198] If the quantity of the product to be distributed is less than or equal to the current inventory quantity, it is determined that the inventory is sufficient;

[0199] If the quantity of the products that need to be distributed is greater than the current inventory quantity, it is determined that the inventory is insufficient.

[0200] In one embodiment, the qualification verification module 40 is specifically configured to:

[0201] Extracting the identity information submitted by the user from the product distribution request, and comparing the identity information with the registration information in the user information database to verify whether the user is a registered user;

[0202] Query the current status of the user account to verify whether the user account is in an abnormal state, wherein the abnormal state includes a frozen state or a locked state;

[0203] Verify whether the user meets the participation conditions of the target promotion activity, wherein the participation conditions include geographical restrictions and activity time period conditions;

[0204] Obtain the user's historical participation records in the target promotion activities and verify whether the user's participation times have reached the limit of the number of times for the target promotion activities;

[0205] Whether to execute the product distribution operation is determined based on the verification results. If all verifications pass, the product distribution operation is executed to the user; if any verification fails, the product distribution operation is stopped.

[0206] In one embodiment, the inventory status secondary check module 60 is specifically used to:

[0207] When the product inventory secondary confirmation module receives an inventory status update notification, determining the latest current inventory quantity before product distribution;

[0208] Determine the remaining inventory quantity after distribution by subtracting the number of products to be distributed from the latest current inventory quantity;

[0209] Determine whether the remaining inventory quantity after distribution is greater than or equal to zero;

[0210] If the remaining inventory quantity after distribution is greater than or equal to zero, it is confirmed that the inventory status after distribution is sufficient;

[0211] The inventory status in the product inventory secondary confirmation module is updated according to the remaining inventory quantity after the distribution.

[0212] In one embodiment, the product distribution confirmation module 70 is specifically used to:

[0213] If it is confirmed that the product inventory status after distribution is sufficient, the product inventory secondary confirmation module generates an inventory deduction request, which includes the product quantity information to be distributed and the target promotion activity information;

[0214] Sending the inventory deduction request to the background inventory processing module through the product inventory secondary confirmation module;

[0215] The backend inventory processing module receives the inventory deduction request and deducts a corresponding number of products from the current inventory according to the inventory deduction request;

[0216] Update the inventory database through the background inventory processing module to record the inventory quantity after deduction;

[0217] Sending confirmation information of successful inventory deduction to the product promotion module through the background inventory processing module;

[0218] The product promotion module generates a product distribution instruction according to the confirmation information of the successful inventory deduction, and the product distribution instruction includes user information, product information, distribution quantity and target promotion activity information;

[0219] A product dispensing operation is performed based on the product dispensing instruction.

[0220] In one embodiment, the fuse module 100 is specifically used for:

[0221] The fuse module receives the over-issuance warning mark from the product inventory secondary confirmation module;

[0222] extracting a target promotion activity identifier from the over-issuance warning mark through the fuse module;

[0223] The fuse module activates a corresponding inventory interception operation according to the target promotion activity identifier to intercept subsequent product distribution requests of the target promotion activity;

[0224] generating an interception notification through the fuse module, and sending the interception notification to the product promotion module;

[0225] The interception notification is displayed through the product promotion module to prompt that the product distribution request has been intercepted.

[0226] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external user terminal through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a product distribution control method service side.

[0227] In one embodiment, a computer device is provided. The computer device may be a user terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it realizes the functions or steps on the user side of a product distribution control method

[0228] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0229] Configure product inventory information in the background inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0230] When the product promotion module receives a product distribution request of a target promotion activity, the fuse module sends an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity;

[0231] The product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status;

[0232] If the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and decides whether to perform a product distribution operation based on the verification result;

[0233] If it is determined to perform the product distribution operation, sending an inventory status update notification to the product inventory secondary confirmation module through the product promotion module;

[0234] The product inventory secondary confirmation module executes an inventory status update operation and verifies whether the inventory status after distribution is sufficient upon receiving an inventory status update notification;

[0235] If the product inventory after distribution is sufficient, the inventory deduction operation and product distribution operation will be executed; if the product inventory after distribution is insufficient, the product distribution operation will be stopped and the insufficient inventory will be prompted;

[0236] After executing the product distribution operation and the inventory deduction operation, checking the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module;

[0237] If it is detected that the product inventory is lower than the set safety inventory threshold, an inventory over-issuance warning mark for the target promotion activity is generated;

[0238] The fuse module performs an inventory interception operation according to the over-issuance warning mark to intercept subsequent product distribution requests for the target promotion activity.

[0239] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0240] Configure product inventory information in the background inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module;

[0241] When the product promotion module receives a product distribution request of a target promotion activity, the fuse module sends an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity;

[0242] The product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status;

[0243] If the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and decides whether to perform a product distribution operation based on the verification result;

[0244] If it is determined to perform the product distribution operation, sending an inventory status update notification to the product inventory secondary confirmation module through the product promotion module;

[0245] The product inventory secondary confirmation module executes an inventory status update operation and verifies whether the inventory status after distribution is sufficient upon receiving an inventory status update notification;

[0246] If the product inventory after distribution is sufficient, the inventory deduction operation and product distribution operation will be executed; if the product inventory after distribution is insufficient, the product distribution operation will be stopped and the insufficient inventory will be prompted;

[0247] After executing the product distribution operation and the inventory deduction operation, checking the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module;

[0248] If it is detected that the product inventory is lower than the set safety inventory threshold, an inventory over-issuance warning mark for the target promotion activity is generated;

[0249] The fuse module performs an inventory interception operation according to the over-issuance warning mark to intercept subsequent product distribution requests for the target promotion activity.

[0250] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the user side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0251] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0252] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0253] It should be noted that if software tools or components other than those of the Company appear in the embodiments of the present application, they are only used for illustration and do not represent actual use. The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the above-mentioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A product distribution control method, characterized in that: The following steps are involved: Configure product inventory information in the background inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module; When the product promotion module receives a product distribution request of a target promotion activity, the fuse module sends an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity; The product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status; If the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and decides whether to perform a product distribution operation based on the verification result; If it is determined to perform the product distribution operation, sending an inventory status update notification to the product inventory secondary confirmation module through the product promotion module; The product inventory secondary confirmation module executes an inventory status update operation and verifies whether the inventory status after distribution is sufficient upon receiving an inventory status update notification; If the product inventory after distribution is sufficient, the inventory deduction operation and product distribution operation will be executed; if the product inventory after distribution is insufficient, the product distribution operation will be stopped and the insufficient inventory will be prompted; After executing the product distribution operation and the inventory deduction operation, checking the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module; If it is detected that the product inventory is lower than the set safety inventory threshold, an inventory over-issuance warning mark for the target promotion activity is generated; The fuse module performs an inventory interception operation according to the over-issuance warning mark to intercept subsequent product distribution requests for the target promotion activity.

2. The product distribution control method according to claim 1, characterized in that: When the product promotion module receives a product distribution request of a target promotion activity, sending an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity through the fuse module, including: When the product promotion module receives the product distribution request, a request parameter is generated, wherein the request parameter includes an activity number of a target promotion activity and a user identifier; Passing the request parameters to the fuse module, and the fuse module performing integrity check on the received request parameters; After the integrity check is passed, the fuse module constructs an inventory query request message according to the activity number, and the inventory query request message includes the activity number, the request initiation time, and the product information to be queried; The inventory query request message is sent to the product inventory secondary confirmation module through a preset communication protocol.

3. The product distribution control method according to claim 1, characterized in that: The product inventory secondary confirmation module returns the current inventory status of the target promotion activity, and the fuse module determines whether the inventory is sufficient according to the current inventory status, including: Receive the current inventory status information returned by the product inventory secondary confirmation module through the fuse module; Parsing the current inventory status information through the fuse to extract the current inventory quantity, and extracting the quantity of products to be distributed from the product distribution request; comparing the quantity of the product to be distributed with the current inventory quantity; If the quantity of the product to be distributed is less than or equal to the current inventory quantity, it is determined that the inventory is sufficient; If the quantity of the products that need to be distributed is greater than the current inventory quantity, it is determined that the inventory is insufficient.

4. The product distribution control method according to claim 1, characterized in that: If the inventory is sufficient, the product promotion module performs a product collection qualification verification operation, and decides whether to perform a product distribution operation based on the verification result, including: Extracting the identity information submitted by the user from the product distribution request, and comparing the identity information with the registration information in the user information database to verify whether the user is a registered user; Query the current status of the user account to verify whether the user account is in an abnormal state, wherein the abnormal state includes a frozen state or a locked state; Verify whether the user meets the participation conditions of the target promotion activity, wherein the participation conditions include geographical restrictions and activity time period conditions; Obtain the user's historical participation records in the target promotion activities and verify whether the user's participation times have reached the limit of the number of times for the target promotion activities; Whether to execute the product distribution operation is determined based on the verification results. If all verifications pass, the product distribution operation is executed to the user; if any verification fails, the product distribution operation is stopped.

5. The product distribution control method as claimed in claim 1, characterized in that: When receiving the inventory status update notification, the product inventory secondary confirmation module performs an inventory status update operation and verifies whether the inventory status after distribution is sufficient, including: When the product inventory secondary confirmation module receives an inventory status update notification, determining the latest current inventory quantity before product distribution; Determine the remaining inventory quantity after distribution by subtracting the number of products to be distributed from the latest current inventory quantity; Determine whether the remaining inventory quantity after distribution is greater than or equal to zero; If the remaining inventory quantity after distribution is greater than or equal to zero, it is confirmed that the inventory status after distribution is sufficient; The inventory status in the product inventory secondary confirmation module is updated according to the remaining inventory quantity after the distribution.

6. The product distribution control method according to claim 1, characterized in that: If the product inventory after distribution is sufficient, the inventory deduction operation and product distribution operation are performed, including: If it is confirmed that the product inventory status after distribution is sufficient, the product inventory secondary confirmation module generates an inventory deduction request, which includes the product quantity information to be distributed and the target promotion activity information; Sending the inventory deduction request to the background inventory processing module through the product inventory secondary confirmation module; The backend inventory processing module receives the inventory deduction request and deducts a corresponding number of products from the current inventory according to the inventory deduction request; Update the inventory database through the background inventory processing module to record the inventory quantity after deduction; Sending confirmation information of successful inventory deduction to the product promotion module through the background inventory processing module; The product promotion module generates a product distribution instruction according to the confirmation information of the successful inventory deduction, and the product distribution instruction includes user information, product information, distribution quantity and target promotion activity information; A product dispensing operation is performed based on the product dispensing instruction.

7. The product distribution control method according to claim 1, characterized in that: The fuse module performs a stock interception operation according to the over-issuance warning mark to intercept subsequent product distribution requests of the target promotion activity, including: The fuse module receives the over-issuance warning mark from the product inventory secondary confirmation module; extracting a target promotion activity identifier from the over-issuance warning mark through the fuse module; The fuse module activates a corresponding inventory interception operation according to the target promotion activity identifier to intercept subsequent product distribution requests of the target promotion activity; generating an interception notification through the fuse module, and sending the interception notification to the product promotion module; The interception notification is displayed through the product promotion module to prompt that the product distribution request has been intercepted.

8. A product distribution control device, characterized in that: The product distribution control device comprises: A backstage inventory processing module, used to configure product inventory information in the backstage inventory processing module, and synchronize the product inventory information to the product inventory secondary confirmation module and the product promotion module; A product promotion module, configured to send an inventory query request to the product inventory secondary confirmation module according to the activity number of the target promotion activity through the fuse module when the product promotion module receives a product distribution request of the target promotion activity; A product inventory secondary confirmation module, which is used for the product inventory secondary confirmation module to return the current inventory status of the target promotion activity, and to determine whether the inventory is sufficient according to the current inventory status through the fuse module; A qualification verification module, which is used to perform a product collection qualification verification operation through the product promotion module if the inventory is sufficient, and decide whether to perform a product distribution operation according to the verification result; An inventory status update module, configured to send an inventory status update notification to the product inventory secondary confirmation module through the product promotion module if it is determined to perform a product distribution operation; The inventory status secondary checking module is used for the product inventory secondary confirmation module to perform an inventory status update operation and verify whether the inventory status after distribution is sufficient when receiving an inventory status update notification; The product distribution confirmation module is used to execute the inventory deduction operation and product distribution operation if the product inventory after distribution is sufficient; if the product inventory after distribution is insufficient, the product distribution operation is stopped and the insufficient inventory is prompted; A product distribution execution module, which is used to check the inventory status of the target promotion activity after distribution through the product inventory secondary confirmation module after executing the product distribution operation and the inventory deduction operation; An over-issuance warning mark module is used to generate an inventory over-issuance warning mark for the target promotion activity if it is detected that the product inventory is lower than a set safety inventory threshold; A fuse module is used to perform an inventory interception operation according to the over-issuance warning mark through the fuse module to intercept subsequent product distribution requests of the target promotion activity.

9. A computer device, characterized in that: The computer device includes a memory, a processor, and a product distribution control program stored in the memory and executable on the processor. When the product distribution control program is executed by the processor, the steps of the product distribution control method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores a product distribution control program, which, when executed by a processor, implements the steps of the product distribution control method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Resource dynamic allocation method, system, equipment and product in high-concurrency scene

    CN120973544A

  • Resource processing method and device in Internet operation activity

    CN122550229A