An information processing method and device, computer equipment and a storage medium

By obtaining node path information from the attribute node tree and matching attribute selectors, the problem that existing technologies can only notify top-level attributes is solved, enabling precise monitoring and synchronization of target attributes and improving the efficiency of information processing.

CN114849241BActive Publication Date: 2026-01-02NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210432077.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2026-01-02
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

The existing attribute synchronization method can only obtain the top-level attribute for notification, which cannot meet the needs of notification of changes to other attributes in the business, thus affecting the efficiency of information processing.

Method used

By detecting attribute changes of the target entity, the node path information of the target attribute in the attribute node tree is obtained, and the attribute identifier in the node path information is matched with the attribute field of the attribute selector to obtain the target attribute selector and its corresponding listener function. The listener function is used to listen for changes in the target node.

Benefits of technology

This improved the accuracy of information acquisition, ensuring that changes in all attributes within the business could be promptly notified and synchronized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114849241B_ABST
    Figure CN114849241B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an information processing method and device, computer equipment and a storage medium. According to each attribute of an entity, an attribute selector and a corresponding listening function of the attribute selector are set, an attribute information subscription total table of the entity is generated based on the attribute selector and the listening function, when a change in a target attribute of the entity is detected, a node path corresponding to the target attribute is obtained from an attribute node tree corresponding to the entity, the node path is matched with the attribute information subscription total table, a target listening function corresponding to the target attribute selector is determined, and the change information of the target attribute is listened to by calling the target listening function, so that the accuracy of information acquisition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an information processing method and device, computer equipment and storage medium. BACKGROUND

[0002] Most games will have a set of attribute synchronization solutions, that is, the server can define the attributes owned by each entity in the game, such as the name, blood volume, battle power, and props in the backpack of the role in the game, and the attribute synchronization is a mechanism for the server to automatically send the relevant change information to the client when modifying the entity attributes, so as to keep the data consistent between the client and the server.

[0003] In the related art, the attributes are generally presented in a tree structure, and for attribute synchronization of the tree structure, when one of the nodes changes, the node closest to the root node on the branch where the node is located is obtained as the changed attribute, and is notified. However, the existing method can only obtain the top-level attribute for notification, and cannot meet the change notification requirements of other attributes in the business, thereby affecting the efficiency of information processing. SUMMARY

[0004] The embodiments of the present application provide an information processing method and device, computer equipment and storage medium, which can improve the accuracy of information acquisition.

[0005] The embodiments of the present application provide an information processing method, comprising:

[0006] When it is detected that a target attribute of a target entity changes, node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity is obtained, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to the attribute dependency relationship, and each node is provided with an attribute identifier;

[0007] The attribute identifiers in the node path information are matched with attribute fields of an attribute selector, to obtain a target attribute selector matched with the attribute identifiers in the node path information, and the attribute fields include at least one attribute identifier, used to indicate the nodes listened to by the attribute selector;

[0008] A listening function corresponding to the target attribute selector is obtained, to obtain a target listening function, wherein each attribute selector is provided with a listening function;

[0009] The target node listened to by the target attribute selector is listened to through the target listening function, to obtain target node change information.

[0010] Correspondingly, the embodiments of the present application also provide an information processing device, comprising:

[0011] detecting a change in a target attribute of a target entity, obtaining, based on an attribute node tree of the target entity, node path information of a target node corresponding to the target attribute in the attribute node tree, wherein nodes corresponding to attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier;

[0012] a first matching unit configured to match the attribute identifiers in the node path information with attribute fields of attribute selectors, to obtain a target attribute selector that matches the attribute identifiers in the node path information successfully, wherein the attribute fields include at least one attribute identifier, and are used to indicate nodes selected by the attribute selectors for monitoring;

[0013] a first obtaining unit configured to obtain a monitoring function corresponding to the target attribute selector, to obtain a target monitoring function, wherein each attribute selector is provided with a monitoring function;

[0014] a monitoring unit configured to monitor the target node selected by the target attribute selector through the target monitoring function, to obtain target node change information.

[0015] In some embodiments, the first matching unit includes:

[0016] a first obtaining subunit configured to obtain the attribute identifiers in the node path information, to obtain a first attribute identifier;

[0017] a first matching subunit configured to match the first attribute identifier with the attribute identifiers in the attribute fields of each attribute selector;

[0018] a first determining subunit configured to determine the attribute selector corresponding to the attribute field including the first attribute identifier, to obtain the target attribute selector.

[0019] In some embodiments, the first matching unit includes:

[0020] a second obtaining subunit configured to obtain a first attribute identifier sequence in the node path information;

[0021] a third obtaining subunit configured to obtain a second attribute identifier sequence in the attribute fields of each attribute selector;

[0022] a second matching subunit configured to match the first attribute identifier sequence with the second attribute identifier sequence;

[0023] The second determining sub-unit is configured to determine an attribute selector corresponding to a second attribute identifier sequence same as or belonging to the first attribute identifier sequence, to obtain the target attribute selector.

[0024] In some embodiments, the apparatus further includes:

[0025] The second obtaining unit is configured to obtain an attribute identifier corresponding to a first node in the node path information.

[0026] The second matching unit is configured to match the attribute identifier corresponding to the first node with an attribute field of the attribute selector.

[0027] The executing unit is configured to, if the matching is successful, execute a step of matching an attribute identifier in the node path information with an attribute field of the attribute selector.

[0028] In some embodiments, the apparatus further includes:

[0029] The third obtaining unit is configured to obtain an attribute type of each attribute of the target entity.

[0030] The determining unit is configured to determine the attribute selector based on the attribute type.

[0031] In some embodiments, the determining unit includes:

[0032] The third determining sub-unit is configured to determine, from all attributes of the target entity, a changeable attribute with a preset attribute type.

[0033] The fourth obtaining sub-unit is configured to obtain a node path of the changeable attribute in the attribute node tree.

[0034] The generating sub-unit is configured to generate an attribute selector corresponding to the changeable attribute based on the node path and an attribute identifier set for each node.

[0035] In some embodiments, the apparatus further includes:

[0036] The sending unit is configured to send the target node change information to a terminal, so that the terminal adjusts a target attribute of the target entity according to the target node change information.

[0037] In some embodiments, the detecting unit includes:

[0038] The fifth obtaining sub-unit is configured to obtain a position of the target node in the attribute node tree.

[0039] The fourth determining sub-unit is configured to determine a node path of the target node in the attribute node tree according to the position and the tree structure, and obtain a target path.

[0040] The sixth obtaining sub-unit is configured to obtain an attribute identifier corresponding to each node on the target path, and obtain the node path information.

[0041] In some embodiments, the monitoring unit comprises:

[0042] The seventh obtaining sub-unit is configured to obtain a monitoring task corresponding to each target monitoring function if the number of the target monitoring functions is more than one.

[0043] The fifth determining sub-unit is configured to determine one target monitoring function from the target monitoring functions with the same monitoring task if the monitoring tasks of the target monitoring functions are the same.

[0044] The monitoring sub-unit is configured to monitor the target node selected by the attribute selector corresponding to the target monitoring function to be executed, and obtain the target node change information.

[0045] Correspondingly, the embodiment of the present application further provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the information processing method provided by any of the embodiments of the present application.

[0046] Correspondingly, the embodiment of the present application further provides a storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the information processing method as above.

[0047] The embodiment of the present application sets the attribute selector according to each attribute of the entity, and the monitoring function corresponding to the attribute selector, generates the attribute information subscription table of the entity based on the attribute selector and the monitoring function, when detecting that the target attribute of the entity changes, obtains the node path corresponding to the target attribute from the attribute node tree corresponding to the entity, matches the node path with the attribute information subscription table, determines the target monitoring function corresponding to the target attribute selector, and monitors the change information of the target attribute by calling the target monitoring function, which can improve the accuracy of information acquisition. BRIEF DESCRIPTION OF DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0049] Figure 1 A flowchart of an information processing method provided by an embodiment of the present application.

[0050] Figure 2 An application scenario diagram of an information processing method provided by an embodiment of the present application.

[0051] Figure 3 A flowchart of another information processing method provided by an embodiment of the present application.

[0052] Figure 4 An application scenario diagram of another information processing method provided by an embodiment of the present application.

[0053] Figure 5 An application scenario diagram of another information processing method provided by an embodiment of the present application.

[0054] Figure 6 A structural block diagram of an information processing apparatus provided by an embodiment of the present application.

[0055] Figure 7 A structural diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0057] The embodiments of the present application provide an information processing method, apparatus, storage medium and computer device. Specifically, the information processing method of the embodiments of the present application can be executed by a computer device, where the computer device can be a terminal or a server, etc. The terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a personal computer (PC), a personal digital assistant (PDA), etc. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and basic cloud computing services such as big data and artificial intelligence platform, etc.

[0058] For example, the computer device can be a server, which can acquire node path information of a target node corresponding to a target attribute in an attribute node tree of a target entity based on the attribute node tree when detecting that the target attribute of the target entity changes, where nodes corresponding to attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier; match the attribute identifiers in the node path information with attribute fields of an attribute selector to obtain a target attribute selector that matches the attribute identifiers in the node path information successfully, where the attribute fields include at least one attribute identifier and are used to indicate nodes that the attribute selector selects to monitor; acquire a monitoring function corresponding to the target attribute selector to obtain a target monitoring function, where each attribute selector is provided with a monitoring function; and monitor the target node selected by the target attribute selector through the target monitoring function to obtain target node change information.

[0059] To solve the above problems, the embodiments of the present application provide a first information processing method, device, computer device and storage medium, which can improve the accuracy of information acquisition.

[0060] The following will be described in detail. It should be noted that the order of the following embodiments is not limited as the preferred order of the embodiments.

[0061] The embodiments of the present application provide an information processing method, which can be executed by a terminal or a server. The embodiments of the present application will be described by taking the execution of the information processing method by the server as an example.

[0062] Please refer to Figure 1 , Figure 1 A flowchart of an information processing method provided by the embodiments of the present application is shown in FIG. 1. The specific process of the information processing method can be as follows.

[0063] 101. When detecting that a target attribute of a target entity changes, acquire node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity based on the attribute node tree.

[0064] An entity refers to an objective thing that can be distinguished from each other, which can be an actual thing or an abstract event. For example, an entity can be a character. An attribute can be used to describe the characteristics of an entity. For example, for an entity being a character, the attributes can be the name, gender, age, etc. of the character.

[0065] In the embodiments of the present application, an entity can be an entity in a game, such as various virtual objects in the game. Each virtual object has corresponding attributes.

[0066] The target entity refers to an entity whose attribute changes, and the target attribute refers to an attribute of the target entity that changes.

[0067] The nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to the attribute dependency relationship, and each node is provided with an attribute identifier.

[0068] For example, the attributes of the target entity can include attribute A, attribute B, attribute C, attribute D, attribute E, and attribute F. The dependency relationship of the attributes of the target entity can be that attribute A, attribute B, and attribute C are first-level attributes, the dependent attribute of attribute B is attribute D, and the dependent attributes of attribute C are attribute E and attribute F. The attribute node tree corresponding to the target entity can be generated based on the attribute dependency relationship of the attributes of the target entity.

[0069] Specifically, please refer to Figure 2 , Figure 2 An application scenario diagram of an information processing method provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the attribute node tree includes attribute nodes: attribute A, attribute B, attribute C, attribute D, attribute E, and attribute F. The attribute nodes in the second layer of the attribute node tree include attribute A, attribute B, and attribute C, and the attribute nodes in the third layer include attribute D, attribute E, and attribute F. Figure 2

[0070] In some embodiments, in order to obtain the changed attribute information, the step of “obtaining node path information of a target node corresponding to a target attribute in the attribute node tree of the target entity” can include the following operations:

[0071] Obtaining the position of the target node in the attribute node tree;

[0072] Determining the node path of the target node in the attribute node tree according to the position and the tree structure, to obtain a target path;

