Information processing method, information processing apparatus, electronic device, and storage medium

By using a target rule linked list and a dynamic rule update mechanism, the problem of coupling between information processing logic and business logic is solved, enabling flexible configuration of information processing logic and efficient business adaptability.

CN114461909BActive Publication Date: 2026-04-14BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-07
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The coupling of information processing logic and business logic in related technologies leads to high development costs, a lack of flexible configuration parsing and integration mechanisms, and difficulty in adapting to complex business needs.

Method used

The target rule chain is used to traverse and match attribute information. The activation or deactivation of processing rules is controlled by configuring the activation status flag and action flag. The rule chain is dynamically updated in combination with rule change events to achieve decoupling of information processing logic and business logic.

Benefits of technology

It reduces the development cost of information processing logic, improves the configuration flexibility and efficiency of information processing logic, and adapts to complex business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461909B_ABST
    Figure CN114461909B_ABST
Patent Text Reader

Abstract

The present disclosure provides an information processing method, comprising: in response to an access request for a target item, obtaining first attribute information associated with the target item; performing traversal matching on the first attribute information using a target rule chain table, wherein the target rule chain table is configured with an item type, the item type of the target rule chain table is the same as an item type to which the target item belongs, the target rule chain table comprises one or more processing rules, and the processing rule comprises one or more matching rules; for each processing rule, performing traversal matching on the first attribute information using the one or more matching rules of the processing rule; and in response to the first attribute information hitting a current matching rule, sending first feedback information to a terminal device associated with a requester of the access request, wherein the first feedback information represents that the target item cannot be accessed. The present disclosure also provides an information processing apparatus, device, medium and program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of Internet technology, and more specifically, to an information processing method, apparatus, electronic device, readable storage medium, and computer program product. Background Technology

[0002] With the development and popularization of internet technology, the internet has become increasingly integrated with people's work and lives, and people are accustomed to obtaining information through the client applications of various internet companies. To prevent the leakage of sensitive information or trade secrets, internet companies usually perform a series of processing steps on information before displaying it.

[0003] In the process of realizing the present invention, the inventors have found that the related technologies have at least the following problems: the information processing logic and business logic are coupled in the related technologies, resulting in high development costs. Summary of the Invention

[0004] In view of the above, this disclosure provides an information processing method, apparatus, electronic device, readable storage medium, and computer program product.

[0005] One aspect of this disclosure provides an information processing method, comprising: in response to an access request for a target item, obtaining first attribute information associated with the target item; traversing and matching the first attribute information using a target rule list, wherein the target rule list is configured with item types, the item types in the target rule list are the same as the item types to which the target item belongs, the target rule list includes one or more processing rules, and the processing rules include one or more matching rules; for each processing rule, traversing and matching the first attribute information using one or more of the matching rules of the processing rule; and in response to the first attribute information matching a current matching rule, sending first feedback information to a terminal device associated with the requester of the access request, wherein the first feedback information indicates that the target item cannot be accessed.

[0006] According to embodiments of this disclosure, the processing rule is further configured with an enable status identifier; the method further includes: obtaining the enable status identifier of the processing rule in the target rule chain; when the enable status identifier indicates that the processing rule is enabled, performing traversal matching on the first attribute information using one or more of the matching rules of the processing rule; and when the enable status identifier indicates that the processing rule is disabled, stopping the matching of the first attribute information using the processing rule.

[0007] According to an embodiment of this disclosure, the method further includes: when a pre-action identifier is configured in the processing rule, performing a first preset operation corresponding to the pre-action identifier to obtain second attribute information associated with the target item; wherein, for each processing rule, performing traversal matching on the first attribute information using one or more of the matching rules of the processing rule includes: performing traversal matching on the first attribute information and the second attribute information using one or more of the matching rules of the processing rule.

[0008] According to an embodiment of this disclosure, the method further includes: responding to the first attribute information matching the current matching rule, and if a post-action identifier is configured in the processing rule, performing a second preset operation corresponding to the post-action identifier to generate second feedback information; and sending the second feedback information to the terminal device.

[0009] According to embodiments of this disclosure, the method further includes: in response to triggering a system startup event, obtaining one or more rule strings from a configuration center; performing data format conversion on the one or more rule strings to obtain one or more processing rules; and storing the one or more processing rules in a cache.

[0010] According to embodiments of this disclosure, the method further includes: in response to triggering a rule change event, obtaining the target rule string that has undergone a rule change from the configuration center; determining the target processing rule in the cache corresponding to the target rule string; performing data format conversion on the target rule string to obtain the changed target processing rule; and storing the changed target processing rule in the cache to replace the target processing rule using the changed target processing rule.

[0011] According to embodiments of this disclosure, the method further includes: loading one or more processing rules from the cache, wherein the processing rules are configured with item types; classifying multiple processing rules based on the item types of the one or more processing rules; constructing a rule list of one or more processing rules belonging to the same item type; and storing the rule list in the cache.

[0012] According to embodiments of this disclosure, the processing rules are further configured with priority values; wherein, constructing one or more processing rules belonging to the same item type into the rule linked list includes: grouping one or more processing rules belonging to the same item type to obtain a first rule group and a second rule group, wherein each first rule group includes multiple processing rules with the same matching rule, and the second rule group includes multiple processing rules with different matching rules; constructing a first rule sub-linked list for each processing rule of the first rule group according to the priority value of the processing rules, wherein the priority value of the first rule sub-linked list is the maximum value among the priority values ​​of the processing rules of the first rule group; constructing a second rule sub-linked list for each processing rule of the second rule group, wherein the priority value of the second rule sub-linked list is the priority value of the processing rule that constructed the second rule sub-linked list; and constructing the first rule sub-linked list and the second rule sub-linked list into the rule linked list based on the priority values ​​of the first rule sub-linked list and the second rule sub-linked list.

