A method, device, storage medium and terminal for dynamically updating page data

By loading configuration parameters, filtering data and building front-end sorting functions in the Flutter framework page, the problem that the existing technology cannot achieve dynamic update of global page content is solved, and the accuracy of data recommendation is improved.

CN114265589BActive Publication Date: 2025-03-28江苏中交慧运科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111510512.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2025-03-28
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

Existing pages developed based on the Flutter framework cannot achieve dynamic updates of global page content data, resulting in large quantities of content that users are not interested in, reducing the accuracy of data recommendations.

Method used

By obtaining the request data within the preset period, loading the configuration parameters of the current page, filtering the request data, building multiple front-end sorting functions, and executing these functions one by one to update the page data content, and generating and displaying the updated page data.

Benefits of technology

It realizes fast and accurate recommendation of page data content, effectively improving the accuracy of data recommendation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114265589B_ABST
    Figure CN114265589B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, storage medium and terminal for dynamically updating page data, the method comprising: when request data within a preset period is obtained, loading configuration parameters set for the current page; filtering the request data according to the configuration parameters to generate filtered request data; constructing multiple front-end sorting functions according to a pre-packaged Flutter framework and the filtered request data; executing multiple front-end sorting functions one by one to update the data content of the current page, generating and displaying the updated page data. Since the present application constructs multiple front-end sorting functions through a pre-packaged Flutter framework and legitimate request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page, so that the content of the page is re-layouted, thereby achieving fast and accurate recommendation of page data content, and effectively improving the accuracy of data recommendation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a method, device, storage medium and terminal for dynamically updating page data. Background Art

[0002] With the development of mobile Internet technology and the popularization of smart mobile terminals, the importance of mobile Internet in life is becoming more and more obvious, and the development of mobile applications (Application, APP for short) is becoming more and more important. In the development of APP, the Flutter framework is more and more widely used. Flutter is a cross-platform mobile development framework that uses Dart language and supports Android, iOS, Web and other operating systems.

[0003] In the existing display of pages developed based on the Flutter framework, the basic configuration of the background management system is first set, and then the front-end page requests configuration data through the interface. Finally, through the analysis and processing of the data, a single rendering method is performed, which can only ensure that specific modules are hidden or displayed, and some functions are differentiated for different users and scenarios, but it is impossible to dynamically update the global page content data, so that a large number of contents that users are not interested in are recommended, thereby reducing the accuracy of data recommendations. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and terminal for dynamically updating page data. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.

[0005] In a first aspect, an embodiment of the present application provides a method for dynamically updating page data, the method comprising:

[0006] When request data within a preset period is obtained, the configuration parameters set for the current page are loaded;

[0007] Filter the request data according to the configuration parameters to generate filtered request data;

[0008] Build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data;

[0009] Execute multiple front-end sorting functions one by one to update the data content of the current page, generate and display the updated page data.

[0010] Optionally, the request data is filtered according to the configuration parameters to generate filtered request data, including:

[0011] Identify the identifier corresponding to each type of data in the request data one by one;

[0012] Identify parameter identifiers for unauthorized operations from configuration parameters;

[0013] Compare the identifier corresponding to each data with the parameter identifier of the unauthorized operation to see if they are consistent, and generate multiple comparison results;

[0014] The data corresponding to the parameters with inconsistent comparison results are removed from the request data to generate filtered request data.

[0015] Optionally, follow these steps to generate a prepackaged Flutter framework, including:

[0016] Install the Flutter framework and use the widget components of the Flutter framework to build multiple initial functional modules;

[0017] Setting a scene switching identifier for each initial function module to obtain multiple initial function modules carrying the identifiers;

[0018] After converting the code logic of each initial function module carrying the identifier, multiple target function modules are obtained, and each target function module is encapsulated and the method name is marked to generate multiple initial function functions;

[0019] A fixed parameter and multiple random parameters are configured for each initial function to obtain a function after multiple parameters are expanded;

[0020] The function after the multiple parameters are expanded is determined as a pre-packaged Flutter framework.

[0021] Optionally, build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data, including:

[0022] Identify the data format corresponding to each data in the filtered request data;

[0023] Split the filtered request data according to the data format to generate multiple available JSON objects;

[0024] Build multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects.

[0025] Optionally, build multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects, including:

[0026] Match and associate multiple available JSON objects with multiple target function modules to generate multiple target function modules associated with the JSON objects;

[0027] Analyze the target functional module of each associated JSON object to obtain the target fixed parameters and multiple target random parameters of each functional module;

[0028] Associating the target fixed parameters of each functional module, multiple target random parameters and the function functions after the corresponding parameters are expanded, to generate multiple target ranking functions;

