Directional right and interest distribution method, device and equipment based on multi-dimensional contribution value and medium
By introducing a dual-dimensional contribution value system and a multi-mode allocation mechanism, the problems of a single rights allocation mechanism and data processing delay in the existing points system have been solved, achieving efficient and accurate rights allocation, and improving user incentive effects and system stability.
Patent Information
- Application Number
- CN202511318667.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-16
- Publication Date
- 2025-12-12
AI Technical Summary
The existing points and benefits distribution system suffers from a single rights distribution mechanism, making it difficult to accommodate multiple contribution types and multi-dimensional rights requirements. It lacks a refined distribution strategy, has high data processing latency, cannot efficiently complete settlement and rights distribution within the activity period, is difficult to expand, has high maintenance costs, and has poor stability and availability.
A dual-dimensional contribution value system is introduced, including platform contribution value and civilization contribution value. Three allocation modes are adopted (proportional mode, ranking mode, and fixed value mode). Combined with the contribution value weighting mechanism and multi-level threshold design, a distributed transaction mechanism and asynchronous message queue processing are used to achieve efficient and accurate rights and interests allocation.
It enables accurate evaluation of users' contributions in multiple aspects, supports differentiated incentives, improves the system's flexibility and scalability, ensures efficient data processing and system stability, and enhances user engagement and platform activity.
Smart Images