[0013] According to an embodiment of this disclosure, the matching rule is configured with a matching attribute; the method further includes: determining that the current first attribute information matches the current matching rule when the matching attribute of the current matching rule is consistent with the first attribute information.

[0014] According to an embodiment of this disclosure, the matching rule is configured with a script identifier; wherein, the process of using one or more of the matching rules of the processing rule to traverse and match the first attribute information includes: obtaining a matching script corresponding to the script identifier of the matching rule; loading the matching script into the rule engine to execute the matching script to parse the matching rule; and using the parsed matching rule to match the first attribute information.

[0015] According to embodiments of this disclosure, obtaining the matching script corresponding to the script identifier of the current matching rule includes: using a preset script as the matching script when the script identifier of the matching rule is empty; and obtaining the script corresponding to the script identifier from the script library as the matching script when the script identifier of the matching rule is not empty.

[0016] According to an embodiment of this disclosure, the method further includes: terminating the use of the target rule list to traverse and match the untraversed first attribute information when the first attribute information matches the current matching rule; and sending third feedback information to the terminal device when the matching results of traversing and matching all the first attribute information using the target rule list are all considered to be non-matches, wherein the third feedback information indicates that access to the target item is permitted.

[0017] Another aspect of this disclosure provides an information processing apparatus, comprising: a first acquisition module, configured to acquire first attribute information associated with the target item in response to an access request for the target item; a first matching module, configured to traverse and match the first attribute information using a target rule chain, wherein the target rule chain is configured with item types, the item types in the target rule chain are the same as the item type to which the target item belongs, the target rule chain includes one or more processing rules, and the processing rules include one or more matching rules; a second matching module, configured to traverse and match the first attribute information using one or more of the matching rules of the processing rule for each processing rule; and a first sending module, configured to send first feedback information to a terminal device associated with the requester of the access request in response to the first attribute information matching the current matching rule, wherein the first feedback information indicates that the target item cannot be accessed.

[0018] Another aspect of this disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to perform the method as described above.

[0019] Another aspect of this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed, are used to implement the method described above.

[0020] Another aspect of this disclosure provides a computer program product including computer-executable instructions that, when executed, implement the method described above.

[0021] According to embodiments of this disclosure, upon receiving an access request for a target item, first attribute information associated with the target item can be obtained. A rule list with the same item type as the target item is then used to match the first attribute information. If the first attribute information matches a rule, the target item is refused to be displayed. By using a rule list to implement the item's information processing logic, the development of the rule list does not affect the normal use of the business logic, thus decoupling the information processing logic from the business logic. Therefore, this at least partially overcomes the technical problems of high development costs due to the coupling of information processing logic and business logic in related technologies, effectively reducing the development cost of the information processing logic and improving the flexibility of its configuration. Attached Figure Description

[0022] The above and other objects, features, and advantages of this disclosure will become clearer from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0023] Figure 1 An exemplary system architecture to which information processing methods can be applied according to embodiments of this disclosure is illustrated.

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

[0025] Figure 3 A schematic diagram of a rule list generation method according to an embodiment of the present disclosure is shown.

[0026] Figure 4 A flowchart illustrating an information processing method according to another embodiment of the present disclosure is shown schematically.

[0027] Figure 5 A block diagram of an information processing apparatus according to an embodiment of the present disclosure is shown schematically.

[0028] Figure 6 A block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure is shown schematically. Detailed Implementation

[0029] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

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

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

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

[0033] Internet companies' information processing can include information blocking and information transformation. Taking item information blocking as an example, related technical solutions configure specific blocking rules in a configuration center and implement the parsing logic of the blocking rules through hard coding to achieve the blocking of item information. As the demand for item information blocking increases, the corresponding business becomes increasingly complex. These technical solutions, lacking configurability for rule processing, lack flexible configuration parsing and integration mechanisms, and suffer from redundant and insufficiently cohesive processing logic, making them unable to adapt to rapid business growth and flexibly solve complex business functions. For example, using hard coding combined with blocking configuration parsing rules results in scattered, insufficiently cohesive, and low reusability blocking logic; the order in the configuration file determines the rule priority, making it inconvenient to adjust the blocking rule configuration order and posing a risk of configuration errors; the rule parsing logic does not support fine-grained blocking, such as blocking a second-level item category while not blocking certain types of items within that second-level category, lacking a whitelist mechanism.

[0034] Therefore, for the sake of optimizing the internal code logic and improving performance, it is necessary to integrate and streamline the code with repetitive logic to improve code maintainability, thereby promoting program performance and development efficiency and reducing the probability of problems.

[0035] In view of the above, embodiments of this disclosure provide an information processing method, apparatus, electronic device, readable storage medium, and computer program product. The method includes: in response to an access request for a target item, obtaining first attribute information associated with the target item; traversing and matching the first attribute information using a target rule list, wherein the target rule list is configured with item types, the item types in the target rule list are the same as the item type to which the target item belongs, the target rule list includes one or more processing rules, and each processing rule includes one or more matching rules; for each processing rule, traversing and matching the first attribute information using one or more matching rules of the processing rule; and in response to the first attribute information matching a current matching rule, sending first feedback information to a terminal device associated with the requester of the access request, wherein the first feedback information indicates that the target item cannot be accessed.

