CN-114296721-B - Data processing method and device for page identification
Abstract
The application discloses a data processing method and device for page identification. The method comprises the steps of identifying the acquired development requirement data to obtain rule configuration data, analyzing the rule configuration data after receiving an instruction generated by a page to generate single-case data, matching single-case objects generated by the rule data corresponding to the page to be developed, completing identification of the page to be developed, obtaining a mobile terminal page with the page identification completed, and obtaining an identification result. The application marks the page by means of the configuration rule, can realize flexible configuration of the page identification information, and realize decoupling with service codes, thereby solving the technical problem of higher code invasiveness in the process of marking the page in the prior art, and realizing the technical effects of flexible configuration of the page identification and reduction of maintenance cost.
Inventors
- YE LIJUN
Assignees
- 上海数禾信息科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20211207
Claims (6)
- 1. A data processing method for page identification, comprising: acquiring development demand data, wherein the development demand data are data of pages to be developed, the pages to be developed are configuration data of APP pages, and different service types exist in the same APP; identifying the development requirement data to obtain rule configuration data; After receiving a page development instruction, analyzing the rule configuration data to generate single instance data, wherein the analysis of the rule configuration data comprises the steps of identifying the rule configuration data to obtain rule type data, analyzing the rule configuration data to obtain first single instance data to realize static configuration of the page to be developed if the rule configuration data is of a first rule type, and analyzing the rule configuration data to obtain second single instance data to realize dynamic configuration of the page to be developed if the rule configuration data is of a second rule type; marking the page to be developed according to the single instance data to obtain marking result data; the method comprises the steps of identifying the development requirement data to obtain page parameter data, matching single instance data corresponding to the page to be developed to obtain application single instance data, and identifying the page to be developed according to the application single instance data and the page parameter data to obtain identification result data.
- 2. The data processing method according to claim 1, wherein identifying the page to be developed according to the application case data and the page parameter data, and obtaining the identification result data includes: if the application case data is the second case data, identifying the page parameter data to obtain page attribute data, and And carrying out page identification on the page attribute data according to the second single instance data, and returning page ID data to obtain the identification result data, wherein the identification result data comprises the page ID data, and the page ID data corresponds to the page attribute data.
- 3. The data processing method according to claim 1, wherein the identifying the page to be developed according to the singleton data, after obtaining the identification result data, further comprises: acquiring service data, wherein the service data is data corresponding to a target service; Identifying the identification result data in the service data, and carrying out induction analysis on the service data according to the identification result data to obtain the preprocessed service data.
- 4. A data processing apparatus for page identification, comprising: the system comprises a data acquisition module, a development request module and a development request module, wherein the development request data are data of pages to be developed, the pages to be developed are configuration data of APP pages, and different service types exist in the same APP; The rule configuration module is used for identifying the development requirement data to obtain rule configuration data; After receiving a page development instruction, analyzing the rule configuration data to generate single-instance data; the identification result module is used for identifying the page to be developed according to the single instance data to obtain identification result data; The rule configuration module comprises: the rule identification module is used for identifying the rule configuration data to obtain rule type data; A first configuration module for analyzing the rule configuration data to obtain first single instance data to realize static configuration of the page to be developed if the rule configuration data is of a first rule type, and The second configuration module is used for analyzing the rule configuration data to obtain second single-instance data if the rule configuration data is of a second rule type so as to realize dynamic configuration of the page to be developed; The page identification module comprises: The parameter identification is used for identifying the development requirement data to obtain page parameter data, wherein the page parameter data is the parameter data of a page to be developed; a matching module for matching the single instance data corresponding to the page to be developed to obtain application single instance data, and And the page identification module is used for identifying the page to be developed according to the application case data and the page parameter data to obtain the identification result data.
- 5. A computer-readable storage medium storing computer instructions for causing the computer to perform the data processing method for page identification of any one of claims 1 to 3.
- 6. An electronic device comprising at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores a computer program executable by the at least one processor to cause the at least one processor to perform the data processing method for page identification of any of claims 1-3.
Description
Data processing method and device for page identification Technical Field The application relates to the field of webpage development, in particular to a data processing method and device for page identification. Background In development processes of Android, iOS and the like, some page information such as page names, page IDs and the like needs to be endowed to each App page, and the information is used in scenes of reporting user behaviors, app interface requests and the like. In the prior art, by defining page information in each App page code, the page information and the service codes are coupled together, the configuration is not centralized, the maintenance cost is high, the page information is defined in a parent class, each page generates the page information by inheriting the parent class, and the scheme has the problem that dynamic configuration is difficult to realize under multiple scenes. Therefore, the technical problem of high code invasiveness exists in the page identification process in the prior art. Disclosure of Invention The application mainly aims to provide a data processing method and device for page identification, which are used for solving the technical problem of higher code invasiveness in the page identification process in the prior art and realizing the technical effects of flexible configuration and low invasiveness of page identification. To achieve the above object, in a first aspect of the present application, a data processing method for page identification is provided, including: acquiring development demand data, wherein the development demand data is data of a page to be developed; identifying the development requirement data to obtain rule configuration data; after receiving the page development instruction, analyzing the rule configuration data to generate single instance data, and And marking the page to be developed according to the single instance data to obtain marking result data. Preferably, parsing the rule configuration data to generate single instance data includes: identifying the rule configuration data to obtain rule type data; if the rule configuration data is a first rule type, analyzing the rule configuration data to obtain first single instance data so as to realize static configuration of the page to be developed, and And if the rule configuration data is of a second rule type, analyzing the rule configuration data to obtain second single-instance data so as to realize dynamic configuration of the page to be developed. Preferably, the identifying the page to be developed according to the singleton data includes: Identifying the to-be-developed demand data to obtain page parameter data, wherein the page parameter data are parameter data of a to-be-developed page; Matching the single instance data corresponding to the page to be developed to obtain application single instance data, and And marking the page to be processed according to the application single instance data and the page parameter data to obtain the marking result data. Preferably, the identifying the page to be processed according to the application case data and the page parameter data includes: if the application case data is the second case data, identifying the page parameter data to obtain page attribute data, and And carrying out page identification on the page attribute data according to the second single instance data, and returning page ID data to obtain the identification result data, wherein the identification result data comprises the page ID data, and the page ID data corresponds to the page attribute data. Preferably, the identifying the page to be developed according to the singleton data further includes: acquiring service data, wherein the service data is data corresponding to a target service; Identifying the identification result data in the service data, and carrying out induction analysis on the service data according to the identification result data to obtain the preprocessed service data. According to a second aspect of the present application, there is provided a data processing apparatus for page identification, comprising: the data acquisition module is used for acquiring development requirement data, wherein the development requirement data is data of a page to be developed; The rule configuration module is used for identifying the development requirement data to obtain rule configuration data; after receiving the page development instruction, analyzing the rule configuration data to generate single instance data, and And the identification result module is used for identifying the page to be developed according to the single instance data to obtain identification result data. Preferably, the rule configuration module includes: the rule identification module is used for identifying the rule configuration data to obtain rule type data; A first configuration module for analyzing the rule configuration data to obtain first single instance data to realize static