Figure CN121120145A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent points management and rights allocation technology, and in particular to a method, apparatus, equipment and medium for targeted rights allocation based on multi-dimensional contribution values. Background Technology
[0002] With the deepening of digital transformation, points-based management and benefits distribution systems have been widely applied in areas such as government services, community governance, and platform operations. These systems achieve digital management of user incentives and value rewards by recording and quantifying user behavior contributions. However, with the increasing complexity of application scenarios and the continuous upgrading of user needs, traditional points and benefits distribution systems are no longer sufficient to meet diversified and refined management requirements. Especially in comprehensive platforms that need to consider both user activity contributions and contributions to social civilization, a single-dimensional points system is inadequate, failing to accurately reflect the multifaceted value contributions of users and making it difficult to implement differentiated incentive strategies.
[0003] Existing points and rewards distribution systems generally adopt a single points model, where all user behavior is converted into the same type of points and then uniformly distributed based on simple rules. This model has significant technical flaws: First, the rewards distribution mechanism is too simplistic, typically only supporting distribution based on total points or ranking, making it difficult to accommodate multiple contribution types and multi-dimensional reward needs, and failing to achieve precise tiered and segmented incentives; second, the system lacks a refined distribution strategy based on contribution structure, failing to adopt different incentive methods for different types of contributions, resulting in poor incentive effects; finally, traditional systems mostly use synchronous processing methods, which lead to high data processing latency when dealing with large-scale users and massive amounts of data, often failing to complete settlement and rewards distribution in a timely manner within the activity period, seriously affecting user experience.
[0004] Furthermore, existing technologies have numerous shortcomings in system architecture design. Most systems employ a tightly coupled modular design, with strong dependencies between functional modules, leading to difficulties in system expansion and high maintenance costs. In high-concurrency scenarios, the system is prone to performance bottlenecks, failing to guarantee service stability and availability. Simultaneously, the lack of standardized message formats and interface definitions poses significant challenges to integration with other business systems. These technical limitations severely restrict the application of points and benefits allocation systems in complex business scenarios, necessitating a more flexible, efficient, and scalable technical solution to address these issues. Summary of the Invention
[0005] The purpose of this invention is to address the technical deficiencies of existing points and benefit distribution systems by providing a method, apparatus, device, and medium for targeted benefit distribution based on multi-dimensional contribution values. Existing technical solutions generally suffer from the following problems: a single benefit distribution mechanism, making it difficult to accommodate multiple contribution types and multi-dimensional benefit requirements; a lack of refined distribution strategies based on contribution structures, failing to support hierarchical and grouped incentive models; and high data processing latency, making it impossible to efficiently complete settlement and benefit distribution within the activity period. This invention, by introducing a dual-dimensional contribution value system and a multi-mode distribution mechanism, achieves flexible, accurate, and efficient benefit distribution in complex scenarios.
[0006] To achieve the above objectives, the present invention provides the following technical solution: The first aspect of this invention provides a method for targeted rights allocation based on multi-dimensional contribution values. This method innovatively establishes a dual-dimensional points system of platform contribution values and civilization contribution values. Within a specified activity timeframe, the system collects various user behavior events in real time through an event monitoring mechanism, including but not limited to liking, checking in, reporting, and uploading content. These behavior events are converted into corresponding contribution values according to preset rules. The platform contribution value mainly reflects the user's contribution to platform activity and content creation, such as publishing content and commenting; the civilization contribution value focuses on the user's civilized behavior and contributions to community governance, such as reporting illegal content and participating in volunteer services. Each type of behavior is configured with specific contribution value increase / decrease strategies, contribution value category attribution, and weight coefficients to ensure the accuracy and fairness of contribution value calculation.
[0007] At the end of the activity, the system automatically triggers a scheduled task to initiate the benefits distribution process. The system first reads the activity configuration rules to determine the distribution mode and contribution value type. This invention provides three flexible distribution modes: percentage mode, ranking mode, and fixed value mode. The percentage mode distributes benefits according to the proportion of each user's contribution value to the total contribution value, suitable for scenarios requiring fair reward distribution; the ranking mode selects outstanding users based on their contribution value ranking to issue benefit cards, suitable for scenarios involving the selection and incentive of top users; the fixed value mode determines eligibility for benefit distribution by setting a contribution value threshold, suitable for universal incentive scenarios.
[0008] After the allocation calculation is complete, the system encapsulates the result into a standardized JSON message and transmits it asynchronously via a highly reliable message queue. The consumer retrieves the message from the queue, parses the data type, and executes the corresponding processing logic: for benefit types, the amount is added to the user's account and a transaction record is generated; for benefit card types, a benefit card instance is generated based on the template and issued to the user's card wallet. The entire process employs a distributed transaction mechanism to ensure data consistency and benefit security.
[0009] The second aspect of the present invention provides a specific calculation method for the distribution mode. In the proportion mode, the user revenue calculation formula is Si = T×(Ci / G), where T is the total revenue, Ci is the user contribution value, and G is the total sum of all user contribution values. The system also introduces a contribution value weighting mechanism to differentially incentivize contributions at different times through the weight coefficient Wi. The weighted contribution value is Ci_weighted = Ci×Wi. The ranking mode supports multi-level rights and interests distribution and secondary sorting rules. When the contribution values are the same, the historical cumulative contribution value and the registration time are compared in sequence. The fixed value mode supports multi-level thresholds and combined thresholds. Multiple threshold values such as V1 < V2 < V3 can be set to correspond to different levels of rights and interests, or the combined compliance situation of the platform contribution value and the civilization contribution value can be considered simultaneously.
[0010] The third aspect of the present invention provides a high-performance technical implementation solution. The contribution value data is cached in Redis memory and periodically batch synchronized to the database, taking into account both real-time performance and system performance. The rights and interests distribution calculation is optimized by parallel processing. After grouping a large number of users, multi-threaded parallel calculation is performed, significantly shortening the processing time. The message processing adopts a batch strategy, accumulating a certain number of messages or waiting for a fixed time and then processing them uniformly to reduce the number of database interactions. The system also implements a complete fault tolerance mechanism, including message retry, dead letter queue, transaction rollback, etc., to ensure that user rights and interests are not lost in case of exceptions.
[0011] The fourth aspect of the present invention provides a targeted rights and interests distribution device based on multi-dimensional contribution values, including five core modules: The activity management module is responsible for the activity life cycle management and rule configuration; the contribution value calculation module is responsible for real-time collecting user behaviors and calculating contribution values; the rights and interests distribution module implements the calculation logics of the three distribution modes; the message queue module provides reliable asynchronous message transmission; the data storage module is responsible for the persistent storage of rights and interests data. Each module collaborates through standard interfaces to form a complete rights and interests distribution system.
[0012] The fifth aspect of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory. When the computer program is executed by the processor, the above-mentioned rights and interests distribution method is implemented.
[0013] The sixth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed, the above-mentioned rights and interests distribution method is implemented.
[0014] The beneficial effects of the present invention: By distinguishing between platform contribution value and civilization contribution value, the system can more accurately assess users' multifaceted contributions, supporting more refined user behavior guidance and incentive design. The dual-dimensional design allows the platform to simultaneously encourage active user participation and maintain positive behavior, achieving a balanced and comprehensive incentive mechanism. The percentage-based model ensures fair distribution, guaranteeing that every user's contribution receives a corresponding reward. The ranking model stimulates user enthusiasm through a competitive mechanism, suitable for selecting outstanding contributors. The fixed-value model lowers the participation threshold, achieving universal incentives. These three models can be used independently or in combination, greatly expanding the system's applicability.
[0015] The contribution value weighting mechanism allows the platform to adjust the incentive intensity for different time periods according to business needs; multi-level and combined threshold designs support complex rights and benefits classifications; secondary sorting rules solve the fairness problem in the case of a tie. These mechanisms enable the system to adapt to constantly changing business needs; decoupling the computation and data entry processes through message queues avoids the performance bottleneck of synchronous processing; batch processing and parallel computing optimizations enable the system to complete the rights and benefits allocation for a large number of users in a short time; and a robust fault tolerance mechanism ensures the stability of the system and the security of the data.
[0016] The modular architecture design makes the responsibilities of each functional component clear and easy to maintain; the standardized message format and interface definition facilitate system integration and functional expansion; the application of the strategy pattern makes adding new allocation modes simple and efficient; in practical application scenarios such as government services and community governance, the method of this invention effectively improves user participation and platform activity. Taking a government service platform as an example, after applying this invention, the platform's daily active users increased by 35%, and the user behavior guidance effect was significant, fully verifying the practical value and social benefits of this invention. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only for this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the overall system flow of the present invention; Figure 2 This is a schematic diagram of the three allocation modes of the present invention; Figure 3 This is a schematic diagram of the system architecture of the present invention; Figure 4 This is a schematic diagram of the message processing flow of the present invention. Detailed Implementation
[0019] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should also be noted that, to make the embodiments more comprehensive, the following embodiments are the best and preferred embodiments, and those skilled in the art can use other alternative methods to implement some well-known technologies; moreover, the accompanying drawings are only for more specific description of the embodiments and are not intended to specifically limit the present invention.
[0020] It should be noted that the use of terms such as "an embodiment," "an embodiment," "an exemplary embodiment," and "some embodiments" in the specification indicates that the described embodiment may include a specific feature, structure, or characteristic, but not every embodiment necessarily includes that specific feature, structure, or characteristic. Furthermore, when a specific feature, structure, or characteristic is described in connection with an embodiment, implementing such a feature, structure, or characteristic in conjunction with other embodiments (whether explicitly described or not) should be within the knowledge of those skilled in the art.
[0021] Generally, terms can be understood at least partly from their use in context. For example, depending at least partly on the context, the term "one or more" as used herein can be used to describe any feature, structure, or characteristic in a singular sense, or a combination of features, structures, or characteristics in a plural sense. Additionally, the term "based on" can be understood not necessarily to convey an exclusive set of factors, but rather, alternatively, depending at least partly on the context, to allow for the presence of other factors that are not necessarily explicitly described.
[0022] See Figures 1 to 4 As shown: Example 1: Overall Implementation of a Targeted Equity Allocation Method Based on Multidimensional Contribution Values: This invention provides a method for targeted rights allocation based on multi-dimensional contribution values. This method supports a dual-dimensional points system of platform contribution values and civilization contribution values, and flexibly allocates benefits and rights cards through three modes: percentage, ranking, and fixed threshold. The technical solution of this invention will be described in detail below with reference to specific embodiments.
[0023] In this embodiment, the system first collects various user behavior events within a specified time range. Users can earn contribution points through various behaviors such as liking, checking in, reporting, and uploading content. These contribution points are divided into two main categories: platform contribution points and civility contribution points. Platform contribution points mainly reflect users' contributions to platform activity and content creation, such as publishing content and interacting with comments; civility contribution points focus on users' civilized behavior and contributions to community governance, such as reporting illegal content and participating in volunteer services. The system assigns corresponding contribution point increase / decrease strategies, contribution point category affiliation, and weight coefficients to each type of behavior through preset event rule configurations. For example, a user can earn 100 platform contribution points for publishing a high-quality article, 50 civility contribution points for successfully reporting illegal information, while malicious reporting will deduct 30 civility contribution points.
[0024] When the activity period ends, the system will automatically trigger a scheduled task to initiate the benefit allocation calculation process. The scheduled task first reads the current activity's configuration rules to determine which allocation mode (proportional mode, ranking mode, or fixed value mode) to use, and which contribution value type (platform contribution value or civilization contribution value) to use as the calculation basis. Subsequently, the system executes the corresponding allocation calculation according to the selected mode. In proportional mode, the system calculates the proportion of each user's contribution value to the total contribution value and allocates benefits accordingly; in ranking mode, the system sorts all users' contribution values in descending order and selects the top-ranked users to receive benefit cards; in fixed value mode, the system compares user contribution values with a preset threshold value, and users who meet the threshold receive benefit cards.
[0025] Example 2: Specific calculation implementation of the three allocation modes: Implementation of the percentage mode: In percentage-based mode, the system distributes revenue according to the proportion of each user's contribution to the total contribution. Let the total revenue of the activity be T, user i's contribution value be Ci (which can be either platform contribution value or civilization contribution value depending on the configuration), and the sum of all participating users' contributions be G. Then, the formula for calculating user i's revenue Si is: Si = T × (Ci / G); To improve the fairness and incentive effect of the allocation, the system also introduces a contribution value weighting coefficient. Let Wi be the contribution value weighting coefficient for user i in different time periods, then the formula for calculating the weighted contribution value is: Ci_weighted = Ci × Wi; The weighting coefficient Wi can be dynamically adjusted based on factors such as the user's active period and the quality of their contribution. For example, users who participate in the early stages of the activity can receive a weighting coefficient of 1.2, encouraging early participation; users who contribute during the peak of the activity have a weighting coefficient of 1.0; while users who participate at the end of the activity may only have a weighting coefficient of 0.8.
[0026] Implementation of Ranking Mode: The ranking mode is applicable to scenarios that require selecting outstanding contributors. The system first sorts all users' contribution values in descending order, and then selects the top N users according to the configured quota N to issue entitlement cards. To handle the situation where contribution values are the same, the system introduces a secondary sorting rule. When multiple users have the same contribution value, the system will sort them according to the following priorities: First, compare the users' historical cumulative contribution values, and the one with a higher historical contribution value takes precedence; if the historical contribution values are still the same, then compare the users' registration times, and the one with an earlier registration time takes precedence.
[0027] In practical applications, the system also supports a hierarchical ranking mode. For example, multiple ranking intervals can be set, and different intervals obtain different levels of entitlement cards. Specifically, when calculating, users in the ranking interval [1, N1] obtain gold cards, users in the ranking interval [N1 + 1, N2] obtain silver cards, and users in the ranking interval [N2 + 1, N3] obtain bronze cards. This hierarchical design can encourage more users to participate and avoid the "winner takes all" situation.
[0028] Implementation of Fixed Value Mode: The fixed value mode determines the entitlement issuance qualification by setting a contribution value threshold. The basic judgment rule is: when the user's contribution value Ci >= threshold value V, the user obtains an entitlement card. To enhance flexibility, the system supports multi-level threshold settings. Set multiple threshold values V1 < V2 < V3, corresponding to different levels of entitlement cards, then the entitlement card level judgment formula is: Entitlement level = MAX{k|Ci >= Vk, k ∈ {1, 2, 3}}; In addition, the system also supports a combined threshold mode, that is, considering both the platform contribution value and the civilization contribution value. Let the platform contribution value threshold be Vp and the civilization contribution value threshold be Vc, and the combined judgment formula is: Whether qualified = (Platform contribution value >= Vp) AND (Civilization contribution value >= Vc); This combined threshold mode can guide users to develop comprehensively, that is, to actively participate in platform activities and maintain good civilized behaviors.
[0029] Example 3: Implementation of Asynchronous Message Processing and Data Storage: After the entitlement distribution calculation is completed, the system encapsulates the distribution result into a message and delivers it to the message queue (MQ). The message body contains key information such as user ID, entitlement type (income or entitlement card), entitlement quantity, calculation basis, etc. The message format adopts the JSON structure, which is convenient for parsing and extension. A typical example of an income distribution message is as follows: json{ "userId":"123456", "benefitType":"revenue", "amount":158.32, "contributionType":"platform", "contributionValue":3166, "totalContribution":50000, "activityId":"ACT20250115", "timestamp":"2025-01-15T23:59:59Z" }; The consumer asynchronously consumes messages from the message queue, first parsing the message body to determine the data type. If it's a reward type, the system calls the reward service interface to add the reward amount to the user's account balance and generate a reward transaction record. If it's a benefits card type, the system calls the benefits card service interface to generate a specific benefits card instance based on the benefits card template, sets attributes such as validity period and usage rules, and then distributes the benefits card to the user's wallet. The entire process uses distributed transactions to ensure data consistency. If any step fails, the system automatically retryes or rolls back to ensure that user benefits are not lost.
[0030] To ensure the timeliness and accuracy of user rights allocation, the system employs a real-time data entry strategy. Upon receiving a rights allocation message from the message queue, the consumer immediately parses and processes it, ensuring users receive their allocated rights as soon as possible. This real-time processing mode avoids the delays that may occur with batch processing, improving the user experience. Simultaneously, the system records detailed processing logs, including message reception time, processing start time, processing end time, and processing result, facilitating subsequent auditing and troubleshooting.
[0031] Example 4: System Architecture and Module Collaboration Implementation: The system architecture of this invention comprises five core modules, which interact through standard interfaces to ensure the system's scalability and maintainability. The activity management module manages the activity lifecycle, including activity creation, rule configuration, status maintenance, and scheduled triggering. This module provides a visual configuration interface, allowing operators to flexibly set activity times, select allocation modes, configure contribution value rules, and other parameters. After an activity begins, the module monitors its progress in real time and automatically triggers task allocation when the activity ends.
[0032] The contribution value calculation module is the system's data engine, responsible for real-time collection and processing of user behavior events. This module captures various user actions, such as likes, comments, shares, and reports, through an event listening mechanism. Each event is processed by the rules engine, which calculates the corresponding increase or decrease in contribution value according to preset rules. The module employs a dual-write mechanism, simultaneously updating the database and Redis cache after contribution value calculation to ensure data consistency and reliability. During data queries, the system prioritizes reading contribution value data from the Redis cache. This design ensures both efficient querying and data persistence through the database.
[0033] The rights allocation module is the core computing unit of the system, implementing the computational logic for three allocation modes. This module employs the strategy pattern, encapsulating different allocation algorithms into independent strategy classes, and dynamically selecting the execution strategy through configuration. The module also implements parallel computing optimization; for allocation calculations involving a large number of users, the system groups users and utilizes multi-threaded parallel processing, significantly reducing computation time.
[0034] The message queue module is implemented based on a highly reliable message middleware (such as RocketMQ), providing reliable message delivery and sequential consumption capabilities. The module supports advanced features such as message retry, dead-letter queues, and message tracing, ensuring that messages are not lost in extreme situations such as network anomalies or service downtime. The data storage module is responsible for the persistent storage of equity data, while also providing data archiving and cleanup mechanisms to ensure the long-term stable operation of the system.
[0035] Example 5: Practical Application Scenarios Taking the "Civilized City Construction Points Activity" on a certain government service platform as an example, the application process of the method of this invention is explained in detail. This activity lasts for one month and aims to encourage citizens to participate in the construction of a civilized city. The activity sets up a dual incentive mechanism: users who actively participate in platform interactions receive cash rewards based on their contribution value; users with outstanding civilized behavior receive municipal service coupons.
[0036] Before the event began, the operations team created the event through the event management module, setting the event period to January 1st to January 31st, 2025. For the cash prize distribution, a percentage-based model was selected, using platform contribution points as the calculation basis, with the total prize pool set at 100,000 yuan. For coupon distribution, a ranking model was selected, using civility contribution points as the calculation basis, with the first 1000 coupons awarded. Detailed contribution point rules were also configured: posting photos of beautiful city scenery earns 20 platform contribution points, successfully reporting uncivilized behavior earns 30 civility contribution points, and participating in volunteer service earns 50 civility contribution points per hour, etc.
[0037] During the event, the system recorded user behavior and calculated contribution points in real time. User Zhang San accumulated 850 platform contribution points and 300 civility contribution points by publishing 15 articles about city scenery, 200 likes and interactions, and successfully reporting illegal parking 10 times. User Li Si mainly participated in volunteer service, accumulating 20 hours of service, and also reported uncivilized behavior 5 times, earning 100 platform contribution points and 1150 civility contribution points.
[0038] At the end of the event, the system automatically performed the allocation calculations. In the cash red envelope distribution, the total platform contribution value of all users was calculated to be 5 million points. Zhang San's percentage was 850 / 5,000,000 = 0.017%, therefore he received a red envelope amount of 100,000 × 0.017% = 17 yuan. In the coupon distribution, the system ranked all users' civility contribution values. Li Si, with 1150 points, ranked 156th and successfully received a municipal service coupon. The entire allocation process was completed within 2 hours after the event ended, and all users received corresponding notifications of their benefits. The event achieved positive social results.
[0039] The method provided by this invention enabled the government service platform to achieve precise allocation of rights and interests in complex scenarios. This not only stimulated user participation but also effectively guided user behavior, providing strong support for smart city construction. Subsequent statistics showed that the platform's daily active users increased by 35% and reports of uncivilized behavior increased by 120% during the campaign, fully validating the practicality and effectiveness of the method.
[0040] This invention encompasses any substitutions, modifications, equivalent methods, and solutions made within the spirit and scope of this invention. To provide the public with a thorough understanding of this invention, specific details are described in detail in the following preferred embodiments; however, those skilled in the art will fully understand the invention even without these details. Furthermore, to avoid unnecessary misunderstanding of the essence of this invention, well-known methods, processes, procedures, components, and circuits are not described in detail.
[0041] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for targeted equity allocation based on multidimensional contribution values, characterized in that, Includes the following steps: Within a preset activity timeframe, user behavior events are collected through an event listening mechanism. These behavior events include liking, checking in, reporting, and uploading content. According to the preset event rules configuration, the collected user behavior events are converted into platform contribution value and civilization contribution value. The platform contribution value reflects the user's contribution to platform activity and content creation, and the civilization contribution value reflects the user's civilized behavior and community governance contribution. The platform contribution value and civilization contribution value are calculated and stored as two independent contribution value dimensions. When the activity ends, a scheduled task is triggered to read the activity configuration rules and determine the allocation mode and contribution value type. The allocation mode includes percentage mode, ranking mode and fixed value mode, and supports different allocation modes for different contribution value dimensions. The rights and interests allocation calculation is performed according to the determined allocation mode, and the allocation result is generated. When different allocation modes are used for the platform contribution value and the civilization contribution value, their respective allocation calculations are executed in parallel. The allocation result is encapsulated into a JSON-formatted message body and delivered to the message queue. By asynchronously consuming messages on the consumer side, parsing the message body data type, and completing the revenue entry into the database or the generation of the rights card.
2. The method according to claim 1, characterized in that, The allocation modes include percentage mode, ranking mode, and fixed value mode; The calculation process of the percentage mode is as follows: set the total revenue of the activity as T, the contribution value of user i as Ci, and the sum of the contribution values of all participating users as G. Then, the revenue Si obtained by user i is Si = T × (Ci / G). The contribution value Ci is selected as platform contribution value or civilization contribution value according to the configuration. The ranking mode calculation process is as follows: sort all users' contribution values in descending order, select the top N users to receive benefit cards, and support tiered ranking, setting ranking intervals [1,N1], [N1+1,N2], and [N2+1,N3] to correspond to different levels of benefit cards; The calculation process for the fixed value mode is as follows: set a contribution value threshold V, and when the user's contribution value Ci>=V, the user obtains a benefit card.
3. The method according to claim 2, characterized in that, The proportion mode also includes contribution value weighted calculation. Let Wi be the contribution value weight coefficient of user i in different time periods. Then the weighted contribution value Ci_weighted = Ci × Wi. The weight coefficient Wi is dynamically adjusted according to the user's active period. The weight coefficient of users participating in the early stage of the activity is 1.2, the weight coefficient of users participating in the peak period of the activity is 1.0, and the weight coefficient of users participating in the end of the activity is 0.
8. The dynamic adjustment of the weight coefficient realizes differentiated incentives for users' participation timing.
4. The method according to claim 2, characterized in that, When dealing with users with the same contribution value, the ranking mode adopts a secondary sorting rule: first, compare the users' historical cumulative contribution value, and give priority to those with higher historical contribution values; if the historical contribution values are still the same, then compare the users' registration time, and give priority to those with earlier registration times.
5. The method according to claim 2, characterized in that, The fixed value mode supports multi-level threshold settings. Multiple threshold values V1 < V2 < V3 are set, corresponding to different levels of privilege cards. The privilege level determination is: Privilege level = MAX{k|Ci >= Vk, k ∈ {1, 2, 3}}; It also supports the combined threshold mode. Let the platform contribution value threshold be Vp and the civilization contribution value threshold be Vc. The combined determination is: Whether it meets the standard = (Platform contribution value >= Vp) AND (Civilization contribution value >= Vc). The combined threshold mode realizes the collaborative requirements for users in two contribution value dimensions.
6. The method according to claim 1, characterized in that, The method further includes the real-time calculation and storage of contribution values: capturing user behavior events in real time through the event listening mechanism, calculating the corresponding increase or decrease in contribution values according to the event type and the rule engine, and using the double-write mechanism to update the Redis cache and the database simultaneously. The message body includes user ID, privilege type, privilege quantity, contribution value type, contribution value numerical value, total contribution value, activity ID, and timestamp; The consumer end adopts a batch processing strategy. After accumulating 100 messages or waiting for 5 seconds, the messages are merged into batches for processing.
7. The method according to claim 1, characterized in that, The contribution values are stored in Redis through the memory caching technology and are periodically batch-synchronized to the database; The privilege allocation calculation adopts parallel computing optimization. After grouping users, multi-threaded parallel processing is used; When allocating and calculating the platform contribution value and the civilization contribution value simultaneously, the calculation tasks of the two dimensions are executed in parallel without interference.
8. A targeted rights allocation device based on multidimensional contribution values, characterized in that, It includes: An activity management module, used to create activities, configure rule parameters, maintain activity status, and trigger the allocation task at the end of the activity. The rule parameters include the allocation modes respectively configured for the platform contribution value and the civilization contribution value; A contribution value calculation module, used to capture user operation behaviors through the event listening mechanism, calculate the increase or decrease in contribution values according to the rule engine, maintain two independent data sets for the platform contribution value and the civilization contribution value respectively, and cache the contribution value data in Redis; A privilege allocation module, designed using the strategy pattern, encapsulates three allocation algorithms: the proportion mode, the ranking mode, and the fixed value mode, and dynamically selects the execution strategy through configuration, supporting the parallel execution of different allocation strategies for different contribution value dimensions; A message queue module, based on RocketMQ, provides message delivery, sequential consumption, message retry, and dead letter queue, and adopts batch processing optimization; A data storage module, responsible for the persistent storage of revenue data and privilege card data.
9. An electronic device, characterized in that, It includes: A processor; A memory, connected to the processor; A computer program, stored in the memory. When the computer program is executed by the processor, it implements the multi-dimensional contribution value-based targeted privilege allocation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements the multi-dimensional contribution value-based targeted privilege allocation method according to any one of claims 1 to 7.