[0036] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.

[0037] Figure 1 An exemplary system architecture to which information processing methods can be applied according to embodiments of this disclosure is illustrated schematically. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.

[0038] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, and 103, a network 104, and a server 105.

[0039] Terminal devices 101, 102, and 103 can be various electronic devices with displays and supporting Internet services, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0040] Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social media platforms. Users can use the communication client applications on terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages.

[0041] Network 104 is a medium used to provide a communication link between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired and / or wireless communication links, etc.

[0042] Server 105 can be a server that provides various services. For example, server 105 can be a backend management server that provides support for a shopping application when a user accesses it. The backend management server can receive user access requests, process the relevant attribute information of the access target, and display the processing results on terminal devices 101, 102, and 103.

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

[0044] For example, a user can initiate an access request through any one of terminal devices 101, 102, or 103 (e.g., terminal device 101, but not limited thereto). After receiving the access request, terminal device 101 can execute the information processing method provided in the embodiments of this disclosure locally, or terminal device 101 can send the access request to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the image to be processed can execute the information processing method provided in the embodiments of this disclosure.

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

[0046] It should be noted that, unless it is explicitly stated that there is a sequential order of execution between different operations, or that there is a sequential order of execution between different operations in terms of technical implementation, the execution order between multiple operations may not be significant, and multiple operations may be executed simultaneously.

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

[0048] like Figure 2 As shown, the method includes operations S201 to S204.

[0049] In operation S201, in response to an access request for the target item, the first attribute information associated with the target item is obtained.

[0050] In operation S202, the target rule list is used to traverse and match the first attribute information. The target rule list is configured with item types, and the item types in the target rule list are the same as the item types to which the target item belongs. The target rule list includes one or more processing rules, and the processing rules include one or more matching rules.

[0051] In operation S203, for each processing rule, the first attribute information is iterated and matched using one or more matching rules of the processing rule.

[0052] In operation S204, in response to the first attribute information matching the current matching rule, a first feedback message is sent to the terminal device associated with the requester of the access request. The first feedback message indicates that the target item cannot be accessed.

[0053] According to embodiments of this disclosure, the target item may refer to an item displayed on a display device, and the target item may originate from advertisements, shopping applications, mini-program applications, etc., without limitation.

[0054] According to embodiments of this disclosure, an access request for a target item may be generated by a terminal device in response to a user's click on or search for the target item, and is not limited thereto.

[0055] According to embodiments of this disclosure, the first attribute information associated with the target item may include item details, activity information, business line information, etc., such as the price of the target item, manufacturer information, specification details, review information, associated promotional activities, etc.

[0056] It should be noted that processing the attribute information of the target item is only an illustrative embodiment provided in this disclosure. The embodiments of this disclosure can also process the attribute information of other types of objects, including but not limited to network information, audio and video, financial products, etc.

[0057] According to embodiments of this disclosure, the classification criteria for item types can be set according to specific application scenarios. For example, when there are few types of items, they can be classified according to categories such as household appliances and digital products; when there are many types of items, they can be classified according to categories such as mobile phones and computers.

[0058] According to embodiments of this disclosure, processing rules can be written by developers and stored in a configuration center; when in use, the processing rules stored in the configuration center can be extracted and combined into a rule chain for use.

[0059] According to embodiments of this disclosure, traversal matching using a rule list may include matching one or more processing rules in the rule list sequentially with selected first attribute information in order from the head to the tail of the list.

[0060] According to embodiments of this disclosure, the processing rules may include one or more matching rules arranged in sequence. For example, a processing rule "rules" may include multiple matching rules such as "skuId" and "isSelfService". Specifically, traversing and matching the first attribute information using the processing rules includes: sequentially matching the first attribute information using one or more matching rules in the original order of the multiple matching rules in the processing rules.

[0061] According to embodiments of this disclosure, the matching rule is configured with at least an attribute for matching and a script for parsing the matching rule. The script is used to parse the matching rule when matching the first attribute information with the matching rule.

[0062] According to embodiments of this disclosure, when the first attribute information matches the current matching rule, it can be considered that the first attribute information matches the current matching rule. At this time, it can be considered that the target item carries information that does not conform to the rule, and a first feedback message can be sent to the terminal device, and the terminal device's request for information related to the target item can be rejected.

[0063] According to embodiments of this disclosure, upon receiving an access request for a target item, first attribute information associated with the target item can be obtained. A rule list with the same item type as the target item is then used to match the first attribute information. If the first attribute information matches a rule, the target item is refused to be displayed. By using a rule list to implement the item's information processing logic, the development of the rule list does not affect the normal use of the business logic, thus decoupling the information processing logic from the business logic. Therefore, this at least partially overcomes the technical problems of high development costs due to the coupling of information processing logic and business logic in related technologies, effectively reducing the development cost of the information processing logic and improving the flexibility of its configuration.

[0064] The following is for reference. Figures 3-4 In conjunction with specific embodiments, Figure 2 The method shown will be further explained.

[0065] Figure 3 A schematic diagram of a rule list generation method according to an embodiment of the present disclosure is shown.

[0066] like Figure 3 As shown, the method includes operations S301 to S305.

[0067] When operating S301, one or more rule strings are retrieved from the configuration center.