[0029] Determine the priority of the function identifier in each target sorting function;

[0030] The multiple target sorting functions are reordered based on the order of priority to obtain multiple front-end sorting functions.

[0031] Optionally, the method further includes:

[0032] Encapsulate multiple front-end sorting functions to obtain a total sorting function;

[0033] Configure the function identifier of the sorting total function in the path of the current page.

[0034] Optionally, load configuration parameters for the current page, including:

[0035] Connect to the backend management system;

[0036] Load the configuration parameters set for the current page in the background management system;

[0037] The configuration parameters at least include permission configuration parameters.

[0038] In a second aspect, an embodiment of the present application provides a device for dynamically updating page data, the device comprising:

[0039] A configuration parameter loading module is used to load the configuration parameters set for the current page when request data within a preset period is obtained;

[0040] A data filtering module is used to filter the request data according to the configuration parameters and generate filtered request data;

[0041] The front-end sorting function building module is used to build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data;

[0042] The page data update module is used to execute multiple front-end sorting functions one by one to update the data content of the current page, generate and display the updated page data.

[0043] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0044] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0045] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0046] In an embodiment of the present application, the dynamic update device for page data first loads the configuration parameters set for the current page when the request data within a preset period is obtained, and then filters the request data according to the configuration parameters to generate filtered request data, and then constructs multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data, and finally executes multiple front-end sorting functions one by one to update the data content of the current page, and generates and displays the updated page data. Since the present application constructs multiple front-end sorting functions through the pre-packaged Flutter framework and legal request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page to re-layout the content of the page, it realizes the rapid and accurate recommendation of the page data content, and effectively improves the accuracy of data recommendation.

[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0049] Figure 1 It is a flowchart of a method for dynamically updating page data provided by an embodiment of the present application;

[0050] Figure 2 is a schematic block diagram of a process of dynamically updating page data provided by an embodiment of the present application;

[0051] Figure 3 It is a structural diagram of a device for dynamically updating page data provided by an embodiment of the present application;

[0052] Figure 4 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.

[0054] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.

[0056] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

[0057] The present application provides a method, device, storage medium and terminal for dynamically updating page data to solve the problems existing in the above-mentioned related technical problems. In the technical solution provided by the present application, since the present application constructs multiple front-end sorting functions through a pre-packaged Flutter framework and legal request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page to re-layout the content of the page, thereby realizing fast and accurate recommendation of page data content, and effectively improving the accuracy of data recommendation, an exemplary embodiment is used for detailed description below.

[0058] The following will be combined with the attached Figure 1 -Attached Figure 2 , a method for dynamically updating page data provided by an embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a dynamic updating device for page data based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.

[0059] See also Figure 1, is a flowchart of a method for dynamically updating page data provided by an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:

[0060] S101, when request data within a preset period is obtained, the configuration parameters set for the current page are loaded;

[0061] The preset period is a set period of time, and the request data is the request data sent from the mobile terminal within a period of time, such as the user's operation record on the APP page. The configuration parameters are the data existing in the pre-developed background management system.

[0062] In one possible implementation, the terminal collects request data sent from the mobile terminal in real time. When the collection time is equal to a preset period, it connects to the background management system and then loads the configuration parameters set for the current page in the background management system; wherein the configuration parameters include at least permission configuration parameters.

[0063] Specifically, the backend management system implements a system for configuring functional parameters including sorting, product identification, copywriting, icons, connections, permissions, etc., which serves as a data configuration platform for displaying the effects of all APP pages.

[0064] S102, filtering the request data according to the configuration parameters to generate filtered request data;

[0065] In one possible implementation, when request data is filtered according to configuration parameters to generate filtered request data, first, the identifier corresponding to each type of data in the request data is identified one by one, and then the parameter identifier of the unauthorized operation is identified from the configuration parameters. Next, the identifier corresponding to each type of data is compared with the parameter identifier of the unauthorized operation to see if they are consistent, and multiple comparison results are generated. Finally, the data corresponding to the parameters with inconsistent comparison results are removed from the request data to generate filtered request data.

[0066] For example, the request data contains multiple types of data, each type of data has its own corresponding identifier, some of which is illegal data. For example, a user needs to delete a node in a page. This node must be presented in the page and cannot be deleted. Therefore, the request data is illegal and needs to be filtered. At this time, the identifier of the illegal parameter is obtained from the configuration parameters, and it is determined whether there is an identifier consistent with the identifier of the illegal parameter in the request data. If so, the data corresponding to the identifier is cleared from the request data to obtain the filtered request data.

[0067] S103, constructing multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data;

