Terminal element dynamic configuration method, system and server

The client initiates HTTPS requests to the server to dynamically configure elements, which solves the problem of heavy and low-efficiency development work, realizes automatic filtering and filtering of elements, reduces duplicate development, improves development efficiency, and meets the client application software Flexible configuration requirements.

CN119166147APending Publication Date: 2024-12-20CHINA UNICOM ONLINE INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411345014.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

During the development of client application software, the existing technology leads to heavy development workload, high repetition, and low development efficiency. Especially when element configuration requirements change frequently, new service interfaces need to be continuously developed, and there is serious duplicate coding. The phenomenon violates the principle of agile iteration.

Method used

The client initiates an HTTPS request to the server, including element configuration information, the server searches and filters valid element object groups, performs extended logic loading and customized judgments and returns elements, realizes dynamic configuration of terminal elements, and reduces duplicate development work.

Benefits of technology

It realizes automatic screening of required elements according to client needs, reduces development workload, improves development efficiency, avoids repetitive development, and meets flexible configuration requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166147A_ABST
    Figure CN119166147A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal element dynamic configuration method, which comprises the following steps that: step 1, a client initiates an HTTPS request to a server, and the HTTPS request comprises required element configuration information; 2, searching corresponding element objects by the server according to the element configuration information to form an element object group; 3, elements in the element object groups are effectively filtered, and effective element object groups are reserved; and 4, performing extended logic loading on the element object group reserved in the step 3, and returning each element in the element object group to the client after performing customization judgment. According to the method, the required elements can be automatically screened according to the application of the client, filtering can be carried out according to the requirements of application software, older repetitive elements do not need to be developed again, the development workload is reduced, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software development, and in particular relates to a method, system and server for dynamic configuration of terminal elements. Background Art

[0002] At present, in the process of developing client application software (APP\H5, etc.), when realizing the cloud configuration function of page elements (pictures, texts, etc.), the corresponding service interface is developed for the corresponding element display requirements. The client application software obtains the element object for display by calling the cloud-specific interface. The cloud can only meet the element display requirements through customized development.

[0003] This conventional approach has some problems: First, the development workload is heavy and repetitive: With the iteration of client application software requirements, element configuration requirements will continue to appear at a high frequency. According to existing technologies, new service interfaces need to be continuously developed to meet the requirements, which results in heavy development workload. Moreover, such element configuration requirements are highly similar, and service interface development suffers from serious duplication of coding. Secondly, the development efficiency is low: when the client application software has element configuration requirements, it needs to go through the process of service interface development, client software adaptation development, and front-end and back-end joint debugging, which is extremely inefficient. This is contrary to the principle of agile iteration.

[0004] Therefore, there is an urgent need for a terminal element configuration method that can solve the above problems. Summary of the invention

[0005] In order to address the deficiencies of the prior art, the present application provides a method, system and server for dynamic configuration of terminal elements, which enable flexible configuration of client application software elements and free developers from heavy and repetitive development work.

[0006] The technical effects to be achieved by this application are achieved through the following solutions: According to a first aspect of the present application, a method for dynamically configuring a terminal element is provided, comprising the following steps: Step 1: The client initiates an HTTPS request to the server, wherein the HTTPS request includes the required element configuration information; Step 2: The server searches for corresponding element objects according to the element configuration information to form an element object group; Step 3: Filter the elements in the element object group for validity, and retain valid element object groups; Step 4: Load the extended logic of the element object group retained in step 3, perform customized judgment, and return each element in the element object group to the client.

[0007] Preferably, the server stores various elements and element configuration items, and the element configuration items include at least: element position code, element type, element jump type, element group sorting number, element effective time, element expiration time, client version covered by the element, extended logic fully qualified class name, element application region and element application user group.

[0008] Preferably, in step 1, the HTTPS request includes the element position code, and the server searches for a corresponding element object according to the element position code.

[0009] Preferably, the HTTPS request also includes client-related characteristic information, which includes at least: client hardware type, software version, IP address and user token, and the server performs element validity filtering based on the client-related characteristic information.

[0010] Preferably, the effectiveness filtering of the element according to the client-related characteristic information includes: element effectiveness time filtering, client version filtering, element effectiveness region filtering and element application user group filtering.

[0011] Preferably, the method for filtering the element effective time is: comparing the element with the server time, and removing the elements that have been configured but are not in the effective time period; The client version filtering method is: comparing the client version covered by the element with the software version of the current client, and removing the elements that have been configured but are not effective under the software version; The method for filtering the effective region of the element is: determining the region where the client is located according to the IP address and mobile phone number, comparing it with the element application region, and removing the elements that have been configured but are not effective in the current region; The method for filtering the element application user group is: comparing the user token and mobile phone number with the element application user group, and removing the elements that have been configured but are not effective for the current user.

[0012] Preferably, loading the extension logic for the elements after validity filtering is specifically performed by: acquiring the extension class information configured for each element, and loading the extension logic through reflection technology.

[0013] Preferably, in step 4, after customized judgment, the elements in the element object group are sorted, and then each element is returned to the client; the sorting method is: a sorting field is preset and configured to each element, and each element is sorted according to the sorting field.