[0068] In operation S302, data format conversion is performed on one or more rule strings to obtain one or more processing rules.

[0069] In operation S303, multiple processing rules are classified based on the item type of one or more processing rules.

[0070] In operation S304, one or more processing rules belonging to the same item type are constructed into a rule chain.

[0071] When operating S305, the rule list is stored in the cache.

[0072] According to embodiments of this disclosure, during the system startup phase, all processing rules can be loaded from the configuration center into the local cache.

[0073] According to embodiments of this disclosure, during system operation, the configuration center can also be monitored. When developers adjust the processing rules, rule change events can be detected, and then the processing rules stored in the local cache can be adjusted in response to the rule change event.

[0074] According to embodiments of this disclosure, adjusting the processing rules stored in the local cache in response to the rule change event may include the following operations: in response to triggering the rule change event, obtaining the target rule string that has undergone the rule change from the configuration center; determining the target processing rule in the cache corresponding to the target rule string; performing data format conversion on the target rule string to obtain the changed target processing rule; and storing the changed target processing rule in the cache so as to replace the target processing rule with the changed target processing rule.

[0075] According to embodiments of this disclosure, the processing rules stored in the configuration center are generally stored in a string format, such as a JSON data string. Before caching the processing rules, they can be converted into rule objects to enable caching of the stored processing rules.

[0076] According to embodiments of this disclosure, a "priority" attribute can be configured in the processing rule. The value of "priority" represents the priority value of the processing rule and all matching rules under it. The logical relationship between the priority value and the priority can be configured according to specific business scenarios; for example, it can be configured such that the larger the priority value, the higher the priority.

[0077] According to embodiments of this disclosure, the priority value of the processing rule can be configured by the developer according to the specific business scenario, or it can be configured according to the statistical results of the number of times the processing rule is called, and there is no limitation here.

[0078] According to embodiments of this disclosure, operation S304 may include the following operations:

[0079] One or more processing rules belonging to the same item type are grouped to obtain a first rule group and a second rule group. Each first rule group includes multiple processing rules with the same matching rule, and each second rule group includes multiple processing rules with different matching rules. Based on the priority value of the processing rules, the processing rules of each first rule group are constructed into a first rule sub-linked list, where the priority value of the first rule sub-linked list is the maximum priority value among the processing rules in the first rule group. Each processing rule in the second rule group is then constructed into a second rule sub-linked list, where the priority value of the second rule sub-linked list is the priority value of the processing rule that constructed the second rule sub-linked list. Finally, based on the priority values ​​of the first and second rule sub-linked lists, the first and second rule sub-linked lists are constructed into a rule linked list.

[0080] According to embodiments of this disclosure, the number of first rule groups can be zero, one, or more, and each first rule group includes at least two processing rules. The number of second rule groups is only one, and the number of processing rules in the second rule group can be zero, one, or more. For example, processing rules belonging to the same item type include processing rule A1 and processing rule B1. Processing rule A1 has matching rules a1 and a2, and processing rule B1 has matching rules b1 and b2. Since the matching rules of processing rule A1 and processing rule B1 are different, the number of first rule groups after grouping is zero, and the number of processing rules in the second rule group is two. For example, processing rules belonging to the same item type include processing rule A1, processing rule B1, and processing rule A2. Processing rule A1 has matching rules a1 and a2, processing rule B1 has matching rules a1 and b1, and processing rule A2 has matching rules a2 and b2. Since processing rule A1 has the same matching rules as processing rule B1 and processing rule A2, the number of the first rule group after grouping is 1, which includes 3 processing rules. The number of processing rules in the second rule group is 0.

[0081] According to embodiments of this disclosure, when constructing a rule sub-list or rule list based on priority values, the list can be constructed in descending order of priority values, so that the most frequently used processing rules are located at the front of the rule list, thereby effectively improving the processing efficiency of rule matching and reducing the number of traversals.

[0082] Figure 4 A flowchart illustrating an information processing method according to another embodiment of the present disclosure is shown schematically.

[0083] like Figure 4 As shown, the method includes operations S401 to S416.

[0084] In operation S401, obtain the first attribute information and extract the target rule chain list.

[0085] In operation S402, the target rule list is used to traverse and match the first attribute information.

[0086] In operation S403, determine whether the processing rule is enabled; if the processing rule is enabled, execute operation S404; if the processing rule is not enabled, return to execute operation S402 to use the next processing rule in the rule chain for processing.

[0087] In operation S404, determine whether there is a preceding action flag; if it is determined that there is a preceding action flag, execute operation S405; if it is determined that there is no preceding action flag, execute operation S407.

[0088] In operation S405, the first preset operation corresponding to the preceding action identifier is executed to obtain the second attribute information associated with the target item.

[0089] In operation S406, one or more matching rules of the processing rules are used to iterate and match the first attribute information and the second attribute information.

[0090] In operation S407, one or more matching rules of the processing rules are used to iterate and match the first attribute information.

[0091] In operation S408, determine whether the attribute information matches the matching rule. If it is determined that the attribute information matches the matching rule, execute operation S409; if it is determined that the attribute information does not match the matching rule, continue to execute operation S413.

[0092] In operation S409, determine whether there is a follow-up action flag; if it is determined that there is a follow-up action flag, execute operation S410; if it is determined that there is no follow-up action flag, execute operation S412.

[0093] In operation S410, the second preset operation corresponding to the subsequent action identifier is executed, and the second feedback information is generated.