[0073] Obtaining the attribute identifier corresponding to each node on the target path, to obtain node path information.

[0074] The position includes the layer number and the arrangement order in the layer number.

[0075] For example, in the example shown in FIG. 1, the target node can be attribute A, and the position of attribute A in the attribute node tree is the first in the second layer. Figure 2

[0076] Further, the node path of the target node in the attribute node tree can be determined according to the position of the target node in the attribute node tree and the dependency relationship of each attribute. The node path of the target node is attribute A, that is, the target path is attribute A.

[0077] The attribute identifier refers to the name of the attribute, for example, the attribute identifier of attribute A is attribute A.​​

[0078] If the target path is attribute A, the node located on the target path is attribute A, the attribute identifier corresponding to attribute A is attribute A, and the node path information obtained is that the path is attribute A and the node identifier is attribute A.

[0079] 102. Match the attribute identifier in the node path information with the attribute field of the attribute selector to obtain a target attribute selector that matches the attribute identifier in the node path information successfully.

[0080] The attribute field includes at least one attribute identifier, and the attribute field is used to indicate the node selected by the attribute selector for monitoring.

[0081] In the embodiments of the present application, the attribute selector can be designed according to the attributes of the target entity. One attribute can correspond to one attribute selector or multiple attribute selectors, which can be set according to actual needs.

[0082] For example, the attributes of the target entity can include attribute A, attribute B, attribute C, etc. For each attribute, one or more corresponding attribute selectors can be designed. For example, a first attribute selector can be designed for attribute A, a second attribute selector can be designed for attribute B, and a third attribute selector can be designed for attribute C.

[0083] Since the attribute selector includes an attribute field, and the attribute field is used to indicate the node selected by the attribute selector for monitoring, for the first attribute selector, the attribute field can include the attribute identifier of attribute A, for example, the first attribute selector can be attribute A; for the second attribute selector, the attribute field can include the attribute identifier of attribute B, for example, the second attribute selector can be attribute B; for the third attribute selector, the attribute field can include the attribute identifier of attribute C, for example, the third attribute selector can be attribute C.

[0084] In some embodiments, when the node path information includes one attribute identifier, that is, the node path information includes one attribute node, in order to improve the matching accuracy, the step of "matching the attribute identifier in the node path information with the attribute field of the attribute selector to obtain a target attribute selector that matches the attribute identifier in the node path information successfully" can include the following operations:

[0085] Obtain the attribute identifier in the node path information to obtain a first attribute identifier;

[0086] Match the first attribute identifier with the attribute identifier in the attribute field of each attribute selector;

[0087] determine the attribute selector corresponding to the attribute field including the first attribute identifier, and obtain a target attribute selector.

[0088] For example, the node path information includes: the path is attribute A, and the node identifier is attribute A. The attribute identifier in the obtained node path information is attribute A, that is, the first attribute identifier is attribute A.

[0089] In the embodiments of the present application, the attributes of the target entity can include multiple attributes. For each attribute, one or more corresponding attribute selectors can be designed, and the number of attribute selectors can be multiple.

[0090] Further, the first attribute identifier is matched with the attribute identifier in the attribute field of each attribute selector, that is, it is determined whether the attribute identifier in the attribute field of the attribute selector is the same as the first attribute identifier.

[0091] For example, the attribute selector can include: a first attribute selector, a second attribute selector, and a third attribute selector. The attribute field of the first attribute selector can be attribute A, the attribute field of the second attribute selector can be attribute B, and the attribute field of the third attribute selector can be attribute C. By matching the attribute field of each attribute selector with the first attribute identifier, it can be determined that the attribute selector corresponding to the attribute field identical to the first attribute identifier can be the first attribute selector, and the target attribute selector can be the first attribute selector.

[0092] In some embodiments, the node path information can include multiple attribute identifiers, that is, the node path information includes multiple attribute nodes. In order to improve the matching accuracy, the step of "matching the attribute identifier in the node path information with the attribute field of the attribute selector, and obtaining the target attribute selector matched with the attribute identifier in the node path information" can include the following operations:

[0093] obtain a first attribute identifier sequence in the node path information;

[0094] obtain a second attribute identifier sequence in the attribute field of each attribute selector;

[0095] match the first attribute identifier sequence with the second attribute identifier sequence;

[0096] determine the attribute selector corresponding to the second attribute identifier sequence identical to or belonging to the first attribute identifier sequence, and obtain the target attribute selector.

[0097] The first attribute identifier sequence refers to a sequence of multiple attribute identifiers included in the node path information. For example, the node path information includes: path: attribute B. attribute D, and the node identifier includes: attribute B, attribute D. The first attribute identifier sequence can be obtained as: attribute B, attribute D.

[0098] The second attribute identifier sequence refers to a sequence of multiple attribute identifiers included in the attribute field of the attribute selector. For example, the attribute field of the attribute selector includes: attribute C, attribute E, and the second attribute identifier sequence can be: attribute C, attribute E.

[0099] Further, the first attribute identifier sequence is matched with the second attribute identifier sequence corresponding to each attribute selector, and the attribute selector whose attribute field has the second attribute identifier sequence same as or contained in the first attribute identifier sequence is selected from the multiple attribute selectors.

[0100] For example, the first attribute identifier sequence can be: attribute B, attribute D, attribute G, and the attribute selector can include: a first attribute selector, a second attribute selector, a third attribute selector, and the like. The second attribute identifier sequence corresponding to the first attribute selector can be: attribute B, attribute D; the second attribute identifier sequence corresponding to the second attribute selector can be: attribute B, attribute D, attribute G; and the second attribute identifier sequence corresponding to the third attribute selector can be: attribute C, attribute F. By matching the first attribute identifier sequence with each second attribute identifier sequence, the target attribute selector satisfying the condition can be obtained as: the first attribute selector and the second attribute selector. The condition satisfying refers to that the second attribute identifier sequence in the attribute field is same as or contained in the first attribute identifier sequence.

[0101] In some embodiments, in order to improve the matching speed, before the step of "matching the attribute identifier in the node path information with the attribute field of the attribute selector", the following step can also be included:

[0102] Obtaining the attribute identifier corresponding to the first node in the node path information;

[0103] Matching the attribute identifier corresponding to the first node with the attribute field of the attribute selector;

[0104] If the matching is successful, the step of matching the attribute identifier in the node path information with the attribute field of the attribute selector is performed.

[0105] The first node refers to the attribute node arranged first in the node path information. For example, the node path of the node path information is: attribute B, attribute D, and the first node of the node path information can be determined as: attribute B.

[0106] Further, the attribute identifier corresponding to the first node is matched with the attribute field of each attribute selector to determine whether the attribute field of the attribute selector includes the attribute identifier corresponding to the first node.

[0107] If the attribute field of the attribute selector includes the attribute identifier corresponding to the first node, it can be determined that the attribute selector includes the attribute selector matching the node path information, and further, the step of matching the attribute identifier in the node path information with the attribute field of the attribute selector can be performed.

[0108] If the attribute field of the attribute selector does not include the attribute identifier corresponding to the first node, it can be determined that the attribute selector does not include the attribute selector matching the node path information, and the step of matching the attribute identifier in the node path information with the attribute field of the attribute selector does not need to be performed. In this way, unnecessary matching operations can be reduced, and server performance overhead can be reduced.

[0109] In some embodiments, for each attribute selector designed for each attribute, storage is required. Since there are attributes that do not change among all attributes of the target entity, an attribute selector does not need to be designed for the attribute. In order to reduce the storage space occupied by the attribute selector, before the step of "matching the attribute identifier in the node path information with the attribute field of the attribute selector", the following steps can be further included:

[0110] Obtaining the attribute type of each attribute of the target entity;

[0111] Determining the attribute selector based on the attribute type.

[0112] The attribute type can indicate whether the attribute changes. The attribute type can include a change attribute type and a no-change attribute type. The change attribute type indicates that the attribute changes, and the no-change attribute type indicates that the attribute does not change.

[0113] In some embodiments, in order to further reduce the storage space occupied by the attribute selector, the step of "determining the attribute selector based on the attribute type" can include the following operations:

[0114] Determining a changeable attribute with a preset attribute type from all attributes of the target entity;

[0115] Obtaining the node path of the changeable attribute in the attribute node tree;

[0116] Generating the attribute selector corresponding to the changeable attribute based on the node path and the attribute identifier set for each node.

[0117] The preset attribute type indicates a type of attribute that can change, that is, the preset attribute type can be a changeable attribute type.

[0118] Specifically, according to the attribute type of each obtained attribute, attributes with the attribute type being the preset attribute type are selected to obtain changeable attributes.

[0119] For example, the attributes of the target entity include attribute A, attribute B, attribute C, and attribute D. Attribute A can change, and thus the attribute type of attribute A can be a changeable attribute type. Attribute B can change, and thus the attribute type of attribute B can be a changeable attribute type. Attribute C cannot change, and thus the attribute type of attribute C can be a non-changeable attribute type. Attribute D can change, and thus the attribute type of attribute D can be a changeable attribute type. Changeable attributes can be obtained as attribute A, attribute B, and attribute D.

[0120] Further, a node path of each changeable attribute in the attribute node tree is obtained. For example, the changeable attributes are attribute A, attribute B, and attribute D. Referring to the attribute node tree in Figure 2 , the node path of attribute A can be attribute A, the node path of attribute B can be attribute B, and the node path of attribute C can be attribute B.attribute C.

[0121] Specifically, according to the node path and the attribute identifier set for each node, an attribute selector corresponding to a changeable attribute is generated. For example, for the changeable attribute attribute A, the node path of attribute A can be obtained as attribute A, and the attribute identifier of the attribute A node can be attribute A. The attribute selector corresponding to attribute A can be generated as attribute A.

[0122] 103. Obtain a target listening function corresponding to the target attribute selector to obtain a target listening function.

[0123] Each attribute selector is set with a listening function, and the node change information of the target node corresponding to the attribute selector is obtained by calling the listening function corresponding to the attribute selector.

[0124] 104. The target node change information is obtained by monitoring the target node selected by the target attribute selector through the target listening function.

[0125] The target node change information is also the change information of the target attribute.

[0126] In some embodiments, the selected target listening function can be multiple. In order to reduce the server performance, the step of "obtaining the target node change information by monitoring the target node selected by the target attribute selector through the target listening function" can include the following operations:

[0127] If the number of target monitoring functions is multiple, a monitoring task corresponding to each target monitoring function is acquired;

[0128] If the monitoring tasks of multiple target monitoring functions are same, a target monitoring function is determined from the multiple target monitoring functions with same monitoring task, and a target monitoring function to be executed is obtained.

[0129] The target node change information is obtained by monitoring the target node selected by the attribute selector corresponding to the target monitoring function to be executed.

[0130] The monitoring task refers to the node change information that the monitoring function needs to monitor. The same monitoring task refers to multiple monitoring functions monitoring the same node change information.

[0131] For example, the target monitoring functions include a first monitoring function, a second monitoring function, a third monitoring function, and a fourth monitoring function. The monitoring task of the first monitoring function is to monitor the change information of attribute node A. The monitoring task of the second monitoring function is to monitor the change information of attribute node B. The monitoring task of the third monitoring function is to monitor the change information of attribute node A. The monitoring task of the fourth monitoring function is to monitor the change information of attribute node B. It can be determined that the monitoring task of the first monitoring function and the third monitoring function is same, and the monitoring task of the second monitoring function and the fourth monitoring function is same.

[0132] Further, one monitoring function is selected from the first monitoring function and the third monitoring function as a first target monitoring function to be executed, and one monitoring function is selected from the second monitoring function and the fourth monitoring function as a second target monitoring function to be executed. Then, the change information of attribute node A is monitored by the first target monitoring function to be executed, and the change information of attribute node B is monitored by the second target monitoring function to be executed, and the target node change information is obtained.

[0133] In some embodiments, in order to ensure that the terminal can synchronize the data update of the changed attribute of the target entity, after the step of "monitoring the target node selected by the target attribute selector by the target monitoring function to obtain the target node change information", the following step can be further included:

[0134] The target node change information is sent to the terminal, so that the terminal adjusts the target attribute of the target entity according to the target node change information.

[0135] The embodiment of the application discloses an information processing method, which comprises the following steps: when a target attribute of a target entity is detected to change, obtaining node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity based on the attribute node tree, wherein nodes corresponding to attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier; matching attribute identifiers in the node path information with attribute fields of an attribute selector to obtain a target attribute selector matched successfully with the attribute identifiers in the node path information, wherein the attribute fields comprise at least one attribute identifier and are used to indicate nodes selected by the attribute selector for monitoring; obtaining a monitoring function corresponding to the target attribute selector to obtain a target monitoring function, wherein each attribute selector is provided with a monitoring function; and monitoring the target node selected by the target attribute selector through the target monitoring function to obtain target node change information. Therefore, the accuracy of information acquisition can be improved.

[0136] According to the above introduction, the information processing method of the application will be further illustrated by examples. Please refer to Figure 3 , Figure 3 The flowchart of another information processing method provided by the embodiment of the application is shown in the figure. The information processing method is applied to a server, and the application scenario is that a notification message is generated for entity attribute change in a game. The specific process can be as follows:

[0137] 201. When the server detects that a target attribute of a target entity changes, the node path of a target node corresponding to the target attribute in an attribute node tree of the target entity is obtained.

[0138] In the embodiment of the application, the target entity refers to a virtual object in a game, and the target attribute refers to an attribute of the virtual object. For example, the target entity can be a virtual character in a game, and the attributes of the virtual character can include a name, a blood volume, a backpack and the like.

[0139] The attribute node tree is a tree structure diagram constructed according to the dependency between attributes of the target entity.

[0140] For example, please refer to Figure 4 , Figure 4 The application scenario diagram of another information processing method provided by the embodiment of the application is shown in the figure. In Figure 4 Each node in the attribute node tree shown in the figure has its corresponding number, and each edge is the name of the corresponding attribute, such as a name. The blood volume has no child node, and the backpack often contains multiple items, so there can be 10001 / 10002 / 10003 item types. Further, each item can have a quantity and information of the item, thereby forming the attribute node tree of the target entity.

[0141] Specifically, the node path can be obtained directly through the tree structure of the attribute node tree. For example, when the quantity of item 10001 in the backpack changes, the attribute synchronization mechanism will notify node 8 of the change. Further, by continuously visiting the parent node through the structure of the attribute node tree until the node is empty, the node path can be obtained as: backpack.10001.quantity.

[0142] 202. The server determines whether the first node of the node path exists in the attribute information subscription master table.

[0143] The attribute information subscription master table includes multiple attribute selectors corresponding to the target entity, and each attribute selector corresponds to a listener function. The defined attribute selectors and their corresponding listener functions can be stored in a corresponding manner. Specifically, the attribute information subscription master table can be pre-generated based on the attributes of the target entity.

[0144] Specifically, attribute selectors are represented by strings in the implementation. Multi-level attributes of the attribute selector can be obtained by separating them with ".". For example, "backpack.10001.*" will result in [backpack, 10001, *], where * represents a wildcard. This attribute selector indicates that a notification should be made when the attribute of item 10001 in the backpack changes.

[0145] In this embodiment of the application, the attribute selector can also support wildcards *. For example, the attribute selector can be "backpack.*", which means listening to changes under all backpack attributes. When there is a wildcard in the attribute selector, the listening function will pass in the matched result.

[0146] For example, please see Figure 5 , Figure 5 This is a schematic diagram illustrating an application scenario of another information processing method provided in an embodiment of this application. Figure 5 The attribute information subscription master table shown includes a knapsack attribute and a health attribute for the target entity. For the knapsack attribute, the designed attribute selectors are: knapsack, knapsack.*, and knapsack.10001.*, with corresponding listener functions: listener function 1, listener function 2, and listener function 3. For the health attribute, the designed attribute selector is: health, and the corresponding listener function is: listener function 4. By summarizing all the attribute selectors and their listener functions for each entity, a new attribute subscription master table can be obtained. This master table is organized according to the first-level attributes in the attribute selectors.

[0147] In the attribute information summary table, the sub-items under each level 1 attribute are structured as lists, so they need to be traversed one by one during the matching phase. Considering that there are generally not many subscriptions under the same level 1 attribute, using a list approach is relatively efficient and clear.

[0148] In the embodiment of the present application, by designing the attribute information subscription summary table, when the attribute of the entity changes, the unchanged attribute can be quickly skipped, thereby avoiding the performance overhead caused by attribute change message subscription.

[0149] For example, the node path can be backpack.10001.quantity, and the first node of the node path can be determined as backpack. Then, it is determined whether the attribute identifier of the first node is the same as the attribute identifier in the attribute selector string in the attribute information subscription summary table. For example, the attribute selector can be backpack.*, and the attribute identifier is backpack. It is determined that the first node of the node path exists in the attribute information subscription summary table, and step 203 is performed.

[0150] Alternatively, the attribute selector can be blood amount.*, and there is no same attribute identifier. It is determined that the first node of the node path does not exist in the attribute information subscription summary table, and step 205 is performed.

[0151] 203. If yes, the node path is matched with the attribute selector in the attribute information subscription summary table, and a target attribute selector with a matching success is obtained.

[0152] Specifically, the node path and the attribute selector in the attribute information summary table need to be matched, that is, the node path and the attribute selector involved in the attribute information summary table are compared one by one.

[0153] For example, the node path can be backpack.10001.quantity, and all registered listening functions associated with the attribute information summary table can be found through backpack, and then the listening functions are matched one by one.

[0154] First, backpack is the prefix of backpack.10001.quantity, at this time, the listening function 1 can be called back, and backpack.* is also the prefix of backpack.10001.quantity, here the * number matches 10001, so the listening function 2 can be called back with the matched parameter 10001. Backpack.10001.* is also the prefix of backpack.10001.quantity, and the listening function 3 can be called back with the matched parameter 10003, and the listening functions 1, 2 and 3 are triggered respectively.

