Information determination method and device, electronic equipment and storage medium
By acquiring and parsing the function configuration information, the link information of the front-end interactive components is determined, and whitelist/blacklist indication information is used for control. This solves the problem that the functions of the front-end interactive components cannot be flexibly modified, realizes the rapid activation or deactivation of functions, and improves the flexibility and adaptability of the components.
Patent Information
- Application Number
- CN202410643146.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2025-11-25
AI Technical Summary
In existing technologies, the functionality of front-end interactive components cannot be flexibly modified, resulting in poor flexibility in controlling the corresponding functions of front-end interactive components.
By obtaining functional configuration information, the link information of the front-end interactive components is determined, and the component functions are controlled based on the link information. Precise configuration is achieved by using identification information and whitelist/blacklist indication information, thus realizing flexible control over the functions of the front-end interactive components.
It enables flexible control over the functions of front-end interactive components, supports parameter splicing in different dimensions, and allows for quick configuration of functions to take effect or be disabled, thereby improving the flexibility and adaptability of front-end interactive components.
Smart Images

Figure CN121008792A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to computer technology, and more particularly to an information determination method, apparatus, electronic device, and storage medium. Background Technology
[0002] For front-end interactive components that facilitate user interaction, such as front-end cards, the supported functions are all pre-defined during development. The inability to flexibly modify the supported functions of these components results in poor flexibility in controlling their functionality. Summary of the Invention
[0003] This disclosure provides an information determination method, apparatus, electronic device, and storage medium to achieve flexible control over the corresponding functions of front-end interactive components.
[0004] In a first aspect, embodiments of this disclosure provide an information determination method, including:
[0005] Obtain function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information;
[0006] Based on the functional configuration information, the link information of the front-end interactive component is determined, and the link information includes the functional indication information;
[0007] The functionality of the front-end interactive components is controlled based on the link information.
[0008] Secondly, embodiments of this disclosure also provide an information determining device, comprising:
[0009] The acquisition module is used to acquire function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information;
[0010] The determining module is used to determine the link information of the front-end interactive component based on the function configuration information, wherein the link information includes the function indication information;
[0011] The control module is used to control the functions of the front-end interactive components based on the link information.
[0012] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0013] One or more processing devices;
[0014] Storage device for storing one or more programs.
[0015] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the information determination method provided in the embodiments of this disclosure.
[0016] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the information determination method provided in embodiments of this disclosure.
[0017] The technical solution of this disclosure, by acquiring the functional configuration information including functional indication information and the corresponding front-end interactive components, can determine the required configured functions and the front-end interactive components to which the configured functions should operate. By determining the link information including the functional indication information, the function of the corresponding front-end interactive component can be controlled. That is, the acquired functional configuration information can generate link information for controlling the corresponding function of the front-end interactive component, enabling flexible control of the corresponding function of the front-end interactive component. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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.
[0019] Figure 1 This is a flowchart illustrating an information determination method provided in an embodiment of this disclosure;
[0020] Figure 2 This is a flowchart illustrating another information determination method provided in an embodiment of this disclosure;
[0021] Figure 3 This is a schematic diagram of the structure of an information determination device provided in an embodiment of this disclosure;
[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0023] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0024] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0027] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0028] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0029] Before introducing the technical solutions of the embodiments of this disclosure, the application scenarios of the embodiments of this disclosure will be described through the following:
[0030] Cross-platform communication involves the interaction between the client, container, and frontend. The client can be a running instance of an application on an electronic device, hosting the frontend page. It communicates with the server, receives and displays data, and handles user input and interactions. The frontend is the user interface portion of the application, providing an intuitive and easy-to-use interface to display the results of user interactions. The container is the executable unit of the application, encapsulating the application code, its libraries, and dependencies in a generic way. It is responsible for transferring data between the frontend and client, providing frontend capabilities for frontend business logic.
[0031] A front-end page can be a page displayed on the front end, such as a page for user interaction. Front-end interactive components can be displayed on the front end. These components can be provided by the front end for user interaction, such as front-end cards. Front-end cards can be a display format of front-end interactive components, using rectangular or other shaped cards to display images and / or text, and can also display controls to enable interaction with the user.
[0032] A cross-platform container is a container that can run compatiblely on different platforms, such as different operating systems. It can shield the front-end page from the differences between various operating platforms and provide a unified end-to-end capability. Internally, a cross-platform container can integrate different cross-platform rendering engines and provide a unified Application Programming Interface (API) to the outside world, simplifying the cost of business integration and engine usage. The rendering engine is used to render and display the content that needs to be displayed on the front-end page.
[0033] In practical applications, front-end interactive components rely on the engine of a cross-platform framework, which runs on a cross-platform container provided by the client. This cross-platform framework can be a performance-based framework that renders native user interfaces (UIs) using World Wide Web (Web) technology, and can be used to generate front-end pages.
[0034] Figure 1 This is a flowchart illustrating an information determination method provided in an embodiment of this disclosure. This embodiment is applicable to situations where the corresponding function of a front-end interactive component is controlled based on link information. The method can be executed by an information determination device, which can be implemented in software and / or hardware and integrated into an electronic device. Optionally, the electronic device can be a mobile terminal, a PC, etc.
[0035] like Figure 1 As shown, the method includes:
[0036] S110. Obtain function configuration information, wherein the function configuration information includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information.
[0037] Function configuration information refers to the information configured for the functionality of front-end interactive components. The configured functionality of a front-end interactive component can be understood as the capabilities that the component can achieve, such as capabilities related to performance optimization or capabilities related to the business logic involved in the actual application.
[0038] Function indication information can be information related to the configured function, such as indicating the function to be configured, or whether the configured function is effective in the front-end interactive component. The front-end interactive component corresponding to the function indication information can be understood as the front-end interactive component to which the function indication information should be applied.
[0039] By using the function instruction information of the configured function and the corresponding front-end interaction component, it is possible to determine the front-end interaction component involved in the function configuration, what function to configure for the involved front-end interaction component, and whether the configured function is effective in the front-end interaction component.
[0040] In this step, the method of obtaining the function configuration information is not limited; for example, the function configuration information can be obtained from a data distribution platform. The data distribution platform can be a platform used to store data and distribute data to the client; the stored or distributed data can be the data required to run the front-end interactive components.
[0041] S120. Based on the function configuration information, determine the link information of the front-end interaction component, wherein the link information includes the function indication information.
[0042] Link information for front-end interactive components can be information that links to and configures the functionality of front-end interactive components.
[0043] The method for determining the link information of the front-end interactive components based on the functional configuration information is not limited. For example, if the link corresponding to the front-end interactive component corresponding to the functional indication information included in the functional configuration information can be determined, the required configured function indicated by the functional indication information and the information regarding whether the configured function is effective in the front-end interactive component can be used as concatenation parameters and appended to the link corresponding to the front-end interactive component. The concatenated result is the link information of the front-end interactive component. The concatenation parameters can be parameters used for concatenating to the link corresponding to the front-end interactive component.
[0044] In this step, the link corresponding to the front-end interactive component for the function indication information can be a link used to locate the front-end interactive component involved in the function configuration from among many front-end interactive components. The form of the link is not limited; it can be a URL that links to the front-end interactive component involved in the function configuration, or it can be a dimension that locates the front-end interactive component involved in the function configuration. Different dimensions include different hierarchical ranges of front-end interactive components.
[0045] S130. Control the function of the front-end interactive component based on the link information.
[0046] In this step, the link information can be transmitted to the front end. The front end can parse the link information to obtain the link corresponding to the front-end interactive component corresponding to the function indication information in S120 above, and the splicing parameters spliced to the link.
[0047] Locate the front-end interactive component involved in the function configuration by linking the front-end interactive component corresponding to the function instruction information; determine the function to be configured for the aforementioned front-end interactive component by concatenating parameters, and whether the function to be configured is effective in the front-end interactive component; configure the corresponding function to be effective or ineffective for the front-end interactive component involved.
[0048] Optionally, the front-end can use different concatenation parameters appended to the link to decide which cross-platform rendering engine and cross-platform container to use, and control the specific behavior of the container, such as making the container generate a view corresponding to the engine.
[0049] The operations of determining link information and controlling the front-end interactive component based on the link information in this disclosure can be triggered after the front-end sends a request for the front-end interactive component to the client. For example, if the client determines that the requested front-end interactive component is the front-end interactive component configured by the function configuration information when the front-end sends a request for the front-end interactive component to the client, then S120 and S130 are executed.
[0050] The technical solution of this disclosure, by acquiring the functional configuration information including functional indication information and the corresponding front-end interactive components, can determine the required configured functions and the front-end interactive components to which the configured functions should operate. By determining the link information including the functional indication information, the function of the corresponding front-end interactive component can be controlled. That is, the acquired functional configuration information can generate link information for controlling the corresponding function of the front-end interactive component, enabling flexible control of the corresponding function of the front-end interactive component.
[0051] In one embodiment, the function configuration information includes function indication information for multiple configured functions, wherein the function indication information indicates the configured function and whether the configured function is effective.
[0052] In practical applications, the function configuration information can be represented in the form of an array, which can contain one or more parts. Each part can be used to store the function indication information corresponding to the configured function, and the information used to determine the front-end interactive component corresponding to the function indication information.
[0053] In the array above, for a certain function instruction information, the function configured by the function instruction information can be indicated by a keyword, and whether the configured function is effective can be indicated by the value corresponding to the keyword.
[0054] For example, function indication information can be represented as follows: the keyword (also known as the key) is "key_1", and the value (also known as the value) is 1. The keyword can be the name of the function configured in this function indication information, a value of 1 indicates that the configured function is active, and a value of 0 indicates that the configured function is inactive. There are no limitations on the keyword and value, as long as they can indicate the configured function and whether the configured function is active.
[0055] In one embodiment, the front-end interactive component corresponding to the function indication information is identified by identification information, which includes at least one of the group to which the front-end interactive component belongs and the corresponding resource package.
[0056] In this embodiment of the disclosure, the front-end interactive component involved in the function configuration can be located from a large number of front-end interactive components by two dimensions: the group to which the front-end interactive component belongs and the resource package corresponding to the front-end interactive component.
[0057] A resource package can be understood as a file package containing the resources needed for front-end interactive components. These resources can include images, videos, audio, Hypertext Markup Language (HTML) files, etc., without limitation. A group can be understood as a collection of resource packages; a group can contain multiple resource packages.
[0058] The relationship between front-end interactive components, resource packages, and groups can be understood as follows: a resource package can correspond to the same type of front-end interactive component, such as resource package 1 corresponding to video type front-end interactive components, resource package 2 corresponding to live streaming type front-end interactive components, resource package 3 corresponding to product type front-end interactive components, etc.; front-end interactive components under a group can be displayed on the same front-end page or distributed across different front-end pages; front-end interactive components displayed on the same front-end page correspond to the same resource package, while front-end interactive components displayed on different front-end pages correspond to different resource packages.
[0059] The identification information can be information used to identify the front-end interactive component corresponding to the functional indication information. The identification information can include at least one of the identifier of the group to which the front-end interactive component belongs and the identifier of the resource package to which the front-end interactive component belongs. The identifier of the group to which the front-end interactive component belongs can be the name or sequence number of the group to which the front-end interactive component belongs, etc., with different groups corresponding to different identifiers. The identifier of the resource package to which the front-end interactive component belongs can be the name or sequence number of the resource package to which the front-end interactive component belongs, etc., with different resource packages corresponding to different identifiers.
[0060] In one embodiment, the front-end interaction component corresponding to the function indication information is indicated by whitelist indication information and / or blacklist indication information. The whitelist indication information indicates the configuration of the front-end interaction component corresponding to the function indication information, and the blacklist indication information indicates the excluded front-end interaction components.
[0061] Whitelist information can be used to indicate the whitelist of front-end interactive components during feature configuration. Corresponding functions need to be configured for front-end interactive components that are on the whitelist.
[0062] For example, the whitelist indication information may include the identifier of the group to which the front-end interactive component belongs and the identifier of the resource package corresponding to the front-end interactive component. Then, the corresponding functions can be configured for the front-end interactive components corresponding to the resource packages under the group to which the identifier of the group belongs.
[0063] For example, the whitelist indication information may include the identifier of the group to which the front-end interactive component belongs, so that the corresponding functions can be configured for the front-end interactive components of all resource packages under the group corresponding to the group identifier.
[0064] For example, the whitelist indication information may include the identifier of the resource package corresponding to the front-end interactive component, so that the corresponding function can be configured for the front-end interactive component corresponding to the resource package identifier.
[0065] In other words, if the front-end interactive component corresponding to the function instruction information is indicated by the whitelist instruction information, then the front-end interactive component corresponding to the function instruction information is a front-end interactive component that belongs to the whitelist.
[0066] Blacklist indication information can be information used during feature configuration to indicate a blacklist of front-end interactive components. This requires configuring the corresponding functionality for all front-end interactive components other than those included in the blacklist. Similar to whitelist indication information, blacklist indication information can also include one or more of the identifiers of the group to which the front-end interactive component belongs and the identifier of the resource package corresponding to the front-end interactive component, used to identify front-end interactive components belonging to the blacklist. Further details will not be elaborated here.
[0067] In other words, when the front-end interactive component corresponding to the function indication information is indicated by the blacklist indication information, the front-end interactive component corresponding to the function indication information is a front-end interactive component other than the front-end interactive components included in the blacklist.
[0068] In one embodiment, if the whitelist indication information is blank, all front-end interactive components are identified as the front-end interactive components corresponding to the function indication information; if the blacklist indication information is blank, the blacklist indication information is in an invalid state.
[0069] If the whitelist instruction is blank, it means that no whitelist has been configured, and all front-end interactive components need to be configured.
[0070] If the blacklist indication information is blank, it can be understood that no blacklist has been configured, and there is no need to consider the blacklist when configuring the functionality of the front-end interactive components.
[0071] When configuring the functionality of front-end interactive components, you can set the corresponding priorities for whitelist and blacklist indication information according to the actual application needs. For example, prioritize reading blacklist indication information, and if the blacklist indication information indicates that no blacklist is configured, then read whitelist indication information.
[0072] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.
[0073] Figure 2 This is a flowchart illustrating another information determination method provided in this disclosure, which is a detailed description based on the above embodiments. Figure 2 As shown, the method includes:
[0074] S210. Obtain function configuration information from the data distribution platform through the client.
[0075] In this step, the data distribution platform can be configured on the server, and the client can send a request to the server to obtain the functional configuration information stored in the data distribution platform configured on the server.
[0076] In one embodiment, functional configuration information can also be read through A / B testing. In A / B testing, the functional configuration information can be represented as an array, serving as the experimental group; empty data serves as the control group; and by combining certain statistical methods, the relative effects of the two strategies in the experimental and control groups can be accurately estimated, simultaneously meeting the requirements of low risk, robustness to interference, and quantifiable results. A / B testing can be a means of determining which strategy is more effective by comparing the experimental and control groups.
[0077] S220. Generate candidate links for the front-end interactive components based on the identification information.
[0078] Candidate links can be used to locate the front-end interactive component corresponding to the function indicator information from among many front-end interactive components.
[0079] In this step, the front-end interactive component corresponding to the function indication information is identified by the identification information. The identification information may include at least one of the identifier of the group to which the front-end interactive component belongs and the identifier of the resource package to which the front-end interactive component belongs. Candidate links for the front-end interactive component can be generated by at least one of the identifier of the group to which the front-end interactive component belongs and the identifier of the resource package to which the front-end interactive component belongs.
[0080] For example, the identification information may include the identifier "group_1" of the group to which the front-end interactive component belongs, and the identifier "resource package_1" of the resource package corresponding to the front-end interactive component. Then, the generated candidate links may include group = group_1 & resource package = resource package_1. Furthermore, the front-end interactive components involved in the function configuration can be located from among numerous front-end interactive components through the candidate links.
[0081] S230. The function indication information is concatenated into the candidate links to obtain the link information of the front-end interactive component.
[0082] In this step, the functional indication information can be represented in the form of keywords and corresponding values. Then, the functional indication information represented in the form of keywords and corresponding values is concatenated in the candidate links to obtain the link information of the front-end interactive components.
[0083] For example, using the name "key_1" of the function configured in the function instruction information as the keyword and 1, which enables the configured function, as the value, and combining this with the candidate link example in S220, the resulting link information for the front-end interactive component includes group = group_1 & resource package = resource package_1 & key_1 = 1. Therefore, the front-end interactive component involved in the function configuration can be the front-end interactive component corresponding to the resource package under the group corresponding to "group_1"; the function named "key_1" is configured for the involved front-end interactive component; and the configured function takes effect in the configured front-end interactive component.
[0084] In one embodiment, concatenating the function indication information into the candidate links includes:
[0085] The functional indication information is concatenated at the same level as the candidate links.
[0086] As mentioned in the above embodiments, the function configuration information can be represented in the form of an array, which can contain one or more parts. Each part can be used to store function indication information corresponding to a configured function and information for determining the front-end interactive component corresponding to the function indication information.
[0087] When storing data for a specific part of an array, the elements of the array may have different levels, and these levels may contain each other. In this disclosure, when splicing function indication information on candidate links, the elements in the array that need to be spliced can be flattened and spliced to the same level, that is, the function indication information is spliced at the same level as the candidate link.
[0088] The following is one implementation of S220 and S230:
[0089] The above functional configuration information is represented in the form of an array, which can contain a first part, a second part, and a third part, as explained below:
[0090] 1. Part One
[0091] The first part is used to store the function indication information corresponding to a configured function, and the information used to determine the front-end interactive component corresponding to the function indication information, such as the function indication information indication keyword "key_1" and value 1, and the information used to determine the front-end interactive component corresponding to the function indication information may include whitelist indication information.
[0092] For example, if the whitelist indication information includes the identifier "group_1" of the group to which the front-end interactive component belongs, and the identifier "resource package_1" of the resource package corresponding to the front-end interactive component, then the generated candidate link may include: group = group_1 & resource package = resource package_1. By concatenating the function indication information keyword "key_1" and the value 1 included in the first part to the candidate link, the link information of the front-end interactive component is obtained as follows: group = group_1 & resource package = resource package_1 & key_1 = 1.
[0093] 2. Part Two
[0094] The second part is used to store the function indication information corresponding to the configured function, and the information used to determine the front-end interactive component corresponding to the function indication information, such as the function indication information indication keyword "key_2" and value 0. The information used to determine the front-end interactive component corresponding to the function indication information may include whitelist indication information.
[0095] For example, if the whitelist indication information includes the identifier "Group_2" of the group to which the front-end interactive component belongs, but does not include the identifier of the resource package to which the front-end interactive component belongs, then a corresponding candidate link is generated for each resource package under "Group_2". If "Group_2" includes three resource packages: "Resource Package_2", "Resource Package_3", and "Resource Package_4", then the three generated candidate links are as follows:
[0096] Group = Group_2 & Resource Pack = Resource Pack_2;
[0097] Group = Group_2 & Resource Pack = Resource Pack_3;
[0098] Group = Group_2 & Resource Pack = Resource Pack_4.
[0099] For each generated candidate link, the keyword "key_2" and the value 0 of the function indication information included in the second part are concatenated to the candidate link to obtain the link information of the corresponding front-end interactive component.
[0100] 3. Part Three
[0101] The third part is used to store the function indication information corresponding to the configured function, and the information used to determine the front-end interactive component corresponding to the function indication information, such as the function indication information indication keyword "key_3" and value 1. The information used to determine the front-end interactive component corresponding to the function indication information may include blacklist indication information.
[0102] For example, if the blacklist indication information includes the identifier "Group_3" of the group to which the front-end interactive component belongs, and the identifier "Resource Package_5" of the resource package corresponding to the front-end interactive component, then a corresponding candidate link will be generated for each resource package under "Group_3" except for "Resource Package_5". For instance, if "Group_3" includes three resource packages "Resource Package_5", "Resource Package_6", and "Resource Package_7", then two candidate links will be generated as follows:
[0103] Group = Group_3 & Resource Pack = Resource Pack_6;
[0104] Group = Group_3 & Resource Pack = Resource Pack_7.
[0105] For each generated candidate link, the keyword "key_3" and the value 1 of the functional indication information included in the third part are concatenated to the candidate link to obtain the link information of the corresponding front-end interactive component.
[0106] That is, the number of candidate links generated is consistent with the number of resource packages corresponding to the front-end interactive components that actually participate in the function configuration.
[0107] Optionally, the above operations of generating candidate links and splicing function indication information into candidate links to obtain link information of front-end interactive components can be performed by the front-end requesting the client to obtain the required link information of front-end interactive components, and the client executing the request and transmitting the link information to the front-end as needed.
[0108] If the front-end needs to display an interactive component, it requests the interactive component from the client. When the client transmits the interactive component to the front-end, it determines whether the requested interactive component is the one configured in the function configuration information. If so, it determines the link information of the interactive component based on the function configuration information and transmits the link information to the front-end to achieve the purpose of controlling the function of the interactive component based on the link information.
[0109] S240. The link information is transmitted to the front end via a cross-platform container.
[0110] In this embodiment of the disclosure, the operation of determining the link information of the front-end interactive component can be performed by the client. After the client determines the link information of the front-end interactive component, the link information can be transmitted to the front-end through a cross-platform container, so that the front-end, in conjunction with the cross-platform container, controls the function of the corresponding front-end interactive component based on the link information.
[0111] The technical solution of this disclosure can control the function of the corresponding front-end interactive component by interacting with the client, cross-platform container and front-end, based on the link information of the front-end interactive component obtained by the candidate link splicing function indication information, so that the function configuration of the front-end interactive component can take effect quickly.
[0112] The technical solution of this disclosure can configure the function of the front-end interactive component from two different dimensions: the group to which the front-end interactive component belongs and the resource package corresponding to the front-end interactive component. That is, it supports parameter splicing from different dimensions. By configuring blacklists and whitelists, the function configuration of the front-end interactive component can be made to take effect or be disabled individually, so as to achieve flexible control over the corresponding function of the front-end interactive component.
[0113] Figure 3 This is a schematic diagram of the structure of an information determining device provided in an embodiment of this disclosure, as shown below. Figure 3 As shown, the device includes: an acquisition module 310, a determination module 320, and a control module 330.
[0114] The acquisition module 310 is used to acquire function configuration information, the function configuration information including function indication information of the configured function and the front-end interaction component corresponding to the function indication information;
[0115] The determining module 320 is used to determine the link information of the front-end interactive component based on the function configuration information, wherein the link information includes the function indication information;
[0116] The control module 330 is used to control the functions of the front-end interactive component based on the link information.
[0117] The technical solution provided in this disclosure involves an acquisition module obtaining functional configuration information, including functional indication information of the configured function and the corresponding front-end interactive component; a determination module determining link information of the front-end interactive component based on the functional configuration information, the link information including the functional indication information; and a control module controlling the function of the front-end interactive component based on the link information. This solution, by using the functional indication information and the corresponding front-end interactive component in the acquired functional configuration information, can determine the required configured function and the front-end interactive component to which the configured function should operate. By determining the link information including the functional indication information, the function of the corresponding front-end interactive component can be controlled. In other words, the acquired functional configuration information can generate link information for controlling the corresponding function of the front-end interactive component, enabling flexible control of the corresponding function of the front-end interactive component.
[0118] In one embodiment, the front-end interactive component corresponding to the function indication information is identified by identification information, which includes at least one of the group to which the front-end interactive component belongs and the corresponding resource package.
[0119] In one embodiment, the determining module 320 is specifically used for:
[0120] Candidate links for the front-end interactive components are generated based on the identification information;
[0121] The function indication information is concatenated into the candidate links to obtain the link information of the front-end interactive component.
[0122] In one embodiment, the determining module 320 is specifically used for:
[0123] The functional indication information is concatenated at the same level as the candidate links.
[0124] In one embodiment, the function configuration information includes function indication information for multiple configured functions, wherein the function indication information indicates the configured function and whether the configured function is effective.
[0125] In one embodiment, the front-end interaction component corresponding to the function indication information is indicated by whitelist indication information and / or blacklist indication information. The whitelist indication information indicates the configuration of the front-end interaction component corresponding to the function indication information, and the blacklist indication information indicates the excluded front-end interaction components.
[0126] In one embodiment, if the whitelist indication information is blank, all front-end interactive components are identified as the front-end interactive components corresponding to the function indication information; if the blacklist indication information is blank, the blacklist indication information is in an invalid state.
[0127] In one embodiment, the acquisition module 310 is specifically used for:
[0128] The client obtains the function configuration information from the data distribution platform.
[0129] In one embodiment, the control module 330 is specifically used for:
[0130] The link information is transmitted to the front end via a cross-platform container.
[0131] The information determination apparatus provided in this disclosure can execute the information determination method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0132] 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 division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0133] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Refer to the following... Figure 4 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 4 A structural diagram of the terminal device or server in the 500.
[0134] An electronic device provided in this disclosure includes:
[0135] One or more processing devices;
[0136] Storage device for storing one or more programs.
[0137] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the information determination method provided in any embodiment of this disclosure.
[0138] The terminal devices in this disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0139] like Figure 4As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0140] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0141] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via 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, it performs the functions defined in the methods of embodiments of this disclosure.
[0142] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0143] The electronic device provided in this embodiment and the information determination method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0144] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the information determination method provided in the above embodiments.
[0145] It should be noted that the computer-readable medium described above in this disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof.
[0146] The computer storage medium may be a storage medium for computer-executable instructions, which, when executed by a computer processor, are used to perform the methods provided in this disclosure.
[0147] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0148] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0149] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0150] The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the electronic device to: acquire function configuration information, the function configuration information including function indication information of the configured function and a front-end interactive component corresponding to the function indication information; determine link information of the front-end interactive component based on the function configuration information, the link information including the function indication information; and control the function of the front-end interactive component based on the link information.
[0151] Computer program code for performing the operations of this disclosure can 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, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0153] The modules or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules or units do not necessarily limit the specific unit itself.
[0154] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0155] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0156] According to one or more embodiments of this disclosure, Example 1 provides an information determination method, including:
[0157] Obtain function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information;
[0158] Based on the functional configuration information, the link information of the front-end interactive component is determined, and the link information includes the functional indication information;
[0159] The functionality of the front-end interactive components is controlled based on the link information.
[0160] According to one or more embodiments of this disclosure, Example 2 describes the method described in Example 1.
[0161] The front-end interactive component corresponding to the function indication information is identified by identification information, which includes at least one of the group to which the front-end interactive component belongs and the corresponding resource package.
[0162] According to one or more embodiments of this disclosure, Example 3 describes the method described in Example 2.
[0163] Determining the link information of the front-end interactive component based on the functional configuration information includes:
[0164] Candidate links for the front-end interactive components are generated based on the identification information;
[0165] The function indication information is concatenated into the candidate links to obtain the link information of the front-end interactive component.
[0166] According to one or more embodiments of this disclosure, Example 4 describes the method described in Example 3.
[0167] The step of concatenating the function indication information into the candidate links includes:
[0168] The functional indication information is concatenated at the same level as the candidate links.
[0169] According to one or more embodiments of this disclosure, Example 5 describes the method described in Example 1.
[0170] The function configuration information includes function indication information for multiple configured functions, which indicates the configured functions and whether the configured functions are effective.
[0171] According to one or more embodiments of this disclosure, Example 6 describes the method described in Example 1.
[0172] The front-end interactive components corresponding to the function indication information are indicated by whitelist indication information and / or blacklist indication information. The whitelist indication information indicates the configuration of the front-end interactive components corresponding to the function indication information, and the blacklist indication information indicates the excluded front-end interactive components.
[0173] According to one or more embodiments of this disclosure, Example 7 describes the method according to Example 6.
[0174] If the whitelist indication information is blank, all front-end interactive components are identified as the front-end interactive components corresponding to the function indication information; if the blacklist indication information is blank, the blacklist indication information is in an invalid state.
[0175] According to one or more embodiments of this disclosure, Example 8 describes the method described in Example 1.
[0176] The acquisition of function configuration information includes:
[0177] The client obtains the function configuration information from the data distribution platform.
[0178] According to one or more embodiments of this disclosure, Example 9 describes the method described in Example 8.
[0179] The function of controlling the front-end interactive component based on the link information includes:
[0180] The link information is transmitted to the front end via a cross-platform container.
[0181] According to one or more embodiments of this disclosure, Example 10 provides an information determining apparatus, comprising:
[0182] The acquisition module is used to acquire function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information;
[0183] The determining module is used to determine the link information of the front-end interactive component based on the function configuration information, wherein the link information includes the function indication information;
[0184] The control module is used to control the functions of the front-end interactive components based on the link information.
[0185] According to one or more embodiments of this disclosure, Example 11 provides an electronic device, the electronic device comprising:
[0186] One or more processing devices;
[0187] Storage device for storing one or more programs.
[0188] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the information determination method as described in any of Examples 1-9.
[0189] According to one or more embodiments of the present disclosure, Example 12 provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform an information determination method as described in any of Examples 1-9.
[0190] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0191] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0192] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for determining information, characterized in that, include: Obtain function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information; Based on the functional configuration information, the link information of the front-end interactive component is determined, and the link information includes the functional indication information; The functionality of the front-end interactive components is controlled based on the link information.
2. The method according to claim 1, characterized in that, The front-end interactive component corresponding to the function indication information is identified by identification information, which includes at least one of the group to which the front-end interactive component belongs and the corresponding resource package.
3. The method according to claim 2, characterized in that, Determining the link information of the front-end interactive component based on the functional configuration information includes: Candidate links for the front-end interactive components are generated based on the identification information; The function indication information is concatenated into the candidate links to obtain the link information of the front-end interactive component.
4. The method according to claim 3, characterized in that, The step of concatenating the function indication information into the candidate links includes: The functional indication information is concatenated at the same level as the candidate links.
5. The method according to claim 1, characterized in that, The function configuration information includes function indication information for multiple configured functions, which indicates the configured functions and whether the configured functions are effective.
6. The method according to claim 1, characterized in that, The front-end interactive components corresponding to the function indication information are indicated by whitelist indication information and / or blacklist indication information. The whitelist indication information indicates the configuration of the front-end interactive components corresponding to the function indication information, and the blacklist indication information indicates the excluded front-end interactive components.
7. The method according to claim 6, characterized in that, If the whitelist indication information is blank, all front-end interactive components are identified as the front-end interactive components corresponding to the function indication information; if the blacklist indication information is blank, the blacklist indication information is in an invalid state.
8. The method according to claim 1, characterized in that, The acquisition of function configuration information includes: The client obtains the function configuration information from the data distribution platform.
9. The method according to claim 8, characterized in that, The function of controlling the front-end interactive component based on the link information includes: The link information is transmitted to the front end via a cross-platform container.
10. An information determining device, characterized in that, include: The acquisition module is used to acquire function configuration information, which includes function indication information of the configured function and the front-end interaction component corresponding to the function indication information; The determining module is used to determine the link information of the front-end interactive component based on the function configuration information, wherein the link information includes the function indication information; The control module is used to control the functions of the front-end interactive components based on the link information.
11. An electronic device, characterized in that, The electronic device includes: One or more processing devices; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the information determination method as described in any one of claims 1-9.
12. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the information determination method as described in any one of claims 1-9.