[0094] During operation S411, a second feedback message is sent to the terminal device.

[0095] During operation of S412, the first feedback information is sent to the terminal device.

[0096] In operation S413, determine whether the matching rule traversal is complete. If it is determined that the matching rule traversal is not complete, return to operation S408 to use the next matching rule in the rule chain for processing; if it is determined that the matching rule traversal is complete, execute operation S414.

[0097] In operation S414, determine whether the processing rule traversal is complete. If it is determined that the processing rule traversal is complete, execute operation S415; if it is determined that the traversal is not complete, execute operation S402 to use the next processing rule in the rule chain for processing.

[0098] In operation S415, determine whether the traversal of the first attribute information has been completed. If it is determined that the traversal of the first attribute information has been completed, execute operation S416; otherwise, return to execute operation S401 to traverse the next first attribute information.

[0099] During operation of S416, a third feedback message is sent to the terminal device.

[0100] According to embodiments of this disclosure, a "enable" attribute can be configured in the processing rule. This attribute represents an enable status indicator, used to indicate whether the processing rule is enabled. When the value of "enable" is "true", it can be determined that the processing rule is enabled; when the value of "enable" is "false", it can be determined that the processing rule is disabled.

[0101] According to embodiments of this disclosure, by configuring an enable status flag, the enabling or disabling of processing rules can be flexibly controlled, effectively improving the flexibility of information processing.

[0102] According to embodiments of this disclosure, a "preAction" attribute can be configured in the processing rule to store a pre-action identifier. When the value of "preAction" is empty or "NULL", it can be considered that no pre-action identifier is configured in the processing rule. In other cases, it can be considered that a pre-action identifier is configured in the processing rule.

[0103] According to embodiments of this disclosure, when no preceding action identifier is configured in the processing rule, multiple matching rules of the processing rule can be used to iterate and match the first attribute information.

[0104] According to embodiments of this disclosure, the pre-action identifier may include information such as the full path class name of the interface and the processing script identifier. By associating scripts using class names or identifiers, on the one hand, the configuration center's limitation on the length of processing rules is regulated; on the other hand, flexible reuse of scripts is achieved through individual configuration of script content.

[0105] According to embodiments of this disclosure, the script associated with the preceding action identifier can be a QlExpress script, and each QlExpress script can include two attributes: "id" and "script". The value of "id" is the unique identifier of the QlExpress script, and the value of "script" is the script content of the QlExpress script.

[0106] According to embodiments of this disclosure, the first preset operation can be an operation implemented by executing a script corresponding to a preceding action identifier. The first preset operation can include obtaining attribute information of the target item in other dimensions, from other sources, etc. For example, the first attribute information can be information about the target item recorded by an e-commerce platform, and the second attribute information can be information obtained by querying the target item on the internet. As another example, the first attribute information can be information set by the merchant, and the second attribute information can be information obtained after semantic analysis of user reviews.

[0107] According to embodiments of this disclosure, the matching rules configured in the processing rules can be recorded in a "matchRule" attribute; the value of "matchRule" can be configured with multiple matching rules, such as "skuId", "isSelfService", etc.; each matching rule can be configured with an attribute "attr" and an action "action"; the value of "attr" is used to match the matching rule with the attribute information of the item, and the value of "action" can be a Qlexpress script identifier used to indicate the processing script that parses the matching rule.

[0108] According to embodiments of this disclosure, when a script identifier is configured in the matching rule, traversing and matching the first attribute information using one or more matching rules of the processing rule may include the following operations: obtaining the matching script corresponding to the script identifier of the matching rule; loading the matching script into the rule engine to execute the matching script to parse the matching rule; and using the parsed matching rule to match the first attribute information.

[0109] According to embodiments of this disclosure, when the value of "action" is empty or "NULL", it can be assumed that the matching rule does not have a script identifier. In this case, a preset script can be loaded into the rule engine to perform default operations to parse the matching rule. When the value of "action" is not empty or "NULL", it can be assumed that the matching rule has a script identifier. In this case, the script corresponding to the script identifier can be directly loaded into the rule engine to perform the corresponding operations to parse the matching rule.

[0110] According to embodiments of this disclosure, if the value of "attr" in the parsed current matching rule matches the item attribute information, the item attribute information can be considered to have matched the current matching rule.

[0111] According to embodiments of this disclosure, if the item attribute information matches any attribute information in the rule chain, the traversal and matching of the remaining processing rules and remaining matching rules in the rule chain can be terminated. This reduces unnecessary matching operations and effectively improves information processing efficiency.

[0112] According to embodiments of this disclosure, a "postAction" attribute can be configured in the processing rule to store the post-action identifier; when the value of "postAction" is empty or "NULL", it can be considered that no post-action identifier is configured in the processing rule; in other cases, it can be considered that a post-action identifier is configured in the processing rule.

[0113] According to embodiments of this disclosure, the post-action identifier may include information such as the full path class name of the interface and the processing script identifier. By associating scripts using class names or identifiers, on the one hand, the configuration center's limitation on the length of processing rules is regulated; on the other hand, flexible reuse of scripts is achieved through the separate configuration of script content.

[0114] According to embodiments of this disclosure, the script associated with the post-action identifier can be a QlExpress script, and each QlExpress script can include two attributes: "id" and "script". The value of "id" is the unique identifier of the QlExpress script, and the value of "script" is the script content of the QlExpress script.

