Disclosure of Invention
The embodiment of the application provides a dynamic updating method and device of page data, a storage medium and a terminal. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a method for dynamically updating page data, where the method includes:
when request data in a preset period is acquired, loading configuration parameters set for a current page;
filtering the request data according to the configuration parameters to generate filtered request data;
constructing a plurality of front-end ranking functions according to the pre-packaged Flutter framework and the filtered request data;
Executing a plurality of front-end sorting functions one by one to update the data content of the current page, and generating and displaying updated page data.
Optionally, filtering the request data according to the configuration parameters to generate filtered request data, including:
Identifying the corresponding identifiers of each data in the request data one by one;
Identifying a parameter identification of the unauthorized operation from the configuration parameters;
Comparing whether the identification corresponding to each data is consistent with the parameter identification of the unauthorized operation or not, and generating a plurality of comparison results;
and removing the data corresponding to the parameters with inconsistent comparison results from the request data to generate filtered request data.
Optionally, generating the pre-packaged Flutter frame according to the following steps includes:
installing Flutter a framework, and constructing a plurality of initial function modules by adopting a widget component of the Flutter framework;
setting a scene switching identifier for each initial function module to obtain a plurality of initial function modules carrying identifiers;
Performing code logic conversion on each initial function module carrying the identifier to obtain a plurality of target function modules, and performing method encapsulation and method name marking on each target function module to generate a plurality of initial function functions;
configuring a fixed parameter and a plurality of random parameters for each initial function to obtain a function with a plurality of expanded parameters;
the function after the expansion of the plurality of parameters is determined as a pre-packaged Flutter framework.
Optionally, constructing a plurality of front-end ranking functions according to the pre-packaged Flutter framework and the filtered request data includes:
Identifying a data format corresponding to each data in the filtered request data;
splitting the filtered request data according to a data format to generate a plurality of available JSON objects;
A plurality of front end ranking functions are constructed from a pre-packaged Flutter framework and a plurality of available JSON objects.
Optionally, constructing a plurality of front-end ranking functions from the pre-packaged Flutter framework and the plurality of available JSON objects includes:
matching and associating a plurality of available JSON objects with a plurality of target function modules to generate target function modules of a plurality of associated JSON objects;
analyzing the target function module of each associated JSON object to obtain a target fixed parameter and a plurality of target random parameters of each function module;
The target fixed parameters, the target random parameters and the function functions which are expanded by the corresponding parameters of each function module are associated to generate a plurality of target ordering functions;
determining the priority of function identification in each target sorting function;
and reordering the plurality of target ranking functions based on the high-low order of the priorities to obtain a plurality of front-end ranking functions.
Optionally, the method further comprises:
packaging the front-end ranking functions to obtain a ranking total function;
The function identification of the ranking total function is configured in the path of the current page.
Optionally, loading configuration parameters set for the current page includes:
connecting a background management system;
the configuration parameters set for the current page are loaded in the background management system, wherein,
The configuration parameters include at least rights configuration parameters.
In a second aspect, an embodiment of the present application provides a device for dynamically updating page data, where the device includes:
The configuration parameter loading module is used for loading configuration parameters set for the current page when request data in a preset period are acquired;
The data filtering module is used for filtering the request data according to the configuration parameters to generate filtered request data;
the front-end ranking function construction module is used for constructing a plurality of front-end ranking functions according to the pre-packaged Flutter framework and the filtered request data;
And the page data updating module is used for executing a plurality of front-end sorting functions one by one to update the data content of the current page, and generating and displaying updated page data.
In a third aspect, embodiments of the present application provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
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 adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
In the embodiment of the application, a dynamic updating device of page data firstly loads configuration parameters set for a current page when request data in a preset period is acquired, then filters the request data according to the configuration parameters to generate filtered request data, secondly constructs a plurality of front-end sorting functions according to a pre-packaged Flutter framework and the filtered request data, and finally executes the front-end sorting functions one by one to update the data content of the current page to generate and display updated page data. According to the application, a plurality of front-end sorting functions are constructed through the pre-packaged Flutter framework and legal request data in a period of time, and all data contents of the current page are automatically updated again through the plurality of front-end sorting functions, so that the contents of the page are rearranged, thereby realizing quick and accurate recommendation of the data contents of the page, and effectively improving the accuracy of data recommendation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention as detailed in the accompanying claims.
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art. Furthermore, in the description of the present invention, unless otherwise indicated, "a plurality" means two or more. "and/or" describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate that there are three cases of a alone, a and B together, and B alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The application provides a dynamic updating method, a dynamic updating device, a storage medium and a terminal for page data, which are used for solving the problems in the related technical problems. In the technical scheme provided by the application, a plurality of front-end sorting functions are constructed through the pre-packaged Flutter frame and legal request data in a period of time, and all data contents of the current page are automatically updated again through the plurality of front-end sorting functions, so that the contents of the page are rearranged, the quick and accurate recommendation of the data contents of the page is realized, the accuracy of data recommendation is effectively improved, and the detailed description is carried out by adopting an exemplary embodiment.
The method for dynamically updating page data provided by the embodiment of the application will be described in detail with reference to fig. 1-2. The method may be implemented in dependence on a computer program, and may be run on a dynamic update device based on page data of a von neumann system. The computer program may be integrated in the application or may run as a stand-alone tool class application.
Referring to fig. 1, a flow chart of a method for dynamically updating page data is provided in an embodiment of the present application. As shown in fig. 1, the method according to the embodiment of the present application may include the following steps:
s101, loading configuration parameters set for a current page when request data in a preset period are acquired;
the preset period is a set period of time, and the request data is request data sent from the mobile terminal in a period of time, and the request data is, for example, operation records of a user on an APP page. The configuration parameters are data existing in a pre-developed background management system.
In one possible implementation manner, the terminal collects request data sent by the mobile terminal in real time, connects with the background management system when the collected duration is equal to a preset period, and then loads configuration parameters set for the current page in the background management system, wherein the configuration parameters at least comprise authority configuration parameters.
Specifically, the background management system realizes a set of system comprising sequencing, product identification, text, icons, connection, authority and other functional parameter configuration, and is used as a data configuration platform for displaying all page effects of the APP.
S102, filtering the request data according to the configuration parameters to generate filtered request data;
In one possible implementation manner, when filtering request data according to configuration parameters to generate filtered request data, firstly identifying identifiers corresponding to each data in the request data one by one, then identifying parameter identifiers of unauthorized operation from the configuration parameters, secondly comparing whether the identifiers corresponding to each data are consistent with the parameter identifiers of unauthorized operation to generate a plurality of comparison results, and finally removing data corresponding to parameters inconsistent with the comparison results from the request data to generate filtered request data.
For example, the request data includes multiple types of data, each type of data has its own corresponding identifier, where some data is illegal data, for example, a user needs to delete a certain node in the page, where the node must be present in the page and cannot be deleted, so that the request data illegally needs to be filtered, at this time, the identifier of the illegal parameter is obtained from the configuration parameter, it is determined whether the identifier consistent with the identifier of the illegal parameter exists in the request data, and if so, the data corresponding to the identifier is cleared from the request data, so as to obtain the filtered request data.
S103, constructing a plurality of front end sorting functions according to the pre-packaged Flutter framework and the filtered request data;
In the embodiment of the application, when a pre-packaged Flutter framework is generated, firstly, a Flutter framework is installed, a widget component of a Flutter framework is adopted to construct a plurality of initial function modules, then, scene switching identifiers are set for each initial function module to obtain a plurality of initial function modules carrying the identifiers, secondly, code logic conversion is carried out on each initial function module carrying the identifiers to obtain a plurality of target function modules, method encapsulation and marking method names are carried out on 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 to obtain a function with a plurality of parameter extended, and finally, the function with the plurality of parameter extended is determined to be a pre-packaged Flutter framework.
It should be noted that, the application can improve the perception strength of key functions in the page by repackaging Flutter frames, thereby realizing the quick, effective and accurate meeting of the product business requirements.
In one possible implementation, when constructing a plurality of front-end ranking functions according to the pre-packaged Flutter framework and the filtered request data, first, a data format corresponding to each data in the filtered request data is identified, then the filtered request data is split according to the data format to generate a plurality of available JSON objects, and finally, a plurality of front-end ranking functions are constructed according to the pre-packaged Flutter framework and the plurality of available JSON objects.
Specifically, when constructing a plurality of front-end sorting functions according to a pre-packaged Flutter framework and a plurality of available JSON objects, firstly, matching and associating the plurality of available JSON objects with a plurality of target function modules to generate a plurality of target function modules associated with the JSON objects, then analyzing the target function modules associated with the JSON objects to obtain target fixed parameters and a plurality of target random parameters of each function module, associating the target fixed parameters, the plurality of target random parameters and the function functions corresponding to the target fixed parameters, the plurality of target random parameters and the function functions after parameter expansion of each function module to generate a plurality of target sorting functions, secondly, determining the priority of function identification in each target sorting function, and finally, reordering the plurality of target sorting functions based on the high-low order of the priority to obtain a plurality of front-end sorting functions.
Further, in order to facilitate the calling of the mobile terminal and the reusability of the codes, a plurality of front-end sorting functions can be packaged to obtain a sorting total function, and finally, function identifiers of the sorting total function are configured in a path of a current page, and at the moment, after each page is entered, each state of the current configuration environment is judged in real time, so that the display of the function effect suitable for the current requirement is formed.
S104, executing a plurality of front end sorting functions one by one to update the data content of the current page, and generating and displaying updated page data.
In one possible implementation manner, a plurality of front-end ranking functions can be obtained according to step S101-step S103, then the initialization of the page is performed by executing the plurality of front-end ranking functions, the rendering of the page skeleton is completed, and then the reorganized components are rendered on the page to update the data content of the current page, so as to generate and display the updated page data.
For example, as shown in fig. 2, fig. 2 is a schematic block diagram of a process of dynamically updating page data, taking a login page as an example, firstly developing a background management system to configure relevant parameters of the APP page, then repackaging a Flutter frame to implement reorganization of an infrastructure function architecture, secondly determining whether to acquire configuration data from the background management system when acquiring data within a period of time, if the configuration data is not acquired from the background management system, displaying according to a default effect, if the configuration data is acquired from the background management system, analyzing and processing component authorities and constructing functions through a pre-packaged Flutter frame and filtered request data, sorting the functions, updating and rendering contents of the login page through executing the sorted functions, so that the contents of the login page are dynamically adjusted, and finally jumping to the dynamically adjusted login page after receiving a login instruction, and logging is successful.
For example, a user may be less interested in comparing certain insurance, often browsed, and often have a click operation on an active module, and default that this module needs to be slid to see at the location of the page. At the moment, the display sequence of the page can be adjusted according to the dynamic adjustment and aiming at the habit of the user A in real time, and the content required by the user is recommended better.
In the embodiment of the application, a dynamic updating device of page data firstly loads configuration parameters set for a current page when request data in a preset period is acquired, then filters the request data according to the configuration parameters to generate filtered request data, secondly constructs a plurality of front-end sorting functions according to a pre-packaged Flutter framework and the filtered request data, and finally executes the front-end sorting functions one by one to update the data content of the current page to generate and display updated page data. According to the application, a plurality of front-end sorting functions are constructed through the pre-packaged Flutter framework and legal request data in a period of time, and all data contents of the current page are automatically updated again through the plurality of front-end sorting functions, so that the contents of the page are rearranged, thereby realizing quick and accurate recommendation of the data contents of the page, and effectively improving the accuracy of data recommendation.
The following are examples of the apparatus of the present invention that may be used to perform the method embodiments of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method of the present invention.
Referring to fig. 3, a schematic structural diagram of a device for dynamically updating page data according to an exemplary embodiment of the present invention is shown. The dynamic updating means of the page data may be implemented as all or part of the terminal by software, hardware or a combination of both. The device 1 comprises a configuration parameter loading module 10, a data filtering module 20, a front-end ranking function constructing module 30 and a page data updating module 40.
The configuration parameter loading module 10 is used for loading configuration parameters set for the current page when request data in a preset period are acquired;
the data filtering module 20 is configured to filter the request data according to the configuration parameters, and generate filtered request data;
The front-end ranking function constructing module 30 is configured to construct a plurality of front-end ranking functions according to the pre-packaged Flutter frames and the filtered request data;
the page data updating module 40 is configured to execute a plurality of front-end ranking functions one by one to update the data content of the current page, and generate and display updated page data.
It should be noted that, when the dynamic updating apparatus for page data provided in the foregoing embodiment performs the dynamic updating method for page data, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the dynamic updating device of the page data provided in the above embodiment and the dynamic updating method embodiment of the page data belong to the same concept, which embody the detailed implementation process and are not described herein again.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the embodiment of the application, a dynamic updating device of page data firstly loads configuration parameters set for a current page when request data in a preset period is acquired, then filters the request data according to the configuration parameters to generate filtered request data, secondly constructs a plurality of front-end sorting functions according to a pre-packaged Flutter framework and the filtered request data, and finally executes the front-end sorting functions one by one to update the data content of the current page to generate and display updated page data. According to the application, a plurality of front-end sorting functions are constructed through the pre-packaged Flutter framework and legal request data in a period of time, and all data contents of the current page are automatically updated again through the plurality of front-end sorting functions, so that the contents of the page are rearranged, thereby realizing quick and accurate recommendation of the data contents of the page, and effectively improving the accuracy of data recommendation.
The invention also provides a computer readable medium having stored thereon program instructions which, when executed by a processor, implement the method for dynamically updating page data provided by the above-described method embodiments.
The invention also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of dynamically updating page data of the various method embodiments described above.
Referring to fig. 4, a schematic structural diagram of a terminal is provided in an embodiment of the present application. As shown in fig. 4, terminal 1000 can 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.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the overall electronic device 1000 using various interfaces and lines, performs various functions of the electronic device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and invoking data stored in the memory 1005. Alternatively, the processor 1001 may 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), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like, the GPU is used for rendering and drawing contents required to be displayed by the display screen, and the modem is used for processing wireless communication. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area that may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc., and a stored data area that may store data, etc., referred to in the above-described respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 4, an operating system, a network communication module, a user interface module, and a dynamic update application of page data may be included in the memory 1005, which is a type of computer storage medium.
In terminal 1000 shown in fig. 4, user interface 1003 is mainly used for providing an input interface for a user to obtain data input by the user, while processor 1001 may be used for calling a dynamic update application program of page data stored in memory 1005, and specifically performing the following operations:
when request data in a preset period is acquired, loading configuration parameters set for a current page;
filtering the request data according to the configuration parameters to generate filtered request data;
constructing a plurality of front-end ranking functions according to the pre-packaged Flutter framework and the filtered request data;
Executing a plurality of front-end sorting functions one by one to update the data content of the current page, and generating and displaying updated page data.
In one embodiment, the processor 1001, when performing filtering of request data according to configuration parameters to generate filtered request data, specifically performs the following operations:
Identifying the corresponding identifiers of each data in the request data one by one;
Identifying a parameter identification of the unauthorized operation from the configuration parameters;
Comparing whether the identification corresponding to each data is consistent with the parameter identification of the unauthorized operation or not, and generating a plurality of comparison results;
and removing the data corresponding to the parameters with inconsistent comparison results from the request data to generate filtered request data.
In one embodiment, the processor 1001 generates the pre-packaged Flutter frame as follows:
installing Flutter a framework, and constructing a plurality of initial function modules by adopting a widget component of the Flutter framework;
setting a scene switching identifier for each initial function module to obtain a plurality of initial function modules carrying identifiers;
Performing code logic conversion on each initial function module carrying the identifier to obtain a plurality of target function modules, and performing method encapsulation and method name marking on each target function module to generate a plurality of initial function functions;
configuring a fixed parameter and a plurality of random parameters for each initial function to obtain a function with a plurality of expanded parameters;
the function after the expansion of the plurality of parameters is determined as a pre-packaged Flutter framework.
In one embodiment, the processor 1001, when executing the construction of a plurality of front-end ranking functions from the pre-packaged Flutter framework and the filtered request data, specifically performs the following operations:
Identifying a data format corresponding to each data in the filtered request data;
splitting the filtered request data according to a data format to generate a plurality of available JSON objects;
A plurality of front end ranking functions are constructed from a pre-packaged Flutter framework and a plurality of available JSON objects.
In one embodiment, the processor 1001, when executing the construction of a plurality of front-end ranking functions from the pre-packaged Flutter framework and a plurality of available JSON objects, specifically performs the following:
matching and associating a plurality of available JSON objects with a plurality of target function modules to generate target function modules of a plurality of associated JSON objects;
analyzing the target function module of each associated JSON object to obtain a target fixed parameter and a plurality of target random parameters of each function module;
The target fixed parameters, the target random parameters and the function functions which are expanded by the corresponding parameters of each function module are associated to generate a plurality of target ordering functions;
determining the priority of function identification in each target sorting function;
and reordering the plurality of target ranking functions based on the high-low order of the priorities to obtain a plurality of front-end ranking functions.
In one embodiment, the processor 1001 is further configured to:
packaging the front-end ranking functions to obtain a ranking total function;
The function identification of the ranking total function is configured in the path of the current page.
In one embodiment, the processor 1001, when executing the loading of the configuration parameters set for the current page, specifically performs the following operations:
connecting a background management system;
the configuration parameters set for the current page are loaded in the background management system, wherein,
The configuration parameters include at least rights configuration parameters.
In the embodiment of the application, a dynamic updating device of page data firstly loads configuration parameters set for a current page when request data in a preset period is acquired, then filters the request data according to the configuration parameters to generate filtered request data, secondly constructs a plurality of front-end sorting functions according to a pre-packaged Flutter framework and the filtered request data, and finally executes the front-end sorting functions one by one to update the data content of the current page to generate and display updated page data. According to the application, a plurality of front-end sorting functions are constructed through the pre-packaged Flutter framework and legal request data in a period of time, and all data contents of the current page are automatically updated again through the plurality of front-end sorting functions, so that the contents of the page are rearranged, thereby realizing quick and accurate recommendation of the data contents of the page, and effectively improving the accuracy of data recommendation.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs to instruct related hardware, and programs for dynamically updating page data may be stored in a computer readable storage medium, which when executed may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.