Information processing method and device
By obtaining and matching the display environment data and configuration information of the message card, the target message card association operation is performed, and the problem of low research and development efficiency of message card association operation in the prior art is solved, and more efficient message card association operation management is achieved.
Patent Information
- Application Number
- CN202311500043.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, the research and development efficiency of message card association operations is low, and it is necessary to find and modify the relevant code from a large amount of software code to add, delete or modify the message card association operations.
By obtaining the display environment data and message card configuration information of the message card to be displayed, the display environment data is matched with the conditions in the configuration information, and the target message card association operation is performed when the match is successful. This method uniformly manages multiple message card association operations supported by the client, avoiding the need to define the associated operations separately in each message card software code.
The research and development efficiency of message card association operations has been improved, so that adding, deleting or modifying message card association operations only requires modifying configuration files, without finding and modifying massive software codes.
Smart Images

Figure CN119987730A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information processing method and device. Background Art
[0002] As a carrier of messages, message cards can display information to users. The display content and display style of message cards can be determined according to actual needs.
[0003] Currently, for any message card, a developer can write a software code corresponding to the message card. In addition to defining the aforementioned display content and display style, the software code can also define other associated operations corresponding to the message card.
[0004] However, in this way, the research and development efficiency of the associated operations corresponding to the message cards is low. Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0005] In order to solve or at least partially solve the above technical problems, an embodiment of the present application provides an information processing method and device.
[0006] In a first aspect, an embodiment of the present application provides an information processing method, the method comprising:
[0007] Get the display environment data of the message card to be displayed;
[0008] Acquire message card configuration information, wherein the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations;
[0009] Matching the display environment data with the conditions in the configuration information;
[0010] In the case where the display environment data successfully matches the target condition in the configuration information, a target message card association operation corresponding to the target condition is performed.
[0011] Optionally, matching the display environment data with the condition in the configuration information includes:
[0012] The display environment data is matched with the conditions in the configuration information according to the priorities of the plurality of message card association operations.
[0013] Optionally, the message card configuration information also includes an operation identifier of each message card association operation in the multiple message card association operations, and the operation identifier of each message card association operation in the multiple message card association operations is carried through a target array, and the elements in the target array correspond one-to-one to the operation identifiers, and the position of the operation identifier of each message card association operation in the target array is used to indicate the priority of the message card association operation.
[0014] Optionally, the operation identifier of each message card associated operation is stored in the target array in order from high to low priority.
[0015] Optionally, matching the display environment data with the condition in the configuration information according to the priorities of the multiple message card association operations includes:
[0016] Reading in order the operation identifier of the message card associated operation stored in at least one element of the target array;
[0017] Each time an operation identifier is read, the conditions required to execute the message card associated operation corresponding to the operation identifier are obtained from the configuration information, the conditions corresponding to the operation identifier are obtained, and the display environment data is matched with the conditions corresponding to the operation identifier;
[0018] If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition; if the display environment data fails to match the condition corresponding to the operation identifier, continue to read the operation identifier stored in the next element of the currently read element in the target array.
[0019] Optionally, the message card association operation includes: displaying prompt information for prompting that the message card does not support display, and the conditions that need to be met to perform the message card association operation include: the condition that the message card does not support display.
[0020] Optionally, the display environment data includes one or more of the following:
[0021] The version of the client, the type of the operating system running the client, the identifier of the client, and the role of the client, wherein the role of the client includes: the sender of the message card to be displayed or the receiver of the message card to be displayed.
[0022] In a second aspect, an embodiment of the present application provides an information processing device, the device comprising:
[0023] A first acquisition unit, used to acquire display environment data of a message card to be displayed;
[0024] A second acquisition unit is used to acquire message card configuration information, wherein the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations;
[0025] a matching unit, configured to match the display environment data with the condition in the configuration information;
[0026] The execution unit is used to execute the target message card association operation corresponding to the target condition when the display environment data successfully matches the target condition in the configuration information.
[0027] Optionally, the matching unit is used to:
[0028] The display environment data is matched with the conditions in the configuration information according to the priorities of the plurality of message card association operations.
[0029] Optionally, the message card configuration information also includes an operation identifier of each message card association operation in the multiple message card association operations, and the operation identifier of each message card association operation in the multiple message card association operations is carried through a target array, and the elements in the target array correspond one-to-one to the operation identifiers, and the position of the operation identifier of each message card association operation in the target array is used to indicate the priority of the message card association operation.
[0030] Optionally, the operation identifier of each message card associated operation is stored in the target array in order from high to low priority.
[0031] Optionally, the matching unit is used to:
[0032] Reading in order the operation identifier of the message card associated operation stored in at least one element of the target array;
[0033] Each time an operation identifier is read, the conditions required to execute the message card associated operation corresponding to the operation identifier are obtained from the configuration information, the conditions corresponding to the operation identifier are obtained, and the display environment data is matched with the conditions corresponding to the operation identifier;
[0034] If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition; if the display environment data fails to match the condition corresponding to the operation identifier, continue to read the operation identifier stored in the next element of the currently read element in the target array.
[0035] Optionally, the message card association operation includes: displaying prompt information for prompting that the message card does not support display, and the conditions that need to be met to perform the message card association operation include: the condition that the message card does not support display.
[0036] Optionally, the display environment data includes one or more of the following:
[0037] The version of the client, the type of the operating system running the client, the identifier of the client, and the role of the client, wherein the role of the client includes: the sender of the message card to be displayed or the receiver of the message card to be displayed.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;
[0039] The processor is used to execute instructions stored in the memory so that the electronic device executes the method described in any one of the first aspects above.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute any of the methods described in the first aspect above.
[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.
[0042] Compared with the prior art, the embodiments of the present application have the following advantages:
[0043] The embodiment of the present application provides an information processing method, in one example, the method can be executed by a client. As a specific example, the client can obtain the display environment data of the message card to be displayed. In addition, the client can also obtain the message card configuration information, the message card configuration information includes: multiple message card association operations, and the conditions required to perform each message card association operation in the multiple message card association operations. The multiple message card association operations mentioned here may include the association operations corresponding to each message card in the multiple (for example, all) message cards supported by the client for display. In other words, in the embodiment of the present application, the client supports the display of message card association operations for unified management, rather than defining the association operations corresponding to the message card in the software code corresponding to each message card. After obtaining the display environment data and the message card configuration information of the message card to be displayed, the display environment data can be matched with the conditions in the configuration information. When the display environment data successfully matches the target condition in the configuration information, the target message card association operation corresponding to the target condition is executed. Because the application manages multiple message card association operations supported by the client in a unified manner, if you need to add, delete or modify a message card association operation, you only need to modify the configuration file, without having to find the software code of the message card corresponding to the addition, deletion or modification of the message card association operation from the massive software code and modify the found software code. It can be seen that the use of this solution can effectively improve the research and development efficiency of the message card association operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;
[0046] Figure 2 A flowchart of a method for matching display environment data with conditions in configuration information provided in an embodiment of the present application;
[0047] Figure 3 A flowchart of another information processing method provided in an embodiment of the present application;
[0048] Figure 4A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The inventor of the present application has found through research that, in the conventional technology, the research and development efficiency of the associated operations corresponding to the message cards is low. For example, when a new message card associated operation needs to be added, it is necessary to find the software code corresponding to the message card corresponding to the newly added message card associated operation from the massive software code, and add the software code corresponding to the newly added message card associated operation in the software code. For another example, when a message card associated operation needs to be deleted, it is necessary to find the software code corresponding to the message card corresponding to the message card associated operation to be deleted from the massive software code, and delete the software code corresponding to the message card associated operation to be deleted from the software code. For another example, when a message card associated operation needs to be modified, it is necessary to find the software code corresponding to the message card corresponding to the message card associated operation to be modified from the massive software code, and modify the software code corresponding to the message card associated operation to be modified in the software code.
[0051] In order to solve the above problems, an embodiment of the present application provides an information processing method and device.
[0052] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0053] Exemplary Methods
[0054] See also Figure 1 , which is a flow chart of an information processing method provided in an embodiment of the present application. The information processing method provided in an embodiment of the present application can be executed by a client. In this embodiment, the method can include the following steps: S101-S104.
[0055] S101: Acquire display environment data of a message card to be displayed.
[0056] In the embodiment of the present application, the message card to be displayed may be a message card to be displayed in a certain display page of the client. The content carried by the display page and the message card to be displayed is not specifically limited in the embodiment of the present application.
[0057] The display environment data of the message card to be displayed refers to data related to the display environment of the card to be displayed. The display environment mentioned here is not a natural environment, but a software environment associated with the message card to be displayed. In a specific example, the environment data of the message card to be displayed may include one or more of the version of the client, the type of operating system running the client, the identifier of the client, and the role of the client. Among them:
[0058] The type of the operating system running the client may be the type of the operating system of the terminal device on which the client is installed.
[0059] The client identifier is used to uniquely identify the client. The client identifier includes but is not limited to the client's name and / or other identification information.
[0060] The role of the client is mainly used in the scenario of sharing message cards. When client A shares a message card with client B, the role of client A is the sender of the message card, and the role of client B is the receiver of the message card. Therefore, the role of the client can be the sender of the message card to be displayed or the receiver of the message card to be displayed.
[0061] S102: Acquire message card configuration information, where the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations.
[0062] In one example, the client may read the message card configuration information. The client may pre-store the message card configuration information, for example, the message card configuration information may be sent by the server to the client, and after receiving the message card configuration information sent by the server, the client may store the received message card configuration information.
[0063] In an embodiment of the present application, the message card configuration information includes: multiple message card association operations, and conditions that need to be met for executing each of the multiple message card association operations. In a specific example, the message card configuration information may include a correspondence between each message card association operation and the conditions that need to be met for executing each of the multiple message card association operations. For a certain message card association operation, the conditions that need to be met for executing the message card association operation may be related to the display environment of the message card corresponding to the message card association operation.
[0064] In one example, the message card configuration information can be understood in conjunction with Table 1. That is, the message card configuration information includes the correspondence between the message card association operation and the conditions (referred to as conditions in Table 1) required to perform the message card association operation.
[0065] Table 1
[0066] Message card associated operations condition Associated Operation 1 Condition 1 Association Operation 2 Condition 2
[0067] In an embodiment of the present application, the aforementioned multiple message card association operations may include an association operation corresponding to each message card in at least one message card, and any message card may be associated with one or more association operations. For example, association operation 1 and association operation 2 in Table 1 may correspond to the same message card or different message cards.
[0068] In the embodiment of the present application, the message card association operation may be an operation associated with a message card. The embodiment of the present application does not specifically limit the message card association operation.
[0069] In a specific example, the message card associated operation may be a preset interactive operation, such as a page jump operation.
[0070] In another specific example, considering that in some scenarios, message cards do not support display, in this scenario, a prompt message indicating that the message card does not support display can be displayed to prompt the user that the message card does not support display. Therefore, the message card association operation can be to display a prompt message for indicating that the message card does not support display. Among them, for different message cards, the corresponding prompt information may be different. For this case, the message card association operation in the configuration information may specifically include the specific text corresponding to the prompt information. For this case, the conditions that need to be met to execute the aforementioned message card association operation may be the conditions that the message card does not support display.
[0071] In other words, for this case, the message card configuration information may specifically include: the corresponding relationship between the prompt information and the conditions that the message card does not support display, which can be understood in conjunction with Table 2.
[0072] Table 2
[0073]
[0074]
[0075] S103: Match the display environment data with the conditions in the configuration information.
[0076] As mentioned above, for a certain message card association operation, the conditions that need to be met to perform the message card association operation may be related to the display environment of the message card corresponding to the message card association operation. Therefore, after obtaining the display environment data of the message card to be displayed, the display environment data can be matched with the conditions in the configuration information.
[0077] In one example, when S103 is implemented, the display environment data may be matched with the conditions in the configuration information in a certain order, for example, the display environment data may be matched with the conditions in the configuration information according to the storage order of the conditions in the configuration information.
[0078] In another example, the aforementioned multiple message card association operations may have certain priorities. For example, when the association operation is to display the aforementioned prompt information, different prompt information (prompt texts) have certain priorities. For this case, when S103 is implemented specifically, the display environment data can be matched with the conditions in the configuration information according to the priorities of the multiple message card association operations. In a specific example, the display environment data can be matched with the conditions in the configuration information according to the order of the priorities of the multiple message card association operations from high to low. For this case, when the display environment data can hit the message card association operation with a higher priority, the client can efficiently determine the target conditions that match the display environment data, thereby ensuring the execution efficiency of the message card association operation with a higher priority.
[0079] In one example, the aforementioned message card configuration information may also include an operation identifier of each message card associated operation in multiple message card associated operations. The embodiment of the present application does not specifically limit the operation identifier, and the operation identifier may be, for example, an operation number. As a specific example, the operation identifier of each message card associated operation in the multiple message card associated operations may be carried by a target array, wherein the target array may include multiple elements, and one element is used to carry the operation identifier of a message card associated operation. In other words, the elements in the target array correspond one-to-one to the operation identifier. For example, if there are a total of 10 message card associated operations, the target array may include 10 elements, and one element corresponds to the operation identifier of a message card associated operation. For this case, the aforementioned configuration information may include the correspondence between the operation identifier, the message card associated operation, and the conditions that need to be met to execute the message card associated operation. This correspondence can be understood in conjunction with Table 3.
[0080] Table 3
[0081] Operation ID Message card associated operations condition Operation ID 1 Associated Operation 1 Condition 1 Operation ID 2 Association Operation 2 Condition 2
[0082] In addition, the position of the operation identifier of each message card association operation in the target array is used to indicate the priority of the message card association operation. In other words, the client can determine the priority of the message card association operation corresponding to the operation identifier according to the storage position of the operation identifier in the target array.
[0083] In a specific example, the operation identifier of each message card associated operation can be stored in the target array in order from low to high priority. In other words, in the target array, the later the storage position corresponding to the operation identifier is, the higher the priority of the message card associated operation corresponding to the operation identifier is.
[0084] In another specific example, the operation identifier of each message card association operation can be stored in the target array in order of priority from high to low. In other words, in the target array, the closer the storage position corresponding to the operation identifier is, the higher the priority of the message card association operation corresponding to the operation identifier is. In this case, S103 can include Figure 2 S201-S203 shown. Among them, Figure 2 A flowchart of a method for matching display environment data with conditions in configuration information provided in an embodiment of the present application.
[0085] S201: Read in order the operation identifier of the message card associated operation stored in at least one element in the target array.
[0086] In one example, the first element in the target array may be used as the starting reading position, and the operation identifier of the message card associated operation stored in at least one element in the target array may be read in sequence.
[0087] S202: Whenever an operation identifier is read, the conditions required to execute the message card associated operation corresponding to the operation identifier are obtained from the configuration information, the conditions corresponding to the operation identifier are obtained, and the display environment data is matched with the conditions corresponding to the operation identifier.
[0088] As mentioned above, the aforementioned configuration information may include the correspondence between the operation identifier, the message card associated operation, and the conditions that need to be met to execute the message card associated operation. Therefore, after reading the operation identifier, the conditions that need to be met to execute the message card associated operation corresponding to the operation identifier can be obtained from the configuration information based on the correspondence between the three, the conditions corresponding to the operation identifier can be obtained, and the display environment data can be matched with the conditions corresponding to the operation identifier.
[0089] Among them, the condition corresponding to the operation identifier may include one or more sub-conditions, and accordingly, each sub-condition may correspond to an environment parameter (for example, the identifier of the aforementioned client, the version of the client, the operating system type or the role), and accordingly, matching the display environment data with the condition corresponding to the operation identifier may be performed by matching the display environment data with each sub-condition respectively.
[0090] S203: If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition; if the display environment data fails to match the condition corresponding to the operation identifier, continue to read the operation identifier stored in the next element of the currently read element in the target array.
[0091] The display environment data successfully matches the condition corresponding to the operation identifier, which may be that the display environment data successfully matches each sub-condition in the condition corresponding to the operation identifier. If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition, and the reading of the target array ends.
[0092] If the display environment data fails to match the condition corresponding to the operation identifier, the operation identifier stored in the next element of the element currently read in the target array continues to be read, and S202-S203 continues to be executed. The display environment data fails to match the condition corresponding to the operation identifier, which may be that at least one sub-condition of the condition corresponding to the display environment data and the operation identifier fails to match. For example, one of the sub-conditions is that the operating system type is type 1, and the operating system type running the client is type 2 which is different from type 1, therefore, it can be determined that the display environment data fails to match the sub-condition.
[0093] S104: When the display environment data successfully matches the target condition in the configuration information, a target message card association operation corresponding to the target condition is performed.
[0094] When the display environment data successfully matches the target condition, the target message card association operation corresponding to the target condition can be obtained from the message card configuration information, and the target message card association operation can be performed, such as displaying a prompt message indicating that the card to be displayed does not support display.
[0095] From the above description, it can be seen that in this application, multiple message card association operations supported by the client are uniformly managed. Therefore, if it is necessary to add, delete or modify a message card association operation, the aforementioned configuration file can be modified without having to find the software code of the message card corresponding to the addition, deletion or modification of the message card association operation from the massive software code and modify the found software code. It can be seen that the use of this solution can effectively improve the research and development efficiency of the message card association operation.
[0096] Next, taking the message card association operation as an example of displaying prompt information for prompting that the message card does not support display, the information processing method provided in the embodiment of the present application is introduced.
[0097] See also Figure 3 , which is a flow chart of another information processing method provided in an embodiment of the present application. Figure 3 The method shown may include the following S301-S304.
[0098] S301: Acquire display environment data and message card configuration information of a message card to be displayed.
[0099] S302: traverse the target array and read the operation identifier in the target array.
[0100] S303: Whenever an operation identifier is read, a condition corresponding to the operation identifier is obtained from the configuration information, and the display environment data is matched with the condition corresponding to the operation identifier.
[0101] If the display environment data fails to match any sub-condition in the condition corresponding to the operation identifier, then continue to execute S302.
[0102] If the display environment data successfully matches the condition corresponding to the operation identifier, then continue to execute S304.
[0103] S304: Obtain the prompt text corresponding to the operation identifier from the message card configuration information, and display the prompt text.
[0104] Exemplary Devices
[0105] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0106] See also Figure 4 , which is a structural schematic diagram of an information processing device provided in an embodiment of the present application. Figure 4The information processing device shown can be used to execute the information processing method provided by the above method embodiment. In one example, the information processing device 400 includes: a first acquisition unit 401, a second acquisition unit 402, a matching unit 403 and an execution unit 404.
[0107] The first acquisition unit 401 is used to acquire display environment data of the message card to be displayed;
[0108] The second acquisition unit 402 is used to acquire message card configuration information, wherein the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations;
[0109] A matching unit 403, configured to match the display environment data with the condition in the configuration information;
[0110] The execution unit 404 is used to execute a target message card association operation corresponding to the target condition when the display environment data successfully matches the target condition in the configuration information.
[0111] Optionally, the matching unit 403 is configured to:
[0112] The display environment data is matched with the conditions in the configuration information according to the priorities of the plurality of message card association operations.
[0113] Optionally, the message card configuration information also includes an operation identifier of each message card association operation in the multiple message card association operations, and the operation identifier of each message card association operation in the multiple message card association operations is carried through a target array, and the elements in the target array correspond one-to-one to the operation identifiers, and the position of the operation identifier of each message card association operation in the target array is used to indicate the priority of the message card association operation.
[0114] Optionally, the operation identifier of each message card associated operation is stored in the target array in order from high to low priority.
[0115] Optionally, the matching unit 403 is configured to:
[0116] Reading in order the operation identifier of the message card associated operation stored in at least one element of the target array;
[0117] Each time an operation identifier is read, the conditions required to execute the message card associated operation corresponding to the operation identifier are obtained from the configuration information, the conditions corresponding to the operation identifier are obtained, and the display environment data is matched with the conditions corresponding to the operation identifier;
[0118] If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition; if the display environment data fails to match the condition corresponding to the operation identifier, continue to read the operation identifier stored in the next element of the currently read element in the target array.
[0119] Optionally, the message card association operation includes: displaying prompt information for prompting that the message card does not support display, and the conditions that need to be met to perform the message card association operation include: the condition that the message card does not support display.
[0120] Optionally, the display environment data includes one or more of the following:
[0121] The version of the client, the type of the operating system running the client, the identifier of the client, and the role of the client, wherein the role of the client includes: the sender of the message card to be displayed or the receiver of the message card to be displayed.
[0122] Since the device 400 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 400 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 400, reference can be made to the description part of the above method embodiment, which will not be repeated here.
[0123] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;
[0124] The processor is used to execute the instructions stored in the memory, so that the electronic device executes the information processing method provided by the above method embodiment.
[0125] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the information processing method provided by the above method embodiment.
[0126] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the information processing method provided by the above method embodiment.
[0127] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0128] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0129] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. An information processing method, characterized in that: The method comprises: Get the display environment data of the message card to be displayed; Acquire message card configuration information, wherein the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations; Matching the display environment data with the conditions in the configuration information; In the case where the display environment data successfully matches the target condition in the configuration information, a target message card association operation corresponding to the target condition is performed.
2. The method according to claim 1, characterized in that The matching the display environment data with the condition in the configuration information includes: The display environment data is matched with the conditions in the configuration information according to the priorities of the plurality of message card association operations.
3. The method according to claim 2, characterized in that The message card configuration information also includes an operation identifier of each message card association operation in the multiple message card association operations. The operation identifier of each message card association operation in the multiple message card association operations is carried through a target array. The elements in the target array correspond one-to-one to the operation identifiers. The position of the operation identifier of each message card association operation in the target array is used to indicate the priority of the message card association operation.
4. The method according to claim 3, characterized in that: The operation identifier of each message card associated operation is stored in the target array in order from high to low priority.
5. The method according to claim 4, characterized in that The matching the display environment data with the condition in the configuration information according to the priority of the plurality of message card association operations includes: Reading in order the operation identifier of the message card associated operation stored in at least one element of the target array; Each time an operation identifier is read, the conditions required to execute the message card associated operation corresponding to the operation identifier are obtained from the configuration information, the conditions corresponding to the operation identifier are obtained, and the display environment data is matched with the conditions corresponding to the operation identifier; If the display environment data successfully matches the condition corresponding to the operation identifier, the condition corresponding to the operation identifier is determined as the target condition; if the display environment data fails to match the condition corresponding to the operation identifier, continue to read the operation identifier stored in the next element of the currently read element in the target array.
6. The method according to claim 1, characterized in that The message card association operation includes: displaying prompt information for prompting that the message card does not support display, and the conditions required to perform the message card association operation include: the condition that the message card does not support display.
7. The method according to claim 1, characterized in that The display environment data includes one or more of the following: The version of the client, the type of the operating system running the client, the identifier of the client, and the role of the client, wherein the role of the client includes: the sender of the message card to be displayed or the receiver of the message card to be displayed.
8. An information processing device, characterized in that: The device comprises: A first acquisition unit, used to acquire display environment data of a message card to be displayed; A second acquisition unit is used to acquire message card configuration information, wherein the message card configuration information includes: a plurality of message card association operations, and a condition that needs to be satisfied for executing each of the plurality of message card association operations; a matching unit, configured to match the display environment data with the condition in the configuration information; The execution unit is used to execute the target message card association operation corresponding to the target condition when the display environment data successfully matches the target condition in the configuration information.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 7.