[0115] According to embodiments of this disclosure, in response to an attribute information matching rule, a second preset operation can be executed to generate second feedback information if a post-action identifier is configured in the processing rule. The second preset operation can be set according to specific business scenarios. For example, the second preset operation can be an operation to generate a command to jump to a specified page, and the generated second feedback information can include the command to jump to the specified page. As another example, the second feedback information can be an operation to select information from a preset information bar, and the generated second feedback information can include preset information.

[0116] In some embodiments, the configuration rule may also include an "extInfo" attribute, which includes sub-attributes such as "bizCode", "bizCodeMsg", and "redirectUrl". When the matching rule is hit, the value in the "extInfo" attribute can be called to complete additional operations preset by the user.

[0117] Figure 5 A block diagram of an information processing apparatus according to an embodiment of the present disclosure is shown schematically.

[0118] like Figure 5 As shown, the information processing device 500 includes a first acquisition module 510, a first matching module 520, a second matching module 530, and a first sending module 540.

[0119] The first acquisition module 510 is used to acquire first attribute information associated with the target item in response to an access request for the target item.

[0120] The first matching module 520 is used to traverse and match the first attribute information using the target rule list. The target rule list is configured with item types, and the item types in the target rule list are the same as the item types to which the target item belongs. The target rule list includes one or more processing rules, and the processing rules include one or more matching rules.

[0121] The second matching module 530 is used to iterate and match the first attribute information using one or more matching rules of the processing rule for each processing rule.

[0122] The first sending module 540 is used to send first feedback information to the terminal device associated with the requester of the access request in response to the first attribute information matching the current matching rule. The first feedback information indicates that the target item cannot be accessed.

[0123] According to embodiments of this disclosure, upon receiving an access request for a target item, first attribute information associated with the target item can be obtained. A rule list with the same item type as the target item is then used to match the first attribute information. If the first attribute information matches a rule, the target item is refused to be displayed. By using a rule list to implement the item's information processing logic, the development of the rule list does not affect the normal use of the business logic, thus decoupling the information processing logic from the business logic. Therefore, this at least partially overcomes the technical problems of high development costs due to the coupling of information processing logic and business logic in related technologies, effectively reducing the development cost of the information processing logic and improving the flexibility of its configuration.

[0124] According to embodiments of this disclosure, the processing rules are also configured with an enabled status indicator.

[0125] According to embodiments of this disclosure, the information processing apparatus 500 further includes a second acquisition module, a third matching module, and a first processing module.

[0126] The second acquisition module is used to acquire the enable status identifier of the processing rules in the target rule chain.

[0127] The third matching module is used to iterate and match the first attribute information using one or more matching rules of the processing rules when the enabled status identifier indicates that the processing rule is enabled.

[0128] The first processing module is used to stop matching the first attribute information using the processing rules when the enabled status identifier indicates that the processing rules are disabled.

[0129] According to embodiments of this disclosure, the information processing apparatus 500 further includes a third acquisition module.

[0130] The third acquisition module is used to execute the first preset operation corresponding to the pre-action identifier when the processing rules are configured with a pre-action identifier, and to acquire the second attribute information associated with the target item.

[0131] The second matching module 530 includes the first matching unit.

[0132] The first matching unit is used to iterate and match the first attribute information and the second attribute information using one or more matching rules of the processing rules.

[0133] According to embodiments of this disclosure, the information processing apparatus 500 further includes a generation module and a second transmission module.

[0134] The generation module is used to respond to the first attribute information matching the current matching rule, and if a post-action identifier is configured in the processing rule, to execute the second preset operation corresponding to the post-action identifier and generate the second feedback information.

[0135] The second sending module is used to send second feedback information to the terminal device.

[0136] According to embodiments of this disclosure, the information processing apparatus 500 further includes a fourth acquisition module, a first conversion module, and a first storage module.

[0137] The fourth acquisition module is used to retrieve one or more rule strings from the configuration center in response to the system startup event.

[0138] The first conversion module is used to convert the data format of one or more rule strings to obtain one or more processing rules.

[0139] The first storage module is used to store one or more processing rules into the cache.

[0140] According to embodiments of this disclosure, the information processing apparatus 500 further includes a fifth acquisition module, a first determination module, a second conversion module, and a second storage module.

[0141] The fifth module is used to retrieve the target rule string that has been changed from the configuration center in response to a rule change event.

[0142] The first determination module is used to determine the target processing rule corresponding to the target rule string in the cache.

[0143] The second conversion module is used to convert the data format of the target rule string to obtain the modified target processing rule.

[0144] The second storage module is used to store the modified target processing rules in the cache so that the modified target processing rules can be used to replace the target processing rules.

[0145] According to embodiments of this disclosure, the information processing apparatus 500 further includes a loading module, a classification module, a construction module, and a third storage module.

[0146] The loading module is used to load one or more processing rules from the cache, wherein the processing rules are configured with item types.

[0147] The classification module is used to classify multiple processing rules based on item types with one or more processing rules.

[0148] The building module is used to construct a rule chain of one or more processing rules belonging to the same item type.

[0149] The third storage module is used to store the rule linked list into the cache.

[0150] According to embodiments of this disclosure, the processing rules are also configured with priority values.

[0151] According to embodiments of this disclosure, the building module includes a first building unit, a second building unit, a third building unit, and a fourth building unit.

[0152] The first building unit is used to group one or more processing rules belonging to the same item type to obtain a first rule group and a second rule group, wherein each first rule group includes multiple processing rules with the same matching rule, and the second rule group includes multiple processing rules with different matching rules.