[0014] According to a second aspect of the present application, a terminal element dynamic configuration system according to the above-mentioned terminal element dynamic configuration method is provided, comprising: A search module, used to search for corresponding element objects according to the element configuration information to form an element object group; A filtering module, used to perform validity filtering on the elements in the element object group and retain valid element object groups; The processing module is used to load the extended logic of the element object group, perform customized judgment, and return each element in the element object group to the client.

[0015] According to a third aspect of the present application, there is provided a server, comprising: a memory and at least one processor; The memory stores a computer program, and the at least one processor executes the computer program stored in the memory to implement the above-mentioned terminal element dynamic configuration method.

[0016] According to one embodiment of the present application, the beneficial effect of adopting the terminal element dynamic configuration method of the present application is that it can automatically screen the required elements according to the client's application, and can filter according to the needs of the application software, without the need to redevelop old repetitive elements, thereby reducing the development workload and improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the existing technical solutions, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 This is a flow chart of a method for dynamically configuring terminal elements in one embodiment of the present application; Figure 2 This is a structural block diagram of a terminal element dynamic configuration system in one embodiment of the present application; Figure 3 This is a structural block diagram of a server in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0020] like Figure 1As shown, the terminal element dynamic configuration method in an embodiment of the present application includes the following steps: Step 1: The client initiates an HTTPS request to the server, wherein the HTTPS request includes the required element configuration information; In this step, the client generally refers to a terminal capable of initiating an HTTPS request, which may be a smartphone or a tablet, but is not limited thereto; The server is located on the public network and has public network access capabilities, and is capable of processing HTTPS requests from clients.

[0021] Various elements and element configuration items are stored in the server, and the element configuration items include at least: element position code, element type (text or picture, etc.), element jump type (no jump, H5, native page), element group sorting number, element effective time, element expiration time, client version covered by the element, extended logic fully qualified class name, element application region and element application user group.

[0022] The HTTPS request includes an element position code and client-related characteristic information, and the client-related characteristic information includes at least: client hardware type, software version, IP address and user token.

[0023] Step 2: The server searches for corresponding element objects according to the element configuration information to form an element object group; In this step, the server performs a database query operation according to the element position code transmitted by the client, and finds out all element objects under the position code to form an element object group.

[0024] Step 3: Filter the elements in the element object group for validity, and retain valid element object groups; In this step, the server performs validity filtering of the element according to the client-related characteristic information, and performs the following filtering in sequence: element effective time filtering, client version filtering, element effective region filtering, and element application user group filtering.

[0025] Specifically, the method for filtering the element effective time is: comparing the element with the server time, removing the elements that have been configured but are not in the effective time period, and obtaining a new element object group S1; The method for filtering the client version of the element object group S1 is as follows: comparing the client version covered by the element with the software version of the current client, removing the elements that have been configured but are not effective under the software version, and obtaining a new element object group S2; The method for filtering the element effective region of the element object group S2 is as follows: determining the region where the client is located according to the IP address and the mobile phone number, comparing it with the element application region, removing the elements that have been configured but are not effective in the current region, and obtaining a new element object group S3; The method for filtering the element application user group of the element object group S3 is: comparing the user token and the mobile phone number with the element application user group, removing the elements that have been configured but are not effective for the current user, and obtaining the final element object group.

[0026] Step 4: Load the extended logic of the element object group retained in step 3, and after customized judgment, return each element in the element object group to the client, and then the client displays the information of each element in the element group returned by the server.

[0027] In this step, according to the fully qualified class name of the extension logic, the extension class information configured by each element is obtained, and the extension logic is loaded through reflection technology. The extension class information is a fully qualified class name (string) entered when configuring the element, for example: com.cu.ext.XXXXX; it is used for reflection and execution in the next step.

[0028] Through reflection technology, we can automatically obtain the instance of the corresponding class in the application through the above (com.cu.ext.XXXXX) string, execute the corresponding method of the instance, and get the corresponding result.

[0029] The extended logic receives all feature information data passed in by the client, performs customized judgment, and responds to the result to determine whether the element needs to be returned to the client.

[0030] Customized judgment can determine whether to display the element based on the visible range set by the operation, so that users within a specified range can be made visible during the actual operation process.

[0031] In a specific example, a certain configuration element needs to be displayed only to users with China Unicom mobile phone numbers, and users of China Mobile and China Telecom cannot see the element. This can be achieved by following the steps below: Write an extension class: com.cu.ext.XXXXX. This class has a method that receives the user's mobile phone number as a parameter and responds with whether to display it. Configure com.cu.ext.XXXXX as extended information on the element. When the client obtains the element list, the server uses reflection technology to obtain the class instance through com.cu.ext.XXXXX and executes the judgment method to obtain the final result of whether to display. If the result is not to display, the element is removed from the list and is not returned to the client.

[0032] In this step, after customized judgment, the elements in the element object group are sorted, and then each element is returned to the client; the sorting method is: a sorting field is preset and configured to each element, and each element is sorted according to the sorting field.