[0068] In an embodiment of the present application, when generating a pre-packaged Flutter framework, the Flutter framework is first installed, and a plurality of initial function modules are constructed using the widget component of the Flutter framework. Then, a scene switching identifier is set for each initial function module to obtain a plurality of initial function modules carrying the identifier. Next, each initial function module carrying the identifier is converted into a plurality of target function modules after code logic conversion. Methods are encapsulated and method names are marked for each target function module to generate a plurality of initial function functions. Then, a fixed parameter and a plurality of random parameters are configured for each initial function function to obtain a function function after multiple parameter expansion. Finally, the function function after multiple parameter expansion is determined as a pre-packaged Flutter framework.

[0069] It should be noted that this application can improve the perception of key functions on the page by repackaging the Flutter framework, thereby quickly, effectively and accurately meeting product business needs.

[0070] In one possible implementation, when building multiple front-end sorting functions based on a pre-packaged Flutter framework and filtered request data, first identify the data format corresponding to each data in the filtered request data, then split the filtered request data according to the data format to generate multiple available JSON objects, and finally build multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects.

[0071] Specifically, when building multiple front-end sorting functions according to a pre-packaged Flutter framework and multiple available JSON objects, firstly, the multiple available JSON objects are matched and associated with the multiple target function modules to generate the target function modules of the multiple associated JSON objects, then the target function module of each associated JSON object is analyzed to obtain the target fixed parameters and multiple target random parameters of each function module, then the target fixed parameters, multiple target random parameters and the function functions after the corresponding parameters are expanded are associated with each function module to generate multiple target sorting functions, then the priority of the function identifier in each target sorting function is determined, and finally the multiple target sorting functions are reordered based on the order of priority to obtain multiple front-end sorting functions.

[0072] Furthermore, in order to facilitate mobile terminal calls and code reusability, multiple front-end sorting functions can be encapsulated to obtain a total sorting function, and finally the function identifier of the total sorting function is configured in the path of the current page. At this time, each time the page is entered, the various states of the current configuration environment will be judged in real time to form a functional effect display suitable for the current requirements.

[0073] S104, executing multiple front-end sorting functions one by one to update the data content of the current page, and generating and displaying updated page data.

[0074] In one possible implementation, multiple front-end sorting functions can be obtained according to steps S101 to S103, and then the page is initialized by executing the multiple front-end sorting functions to complete the page skeleton presentation. Next, the reorganized components are rendered on the page to update the data content of the current page, and the updated page data is generated and displayed.

[0075] For example Figure 2 As shown, Figure 2 This is a schematic diagram of the process of dynamic update of page data provided by the present application. Taking the login page as an example, first, a background management system is developed to configure the relevant parameters of the APP page, and then the Flutter framework is repackaged to realize the reorganization of the basic functional architecture. Secondly, when the data within a period of time is obtained, it is determined whether to obtain the configured data from the background management system. If the configured data is not obtained from the background management system, it is displayed according to the default effect. If the configured data is obtained from the background management system, the pre-packaged Flutter framework and the filtered request data are used to analyze and process the component permissions and build functions, and the functions are sorted. Finally, the content of the login page is updated and rendered by executing the sorted function, so that the content of the login page is dynamically adjusted. Finally, after receiving the login instruction, jump to the dynamically adjusted login page, and the login is successful.

[0076] For example, user Xiao Ming is interested in a certain insurance product, browses it frequently, and frequently clicks on the activity module, but by default, this module is located on the page and needs to be swiped to be seen. In this case, we can dynamically adjust the page display order in real time based on user A's habits to better recommend the content that the user needs.

[0077] In an embodiment of the present application, the dynamic update device for page data first loads the configuration parameters set for the current page when the request data within a preset period is obtained, and then filters the request data according to the configuration parameters to generate filtered request data, and then constructs multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data, and finally executes multiple front-end sorting functions one by one to update the data content of the current page, and generates and displays the updated page data. Since the present application constructs multiple front-end sorting functions through the pre-packaged Flutter framework and legal request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page to re-layout the content of the page, it realizes the rapid and accurate recommendation of the page data content, and effectively improves the accuracy of data recommendation.

[0078] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

[0079] See also Figure 3 , which shows a schematic diagram of the structure of a dynamic update device for page data provided by an exemplary embodiment of the present invention. The dynamic update device for page data can be implemented as all or part of a terminal through software, hardware or a combination of both. The device 1 includes a configuration parameter loading module 10, a data filtering module 20, a front-end sorting function building module 30, and a page data updating module 40.

[0080] The configuration parameter loading module 10 is used to load the configuration parameters set for the current page when the request data within a preset period is obtained;