[0153] The second construction unit is used to construct a first rule sub-linked list for the processing rules of each first rule group according to the priority value of the processing rules, wherein the priority value of the first rule sub-linked list is the maximum value among the priority values ​​of the processing rules of the first rule group.

[0154] The third construction unit is used to construct each processing rule of the second rule group into a second rule sub-linked list, wherein the priority value of the second rule sub-linked list is the priority value of the processing rule that constructs the second rule sub-linked list.

[0155] The fourth construction unit is used to construct a rule list from the first rule sub-list and the second rule sub-list based on the priority values ​​of the first rule sub-list and the second rule sub-list.

[0156] According to embodiments of this disclosure, the matching rules are configured with matching attributes.

[0157] According to embodiments of this disclosure, the information processing apparatus 500 further includes a second determining module.

[0158] The second determining module is used to determine whether the current first attribute information matches the current matching rule when the matching attribute of the current matching rule is consistent with the first attribute information.

[0159] According to embodiments of this disclosure, the matching rules are configured with script identifiers.

[0160] According to embodiments of this disclosure, the second matching module 530 further includes a second matching unit, a third matching unit, and a fourth matching unit.

[0161] The second matching unit is used to obtain the matching script corresponding to the script identifier of the matching rule.

[0162] The third matching unit is used to load the matching script into the rule engine so that the matching script can be executed to parse the matching rules.

[0163] The fourth matching unit is used to match the parsed matching rules with the first attribute information.

[0164] According to embodiments of this disclosure, the second matching unit includes a first matching subunit and a second matching subunit.

[0165] The first matching subunit is used to use a preset script as the matching script when the script identifier of the matching rule is empty.

[0166] The second matching subunit is used to retrieve the script corresponding to the script identifier from the script library as the matching script when the script identifier of the matching rule is not empty.

[0167] According to embodiments of this disclosure, the information processing apparatus 500 further includes a second processing module and a third sending module.

[0168] The second processing module is used to terminate the traversal and matching of the untraversed first attribute information when the first attribute information matches the current matching rule.

[0169] The third sending module is used to send a third feedback message to the terminal device when the matching result of traversing and matching all the first attribute information using the target rule chain is a non-match. The third feedback message indicates that access to the target item is allowed.

[0170] Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be implemented by dividing them into multiple modules. Any one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as hardware circuitry, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), Systems-on-Chip, Systems-on-Substrate, Systems-on-Package, Application-Specific Integrated Circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, one or more of the modules, submodules, units, and subunits according to embodiments of the present disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.

[0171] For example, any plurality of the first acquisition module 510, the first matching module 520, the second matching module 530, and the first transmission module 540 can be combined into one module / unit / subunit, or any one of these modules / units / subunits can be split into multiple modules / units / subunits. Alternatively, at least part of the functionality of one or more of these modules / units / subunits can be combined with at least part of the functionality of other modules / units / subunits and implemented in one module / unit / subunit. According to embodiments of this disclosure, at least one of the first acquisition module 510, the first matching module 520, the second matching module 530, and the first transmission module 540 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the first acquisition module 510, the first matching module 520, the second matching module 530, and the first sending module 540 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.

[0172] It should be noted that the information processing device part in the embodiments of this disclosure corresponds to the information processing method part in the embodiments of this disclosure. The description of the information processing device part is specifically referred to in the information processing method part, and will not be repeated here.

[0173] Figure 6 A block diagram of an electronic device suitable for implementing an information processing method according to an embodiment of the present disclosure is shown schematically. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0174] like Figure 6 As shown, a computer electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage portion 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0175] RAM 603 stores various programs and data required for the operation of electronic device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Processor 601 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 602 and / or RAM 603. It should be noted that the programs may also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0176] According to embodiments of this disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to a bus 604. The electronic device 600 may also include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 610 as needed so that computer programs read from it can be installed into the storage section 608 as needed.

[0177] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by processor 601, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

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

[0179] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0180] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0181] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods provided in the embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is used to enable the electronic device to implement the information processing methods provided in the embodiments of this disclosure.

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

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

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

[0185] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

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

Claims

1. An information processing method, characterized in that, include: In response to an access request for a target item, obtain first attribute information associated with the target item; By extracting multiple processing rules written by developers and stored in the configuration center, and combining and splicing the extracted multiple processing rules, a target rule chain list with the same item type as the target item is formed, and the first attribute information is traversed and matched using the formed target rule chain list, wherein the processing rules include one or more matching rules; For each of the processing rules, the first attribute information is iterated and matched using one or more of the matching rules of the processing rule; and In response to the first attribute information matching the current matching rule, a first feedback message is sent to the terminal device associated with the requester of the access request, wherein the first feedback message indicates that the target item cannot be accessed. The formation of the target rule chain list having the same item type as the target item includes: According to the matching rules, the extracted multiple processing rules are grouped to obtain a first rule group and a second rule group. Each first rule group includes a first plurality of processing rules with the same matching rules, and the second rule group includes a second plurality of processing rules with different matching rules. Based on the first rule group and the second rule group, construct a first rule sub-linked list and a second rule sub-linked list; and The target rule list is formed based on the priority values ​​of the first rule sub-list and the second rule sub-list.

