Method, device and medium for handling repeated requests
By acquiring a set of related records across platforms and locating the original node, a unique route identifier is generated to redirect requests. This solves the problem of identifying duplicate requests in multi-platform scenarios, achieving accurate deduplication and data return, and optimizing processing performance and data utilization.
Patent Information
- Application Number
- CN202611400125.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to accurately identify duplicate requests in multi-platform scenarios, leading to data silos and resource waste. Furthermore, existing solutions cannot achieve accurate data feedback.
By obtaining the identifier of the target request, and based on the identifier mapping relationship, a set of related records across platforms is obtained. The original belonging node is located and a dedicated route identifier is generated or reused to redirect the request, thereby achieving accurate deduplication and data return across platforms.
It achieves accurate deduplication across platforms, avoids resource waste, maintains the commercial value of data and maintains ownership consistency, while optimizing the decoupling and expansion of filtering logic and the response performance of the main link.
Smart Images

Figure CN123145318A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet data processing technology, and more specifically, to a method, apparatus, and medium for processing repeated requests. Background Technology
[0002] In internet marketing and customer service scenarios, it is usually necessary to repeatedly identify and filter user-initiated call requests or lead submissions to avoid wasting advertising costs, data redundancy, and attribution conflicts.
[0003] In existing technologies, common duplicate identification schemes mainly fall into two categories: one is anti-fraud filtering based on cookies, device fingerprints, or IP addresses. This type of scheme remains at the device or network-side identification level and cannot penetrate the user identity identification system within a specific platform ecosystem. It is easily bypassed when the same natural person changes devices or network environments, and the handling methods are mostly direct interception or billing removal. Once a match is detected, the clue is discarded and there is no data feedback capability. The other type is deduplication based on user identifiers within a single platform entity. This type of scheme cannot cover scenarios where the same operator holds multiple platform entities, resulting in data silos. Furthermore, when handling duplicate requests, it tends to allocate new service nodes, which exacerbates the problem of the same customer being added repeatedly by multiple members and the conflict of ownership. In addition, while existing general rule engine-based risk control solutions have a certain degree of configurability, they are not deeply bound to the business semantics of historical association relationships, lack a precise fallback reassignment mechanism, and mostly adopt monolithic judgment, lacking a flexible and scalable processing architecture.
[0004] Therefore, there is an urgent need for a technical solution that can accurately identify duplicate requests in multi-platform scenarios and achieve accurate data backflow instead of simple interception when duplicates are detected. Summary of the Invention
[0005] In view of the deficiencies in the prior art, the purpose of this invention is to provide a method, apparatus and medium for processing repeated requests.
[0006] A method for processing duplicate requests according to the present invention includes: Obtain the target request and extract the first identifier carried by the target request; Based on the mapping relationship between the first identifier and the second identifier, multiple associated second identifiers are obtained, and historical associated data is queried based on the multiple second identifiers to obtain a set of associated records for cross-platform entities; Based on the associated record set and preset judgment conditions, determine whether the target request is a duplicate request; In response to the target request being a duplicate request, the original home node is located based on the associated record set, and a dedicated route identifier pointing to the original home node is generated or reused to redirect the target request.
[0007] Preferably, the first identifier is a global user identifier or a platform user identifier, and the second identifier is a local identifier within a specific platform entity; The step of obtaining multiple associated second identifiers based on the mapping relationship between the first identifier and the second identifier includes: Based on the global identifier, query the local identifiers under multiple platform entities and aggregate them to obtain a set of local identifiers; The query of historical related data based on the plurality of second identifiers includes: Based on the local identifier set, the historical service records under each platform entity are queried to obtain the associated record set.
[0008] Preferably, when the first identifier is a global user identifier, it is used for cross-platform subject mapping; when the first identifier is a platform user identifier, it is used for single-dimensional deduplication within a specific platform subject; the local identifier is external_user_id; Based on the global identifier, the local identifiers under multiple platform entities are queried and aggregated to obtain a set of local identifiers, including: When the target request does not carry a global user identifier, backtrack the authorization records that the platform user identifier has historically entered, and take the global user identifier as the completion value; Using the global user identifier as a condition, perform a batch query of the external contact table of the enterprise communication platform to obtain a list of external_user_ids of the target user under each enterprise communication platform entity; The process of querying historical service records under each platform entity based on the local identifier set includes: The original user follow record table is queried using the external_user_id list, and the time window condition and account range condition are superimposed to obtain the associated record set; wherein, the time window condition is limited to the record creation time not earlier than the current time minus the number of days of the filtered time range, and when the filtered time range is zero, it represents a permanent time window; the account range condition is limited to the enterprise communication platform account to which the record belongs being within the list of enterprise communication platform accounts that have been connected to the current system.
[0009] Preferably, locating the original belonging node based on the associated record set includes: Based on the hit authorization record, obtain the status identifier set, and query the enterprise communication platform friend relationship table based on the status identifier set. Take the most recent record in reverse order of primary key, and take the service node corresponding to the record as the original belonging node. The generation or reuse of the dedicated route identifier pointing to the original home node includes: Based on the set of status identifiers, query the routing identifier record table to see if there is already a record with the same status identifier that has not been deleted; If it exists, the route identifier address in the same state identifier record is reused as the exclusive route identifier; If it does not exist, then construct creation parameters containing the original home node information, call the identifier generation service to generate a new route identifier, and save the new route identifier to the route identifier record table.
[0010] Preferably, the original home node is the original adder, and the exclusive route identifier is the enterprise communication platform member QR code; The process of obtaining a set of status identifiers based on the matched authorization records, querying the enterprise communication platform's friend relationship table based on the set of status identifiers, retrieving the most recent record in descending order of the primary key, and using the service node corresponding to that record as the original belonging node includes: The target user's original corporate communication platform members and their corporate communication platform accounts are obtained by querying the enterprise communication platform friend relationship table using the status identifier set and retrieving the most recent record in reverse order of the primary key. The step of querying the routing identifier record table to see if a record with the same status identifier and not yet deleted already exists, based on the status identifier set, includes: Extract the first 30 digits of the status identifier from the status identifier set as the QR code status identifier, and query the QR code record table to see if there is already an undeleted record of the same QR code status identifier. The construction includes creation parameters containing the original home node information, and calls the identifier generation service to generate a new route identifier, including: Construct QR code creation parameters that include the enterprise communication platform account, the QR code status identifier, the non-temporary code, and the designated member being the original member of the enterprise communication platform. Call the QR code generation service to obtain the QR code image address and write it into the QR code record table with the repeated incoming line generation type.
[0011] Preferably, the method processes the target request through multiple processing nodes arranged in a preset order; The multiple processing nodes share a processing context and sequentially process the target request; The multiple processing nodes include a front-end processing node, a core decision node, a fallback routing node, and a post-processing trace node. The pre-processing node is used to parse the request snapshot and asynchronously pre-register authorization records; the core determination node is used to perform the step of determining whether the target request is a duplicate request; the fallback routing node is used to perform the step of generating or reusing the exclusive routing identifier pointing to the original home node; and the post-tracking node is used to asynchronously record the filtering detail log.
[0012] Preferably, the asynchronous pre-registration authorization record of the pre-processing node includes: Pre-registration is performed asynchronously via an independent thread pool: the authorization record table is queried based on the unique identifier of the promotion slot and the user identifier of the promotion snapshot; if it does not exist, a new authorization record is created, which includes the platform user identifier, global user identifier, channel IP, status identifier, link type, final status identifier, creation time and update time, and the online status flag is set to no. The post-tracking node asynchronously records filtered detail logs, including: Triggered when the core determination node determines that the target request is a duplicate request, it is executed asynchronously through a thread pool, assembling and writing the filter detail log, including the promotion task identifier, status identifier, platform code, platform user identifier, global user identifier, filter type, filter time range, frequency threshold, request IP address, and User-Agent; Check if a filtered user record already exists based on the promotion task and user ID. If not, add a new filtered user record.
[0013] Preferably, the preset judgment conditions include a filtering time range and a frequency threshold; The step of determining whether the target request is a duplicate request based on the associated record set and preset judgment conditions includes: When the filtering type is global deduplication, if the number of records in the associated record set is greater than or equal to the frequency threshold, it is determined to be a duplicate request. When the filtering type is single-dimensional deduplication, the authorized records are queried by selecting the matching key according to the request source type. In the case of public account, the platform user identifier is matched, and in the case of mini program, the global user identifier is matched. The filtering time range is superimposed, and all records are retrieved in reverse order by the primary key. When the number of records is greater than or equal to the frequency threshold, it is determined to be a duplicate request. When the filtering time range is zero, it represents a permanent time window without time restrictions.
[0014] A computer device according to the present invention includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method for processing repeated requests.
[0015] According to the present invention, a computer-readable storage medium is provided thereon storing a computer program, which, when executed by a processor, implements the method for processing repeated requests.
[0016] Compared with the prior art, the present invention has the following beneficial effects: 1. This application obtains the set of associated records of cross-platform entities based on the mapping relationship between the first identifier and the second identifier, and performs duplicate request determination accordingly. This achieves global and accurate deduplication by breaking the data silos of a single platform entity, and effectively solves the problem of duplicate identification omission caused by identifier fragmentation in multi-entity scenarios.
[0017] 2. This application achieves the transformation of traditional interception and discarding into precise routing backflow by locating the original belonging node based on the associated record set and generating or reusing a unique route identifier pointing to that node to redirect the request when the target request is determined to be a duplicate request. This avoids resource waste while preserving the commercial value of the data and maintaining the consistency of ownership.
[0018] 3. This application achieves decoupling and expansion of filtering logic and optimization of main link response performance by having multiple processing nodes arranged in a preset order share a context and process sequentially, and by executing the pre-registration and traceability steps asynchronously. It supports the flexible addition of filtering dimensions and the accumulation of complete evidence chain data without modifying the existing links. Attached Figure Description
[0019] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram of the promotion landing page inbound filtering chain processing system architecture according to an embodiment of this application; Figure 2 This is a flowchart of the promotion landing page inbound filtering method according to an embodiment of this application; Figure 3 This is a flowchart of the repeated incoming line filtering and original added person's live code return process in an embodiment of this application. Detailed Implementation
[0020] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0021] like Figure 1As shown, this embodiment provides a method for handling duplicate requests. The method includes: obtaining a target request and extracting a first identifier carried by the target request; obtaining multiple associated second identifiers based on the mapping relationship between the first identifier and second identifiers, and querying historical associated data based on the multiple second identifiers to obtain a set of associated records for a cross-platform entity; determining whether the target request is a duplicate request based on the set of associated records and preset judgment conditions; and in response to the target request being a duplicate request, locating the original home node based on the set of associated records, and generating or reusing a dedicated routing identifier pointing to the original home node to redirect the target request.
[0022] In this embodiment, the target request specifically refers to the user's lead submission or member addition behavior initiated through the promotion landing page (i.e., "incoming line"), the original home node specifically refers to the first enterprise communication platform member added by the user in history (i.e., "original adder"), and the exclusive route identifier specifically refers to the enterprise communication platform contact QR code that can be dynamically bound to the member (i.e., "dynamic code").
[0023] To achieve efficient flow and decoupled extension of the above method, this application adopts the following... Figure 1 The system employs a chained processing architecture. A unified filter handler interface, `FilterHandler`, is defined, which declares the `orderSort()` method for sequence numbers and the `handle(context, result object)` method for processing. Upon system startup, all `FilterHandler` implementations are collected and arranged into a processing chain in ascending order according to `orderSort()`. Each incoming request constructs a shared filter context, `FilterContext`. Each handler in the chain reads and writes to this context sequentially. Data generated in the previous step is directly used by subsequent steps, forming a closed loop of "pre-recording—decision—fallback—traceability".
[0024] Multiple processing nodes include the pre-processing node BeforeFilterHandler (number 10), the core decision node CoreFilterHandler (number 20), the fallback routing node OriginQrFilterHandler (number 30), and the post-logging node AfterFilterLogHandler (number 40). The pre-processing node parses the request snapshot and asynchronously pre-registers authorization records; the core decision node determines whether the target request is a duplicate request; the fallback routing node generates or reuses a unique route identifier pointing to the original belonging node; and the post-logging node asynchronously records detailed filtering logs. The processing chain ultimately returns a filtering result object, containing a permission flag, a prompt message, a prompt processing method, and a fallback QR code URL. Adding a new filtering dimension only requires adding an implementation class and specifying the sequence number; no changes to the existing chain are needed.
[0025] In the pre-processing stage of step S1, combined with Figure 2 The pre-processing node asynchronously pre-registers authorization records, including: performing pre-registration asynchronously through an independent thread pool: querying the authorization record table based on the unique identifier of the promotion position and the user identifier of the promotion snapshot; if it does not exist, creating a new authorization record, writing the platform user identifier, global user identifier, channel IP, status identifier, link type, final status identifier, creation time and update time, and setting the online status flag to no.
[0026] Specifically, the unique identifier for the promotion slot corresponds to the `state` parameter, and the user identifier is the platform user identifier in the WeChat Official Account scenario and the global user identifier in the WeChat Mini Program scenario. By executing asynchronously through an independent thread pool, time-consuming database write operations can be separated from the main synchronous chain, ensuring low-latency response for filtering and judgment.
[0027] In a preferred embodiment, when the platform returns a result without a global user identifier, the system will backtrack and query the authorization records of the platform's user identifier that have been accessed historically, and use the global user identifier as the completion value. This completion mechanism is primarily applicable to WeChat Official Account scenarios; in Mini Program scenarios, the global user identifier can be directly obtained due to the authorization mechanism, and failure to obtain it is considered an authorization failure. This completion mechanism ensures that subsequent cross-account aggregation judgments can be based on a unified global identity identifier, avoiding deduplication failure due to a single request lacking a global user identifier. Simultaneously, the pre-processing node will also query the association between the task and the channel based on the promotion task identifier in the promotion snapshot information, obtain the promotion IP channel identifier (channelId), and write it into the filtering context for subsequent single-IP dimension judgment.
[0028] In the core determination stage of step S2, combined with Figure 3 The first identifier is a global identifier across platforms, and the second identifier is a local identifier within a specific platform. Based on the mapping relationship between the first identifier and the second identifier, multiple associated second identifiers are obtained, including: based on the global identifier, querying local identifiers under multiple platform entities and aggregating them to obtain a set of local identifiers; and querying historical associated data based on multiple second identifiers, including: based on the set of local identifiers, querying historical service records under each platform entity and obtaining a set of associated records.
[0029] In specific application scenarios, the global identifier is either the global user identifier or the platform user identifier, while the local identifier is `external_user_id`. When the target request does not carry the global user identifier, the system backtracks to query the authorization records that have been initiated by the platform user identifier in the past, and uses the global user identifier as the completion value. Then, it performs a batch query on the external contact table of the enterprise communication platform using the global user identifier as a condition to obtain the list of `external_user_id` for the target user under each enterprise communication platform entity.
[0030] Subsequently, the original user follow record table is queried using the external_user_id list, and time window and account range conditions are overlaid to obtain a set of related records. The time window condition limits the record creation time to no earlier than the current time minus the number of days in the filtered time range (global deduplication uses the creation time of the original user follow record table as the time window, while single-dimensional deduplication uses the access time of the authorization record table as the time window). A filter time range of zero indicates a permanent time window. The account range condition limits the record's enterprise communication platform account to be within the list of enterprise communication platform accounts already connected to the current system when the authorized filter range is configured to the current enterprise scope.
[0031] For example, when the filter time range is configured to 3 days, only incoming call records from the most recent 3 days are counted; when configured to 0 days, it represents a permanent time window, counting all historical records of the user since registration. The frequency threshold thresholdTimes can be configured to 1 time or 5 times, etc. When the number of records is greater than or equal to this threshold, it is determined to be a duplicate. If a duplicate incoming call is determined, the system sets the allow flag of the result object to no, fills in the prompt text and prompt handling method, and writes the matched historical authorization records and their final status identifiers into the context for use in steps S3 and S4.
[0032] The preset judgment criteria include a filtering time range and a frequency threshold; based on the associated record set and the preset judgment criteria, it determines whether the target request is a duplicate request, including: When the filtering type is global deduplication, if the number of records in the associated record set is greater than or equal to the frequency threshold, it is determined to be a duplicate request. When the filtering type is single-dimensional deduplication, the system queries authorized records by selecting the matching key based on the authorization type—matching platform user identifiers for WeChat Official Account scenarios and global user identifiers for Mini Program scenarios—and overlays the filtering time range. All records are retrieved in descending order of the primary key. If the number of records is greater than or equal to the frequency threshold, it is considered a duplicate request. When the filtering time range is zero, it represents a permanent time window with no time limit. For single-dimensional deduplication mode, if the filtering type is IP and the channel IP in the context is not empty, the condition "channel IP equals the current channel IP" is added to control user frequency under the same ad placement IP.
[0033] In step S3, the fallback routing return phase, combined with Figure 2This step has three pre-verification checks: execution continues only if (a) step S2 determines that the request will not be allowed, (b) the prompt processing method is configured to the original adder's QR code, and (c) the set of hit status identifiers in the context is not empty; otherwise, it is skipped. After the pre-verification conditions are met, the original home node is located based on the set of associated records, including: obtaining the set of status identifiers based on the hit authorization records, querying the enterprise communication platform's friend relationship table based on the set of status identifiers, taking the most recent record in reverse order of the primary key, and using the service node corresponding to that record as the original home node; generating or reusing a dedicated route identifier pointing to the original home node, including: querying the route identifier record table to see if there is already a record with the same status identifier that has not been deleted; if so, reusing the route identifier address in the record with the same status identifier as the dedicated route identifier; if not, constructing creation parameters containing the original home node information, calling the identifier generation service to generate a new route identifier, and storing the new route identifier in the route identifier record table.
[0034] In one specific implementation, the original attribution node is the original adder, and the exclusive route identifier is the enterprise communication platform member's QR code. Based on the matched authorization record, a set of status identifiers is obtained. Then, the enterprise communication platform's friend relationship table is queried based on the status identifier set, and the most recent record is retrieved in descending order of the primary key. The service node corresponding to this record is taken as the original attribution node. This includes: querying the enterprise communication platform's friend relationship table using the status identifier set, retrieving the most recent record in descending order of the primary key, and obtaining the target user's original attribution enterprise communication platform member followUserId and its associated enterprise communication platform account qyId.
[0035] Based on the status identifier set, query the routing identifier record table to see if there is already a record with the same status identifier that has not been deleted. This includes: taking the first 30 digits of the status identifier in the status identifier set as the QR code status identifier, and querying the QR code record table to see if there is already a record with the same QR code status identifier that has not been deleted.
[0036] The system constructs creation parameters containing information about the original home node, and calls the identifier generation service to generate a new routing identifier. This includes: constructing QR code creation parameters containing the enterprise communication platform account, QR code status identifier, non-temporary code, and specifying the member as a member of the original home enterprise communication platform; calling the QR code generation service to obtain the QR code image address and configuration identifier; and writing the QR code to the QR code record table as a repeated incoming line generation type, associating it with the promotion task identifier and snapshot identifier. The first 30 characters of the state are truncated to adapt to the enterprise communication platform interface's length limit for state parameters; the "non-temporary code" parameter ensures the generated live code is valid for a long time; the "repeated incoming line generation type" database marker facilitates subsequent differentiation between QR codes generated by normal allocation and fallback return flows. The system prioritizes reusability logic, only calling external interfaces to generate new codes when no available records exist, reducing the number of calls to external APIs.
[0037] In step S4, the post-tracking stage, the post-tracking node asynchronously records the filtering detail log, including: triggering when the core judgment node determines that the target request is a duplicate request, executing asynchronously through a thread pool without blocking the main link response, assembling the filtering detail log and writing the promotion task identifier, status identifier, platform code, platform user identifier, global user identifier, filtering type, filtering time range, frequency threshold, request IP address, User-Agent, and creation time; querying whether a filtering user record already exists by promotion task and user identifier, and adding a new filtering user record if it does not exist.
[0038] In a preferred embodiment, if the context hit status identifier set is not empty, the system queries the friend relationship table to obtain the enterprise communication platform account identifier and external_user_id, writes them to the log, and further uses external_user_id and enterprise communication platform account to look up the external contact table, using the authoritative global user identifier therein to overwrite the global user identifier field in the log, thereby improving the identity accuracy of the log data. Anomalies are captured and logged throughout the entire process; anomalies during the logging process do not affect the filtering conclusions and QR code return of the main link.
[0039] The user table is filtered by querying based on promotion tasks and user identifiers. For WeChat Official Accounts, the platform user identifier is used, and for WeChat Mini Programs, the global user identifier is used. If the user does not exist, a new record is created, which includes the promotion task identifier, platform code, platform user identifier, global user identifier, enterprise communication platform account, external_user_id, and creation time. This creates a set of accumulated data that can be queried, reviewed, and used for rule optimization by the operations team.
[0040] In a real-world application verification, a global deduplication rule was configured for a promotional campaign, with a filtering time range of 0 days (permanent) and a frequency threshold of 1. When the same user re-entered the service through different landing pages at different times, the system successfully identified it as a duplicate request and automatically generated a unique QR code pointing to the original contact who initially added the user. After scanning the code, the user was directly redirected to the original service provider, preventing lead loss and avoiding attribution conflicts caused by multiple employees repeatedly adding the same customer.
[0041] Furthermore, this application also provides a computer device, including a memory and a processor, wherein a computer program is stored on the memory, and the processor executes the computer program to implement the method described in this embodiment. This application also provides a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the method described in this embodiment.
[0042] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0043] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A method for handling duplicate requests, characterized in that, include: Obtain the target request and extract the first identifier carried by the target request; Based on the mapping relationship between the first identifier and the second identifier, multiple associated second identifiers are obtained, and historical associated data is queried based on the multiple second identifiers to obtain a set of associated records for cross-platform entities; Based on the associated record set and preset judgment conditions, determine whether the target request is a duplicate request; In response to the target request being a duplicate request, the original home node is located based on the associated record set, and a dedicated route identifier pointing to the original home node is generated or reused to redirect the target request.
2. The method for processing duplicate requests according to claim 1, characterized in that, The first identifier is a global user identifier or a platform user identifier, and the second identifier is a local identifier within a specific platform entity; The step of obtaining multiple associated second identifiers based on the mapping relationship between the first identifier and the second identifier includes: Based on the global identifier, query the local identifiers under multiple platform entities and aggregate them to obtain a set of local identifiers; The query of historical related data based on the plurality of second identifiers includes: Based on the local identifier set, the historical service records under each platform entity are queried to obtain the associated record set.
3. The method for processing duplicate requests according to claim 2, characterized in that, When the first identifier is a global user identifier, it is used for cross-platform entity mapping; when the first identifier is a platform user identifier, it is used for single-dimensional deduplication within a specific platform entity; the local identifier is external_user_id; Based on the global identifier, the local identifiers under multiple platform entities are queried and aggregated to obtain a set of local identifiers, including: When the target request does not carry a global user identifier, backtrack the authorization records that the platform user identifier has historically entered, and take the global user identifier as the completion value; Using the global user identifier as a condition, perform a batch query of the external contact table of the enterprise communication platform to obtain a list of external_user_ids of the target user under each enterprise communication platform entity; The process of querying historical service records under each platform entity based on the local identifier set includes: The original user follow record table is queried using the external_user_id list, and the time window condition and account range condition are superimposed to obtain the associated record set; wherein, the time window condition is limited to the record creation time not earlier than the current time minus the number of days of the filtered time range, and when the filtered time range is zero, it represents a permanent time window; the account range condition is limited to the enterprise communication platform account to which the record belongs being within the list of enterprise communication platform accounts that have been connected to the current system.
4. The method for processing duplicate requests according to claim 1, characterized in that, The process of locating the original node based on the set of associated records includes: Based on the hit authorization record, obtain the status identifier set, and query the enterprise communication platform friend relationship table based on the status identifier set. Take the most recent record in reverse order of primary key, and take the service node corresponding to the record as the original belonging node. The generation or reuse of the dedicated route identifier pointing to the original home node includes: Based on the set of status identifiers, query the routing identifier record table to see if there is already a record with the same status identifier that has not been deleted; If it exists, the route identifier address in the same state identifier record is reused as the exclusive route identifier; If it does not exist, then construct creation parameters containing the original home node information, call the identifier generation service to generate a new route identifier, and save the new route identifier to the route identifier record table.
5. The method for processing duplicate requests according to claim 4, characterized in that, The original home node is the original user who added the service, and the exclusive route identifier is the enterprise communication platform member's QR code. The process of obtaining a set of status identifiers based on the matched authorization records, querying the enterprise communication platform's friend relationship table based on the set of status identifiers, retrieving the most recent record in descending order of the primary key, and using the service node corresponding to that record as the original belonging node includes: The target user's original corporate communication platform members and their corporate communication platform accounts are obtained by querying the enterprise communication platform friend relationship table using the status identifier set and retrieving the most recent record in reverse order of the primary key. The step of querying the routing identifier record table to see if a record with the same status identifier that has not been deleted already exists, based on the status identifier set, includes: Extract the first 30 digits of the status identifier from the status identifier set as the QR code status identifier, and query the QR code record table to see if there is already an undeleted record of the same QR code status identifier. The construction includes creation parameters containing the original home node information, and calls the identifier generation service to generate a new route identifier, including: Construct QR code creation parameters that include the enterprise communication platform account, the QR code status identifier, the non-temporary code, and the designated member being the original member of the enterprise communication platform. Call the QR code generation service to obtain the QR code image address and write it into the QR code record table with the repeated incoming line generation type.
6. The method for processing duplicate requests according to claim 1, characterized in that, The method processes the target request through multiple processing nodes arranged in a preset order; The multiple processing nodes share a processing context and sequentially process the target request; The multiple processing nodes include a front-end processing node, a core decision node, a fallback routing node, and a post-processing trace node. The pre-processing node is used to parse the request snapshot and asynchronously pre-register authorization records; the core determination node is used to perform the step of determining whether the target request is a duplicate request; the fallback routing node is used to perform the step of generating or reusing the exclusive routing identifier pointing to the original home node; and the post-tracking node is used to asynchronously record the filtering detail log.
7. The method for processing duplicate requests according to claim 6, characterized in that, The asynchronous pre-registration authorization record of the pre-processing node includes: Pre-registration is performed asynchronously via an independent thread pool: the authorization record table is queried based on the unique identifier of the promotion slot and the user identifier of the promotion snapshot; if it does not exist, a new authorization record is created, which includes the platform user identifier, global user identifier, channel IP, status identifier, link type, final status identifier, creation time and update time, and the online status flag is set to no. The post-tracking node asynchronously records filtered detail logs, including: Triggered when the core determination node determines that the target request is a duplicate request, it is executed asynchronously through a thread pool, assembling and writing the filter detail log, including the promotion task identifier, status identifier, platform code, platform user identifier, global user identifier, filter type, filter time range, frequency threshold, request IP address, and User-Agent; Check if a filtered user record already exists based on the promotion task and user ID. If not, add a new filtered user record.
8. The method for processing duplicate requests according to claim 1, characterized in that, The preset judgment conditions include the filtering time range and frequency threshold; The step of determining whether the target request is a duplicate request based on the associated record set and preset judgment conditions includes: When the filtering type is global deduplication, if the number of records in the associated record set is greater than or equal to the frequency threshold, it is determined to be a duplicate request. When the filtering type is single-dimensional deduplication, the authorized records are queried by selecting the matching key according to the request source type. In the case of public account, the platform user identifier is matched, and in the case of mini program, the global user identifier is matched. The filtering time range is superimposed, and all records are retrieved in reverse order by the primary key. When the number of records is greater than or equal to the frequency threshold, it is determined to be a duplicate request. When the filtering time range is zero, it represents a permanent time window without time restrictions.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method for processing repeated requests as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for processing repeated requests as described in any one of claims 1 to 8.