[0081] The data filtering module 20 is used to filter the request data according to the configuration parameters and generate filtered request data;

[0082] A front-end sorting function construction module 30 is used to construct multiple front-end sorting functions according to a pre-packaged Flutter framework and filtered request data;

[0083] The page data updating module 40 is used to execute multiple front-end sorting functions one by one to update the data content of the current page, and generate and display the updated page data.

[0084] It should be noted that the dynamic updating device for page data provided in the above embodiment only uses the division of the above functional modules as an example when executing the dynamic updating method for page data. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the dynamic updating device for page data provided in the above embodiment and the embodiment of the dynamic updating method for page data belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0085] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0086] In an embodiment of the present application, the dynamic update device for page data first loads the configuration parameters set for the current page when the request data within a preset period is obtained, and then filters the request data according to the configuration parameters to generate filtered request data, and then constructs multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data, and finally executes multiple front-end sorting functions one by one to update the data content of the current page, and generates and displays the updated page data. Since the present application constructs multiple front-end sorting functions through the pre-packaged Flutter framework and legal request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page to re-layout the content of the page, it realizes the rapid and accurate recommendation of the page data content, and effectively improves the accuracy of data recommendation.

[0087] The present invention also provides a computer-readable medium on which program instructions are stored. When the program instructions are executed by a processor, the dynamic updating method of page data provided by the above-mentioned various method embodiments is implemented.

[0088] The present invention also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the methods for dynamically updating page data of the above-mentioned various method embodiments.

[0089] See also Figure 4 , which is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 4 As shown, the terminal 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0090] The communication bus 1002 is used to realize the connection and communication between these components.

[0091] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.

[0092] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0093] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0094] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 4 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a dynamic update application for page data.

[0095] exist Figure 4In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the dynamic update application of the page data stored in the memory 1005, and specifically perform the following operations:

[0096] When request data within a preset period is obtained, the configuration parameters set for the current page are loaded;

[0097] Filter the request data according to the configuration parameters to generate filtered request data;

[0098] Build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data;

[0099] Execute multiple front-end sorting functions one by one to update the data content of the current page, generate and display the updated page data.

[0100] In one embodiment, when the processor 1001 filters the request data according to the configuration parameters to generate the filtered request data, the processor 1001 specifically performs the following operations:

[0101] Identify the identifier corresponding to each type of data in the request data one by one;

[0102] Identify parameter identifiers for unauthorized operations from configuration parameters;

[0103] Compare the identifier corresponding to each data with the parameter identifier of the unauthorized operation to see if they are consistent, and generate multiple comparison results;

[0104] The data corresponding to the parameters with inconsistent comparison results are removed from the request data to generate filtered request data.

[0105] In one embodiment, the processor 1001 generates a pre-packaged Flutter framework according to the following steps:

[0106] Install the Flutter framework and use the widget components of the Flutter framework to build multiple initial functional modules;

[0107] Setting a scene switching identifier for each initial function module to obtain multiple initial function modules carrying the identifiers;

[0108] After converting the code logic of each initial function module carrying the identifier, multiple target function modules are obtained, and each target function module is encapsulated and the method name is marked to generate multiple initial function functions;

[0109] A fixed parameter and multiple random parameters are configured for each initial function to obtain a function after multiple parameters are expanded;

[0110] The function after the multiple parameters are expanded is determined as a pre-packaged Flutter framework.

[0111] In one embodiment, when the processor 1001 executes the construction of multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data, the processor 1001 specifically performs the following operations:

[0112] Identify the data format corresponding to each data in the filtered request data;

[0113] Split the filtered request data according to the data format to generate multiple available JSON objects;

[0114] Build multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects.

[0115] In one embodiment, when the processor 1001 executes the construction of multiple front-end sorting functions according to the pre-packaged Flutter framework and multiple available JSON objects, the following operations are specifically performed:

[0116] Match and associate multiple available JSON objects with multiple target function modules to generate multiple target function modules associated with the JSON objects;

[0117] Analyze the target functional module of each associated JSON object to obtain the target fixed parameters and multiple target random parameters of each functional module;

[0118] Associating the target fixed parameters of each functional module, multiple target random parameters and the function functions after the corresponding parameters are expanded, to generate multiple target ranking functions;

[0119] Determine the priority of the function identifier in each target sorting function;

[0120] The multiple target sorting functions are reordered based on the order of priority to obtain multiple front-end sorting functions.

[0121] In one embodiment, the processor 1001 further performs the following operations:

[0122] Encapsulate multiple front-end sorting functions to obtain a total sorting function;