[0033] For example, for a certain ad position, you need to configure multiple elements (pictures or videos) for carousel display. Configure a sort number for each element as needed, and then sort them from small to large according to the sort number. When displaying, they are displayed in order in carousel.

[0034] like Figure 2 As shown, in one embodiment of the present application, a terminal element dynamic configuration system according to the above-mentioned terminal element dynamic configuration method is disclosed, including: A search module, used to search for corresponding element objects according to the element configuration information to form an element object group; A filtering module, used to perform validity filtering on the elements in the element object group and retain valid element object groups; The validity of the elements in the current element object group is determined through element configuration information, including element effective time filtering, client version filtering, element effective region filtering, and element application user group filtering.

[0035] The processing module is used to load the extended logic of the element object group, perform customized judgment, and return each element in the element object group to the client.

[0036] like Figure 3 As shown, a server in one embodiment of the present application includes: a memory and at least one processor; The memory stores a computer program, and the at least one processor executes the computer program stored in the memory to implement the above-mentioned terminal element dynamic configuration method.

[0037] The beneficial effect of adopting the terminal element dynamic configuration method of the present application is that it can automatically screen the required elements according to the client's application, and can filter according to the needs of the application software without redeveloping old repetitive elements.

[0038] This method solves the problem that in the conventional development process, a new interface needs to be developed for each newly configured location for dynamic configuration. With this method, the same interface can be used to meet the needs of all locations that require dynamic configuration, and it avoids the need for front-end and back-end joint debugging for each new interface under conventional methods, which greatly reduces the development workload and improves development efficiency.

[0039] It should be noted that the above detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present application belongs.

[0040] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should also be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0042] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0043] For ease of description, spatially relative terms, such as "above", "above", "on the upper surface of", "above", etc., may be used herein to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" may include both "above" and "below". The device may also be positioned in other different ways, such as rotated 90 degrees or in other orientations, and the spatially relative descriptions used herein are interpreted accordingly.

[0044] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.

[0045] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for dynamic configuration of terminal elements, characterized in that: The steps include: Step 1: The client initiates an HTTPS request to the server, wherein the HTTPS request includes the required element configuration information; Step 2: The server searches for corresponding element objects according to the element configuration information to form an element object group; Step 3: Filter the elements in the element object group for validity, and retain valid element object groups; Step 4: Load the extended logic of the element object group retained in step 3, perform customized judgment, and return each element in the element object group to the client.

2. The method for dynamic configuration of terminal elements according to claim 1, characterized in that: The server stores various elements and element configuration items, and the element configuration items include at least: element position code, element type, element jump type, element group sorting number, element effective time, element expiration time, client version covered by the element, extended logic fully qualified class name, element application region and element application user group.

3. The method for dynamic configuration of terminal elements according to claim 2, characterized in that: In step 1, the HTTPS request includes the element position code, and the server searches for the corresponding element object according to the element position code.

4. The method for dynamic configuration of terminal elements according to claim 2, characterized in that: The HTTPS request also includes client-related feature information, which includes at least: client hardware type, software version, IP address and user token. The server performs element validity filtering based on the client-related feature information.

5. The method for dynamic configuration of terminal elements according to claim 4, characterized in that: The effectiveness filtering of the element according to the client-related characteristic information includes: element effective time filtering, client version filtering, element effective region filtering and element application user group filtering.

6. The method for dynamic configuration of terminal elements according to claim 5, characterized in that: The method for filtering the element effective time is: comparing the element with the server time, and removing the elements that have been configured but are not in the effective time period; The client version filtering method is: comparing the client version covered by the element with the software version of the current client, and removing the elements that have been configured but are not effective under the software version; The method for filtering the effective region of the element is: determining the region where the client is located according to the IP address and mobile phone number, comparing it with the element application region, and removing the elements that have been configured but are not effective in the current region; The method for filtering the element application user group is: comparing the user token and mobile phone number with the element application user group, and removing the elements that have been configured but are not effective for the current user.

7. The method for dynamic configuration of terminal elements according to claim 5, characterized in that: The specific steps of loading the extended logic for the elements after the validity filtering are as follows: obtaining the extended class information configured for each element, and loading the extended logic through the reflection technology.

8. The method for dynamic configuration of terminal elements according to claim 5, characterized in that: In step 4, after customized judgment, the elements in the element object group are sorted, and then each element is returned to the client; the sorting method is: a sorting field is preset and configured to each element, and each element is sorted according to the sorting field.

9. A terminal element dynamic configuration system according to the terminal element dynamic configuration method according to any one of claims 1 to 8, characterized in that: include: A search module, used to search for corresponding element objects according to the element configuration information to form an element object group; A filtering module, used to perform validity filtering on the elements in the element object group and retain valid element object groups; The processing module is used to load the extended logic of the element object group, perform customized judgment, and return each element in the element object group to the client.

10. A server, characterized in that: include: memory and at least one processor; The memory stores a computer program, and the at least one processor executes the computer program stored in the memory to implement the terminal element dynamic configuration method according to any one of claims 1 to 8.