[0155] 204. The server obtains a target listening function corresponding to the target attribute selector, listens to the target attribute through the target listening function, and obtains attribute change information of the target attribute.

[0156] Specifically, the change information of the target attribute is obtained by the callback listening function 1, the listening function 2 and the listening function 3, that is, the attribute change information, and then the attribute change information is sent to the terminal, so that the terminal updates the information of the target attribute according to the attribute change information, thereby realizing attribute synchronization.

[0157] 205、if not, end the operation.

[0158] Specifically, if the first node of the node path does not exist in the attribute information subscription table, it indicates that the attribute selector corresponding to the target attribute does not exist in the attribute information subscription table, and thus it is not necessary to continue to perform any operation.

[0159] The embodiment of the application discloses an information processing method, which comprises the following steps: when a server detects that a target attribute of a target entity changes, a node path of a target node corresponding to the target attribute in an attribute node tree of the target entity is acquired; the server judges whether a first node of the node path exists in an attribute information subscription table; if the first node exists in the attribute information subscription table, the node path is matched with an attribute selector in the attribute information subscription table, a target attribute selector with which the matching succeeds is obtained, the server acquires a target listening function corresponding to the target attribute selector, and the target attribute is listened to through the target listening function to obtain attribute change information of the target attribute; and if the first node does not exist in the attribute information subscription table, the operation is ended. In this way, the accuracy of information acquisition can be improved.

[0160] To better implement the information processing method provided by the embodiment of the application, the embodiment of the application further provides an information processing device based on the above information processing method. The meanings of the terms are the same as those in the above information processing method, and specific implementation details can be referred to the description in the method embodiment.

[0161] Please refer to Figure 6 , Figure 6 The structural block diagram of the information processing device provided by the embodiment of the application comprises the following:

[0162] A detection unit 301 is configured to acquire node path information of a target node corresponding to a target attribute in an attribute node tree of a target entity based on the attribute node tree when detecting that the target attribute of the target entity changes, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier;

[0163] A first matching unit 302 is configured to match an attribute identifier in the node path information with an attribute field of an attribute selector to obtain a target attribute selector with which the matching with the attribute identifier in the node path information succeeds, wherein the attribute field comprises at least one attribute identifier and is used to indicate a node listened to by the attribute selector.

[0164] The first obtaining unit 303 is configured to obtain a listening function corresponding to a target attribute selector, to obtain a target listening function, wherein one listening function is set for each attribute selector;

[0165] The listening unit 304 is configured to listen to a target node selected by the target attribute selector by using the target listening function, to obtain target node change information.

[0166] In some embodiments, the first matching unit 302 can include:

[0167] The first obtaining sub-unit is configured to obtain an attribute identifier in the node path information, to obtain a first attribute identifier;

[0168] The first matching sub-unit is configured to match the first attribute identifier with an attribute identifier in an attribute field of each attribute selector;

[0169] The first determining sub-unit is configured to determine an attribute selector corresponding to the attribute field including the first attribute identifier, to obtain the target attribute selector.

[0170] In some embodiments, the first matching unit 302 can include:

[0171] The second obtaining sub-unit is configured to obtain a first attribute identifier sequence in the node path information;

[0172] The third obtaining sub-unit is configured to obtain a second attribute identifier sequence in an attribute field of each attribute selector;

[0173] The second matching sub-unit is configured to match the first attribute identifier sequence with the second attribute identifier sequence;

[0174] The second determining sub-unit is configured to determine an attribute selector corresponding to a second attribute identifier sequence identical to or belonging to the first attribute identifier sequence, to obtain the target attribute selector.

[0175] In some embodiments, the apparatus can further include:

[0176] The second obtaining unit is configured to obtain an attribute identifier corresponding to a first node in the node path information;

[0177] The second matching unit is configured to match the attribute identifier corresponding to the first node with an attribute field of the attribute selector;

[0178] The executing unit is configured to, if the matching is successful, execute the step of matching the attribute identifier in the node path information with the attribute field of the attribute selector.

[0179] In some embodiments, the apparatus can further include:

[0180] a third obtaining unit, configured to obtain an attribute type of each attribute of the target entity;

[0181] a determining unit, configured to determine the attribute selector based on the attribute type.

[0182] In some embodiments, the determining unit includes:

[0183] a third determining sub-unit, configured to determine a changeable attribute with the preset attribute type from all attributes of the target entity;

[0184] a fourth obtaining sub-unit, configured to obtain a node path of the changeable attribute in the attribute node tree;

[0185] a generating sub-unit, configured to generate the attribute selector corresponding to the changeable attribute based on the node path and an attribute identifier corresponding to each node.

[0186] In some embodiments, the apparatus can further include:

[0187] a sending unit, configured to send the target node change information to a terminal, so that the terminal adjusts a target attribute of the target entity according to the target node change information.

[0188] In some embodiments, the detecting unit 301 can include:

[0189] a fifth obtaining sub-unit, configured to obtain a position of the target node in the attribute node tree;

[0190] a fourth determining sub-unit, configured to determine a node path of the target node in the attribute node tree according to the position and the tree structure, to obtain a target path;

[0191] a sixth obtaining sub-unit, configured to obtain an attribute identifier corresponding to each node on the target path, to obtain the node path information.

[0192] In some embodiments, the listening unit 304 can include:

[0193] a seventh obtaining sub-unit, configured to obtain a listening task corresponding to each target listening function if the number of the target listening functions is more than one;

[0194] a fifth determining sub-unit, configured to determine one target listening function from the multiple target listening functions with the same listening task if there are multiple target listening functions with the same listening task, to obtain a target listening function to be executed;

[0195] The listening subunit is configured to listen to a target node selected by the target attribute selector corresponding to the target listening function to be executed, and obtain the target node change information.