2. The method according to claim 1, characterized in that, The processing rules are also configured with an enabled status indicator; The method further includes: Obtain the activation status identifier of the processing rule in the target rule chain list; When the enabled status identifier indicates that the processing rule is enabled, the first attribute information is traversed and matched using one or more of the matching rules of the processing rule; and If the enabled status identifier indicates that the processing rule is disabled, the matching of the first attribute information using the processing rule will be stopped.

3. The method according to claim 1, characterized in that, Also includes: If a preceding action identifier is configured in the processing rules, a first preset operation corresponding to the preceding action identifier is executed to obtain second attribute information associated with the target item; Wherein, for each of the processing rules, performing traversal matching on the first attribute information using one or more of the matching rules of the processing rule includes: The first attribute information and the second attribute information are traversed and matched using one or more of the matching rules of the processing rules.

4. The method according to claim 1, characterized in that, Also includes: In response to the first attribute information matching the current matching rule, if a post-action identifier is configured in the processing rule, a second preset operation corresponding to the post-action identifier is executed to generate second feedback information; as well as The second feedback information is sent to the terminal device.

5. The method according to claim 1, characterized in that, Also includes: In response to a system startup event, retrieve one or more rule strings from the configuration center; Perform data format conversion on one or more of the rule strings to obtain one or more of the processing rules; as well as Store one or more of the processing rules in the cache.

6. The method according to claim 5, characterized in that, Also includes: In response to a rule change event, the target rule string for which the rule change occurred is retrieved from the configuration center; Determine the target processing rule in the cache that corresponds to the target rule string; The target rule string is converted to a new data format to obtain the modified target processing rule. as well as The modified target processing rule is stored in the cache so that the modified target processing rule can be used to replace the target processing rule.

7. The method according to claim 5, characterized in that, Also includes: Load one or more of the processing rules from the cache, wherein the processing rules are configured with item types; Based on the item type of one or more of the processing rules, the multiple processing rules are classified. One or more processing rules belonging to the same item type are constructed into a rule chain; and The rule list is stored in the cache.

8. The method according to claim 7, characterized in that, The processing rules are also configured with priority values; The step of constructing one or more processing rules belonging to the same item type into the rule chain list includes: Based on the priority value of the processing rule, the processing rule of each first rule group is constructed into a first rule sub-linked list, wherein the priority value of the first rule sub-linked list is the maximum value among the priority values ​​of the processing rules of the first rule group; Each processing rule in the second rule group is constructed into a second rule sub-linked list, wherein the priority value of the second rule sub-linked list is the priority value of the processing rule that constructed the second rule sub-linked list; and Based on the priority values ​​of the first rule sub-list and the second rule sub-list, the first rule sub-list and the second rule sub-list are constructed into the rule list.

9. The method according to claim 1, characterized in that, The matching rules are configured with matching attributes; The method further includes: If the matching attribute of the current matching rule is consistent with the first attribute information, it is determined that the current first attribute information matches the current matching rule.

10. The method according to claim 1, characterized in that, The matching rules are configured with script identifiers; The step of using one or more of the matching rules of the processing rules to traverse and match the first attribute information includes: Obtain the matching script corresponding to the script identifier of the matching rule; The matching script is loaded into the rule engine to execute the matching script and parse the matching rules; and The parsed matching rules are then used to match the first attribute information.

11. The method according to claim 10, characterized in that, The step of obtaining the matching script corresponding to the script identifier of the current matching rule includes: If the script identifier for the matching rule is empty, a preset script is used as the matching script; and If the script identifier of the matching rule is not empty, the script corresponding to the script identifier is obtained from the script library as the matching script.

12. The method according to claim 1, characterized in that, Also includes: If the first attribute information matches the current matching rule, the process of traversing and matching the untraversed first attribute information using the target rule list will be terminated. as well as If the matching result of traversing and matching all the first attribute information using the target rule chain is a non-match, a third feedback message is sent to the terminal device, wherein the third feedback message indicates that access to the target item is permitted.

13. An information processing device, characterized in that, include: The first acquisition module is used to acquire first attribute information associated with the target item in response to an access request for the target item. The building module is used to extract multiple processing rules written by developers and stored in the configuration center, and combine and concatenate these extracted processing rules to form a target rule chain list that has the same item type as the target item. The first matching module is used to traverse and match the first attribute information using the formed target rule chain, wherein the processing rules include one or more matching rules; The second matching module is configured to, for each processing rule, perform a traversal matching of the first attribute information using one or more matching rules of the processing rule; and A first sending module is configured to, in response to the first attribute information matching the current matching rule, send first feedback information to the terminal device associated with the requester of the access request, wherein the first feedback information indicates that the target item cannot be accessed. The formation of the target rule chain list having the same item type as the target item includes: According to the matching rules, the extracted multiple processing rules are grouped to obtain a first rule group and a second rule group. Each first rule group includes a first plurality of processing rules with the same matching rules, and the second rule group includes a second plurality of processing rules with different matching rules. Based on the first rule group and the second rule group, construct a first rule sub-linked list and a second rule sub-linked list; and The target rule list is formed based on the priority values ​​of the first rule sub-list and the second rule sub-list.

14. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more instructions. When the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method of any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that, It stores executable instructions that, when executed by a processor, cause the processor to implement the method of any one of claims 1 to 12.

16. A computer program product, characterized in that, The computer program product includes computer-executable instructions that, when executed, are used to implement the method of any one of claims 1 to 12.

Citation Information

Patent Citations

  • Information processing method and system, computer system and computer readable medium

    CN109981719A

  • Data processing method and device, computer system and readable storage medium

    CN112329653A