[0123] Configure the function identifier of the sorting total function in the path of the current page.

[0124] In one embodiment, when the processor 1001 executes loading of configuration parameters set for the current page, the processor 1001 specifically performs the following operations:

[0125] Connect to the backend management system;

[0126] Load the configuration parameters set for the current page in the background management system;

[0127] The configuration parameters at least include permission configuration parameters.

[0128] In an embodiment of the present application, the dynamic update device for page data first loads the configuration parameters set for the current page when the request data within a preset period is obtained, and then filters the request data according to the configuration parameters to generate filtered request data, and then constructs multiple front-end sorting functions according to the pre-packaged Flutter framework and the filtered request data, and finally executes multiple front-end sorting functions one by one to update the data content of the current page, and generates and displays the updated page data. Since the present application constructs multiple front-end sorting functions through the pre-packaged Flutter framework and legal request data within a period of time, and the multiple front-end sorting functions automatically re-update all the data content of the current page to re-layout the content of the page, it realizes the rapid and accurate recommendation of the page data content, and effectively improves the accuracy of data recommendation.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program for dynamically updating the page data can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0130] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for dynamically updating page data, characterized in that: The method comprises: When request data within a preset period is obtained, the configuration parameters set for the current page are loaded; Filtering the request data according to the configuration parameters to generate filtered request data; Build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data; Execute the multiple front-end sorting functions one by one to update the data content of the current page, generate and display the updated page data; wherein, Follow these steps to generate a prepackaged Flutter framework, including: Install the Flutter framework, and use the widget components of the Flutter framework to build multiple initial functional modules; Setting a scene switching identifier for each of the initial function modules to obtain a plurality of initial function modules carrying the identifiers; After converting the code logic of each initial function module carrying the identifier, multiple target function modules are obtained, and each target function module is encapsulated and the method name is marked to generate multiple initial function functions; configuring a fixed parameter and a plurality of random parameters for each of the initial function functions to obtain a function function after the plurality of parameters are expanded; The function after the multiple parameters are expanded is determined as a pre-packaged Flutter framework.

2. The method according to claim 1, characterized in that The filtering the request data according to the configuration parameters to generate filtered request data includes: Identify the identifier corresponding to each type of data in the request data one by one; Identifying parameter identifiers for unauthorized operations from the configuration parameters; Compare whether the identifier corresponding to each type of data is consistent with the parameter identifier of the unauthorized operation, and generate multiple comparison results; The data corresponding to the parameters with inconsistent comparison results are removed from the request data to generate filtered request data; wherein the configuration parameters at least include permission configuration parameters.

3. The method according to claim 1, characterized in that The method of constructing multiple front-end sorting functions based on the pre-packaged Flutter framework and the filtered request data includes: Identify the data format corresponding to each data in the filtered request data; Splitting the filtered request data according to the data format to generate multiple available JSON objects; Build multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects.

4. The method according to claim 3, characterized in that The method of constructing multiple front-end sorting functions based on the pre-packaged Flutter framework and multiple available JSON objects includes: Match and associate the multiple available JSON objects with the multiple target function modules to generate multiple target function modules associated with the JSON objects; Analyze the target functional module of each associated JSON object to obtain the target fixed parameters and multiple target random parameters of each functional module; Associating the target fixed parameters of each functional module, a plurality of target random parameters and the function functions after the corresponding parameter expansion, to generate a plurality of target ranking functions; Determining the priority of the function identifier in each of the target sorting functions; The multiple target sorting functions are reordered based on the order of priority to obtain multiple front-end sorting functions.

5. The method according to claim 4, characterized in that The method further comprises: Encapsulating the plurality of front-end sorting functions to obtain a total sorting function; The function identifier of the sorting total function is configured in the path of the current page.

6. The method according to claim 4, characterized in that The loading of configuration parameters set for the current page includes: Connect to the backend management system; The configuration parameters set for the current page are loaded in the background management system.

7. A device for dynamically updating page data using the method described in any one of claims 1 to 6, characterized in that: The device comprises: A configuration parameter loading module is used to load the configuration parameters set for the current page when request data within a preset period is obtained; A data filtering module, used to filter the request data according to the configuration parameters to generate filtered request data; The front-end sorting function building module is used to build multiple front-end sorting functions based on the pre-packaged Flutter framework and filtered request data; The page data updating module is used to execute the multiple front-end sorting functions one by one to update the data content of the current page, and generate and display the updated page data.

8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.

9. A terminal, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Personalized page display processing method, device and apparatus and readable storage medium

    CN110457615A

  • Service interface display method and device of mobile application, terminal and storage medium

    CN113377469A