[0196] The embodiment of the present application discloses an information processing device. When a target attribute of a target entity is detected to change by a detection unit 301, a node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity is obtained based on the attribute node tree, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier. A first matching unit 302 matches the attribute identifiers in the node path information with attribute fields of an attribute selector, and obtains a target attribute selector matched successfully with the attribute identifiers in the node path information. The attribute fields include at least one attribute identifier, and are used to indicate the nodes selected by the attribute selector. A first obtaining unit 303 obtains a listening function corresponding to the target attribute selector, and obtains a target listening function. Each attribute selector is provided with a listening function. A listening unit 304 listens to a target node selected by the target attribute selector through the target listening function, and obtains target node change information. In this way, the accuracy of information acquisition can be improved.

[0197] Correspondingly, the embodiment of the present application further provides a computer device, which can be a server. As shown in Figure 7 Figure 7 The computer device provided by the embodiment of the present application is a structure diagram. The computer device 500 includes a processor 501 with one or more processing cores, a memory 502 with one or more computer readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected with the memory 502. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0198] The processor 501 is the control center of the computer device 500, and connects all parts of the computer device 500 through various interfaces and lines. By running or loading the software program and / or module stored in the memory 502 and calling the data stored in the memory 502, the computer device 500 performs various functions and processes data, thereby overall monitoring the computer device 500.

[0199] ​In the embodiments of the present application, the processor 501 in the computer device 500 loads the instructions corresponding to the processes of one or more application programs into the memory 502 and runs the application programs stored in the memory 502 by the processor 501 to implement various functions according to the following steps:

[0200] When it is detected that the target attribute of the target entity changes, the node path information of the target node corresponding to the target attribute in the attribute node tree of the target entity is obtained based on the attribute node tree of the target entity, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to the attribute dependency relationship, and each node is correspondingly provided with an attribute identifier; the attribute identifiers in the node path information are matched with the attribute fields of the attribute selectors to obtain the target attribute selector matched successfully with the attribute identifiers in the node path information, the attribute fields include at least one attribute identifier and are used to indicate the nodes listened to by the attribute selector; a listening function corresponding to the target attribute selector is obtained to obtain the target listening function, wherein each attribute selector is correspondingly provided with a listening function; the target node listened to by the target attribute selector is listened to through the target listening function to obtain the target node change information.

[0201] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.

[0202] Optionally, as shown in Figure 7 The computer device 500 further includes a touch display screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506 and a power supply 507. The processor 501 is electrically connected with the touch display screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506 and the power supply 507 respectively. Those skilled in the art can understand that the computer device structure shown in the Figure 7 The computer device structure shown in the

[0203] The touch display screen 503 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 503 can include a display panel and a touch panel. The display panel can be used to display information input by the user or provided to the user and various graphical user interfaces of the computer device, which can be composed of graphics, guidance information, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED) or the like. The touch panel can be used to collect touch operations (such as operations of the user using a finger, a stylus or any suitable object or accessory on or near the touch panel) of the user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects signals generated by the touch operation, and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 501, and can also receive commands from the processor 501 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, it transmits to the processor 501 to determine the type of the touch event, and then the processor 501 provides corresponding visual output on the display panel according to the type of the touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can realize the input and output functions as two independent components. That is, the touch display screen 503 can also realize the input function as part of the input unit 506.

[0204] The radio frequency circuit 504 can be used to transceive radio frequency signals to establish wireless communication with network devices or other computer devices, and transceive signals between network devices or other computer devices.

[0205] The audio circuit 505 can be used to provide an audio interface between the user and the computer device through the speaker and the microphone. The audio circuit 505 can convert the received audio data into an electrical signal and transmit it to the speaker, which converts it into a sound signal output. On the other hand, the microphone collects sound signals and converts them into electrical signals, which are received by the audio circuit 505 and converted into audio data. After the audio data is output by the processor 501, it is processed by the radio frequency circuit 504 to be sent to another computer device, for example, or output to the memory 502 for further processing. The audio circuit 505 can also include an earphone jack to provide communication between an external earphone and the computer device.

[0206] The input unit 506 can be configured to receive inputted digital, character information or user feature information (e.g. fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0207] The power supply 507 is configured to supply power to various components of the computer device 500. Optionally, the power supply 507 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging and power consumption management through the power management system. The power supply 507 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and any other components.

[0208] Although Figure 7 The computer device 500 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc. which are not shown in the embodiments and will not be described herein.

[0209] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0210] As can be seen from the above, the computer device provided in the embodiments can detect that a target attribute of a target entity changes, acquire node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity based on the attribute node tree, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to attribute subordination, and each node is provided with an attribute identifier; match the attribute identifiers in the node path information with attribute fields of an attribute selector, to obtain a target attribute selector matched successfully with the attribute identifiers in the node path information, the attribute fields include at least one attribute identifier, and are used to indicate nodes listened to by the attribute selector; acquire a listening function corresponding to the target attribute selector, to obtain a target listening function, wherein each attribute selector is provided with a listening function; and listen to the target node listened to by the target attribute selector through the target listening function, to obtain target node change information.

[0211] Those skilled in the art can understand that all or part of the steps of the various methods in the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, the instructions can be stored in a computer readable storage medium and loaded and executed by a processor.

[0212] To this end, an embodiment of the present application provides a computer readable storage medium, wherein a plurality of computer programs are stored, the computer programs can be loaded by a processor to execute steps in any information processing method provided by the embodiment of the present application. For example, the computer programs can execute the following steps:

[0213] When it is detected that the target attribute of the target entity changes, node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity is acquired, wherein the nodes corresponding to the attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier;

[0214] The attribute identifiers in the node path information are matched with attribute fields of the attribute selectors, and a target attribute selector that matches the attribute identifiers in the node path information successfully is obtained, the attribute fields include at least one attribute identifier, and are used to indicate the nodes that the attribute selector selects to monitor;

[0215] A monitoring function corresponding to the target attribute selector is acquired, and a target monitoring function is obtained, wherein each attribute selector is provided with a monitoring function;

[0216] The target node that the target attribute selector selects to monitor is monitored through the target monitoring function, and target node change information is obtained.

[0217] The specific implementation of each operation can be referred to the foregoing embodiments, and will not be described here.

