Interaction event response method and device, electronic equipment and storage medium
By displaying the event interaction module and responding to the event configuration command, an interactive response script is generated, which solves the problem of difficulty in adjusting interactive functions in the existing technology, realizes the high cohesion and low coupling effect of the event module, and simplifies the adjustment and modification process of interactive functions. .
Patent Information
- Application Number
- CN202310604087.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2024-11-26
AI Technical Summary
Adjustment and modification of interactive functions in existing application software requires professional and technical personnel to rewrite the code, which makes adjustments time-consuming and labor-intensive, low code reuse rate, high coupling, and difficult to achieve flexible and convenient interactive response logic configuration.
By displaying the event interaction module, responding to event configuration commands, obtaining command attribute values and unit data structure diagrams, and generating and executing interactive response scripts, the fine-grained configuration and automated response of event modules are realized, and the coupling degree of event interaction units is reduced.
It realizes flexible and convenient configuration of event module response logic, improves cohesion and low coupling of interactive response scripts, and simplifies the adjustment and modification process of interactive functions.
Smart Images

Figure CN119025097A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer application technology, and more particularly to a method, device, electronic device and storage medium for responding to an interactive event. Background Art
[0002] With the development of computer application technology, the types and quantity of application software are increasing. The functions of a single application software are becoming more and more abundant, among which there are many functions realized through interactive operations.
[0003] In the related art, the development of interactive functions in application software usually requires professional technicians to write the program code corresponding to the interactive function according to the implementation logic of the interactive function. In this case, the code coupling degree is often high. When the interactive function needs to be adjusted and modified, professional technicians are often required to rewrite the program code corresponding to the interactive function, making the adjustment method of the interactive function time-consuming and labor-intensive, and the code reuse rate is very low. Summary of the invention
[0004] The present disclosure provides a method, device, electronic device and storage medium for responding to interactive events, so as to achieve more flexible and convenient configuration of the response logic of an event module in a relatively fine-grained manner, and automatically generate an interactive response script for the event module, so that the interactive response script achieves the technical effect of high cohesion and low coupling.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for responding to an interaction event, the method comprising:
[0006] A display event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command;
[0007] In response to configuring a trigger operation for an attribute value of the event configuration command in the event interaction unit, acquiring a command attribute value corresponding to the event configuration command;
[0008] In response to executing a trigger operation on an event of the event interaction module, acquiring a unit data structure diagram corresponding to the event interaction unit based on a command attribute value corresponding to each event configuration command in each event interaction unit;
[0009] A module data structure diagram corresponding to the event interaction module is generated based on the unit data structure diagram, the module data structure diagram is converted into an interaction response script, and the interaction response script is executed.
[0010] In a second aspect, an embodiment of the present disclosure further provides a device for responding to an interaction event, the device comprising:
[0011] An interactive module display module, used for displaying an event interactive module, wherein the event interactive module includes at least one event interactive unit, and the event interactive unit includes at least one event configuration command;
[0012] an attribute value configuration module, configured to obtain a command attribute value corresponding to the event configuration command in response to an attribute value configuration trigger operation for the event configuration command in the event interaction unit;
[0013] An interaction unit processing module, configured to execute a trigger operation in response to an event of the event interaction module, and obtain a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit;
[0014] The interactive event response module is used to generate a module data structure diagram corresponding to the event interactive module based on the unit data structure diagram, convert the module data structure diagram into an interactive response script, and execute the interactive response script.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for responding to interactive events as described in any one of the embodiments of the present disclosure.
[0019] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a method for responding to an interactive event as described in any one of the embodiments of the present disclosure.
[0020] The technical solution of the embodiment of the present disclosure realizes the fine-grained division of the event interaction module by displaying an event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command. The event interaction module is constructed by the event configuration command, thereby realizing fine-grained division of the event interaction module. In response to configuring a trigger operation for the attribute value of the event configuration command in the event interaction unit, the command attribute value corresponding to the event configuration command is obtained, so that each event configuration command in each unit can be independently configured. In response to executing a trigger operation for an event of the event interaction module, the unit data structure diagram corresponding to the event interaction unit is obtained based on the command attribute value corresponding to each event configuration command in each event interaction unit, so as to reduce the coupling degree of the event interaction unit in the event interaction module. Based on the unit data structure diagram, a module data structure diagram corresponding to the event interaction module is generated, the module data structure diagram is converted into an interactive response script, and the interactive response script is executed to automatically respond to the trigger operation of the event interaction module. The technical solution of the disclosed embodiment realizes a more flexible and convenient configuration of the response logic of the event module in a relatively fine-grained manner, so that the interactive response script of the event module achieves the technical effect of high cohesion and low coupling. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 A flowchart of a method for responding to an interactive event provided by an embodiment of the present disclosure;
[0023] Figure 2 A flowchart of another method for responding to an interactive event provided by an embodiment of the present disclosure;
[0024] Figure 3 A flowchart of another method for responding to an interactive event provided by an embodiment of the present disclosure;
[0025] Figure 4 A flowchart of an optional example of a method for responding to an interactive event provided in an embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram of the structure of a response device for an interactive event provided by an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0039] Figure 1 A flow chart of a method for responding to an interactive event provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where the response logic of an event interaction module is configured and the interactive response script of the event interaction module is automatically generated. The method can be executed by a response device for an interactive event, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0040] like Figure 1 As shown, the method of this embodiment may specifically include:
[0041] S110. Display an event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command.
[0042] Among them, the event interaction module can be understood as a module that can configure the target event in an interactive manner. In the embodiment of the present disclosure, displaying the event interaction module may include: in response to the interaction triggering operation, obtaining the event interaction module, and displaying the obtained event interaction module. In the embodiment of the present disclosure, there are many ways to obtain the event interaction module, which are not specifically limited here. For example, you can create an event interaction module; or, display the default event interaction module, or, you can obtain an event interaction module from the created event interaction module.
[0043] Exemplarily, the event interaction module may be a component or area displayed on the target function interface that centrally displays all information on configuring the target event.
[0044] In the embodiments of the present disclosure, the event interaction unit can be understood as a unit that can configure partial information of the target event in an interactive manner. The event interaction module may include one or more event interaction units, that is, the event interaction module can be obtained by combining one or more event interaction units. In practical applications, the event interaction module usually includes multiple event interaction units. The event interaction unit may include one or more event configuration commands, that is, the event interaction module can be configured by one or more event configuration commands. The event configuration command can be understood as a command that requires the configuration of an event.
[0045] Optionally, the event interaction unit may include at least an event triggering unit and an event execution unit. The event triggering unit may be understood as an interaction unit for configuring the triggering conditions of the target event. The event execution unit may be understood as an interaction unit for configuring the execution information of the target event. The execution information may include an execution object and an execution behavior. Accordingly, the event execution unit may include an event execution object command and an event execution behavior command. The event execution object may be understood as the execution object of the target event. The event execution behavior may be understood as the specific performance behavior of the event execution object.
[0046] In the disclosed embodiment, the event interaction module can independently configure a single event interaction unit in a more convenient interactive manner, and the target event can be flexibly configured according to actual needs. In the disclosed embodiment, in the process of setting the event interaction module, multiple event interaction units can be combined; and / or, the event configuration command in a single event interaction unit can be configured, so that the event interaction module can realize flexible configuration of different events.
[0047] S120. In response to a trigger operation for configuring an attribute value of the event configuration command in the event interaction unit, obtain a command attribute value corresponding to the event configuration command.
[0048] Among them, the attribute value configuration trigger operation can be understood as a trigger operation for configuring the attribute value of the event configuration command. The command attribute value can be understood as the attribute value configured for the parameter corresponding to the event configuration command. The correspondence between the event configuration command and the command attribute value can be one-to-one or one-to-many, and the correspondence can be configured according to actual needs, which is not specifically limited here. Exemplarily, the command attribute value can be a specific trigger condition of the event trigger unit (such as clicking the screen, etc.) or the execution information of the event execution unit (such as one or more execution elements and / or execution animations corresponding to the execution elements, etc.). Among them, the execution information of the event execution unit may include object information of the event execution object or behavior information of the event execution behavior.
[0049] Specifically, a selection operation acting on an event configuration command in an event interaction unit is received, so that the selected event configuration command can be determined, and an attribute value configuration interface for the selected event configuration command can be displayed. Then, the command attribute value for the selected event configuration command can be received based on the attribute value configuration interface. Among them, the attribute value configuration interface can be understood as an interface for configuring the command attribute value of the selected event configuration command.
[0050] As an optional implementation in the embodiments of the present disclosure, the receiving of command attribute values for a selected event configuration command based on the attribute value configuration interface may include: receiving command attribute values input for a selected event configuration command based on the attribute value configuration interface, which may facilitate users to configure the command attributes corresponding to the event configuration command according to actual needs, thereby achieving a personalized configuration effect of the event configuration command.
[0051] As another optional implementation in the embodiment of the present disclosure, the receiving the command attribute value for the selected event configuration command based on the attribute value configuration interface may include: receiving a selection operation acting on at least one candidate attribute item in the attribute value configuration interface, determining the selected candidate attribute item, and then using the attribute value corresponding to the selected candidate attribute item as the command attribute value corresponding to the event configuration command.
[0052] Among them, the candidate attribute items can be understood as attribute items pre-configured in the attribute value configuration interface to be selected by the user. In the embodiment of the present disclosure, by selecting the candidate attribute items to input the command attribute value for the event configuration command, the configuration of the command attribute value corresponding to the event configuration command is more convenient, thereby improving the user experience.
[0053] S130. In response to executing a trigger operation on an event of the event interaction module, obtaining a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit.
[0054] The event execution trigger operation can be understood as a trigger operation for controlling the execution of the event interaction module. The unit data structure diagram can be a data structure diagram constructed based on the command attribute value corresponding to each event configuration command in the event interaction unit.
[0055] Specifically, after receiving the trigger operation for the event execution of the event interaction module, each event interaction unit included in the event interaction module is traversed and processed. Furthermore, for each event interaction unit, each event configuration command contained in it is traversed and processed. The advantage of such processing is that the information in the event interaction module is processed without omission, thereby ensuring the integrity of the target event.
[0056] Specifically, a unit data structure diagram corresponding to the event interaction unit may be constructed based on the command attribute value corresponding to each event configuration command in each event interaction unit.
[0057] As an optional implementation of the embodiment of the present disclosure, the obtaining of the unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit may include: when the event configuration unit includes one event configuration command, parsing the command attribute value corresponding to the event configuration command to obtain the command data structure diagram corresponding to the event configuration command, and using the command data structure diagram as the unit data structure diagram corresponding to the event interaction unit. The command data structure diagram may be a data structure diagram obtained by parsing the command attribute value corresponding to the event configuration command.
[0058] Specifically, when the event configuration unit includes an event configuration command, the command attribute value corresponding to the event configuration command can be parsed. Then, a command data structure diagram corresponding to the event configuration command can be obtained. After obtaining the command data result diagram, the command data structure diagram can be used as the unit data structure diagram corresponding to the event interaction unit.
[0059] As an optional implementation of the embodiment of the present disclosure, parsing the command attribute values corresponding to the event configuration command to obtain a command data structure diagram corresponding to the event configuration command may include: parsing the command attribute values corresponding to the event configuration command, thereby obtaining a parsing result; and then constructing a command data structure diagram corresponding to the event configuration command based on the parsing result, thereby obtaining a command data structure diagram corresponding to the event configuration command.
[0060] As another optional implementation method of the embodiment of the present disclosure, parsing the command attribute value corresponding to the event configuration command to obtain a command data structure diagram corresponding to the event configuration command may include: querying in a storage space used to store the command data structure diagram based on the command attribute value corresponding to the event configuration command; when a command data structure diagram matching the command attribute value is queried, the command data structure diagram can be obtained from the storage space to reuse the existing command data structure diagram, thereby avoiding repeated construction of the command structure diagram, thereby achieving the technical effect of saving storage space.
[0061] On the basis of the above embodiment, when no command data structure diagram matching the command attribute value is found, the command attribute value corresponding to the event configuration command can be parsed to obtain a parsing result, and then a command data structure diagram corresponding to the event configuration command can be constructed based on the parsing result.
[0062] As another optional implementation of the embodiment of the present disclosure, the acquisition of the unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit may include: when the event configuration unit includes multiple event configuration commands, the command attribute value corresponding to the event configuration command may be parsed for each event configuration command. Thus, the command data structure diagram corresponding to the event configuration command may be obtained. Furthermore, based on the logical relationship of the multiple event configuration commands, the multiple command data structure diagrams may be connected to obtain the unit data structure diagram corresponding to the event configuration unit.
[0063] In the disclosed embodiment, the logical relationship of multiple event configuration commands may represent the execution order of multiple event configuration commands. Optionally, the logical relationship of multiple event configuration commands may include a parallel relationship and / or a progressive relationship. Among them, the parallel relationship may represent that multiple event configuration commands are equal in importance. The progressive relationship may represent that multiple event configuration commands have a sequential order.
[0064] As an optional implementation in the embodiment of the present disclosure, when the event configuration unit includes multiple event configuration commands, the command attribute value corresponding to the event configuration command can be parsed for each event configuration command. Then, based on the command attribute value, a search can be performed from a storage space for storing a command data structure diagram. When a command data structure diagram matching the command attribute value is found, the command data structure diagram can be read from the storage space by calling a predefined command data structure diagram reading method for reading the command data structure diagram. Then, the command data structure diagram can be obtained. The advantage of doing this is that the command data structure diagram corresponding to the event configuration unit can be obtained relatively quickly.
[0065] On the basis of the above embodiment, when a command data structure diagram matching the command attribute value is not found, the command attribute value corresponding to the event configuration command can be passed as an actual parameter to the formal parameter of a diagram generation method predefined for generating a command data structure diagram; after the parameter passing is completed, the command data structure diagram corresponding to the event configuration command is constructed by executing the diagram generation method.
[0066] In the disclosed embodiment, after obtaining each command data structure diagram, the logical relationship of the multiple event configuration commands is determined, and then the multiple command data structure diagrams can be connected according to the logical relationship to obtain a unit data structure diagram corresponding to the event configuration unit.
[0067] In the embodiment of the present disclosure, parsing the command attribute value corresponding to the event configuration command to obtain a command data structure diagram corresponding to the event configuration command may include: parsing the command attribute value corresponding to the event configuration command to obtain at least one command function node corresponding to the event configuration command, and constructing a command data structure diagram corresponding to the event configuration command based on the command function node.
[0068] The command function node may be one or more function nodes obtained by parsing the command attribute value corresponding to the event configuration command. The number of command function nodes corresponding to different command attribute values may be the same or different. Generally, the number of command function nodes is associated with the command implementation logic corresponding to the command attribute value. The more complex the command implementation logic corresponding to the command attribute value, the more corresponding command function nodes there are.
[0069] Specifically, the command attribute value corresponding to the event configuration command is parsed to obtain the parsing result of the command attribute value corresponding to the event configuration command. In practical applications, an event configuration command usually corresponds to a command attribute value. Then, according to the parsing result of the command attribute value, a command function node corresponding to the event configuration command can be constructed. Then, based on the command function node, a command data structure diagram corresponding to the event configuration command can be constructed.
[0070] In the technology of the above-mentioned embodiment, after obtaining the unit data structure diagram corresponding to the event interaction unit, the embodiment of the present disclosure also includes: storing the command attribute value corresponding to the event configuration unit in correspondence with the unit data structure diagram, which can facilitate the subsequent use of the event configuration unit as a query condition to match the unit data structure diagram that matches the command attribute value corresponding to the event configuration unit from multiple unit data structure diagrams.
[0071] S140. Generate a module data structure diagram corresponding to the event interaction module based on the unit data structure diagram, convert the module data structure diagram into an interaction response script, and execute the interaction response script.
[0072] The module data structure diagram may be a data structure diagram generated based on the unit data structure diagram, and the interactive response script may be a script obtained by converting the module data structure diagram into a script.
[0073] As an optional implementation in the embodiment of the present disclosure, when the number of unit data structure diagrams is one, the unit data structure diagram is used as the module data structure diagram corresponding to the event interaction module. Then, the module data structure diagram can be converted into an interactive response script by calling a script conversion method for converting a data structure diagram into a script, and the interactive response script is executed.
[0074] As another optional implementation in the embodiment of the present disclosure, when there are multiple unit data structure diagrams, the association relationship between each unit data structure diagram can be determined. Then, based on the association relationship, each unit data structure diagram can be connected. Thus, a module data structure diagram corresponding to the event interaction module can be obtained. After obtaining the module data structure diagram, the module data structure diagram can be converted into an interactive response script, and the interactive response script can be executed.
[0075] On the basis of the above embodiment, after the event interaction module is displayed, the embodiment of the present disclosure may further include: in response to a unit edit trigger operation for the event interaction unit, updating the event interaction module based on the unit edit trigger operation, so as to realize flexible configuration of the event interaction module.
[0076] Among them, the unit editing trigger operation can be understood as a trigger operation for editing the event interaction unit. The unit editing trigger operation can include a unit adding trigger operation and / or a unit deleting trigger operation. Among them, the unit adding trigger operation can be understood as a trigger operation for adding a new unit interaction unit in the event interaction module. The unit deleting trigger operation can be understood as a trigger operation for deleting a unit interaction unit in the event interaction module.
[0077] It should be noted that, in the embodiments of the present disclosure, the command attribute values set for the command response objects in different event configuration commands may be the same. At this time, the pointer of the command attribute value may be pointed to the different event configuration commands so that different event configuration commands share the command attribute value to achieve the setting of diversified effects for the same command attribute value. It should also be noted that if an event configuration command is set with multiple command attribute values, the event configuration command may be used as an independent event interaction unit. Alternatively, in the case where multiple event configuration commands are used to configure the same sub-event in the target event, the multiple event configuration commands may be used as an event interaction unit.
[0078] The technical solution of the embodiment of the present disclosure realizes the fine-grained division of the event interaction module by displaying the event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command. In response to the configuration trigger operation for the attribute value of the event configuration command in the event interaction unit, the command attribute value corresponding to the event configuration command is obtained, and each event configuration command in each unit can be independently configured. In response to the event execution trigger operation for the event interaction module, the unit data structure diagram corresponding to the event interaction unit is obtained based on the command attribute value corresponding to each event configuration command in each event interaction unit, which can reduce the coupling degree of the event interaction unit in the event interaction module. Based on the unit data structure diagram, a module data structure diagram corresponding to the event interaction module is generated, the module data structure diagram is converted into an interactive response script, and the interactive response script is executed to automatically respond to the trigger operation of the event interaction module. The technical solution of the embodiment of the present disclosure realizes a more flexible and convenient configuration of the response logic of the event module in a relatively fine-grained manner, so that the interactive response script of the event module achieves the technical effect of high cohesion and low coupling.
[0079] Figure 2A flowchart of another method for responding to interactive events provided by an embodiment of the present disclosure. The technical solution of this embodiment further refines how to obtain the unit data structure diagram corresponding to the event interaction unit on the basis of the above-mentioned embodiment. Optionally, the unit data structure diagram corresponding to the event interaction unit is obtained based on the command attribute value corresponding to each of the event configuration commands in each of the event interaction units, including: for each of the event interaction units, querying in a preset storage space based on the command attribute value corresponding to each of the event configuration commands in the event interaction unit; when a unit data structure diagram matching the command attribute value is queried, obtaining the unit data structure diagram from the preset storage space. For specific implementation methods, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to those in the above-mentioned embodiments are not repeated here.
[0080] like Figure 2 As shown, the method of this embodiment may specifically include:
[0081] S210. Display an event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command.
[0082] S220. In response to a trigger operation for configuring an attribute value of the event configuration command in the event interaction unit, obtain a command attribute value corresponding to the event configuration command.
[0083] S230. In response to executing a trigger operation on an event of the event interaction module, query a preset storage space for each of the event interaction units based on a command attribute value corresponding to each of the event configuration commands in the event interaction unit.
[0084] The preset storage space may be understood as a storage space pre-set for storing the unit data structure diagram. The preset storage space may include a cloud storage space and / or a local storage space.
[0085] Specifically, after receiving the event execution trigger operation for the event interaction module, the event configuration commands in the event interaction unit can be traversed for each event interaction unit, so that each event configuration command in the event interaction unit can be determined. Then, the command attribute value corresponding to each event configuration command can be compared with the command attribute value corresponding to the unit data structure diagram stored in the preset storage space for consistency.
[0086] S240: When a unit data structure diagram matching the command attribute value is found, the unit data structure diagram is obtained from the preset storage space.
[0087] Specifically, when a unit data structure diagram matching the command attribute value is found, the unit data structure diagram can be read from the preset storage space, thereby obtaining the unit data structure diagram. In the disclosed embodiment, obtaining the unit data structure diagram from the preset storage space can achieve the technical effect of saving storage space by reusing the existing unit data structure diagram and avoiding rebuilding the unit data structure diagram.
[0088] S250. Generate a module data structure diagram corresponding to the event interaction module based on the unit data structure diagram, convert the module data structure diagram into an interaction response script, and execute the interaction response script.
[0089] The technical solution of the disclosed embodiment is that after receiving the event execution trigger operation for the event interaction module, for each of the event interaction units, a query is performed in the preset storage space based on the command attribute value corresponding to each of the event configuration commands in the event interaction unit. In the case of a unit data structure diagram matching the command attribute value being queried, the unit data structure diagram is obtained from the preset storage space to reuse the existing unit data structure diagram, thereby avoiding the repeated construction of the unit data structure diagram, thereby achieving the technical effect of saving the time and space resources occupied by the reconstruction of the unit data structure diagram and improving the efficiency of obtaining the unit data structure diagram.
[0090] Figure 3 A flowchart of another method for responding to interactive events provided by an embodiment of the present disclosure. The technical solution of this embodiment further refines how to generate a module data structure diagram corresponding to the event interaction module based on the unit data structure diagram on the basis of the above-mentioned embodiment. Optionally, the generation of the module data structure diagram corresponding to the event interaction module based on the unit data structure diagram includes: determining a key node containing a target connection port in the command function node of the unit data structure diagram, wherein the target connection port is a command output port and / or a command input port; connecting the unit data structure diagram based on the key node and the target connection port of the key node to obtain a module data structure diagram corresponding to the event interaction module. For specific implementation methods, please refer to the description of this embodiment. Among them, the technical features that are the same or similar to those in the above-mentioned embodiments are not repeated here.
[0091] like Figure 3 As shown, the method of this embodiment may specifically include:
[0092] S310. Display an event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command.
[0093] S320: In response to a trigger operation for configuring an attribute value of the event configuration command in the event interaction unit, obtain a command attribute value corresponding to the event configuration command.
[0094] S330. In response to executing a trigger operation on an event of the event interaction module, obtain a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit.
[0095] S340: Determine a key node including a target connection port in the command function node of the unit data structure diagram.
[0096] The key node can be understood as a command function node that needs to be connected in the unit data structure diagram. In other words, the key node can be a command function node that includes a target connection port.
[0097] In the embodiment of the present disclosure, a single unit data structure diagram may include one or more command function nodes. In the case where a unit data structure diagram includes one command function node, the command function node may be used as a key node, and the target connection port of the key node may be obtained. In the case where a unit data structure diagram includes multiple command function nodes, the target connection port in the unit data structure diagram is determined, and the command function node including the target connection port is used as a key node.
[0098] The target connection port can be understood as a port for connecting to a unit data structure diagram. Since the model structure diagram may include multiple unit data structure diagrams, their connection positions are also different. Therefore, the target connection port can be a command output port and / or a command input port. The command output port can be understood as a port that can output commands. The command input port can be understood as a port that can receive commands.
[0099] S350, connecting the unit data structure diagram based on the key node and the target connection port of the key node to obtain a module data structure diagram corresponding to the event interaction module.
[0100] Optionally, the logical relationship between the unit data structure diagrams is determined based on the logical relationship between the event interaction units, and then the connection relationship between the key nodes is determined based on the connection relationship between the unit data structure diagrams. Finally, the unit data structure diagrams are connected based on the connection relationship between the key nodes and the target connection ports of the key nodes.
[0101] Specifically, when there are multiple unit data structure diagrams, one unit data structure diagram can be selected from the multiple unit data structure diagrams as the current unit data structure diagram. After determining the current unit data structure diagram, the next unit data structure diagram that matches the target connection port can be selected from the remaining unit data structure diagrams based on the target connection port of the key node in the current unit data structure diagram. Then, based on the target connection port, the current unit data structure diagram and the next unit data structure diagram can be connected, and the current unit data structure diagram can be updated to the next unit data structure diagram, and the operation of selecting the next unit data structure diagram that matches the target connection port from the remaining unit data structure diagrams according to the target connection port of the key point in the current unit data structure diagram and connecting the current unit data structure diagram and the next unit data structure diagram based on the target connection port is repeated until all unit data structure diagrams are connected. Then, the connected unit data structure diagram can be used as the module data structure diagram corresponding to the event interaction module.
[0102] S360: convert the module data structure diagram into an interactive response script, and execute the interactive response script.
[0103] The technical solution of the disclosed embodiment is to determine the key node containing the target connection port in the command function node of the unit data structure diagram. Then, the unit data structure diagram can be connected based on the key node and the target connection port of the key node to obtain the module data structure diagram corresponding to the event interaction module, so as to achieve the technical effect of building a module data structure diagram based on the unit data structure diagram, so that a single unit data structure diagram achieves high cohesion and multiple unit data result diagrams achieve low coupling, which is convenient for the subsequent adjustment of the module data structure diagram.
[0104] As an optional example of the embodiment of the present disclosure, in the embodiment of the present disclosure, the event interaction module may be a unit that can configure partial information of a special effect event in an interactive manner. The event interaction module may include multiple event interaction units. In this example, the event interaction unit includes an event triggering unit and an event execution unit. Among them, the event triggering unit may be an interaction unit for configuring the triggering conditions of the special effect event. The event execution unit may be an interaction unit for configuring the execution information of the special effect event. The event execution unit may include a command for configuring an event execution object and a command for configuring an event execution behavior. In this example, taking the example that the execution object may be a special effect element and the execution behavior may be an animation effect of the special effect element, such as Figure 4 As shown, the response method of the interactive event in the embodiment of the present disclosure may specifically include:
[0105] 1. Create a graph object and an event parsing object (EventPraser object) in advance. The graph object can be understood as an object used to logically connect special effect events. The event parsing object can be understood as an object used to parse special effect events.
[0106] 2. Traverse each special effect event command eventCommand in the special effect event command list eventCommandList through the event parsing object. For each special effect event command, parse the special effect event command by calling the PassEvent method.
[0107] 3. After parsing the special effect event command, the command attribute value in the special effect event command - the special effect trigger condition trigger can be determined. Then, the special effect trigger condition is parsed, and during the parsing process, a graph node for the special effect trigger is created.
[0108] When the number of graph nodes triggered by special effects is one, the graph node is used as the key node for special effect triggering; when the number of graph nodes triggered by special effects is multiple, the graph nodes are connected according to the triggering logic of the special effect triggering, and the key points containing ports in the graph nodes are determined, wherein the key points containing ports can be used to connect with other key points. After determining the key points, the node information and port information of the key points triggered by special effects can be obtained, recorded in triggerNodeInfo, and triggerNodeInfo is returned.
[0109] 4. After the analysis of the special effect trigger is completed, all special effect event command units eventCommandUnit in the special effect event command corresponding to the special effect trigger can be analyzed. During the analysis process, for each special effect event command unit, different graph nodes of the special effect event command unit can be created and connected according to the type of Feature of the special effect element configured in the special effect event command unit and the type of animation effect Action of the special effect element.
[0110] When the number of graph nodes of the special effect event command unit is one, the graph node is used as the key point of the special effect event command unit; when the number of graph nodes of the special effect event command unit is multiple, the graph nodes are connected according to the animation logic of the special effect, and the key points containing ports in the graph nodes are determined. After determining the key points, the node information and port information of the key points of the special effect event command unit can be recorded in actionNodeInfo, and the actionNodeInfo collection is returned.
[0111] 5. According to the set of node information and port information of the key points stored in triggerNodeInfo and actionNodeInfo, the key points of the special effect trigger condition trigger are connected to the key points of multiple eventCommandUnits corresponding to the special effect trigger, so as to achieve the effect of one trigger triggering multiple actions.
[0112] 6. After the key points are connected, the connection results can be obtained. After obtaining the connection results, the connection results can be converted into scripts based on the C++ graph object ( Figure 4 ) into a script, and execute the script.
[0113] On the basis of the above-mentioned embodiments, in order to enrich the animation effect of a special effect element, in the embodiments of the present disclosure, different special effect event commands can hold the same special effect element, that is, a special effect element can have multiple pointers and point to different special effect event command units respectively. Exemplarily, the special effect element can be a sticker. The trigger condition for displaying the sticker on the screen can be a single click on the screen or a double click on the screen. Then, two special effect event commands can be configured. The special effect event command can be a command for configuring the animation effect of the special effect element. Among them, in one special effect event command, the special effect trigger can be a single click on the screen, the special effect element can be the sticker, and the animation effect of the special effect element can be displaying the sticker. In another special effect event command, the special effect trigger can be a double click on the screen, the special effect element can be the sticker, and the animation effect of the special effect element can be displaying the sticker. At this time, the pointer of the sticker points to the two configured special effect event commands.
[0114] In order to enrich the diversity of special effect animations, in the embodiments of the present disclosure, different special effect event commands can set different animation effects for the same special effect element, thereby realizing the superposition of at least two animation effects of a special effect element. Following the above example, the special effect element is a sticker, and the animation effect of the sticker can be that the sticker moves in a certain direction and flashes during the movement. Then, in the embodiments of the present disclosure, two special effect event commands can be configured, wherein one special effect event command can be configured with the sticker moving in a certain direction, and the other special effect event command can be configured with the sticker flashing during the movement.
[0115] On the basis of the above embodiment, a configured special effect event command can be modified so that the user can set the special effect according to the actual situation, thereby achieving a customized setting effect of the special effect.
[0116] The technical solution of the disclosed embodiment realizes a more flexible and convenient fine-grained configuration of the response logic of special effect events, which can meet the customization requirements of special effects and the configured implementation logic is relatively consistent with the underlying graph logic, facilitating the subsequent iteration of special effect codes.
[0117] Figure 5 A schematic diagram of a structure of a response device for an interactive event provided by an embodiment of the present disclosure, such as Figure 5 As shown, the device includes: an interactive module display module 410, an attribute value configuration module 420, an interactive unit processing module 430 and an interactive event response module 440.
[0118] The interactive module display module 410 is used to display the event interactive module, wherein the event interactive module includes at least one event interactive unit, and the event interactive unit includes at least one event configuration command;
[0119] The attribute value configuration module 420 is used to obtain a command attribute value corresponding to the event configuration command in response to an attribute value configuration trigger operation for the event configuration command in the event interaction unit;
[0120] The interaction unit processing module 430 is used to execute a trigger operation in response to an event of the event interaction module, and obtain a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit;
[0121] The interactive event response module 440 is used to generate a module data structure diagram corresponding to the event interactive module based on the unit data structure diagram, convert the module data structure diagram into an interactive response script, and execute the interactive response script.
[0122] The technical solution of the embodiment of the present disclosure realizes the fine-grained division of the event interaction module by displaying the event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command. In response to the configuration trigger operation for the attribute value of the event configuration command in the event interaction unit, the command attribute value corresponding to the event configuration command is obtained, and each event configuration command in each unit can be independently configured. In response to the event execution trigger operation for the event interaction module, the unit data structure diagram corresponding to the event interaction unit is obtained based on the command attribute value corresponding to each event configuration command in each event interaction unit, which can reduce the coupling degree of the event interaction unit in the event interaction module. Based on the unit data structure diagram, a module data structure diagram corresponding to the event interaction module is generated, the module data structure diagram is converted into an interactive response script, and the interactive response script is executed to automatically respond to the trigger operation of the event interaction module. The technical solution of the embodiment of the present disclosure realizes a more flexible and convenient configuration of the response logic of the event module in a relatively fine-grained manner, so that the interactive response script of the event module achieves the technical effect of high cohesion and low coupling.
[0123] Optionally, the interaction unit processing module 430 is configured to:
[0124] In the case where the event configuration unit includes an event configuration command, the command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command, and the command data structure diagram is used as the unit data structure diagram corresponding to the event interaction unit.
[0125] Optionally, the interaction unit processing module 430 is configured to:
[0126] In the case where the event configuration unit includes a plurality of the event configuration commands, for each of the event configuration commands, a command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command;
[0127] Based on the logical relationship of the multiple event configuration commands, the multiple command data structure diagrams are connected to obtain a unit data structure diagram corresponding to the event configuration unit.
[0128] Optionally, the interaction unit processing module 430 is configured to:
[0129] The command attribute value corresponding to the event configuration command is parsed to obtain at least one command function node corresponding to the event configuration command, and a command data structure diagram corresponding to the event configuration command is constructed based on the command function node.
[0130] Optionally, the device further comprises a data storage module; wherein the data storage module is used to:
[0131] After the unit data structure diagram corresponding to the event interaction unit is obtained, the command attribute value corresponding to the event configuration unit is stored in correspondence with the unit data structure diagram.
[0132] Optionally, the interaction unit processing module 430 is configured to:
[0133] For each of the event interaction units, querying in a preset storage space based on a command attribute value corresponding to each of the event configuration commands in the event interaction unit;
[0134] When a unit data structure diagram matching the command attribute value is found, the unit data structure diagram is acquired from the preset storage space.
[0135] Optionally, the interaction event response module 440 is used to:
[0136] Determine a key node including a target connection port in a command function node of the unit data structure diagram, wherein the target connection port is a command output port and / or a command input port;
[0137] The unit data structure diagrams are connected based on the key nodes and the target connection ports of the key nodes to obtain a module data structure diagram corresponding to the event interaction module.
[0138] Optionally, the device further includes an interaction unit editing module; wherein the interaction unit editing module is used to:
[0139] After the event interaction module is displayed, in response to a unit edit trigger operation for the event interaction unit, the event interaction module is updated based on the unit edit trigger operation, wherein the unit edit trigger operation includes a unit add trigger operation and / or a unit delete trigger operation.
[0140] Optionally, the event interaction unit includes at least an event triggering unit and an event execution unit, and the event execution unit includes an event execution object command and an event execution behavior command.
[0141] The interactive event response device provided in the embodiments of the present disclosure can execute the interactive event response method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0142] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0143] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows an electronic device (eg, Figure 6 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the interactive events and scope of use of the embodiments of the present disclosure.
[0144] like Figure 6 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0145] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0146] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0147] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0148] The electronic device provided in the embodiment of the present disclosure and the method for responding to interactive events provided in the above-mentioned embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, reference can be made to the above-mentioned embodiment, and this embodiment has the same beneficial effects as the above-mentioned embodiment.
[0149] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method for responding to an interactive event provided in the above embodiments is implemented.
[0150] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0151] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0152] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0153] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays an event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command;
[0154] In response to configuring a trigger operation for an attribute value of the event configuration command in the event interaction unit, acquiring a command attribute value corresponding to the event configuration command;
[0155] In response to executing a trigger operation on an event of the event interaction module, acquiring a unit data structure diagram corresponding to the event interaction unit based on a command attribute value corresponding to each event configuration command in each event interaction unit;
[0156] A module data structure diagram corresponding to the event interaction module is generated based on the unit data structure diagram, the module data structure diagram is converted into an interaction response script, and the interaction response script is executed.
[0157] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0158] The flow chart and block diagram in the accompanying drawings illustrate the possible implementation architecture, interactive events and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical interactive events. It should also be noted that in some alternative implementations, the interactive events marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the interactive events involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that executes the specified interactive events or operations, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0160] The interactive events described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0161] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0162] According to one or more embodiments of the present disclosure, [Example 1] provides a method for responding to an interaction event, the method comprising:
[0163] A display event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command;
[0164] In response to configuring a trigger operation for an attribute value of the event configuration command in the event interaction unit, acquiring a command attribute value corresponding to the event configuration command;
[0165] In response to executing a trigger operation on an event of the event interaction module, acquiring a unit data structure diagram corresponding to the event interaction unit based on a command attribute value corresponding to each event configuration command in each event interaction unit;
[0166] A module data structure diagram corresponding to the event interaction module is generated based on the unit data structure diagram, the module data structure diagram is converted into an interaction response script, and the interaction response script is executed.
[0167] According to one or more embodiments of the present disclosure, [Example 2] provides a method for responding to an interaction event, the method comprising:
[0168] In some optional implementations, acquiring a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each of the event configuration commands in each of the event interaction units, includes:
[0169] In the case where the event configuration unit includes an event configuration command, the command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command, and the command data structure diagram is used as the unit data structure diagram corresponding to the event interaction unit.
[0170] According to one or more embodiments of the present disclosure, [Example 3] provides a method for responding to an interaction event, the method comprising:
[0171] In some optional implementations, acquiring a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each of the event configuration commands in each of the event interaction units, includes:
[0172] In the case where the event configuration unit includes a plurality of the event configuration commands, for each of the event configuration commands, a command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command;
[0173] Based on the logical relationship of the multiple event configuration commands, the multiple command data structure diagrams are connected to obtain a unit data structure diagram corresponding to the event configuration unit.
[0174] According to one or more embodiments of the present disclosure, [Example 4] provides a method for responding to an interaction event, the method comprising:
[0175] In some optional implementations, the parsing of the command attribute value corresponding to the event configuration command to obtain a command data structure diagram corresponding to the event configuration command includes:
[0176] The command attribute value corresponding to the event configuration command is parsed to obtain at least one command interaction event node corresponding to the event configuration command, and a command data structure diagram corresponding to the event configuration command is constructed based on the command interaction event node.
[0177] According to one or more embodiments of the present disclosure, [Example 5] provides a method for responding to an interaction event, the method comprising:
[0178] In some optional implementations, after obtaining the unit data structure diagram corresponding to the event interaction unit, the method further includes:
[0179] The command attribute value corresponding to the event configuration unit and the unit data structure diagram are stored in correspondence.
[0180] According to one or more embodiments of the present disclosure, [Example 6] provides a method for responding to an interaction event, the method comprising:
[0181] In some optional implementations, acquiring a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each of the event configuration commands in each of the event interaction units, includes:
[0182] For each of the event interaction units, querying in a preset storage space based on a command attribute value corresponding to each of the event configuration commands in the event interaction unit;
[0183] When a unit data structure diagram matching the command attribute value is found, the unit data structure diagram is acquired from the preset storage space.
[0184] According to one or more embodiments of the present disclosure, [Example 7] provides a method for responding to an interaction event, the method comprising:
[0185] In some optional implementations, generating a module data structure diagram corresponding to the event interaction module based on the unit data structure diagram includes:
[0186] Determine a key node including a target connection port in a command function node of the unit data structure diagram, wherein the target connection port is a command output port and / or a command input port;
[0187] The unit data structure diagrams are connected based on the key nodes and the target connection ports of the key nodes to obtain a module data structure diagram corresponding to the event interaction module.
[0188] According to one or more embodiments of the present disclosure, [Example 8] provides a method for responding to an interaction event, the method comprising:
[0189] In some optional implementations, after the display event interaction module, the method further includes:
[0190] In response to a unit editing trigger operation for the event interaction unit, the event interaction module is updated based on the unit editing trigger operation, wherein the unit editing trigger operation includes a unit adding trigger operation and / or a unit deleting trigger operation.
[0191] According to one or more embodiments of the present disclosure, [Example 9] provides a method for responding to an interaction event, the method comprising:
[0192] In some optional implementations, the event interaction unit includes at least an event triggering unit and an event execution unit, and the event execution unit includes an event execution object command and an event execution behavior command.
[0193] According to one or more embodiments of the present disclosure, [Example 10] provides a device for responding to an interaction event, the device comprising:
[0194] An interactive module display module, used for displaying an event interactive module, wherein the event interactive module includes at least one event interactive unit, and the event interactive unit includes at least one event configuration command;
[0195] an attribute value configuration module, configured to obtain a command attribute value corresponding to the event configuration command in response to an attribute value configuration trigger operation for the event configuration command in the event interaction unit;
[0196] An interaction unit processing module, configured to execute a trigger operation in response to an event of the event interaction module, and obtain a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit;
[0197] The interactive event response module is used to generate a module data structure diagram corresponding to the event interactive module based on the unit data structure diagram, convert the module data structure diagram into an interactive response script, and execute the interactive response script.
[0198] According to one or more embodiments of the present disclosure, [Example 11] provides a device for responding to an interaction event, the device comprising:
[0199] In some optional implementations, the interaction unit processing module is used to:
[0200] In the case where the event configuration unit includes an event configuration command, the command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command, and the command data structure diagram is used as the unit data structure diagram corresponding to the event interaction unit.
[0201] According to one or more embodiments of the present disclosure, [Example 12] provides a device for responding to an interaction event, the device comprising:
[0202] In some optional implementations, the interaction unit processing module is used to:
[0203] In the case where the event configuration unit includes a plurality of the event configuration commands, for each of the event configuration commands, a command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command;
[0204] Based on the logical relationship of the multiple event configuration commands, the multiple command data structure diagrams are connected to obtain a unit data structure diagram corresponding to the event configuration unit.
[0205] According to one or more embodiments of the present disclosure, [Example 13] provides a device for responding to an interaction event, the device comprising:
[0206] In some optional implementations, the interaction unit processing module is used to:
[0207] The command attribute value corresponding to the event configuration command is parsed to obtain at least one command function node corresponding to the event configuration command, and a command data structure diagram corresponding to the event configuration command is constructed based on the command function node.
[0208] According to one or more embodiments of the present disclosure, [Example 14] provides a device for responding to an interactive event, the device further comprising a data storage module;
[0209] In some optional implementations, the data storage module is used to:
[0210] After the unit data structure diagram corresponding to the event interaction unit is obtained, the command attribute value corresponding to the event configuration unit is stored in correspondence with the unit data structure diagram.
[0211] According to one or more embodiments of the present disclosure, [Example 15] provides a device for responding to an interaction event, the device comprising:
[0212] In some optional implementations, the interaction unit processing module is used to:
[0213] For each of the event interaction units, querying in a preset storage space based on a command attribute value corresponding to each of the event configuration commands in the event interaction unit;
[0214] When a unit data structure diagram matching the command attribute value is found, the unit data structure diagram is acquired from the preset storage space.
[0215] According to one or more embodiments of the present disclosure, [Example 16] provides a device for responding to an interaction event, the device comprising:
[0216] In some optional implementations, the interaction event response module is used to:
[0217] Determine a key node including a target connection port in a command function node of the unit data structure diagram, wherein the target connection port is a command output port and / or a command input port;
[0218] The unit data structure diagrams are connected based on the key nodes and the target connection ports of the key nodes to obtain a module data structure diagram corresponding to the event interaction module.
[0219] According to one or more embodiments of the present disclosure, [Example 17] provides a device for responding to an interaction event, the device further comprising an interaction unit editing module;
[0220] In some optional implementations, the interactive unit editing module is used to: after the event interaction module is displayed, in response to a unit editing trigger operation for the event interaction unit, update the event interaction module based on the unit editing trigger operation, wherein the unit editing trigger operation includes a unit adding trigger operation and / or a unit deleting trigger operation.
[0221] According to one or more embodiments of the present disclosure, [Example 18] provides a device for responding to an interaction event, the device comprising:
[0222] In some optional implementations, the event interaction unit includes at least an event triggering unit and an event execution unit, and the event execution unit includes an event execution object command and an event execution behavior command.
[0223] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0224] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0225] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for responding to an interactive event, characterized in that: The method comprises: A display event interaction module, wherein the event interaction module includes at least one event interaction unit, and the event interaction unit includes at least one event configuration command; In response to configuring a trigger operation for an attribute value of the event configuration command in the event interaction unit, acquiring a command attribute value corresponding to the event configuration command; In response to executing a trigger operation on an event of the event interaction module, acquiring a unit data structure diagram corresponding to the event interaction unit based on a command attribute value corresponding to each event configuration command in each event interaction unit; A module data structure diagram corresponding to the event interaction module is generated based on the unit data structure diagram, the module data structure diagram is converted into an interaction response script, and the interaction response script is executed.
2. The method for responding to an interactive event according to claim 1, characterized in that: The acquiring the unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit, comprises: In the case where the event configuration unit includes an event configuration command, the command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command, and the command data structure diagram is used as the unit data structure diagram corresponding to the event interaction unit.
3. The method for responding to an interactive event according to claim 1, characterized in that: The acquiring the unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit, comprises: In the case where the event configuration unit includes a plurality of the event configuration commands, for each of the event configuration commands, a command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command; Based on the logical relationship of the multiple event configuration commands, the multiple command data structure diagrams are connected to obtain a unit data structure diagram corresponding to the event configuration unit.
4. The method for responding to an interactive event according to claim 2 or 3, characterized in that: The command attribute value corresponding to the event configuration command is parsed to obtain a command data structure diagram corresponding to the event configuration command, including: The command attribute value corresponding to the event configuration command is parsed to obtain at least one command interaction event node corresponding to the event configuration command, and a command data structure diagram corresponding to the event configuration command is constructed based on the command interaction event node.
5. The method for responding to an interactive event according to claim 1, characterized in that: After obtaining the unit data structure diagram corresponding to the event interaction unit, the method further includes: The command attribute value corresponding to the event configuration unit and the unit data structure diagram are stored in correspondence.
6. The method for responding to an interactive event according to claim 1, characterized in that: The acquiring the unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit, comprises: For each of the event interaction units, querying in a preset storage space based on a command attribute value corresponding to each of the event configuration commands in the event interaction unit; When a unit data structure diagram matching the command attribute value is found, the unit data structure diagram is acquired from the preset storage space.
7. The method for responding to an interactive event according to claim 1, characterized in that: The generating a module data structure diagram corresponding to the event interaction module based on the unit data structure diagram includes: Determine a key node including a target connection port in the command interaction event node of the unit data structure diagram, wherein the target connection port is a command output port and / or a command input port; The unit data structure diagrams are connected based on the key nodes and the target connection ports of the key nodes to obtain a module data structure diagram corresponding to the event interaction module.
8. The method for responding to an interactive event according to claim 1, characterized in that: After the display event interaction module, it also includes: In response to a unit editing trigger operation for the event interaction unit, the event interaction module is updated based on the unit editing trigger operation, wherein the unit editing trigger operation includes a unit adding trigger operation and / or a unit deleting trigger operation.
9. The method for responding to an interactive event according to claim 1, characterized in that: The event interaction unit at least includes an event triggering unit and an event execution unit, and the event execution unit includes an event execution object command and an event execution behavior command.
10. A device for responding to an interactive event, characterized in that: The device comprises: An interactive module display module, used for displaying an event interactive module, wherein the event interactive module includes at least one event interactive unit, and the event interactive unit includes at least one event configuration command; an attribute value configuration module, configured to obtain a command attribute value corresponding to the event configuration command in response to an attribute value configuration trigger operation for the event configuration command in the event interaction unit; An interaction unit processing module, configured to execute a trigger operation in response to an event of the event interaction module, and obtain a unit data structure diagram corresponding to the event interaction unit based on the command attribute value corresponding to each event configuration command in each event interaction unit; The interactive event response module is used to generate a module data structure diagram corresponding to the event interactive module based on the unit data structure diagram, convert the module data structure diagram into an interactive response script, and execute the interactive response script.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for responding to an interactive event as described in any one of claims 1-9.
12. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the method for responding to an interactive event as described in any one of claims 1-9 when executed by a computer processor.