[0218] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0219] Since the computer programs stored in the storage medium can execute the steps in any information processing method provided by the embodiment of the present application, the beneficial effects that can be achieved by any information processing method provided by the embodiment of the present application can be achieved, which are described in detail in the foregoing embodiments and will not be described here.

[0220] The information processing method, device, storage medium and computer device provided by the embodiment of the present application are described in detail above, and the specific examples are applied to describe the principles and implementation modes of the present application; the above embodiment is only used to help understand the method and its core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as the limitation of the present application.

Claims

1. An information processing method characterized by comprising: The method comprises: when a target attribute of a target entity is detected to change, obtaining node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity, wherein nodes corresponding to attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier; matching the attribute identifiers in the node path information with attribute fields of an attribute selector to obtain a target attribute selector that matches the attribute identifiers in the node path information successfully, wherein the attribute fields comprise at least one attribute identifier, and are used to indicate a node selected by the attribute selector for listening; obtaining a listening function corresponding to the target attribute selector to obtain a target listening function, wherein each attribute selector is provided with a listening function; listening to the target node selected by the target attribute selector for listening through the target listening function to obtain target node change information; the matching of the attribute identifiers in the node path information with the attribute fields of the attribute selector to obtain the target attribute selector that matches the attribute identifiers in the node path information successfully comprises: when the node path information comprises one attribute identifier, obtaining the attribute identifier in the node path information to obtain a first attribute identifier; matching the first attribute identifier with attribute identifiers in the attribute fields of each attribute selector; determining an attribute selector corresponding to an attribute field comprising the first attribute identifier to obtain the target attribute selector; or when the node path information comprises multiple attribute identifiers, obtaining a first attribute identifier sequence in the node path information; obtaining a second attribute identifier sequence in the attribute fields of each attribute selector; matching the first attribute identifier sequence with the second attribute identifier sequence; determining an attribute selector corresponding to a second attribute identifier sequence that is the same as or belongs to the first attribute identifier sequence to obtain the target attribute selector.

2. The method of claim 1, wherein, Before the matching of the attribute identifiers in the node path information with the attribute fields of the attribute selector, the method further comprises the following steps: obtaining an attribute identifier corresponding to a first node in the node path information; matching the attribute identifier corresponding to the first node with the attribute fields of the attribute selector; if the matching is successful, performing the step of matching the attribute identifiers in the node path information with the attribute fields of the attribute selector.

3. The method of claim 1, wherein, Before the matching of the attribute identifiers in the node path information with the attribute fields of the attribute selector, the method further comprises: obtaining an attribute type of each attribute of the target entity; determining the attribute selector based on the attribute type.

4. The method of claim 3, wherein, The determination of the attribute selector based on the attribute type comprises: determining a changeable attribute with a preset attribute type from all attributes of the target entity; obtaining a node path of the changeable attribute in the attribute node tree; generating an attribute selector corresponding to the changeable attribute based on the node path and the attribute identifier corresponding to each node.

5. The method of claim 1, wherein, After the target node change information is obtained by monitoring the target node selected by the target attribute selector through the target monitoring function, the method further comprises the following steps: The target node change information is sent to the terminal, so that the terminal adjusts the target attribute of the target entity according to the target node change information.

6. The method of claim 1, wherein, The node path information of the target node corresponding to the target attribute in the attribute node tree of the target entity is obtained, comprising: The position of the target node in the attribute node tree is obtained; The node path of the target node in the attribute node tree is determined according to the position and the tree structure, and the target path is obtained; The attribute identifier corresponding to each node on the target path is obtained, and the node path information is obtained.

7. The method of claim 1, wherein, The target node change information is obtained by monitoring the target node selected by the target attribute selector through the target monitoring function, comprising: If the number of target monitoring functions is more than one, the monitoring task corresponding to each target monitoring function is obtained; If the monitoring tasks of multiple target monitoring functions are the same, a target monitoring function is determined from the multiple target monitoring functions with the same monitoring task, and a target monitoring function to be executed is obtained; The target node change information is obtained by monitoring the target node selected by the target attribute selector through the target monitoring function corresponding to the target attribute selector.

8. An information processing apparatus, characterized by comprising: The device comprises: A detection unit is configured to, when detecting that a target attribute of a target entity changes, obtain node path information of a target node corresponding to the target attribute in an attribute node tree of the target entity based on the attribute node tree, wherein nodes corresponding to attributes of the target entity in the attribute node tree are in a tree structure according to attribute dependency, and each node is provided with an attribute identifier; A first matching unit is configured to match attribute identifiers in the node path information with attribute fields of attribute selectors to obtain a target attribute selector with which the matching of the attribute identifiers in the node path information is successful, wherein the attribute fields comprise at least one attribute identifier and are used to indicate nodes selected by attribute selectors; A first obtaining unit is configured to obtain a monitoring function corresponding to the target attribute selector to obtain a target monitoring function, wherein each attribute selector is provided with a monitoring function; A monitoring unit is configured to monitor a target node selected by the target attribute selector through the target monitoring function to obtain target node change information. The first matching unit comprises: When the node path information comprises one attribute identifier, the first attribute identifier in the node path information is obtained; the first attribute identifier is matched with attribute identifiers in attribute fields of each attribute selector; an attribute selector corresponding to an attribute field comprising the first attribute identifier is determined to obtain the target attribute selector; or When the node path information comprises a plurality of attribute identifiers, a first attribute identifier sequence in the node path information is obtained; a second attribute identifier sequence in an attribute field of each attribute selector is obtained; the first attribute identifier sequence is matched with the second attribute identifier sequence; an attribute selector corresponding to the second attribute identifier sequence identical to or belonging to the first attribute identifier sequence is determined, to obtain the target attribute selector.

9. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein, The processor implements the information processing method of any one of claims 1 to 7 when executing the program.

10. A storage medium, characterized by The storage medium stores a plurality of instructions adapted to be loaded by the processor to execute the information processing method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Event notification method and device and monitor processing method

    CN104636437A

  • Game service system and method and device for updating data of online games

    CN106582013A