Method and device for generating a function page, electronic equipment and storage medium

By obtaining data from a non-demonstration functional page database and performing data anonymization processing, highly reliable demonstration functional pages are generated, solving the problems of time-consuming, labor-intensive, and high maintenance costs in existing technologies, and achieving efficient and reliable functional page generation.

CN115495781BActive Publication Date: 2026-11-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211123301.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2026-11-27
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

In feature development, each feature requires a dedicated demo page, which is time-consuming and labor-intensive. Existing technologies use demo pages with meaningless characters or random numbers, which have low reliability and high maintenance costs.

Method used

By obtaining instructions from the demonstration function page of the target function, data is retrieved from a pre-built database of non-demonstration function pages, and data anonymization is performed to generate a more credible demonstration function page.

Benefits of technology

It enables the generation of demonstration function pages in a time-saving and labor-saving manner, with high data reliability and low maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115495781B_ABST
    Figure CN115495781B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and device for generating a demonstration function page, an electronic device and a storage medium, the method comprising: obtaining a demonstration function page acquisition instruction for a target function, and obtaining non-demonstration function page data from a pre-constructed non-demonstration function page database according to the demonstration function page acquisition instruction; performing data desensitization processing on the non-demonstration function page data to obtain demonstration function page data; and obtaining the demonstration function page of the target function according to the demonstration function page data. The present disclosure obtains the demonstration function page of any function by performing data desensitization processing on the non-demonstration function page data of the function, which saves time and effort, and the demonstration function page data is not randomly obtained, and has good credibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, and storage medium for generating exemplary functional pages. Background Technology

[0002] This section is intended to provide background or context for the embodiments of this disclosure as set forth in the claims. The description herein is not intended to be a prior art simply because it is included in this section.

[0003] Software, websites, and system platforms are composed of different functions. A functional page refers to a page that performs a certain function. Functional pages focus on a specific function rather than the content of the page containing elements such as text or images.

[0004] In the development of features, a single feature can typically be used to adapt to and provide services to multiple projects. Before integrating a feature into a project, it needs to be demonstrated. However, data from existing projects cannot be used during the demonstration, as this poses a risk of information leakage. In such cases, a demo feature page is required to demonstrate the feature.

[0005] However, due to the significant differences between the various functions, each new function requires a dedicated demo page to be configured, which is time-consuming and labor-intensive. Summary of the Invention

[0006] In view of this, the purpose of this disclosure is to provide a method, apparatus, electronic device and storage medium for generating exemplary functional pages, which at least partially solves one of the technical problems in the related art.

[0007] To achieve the above objectives, this exemplary embodiment provides a method for generating a model functional page, comprising:

[0008] Obtain a demonstration function page retrieval instruction for the target function, and retrieve non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page retrieval instruction;

[0009] Data anonymization processing is performed on the non-demonstration function page data to obtain the demonstration function page data;

[0010] Based on the data of the demonstration function page, the demonstration function page of the target function is obtained.

[0011] Based on the same inventive concept, an exemplary embodiment of this disclosure also provides an apparatus for generating a demonstrative functional page, comprising:

[0012] The non-demonstration function page data acquisition module is configured to acquire a demonstration function page acquisition instruction for a target function, and acquire non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page acquisition instruction.

[0013] The data anonymization module is configured to perform data anonymization processing on the non-demonstration functional page data to obtain the demonstration functional page data.

[0014] The demonstration function page generation module is configured to obtain the demonstration function page of the target function based on the demonstration function page data.

[0015] Based on the same inventive concept, an exemplary embodiment of this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in any of the above embodiments.

[0016] Based on the same inventive concept, exemplary embodiments of this disclosure also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform any of the methods described above.

[0017] As can be seen from the above description, the exemplary function page generation method, apparatus, electronic device, and storage medium provided in this disclosure include: obtaining an exemplary function page acquisition instruction for a target function; and, according to the exemplary function page acquisition instruction, acquiring non-exemplary function page data from a pre-constructed non-exemplary function page database; performing data anonymization processing on the non-exemplary function page data to obtain exemplary function page data; and obtaining the exemplary function page for the target function based on the exemplary function page data. This disclosure obtains the exemplary function page for any function by performing data anonymization processing on the non-exemplary function page data, saving time and effort, and the exemplary function page data is not randomly obtained, thus having good reliability. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this disclosure or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of an application scenario of the method for generating exemplary functional pages according to embodiments of this disclosure;

[0020] Figure 2 A flowchart illustrating a method for generating exemplary functional pages provided in embodiments of this disclosure;

[0021] Figure 3 A schematic diagram of a device for generating exemplary functional pages provided in an embodiment of this disclosure;

[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this disclosure clearer, the principles and spirit of this disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement this disclosure, and are not intended to limit the scope of this disclosure in any way. Rather, these embodiments are provided to make this disclosure more thorough and complete, and to fully convey the scope of this disclosure to those skilled in the art.

[0024] In this article, it is important to understand that any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.

[0025] The principles and spirit of this disclosure will be explained in detail below with reference to several representative embodiments.

[0026] As described in the background section, a functional page refers to a page that implements a certain function. In the development of a function, a function can usually be used to adapt to multiple projects and provide services to multiple projects. Before integrating a project, the function needs to be demonstrated. However, when demonstrating, data from existing projects cannot be used, as there is a risk of information leakage. In this case, it is necessary to demonstrate the function through a demo functional page.

[0027] However, due to the significant differences between the various functions, each new function requires a dedicated demo page to be configured, which is time-consuming and labor-intensive.

[0028] The inventors of this disclosure have discovered that in related technologies, the data in the demonstration function pages is often generated using meaningless characters (e.g., the common "XX") or random numbers instead of real data. While this saves costs, the reliability of meaningless characters and random numbers is low, and they cannot effectively reflect the function of the page. Therefore, to improve the reliability of demonstration function pages, a method of manually designing and drawing numerical values ​​is commonly used to generate them. However, such demonstration function pages are usually static (i.e., their values ​​remain unchanged and do not update), and cannot interact with the user. If updates are required, the values ​​usually need to be redesigned and redrawn, resulting in high maintenance costs.

[0029] To address the aforementioned issues, this disclosure provides a scheme for generating a demonstrative functional page, specifically including: obtaining a demonstrative functional page retrieval instruction for a target function; retrieving non-demonstration functional page data from a pre-constructed non-demonstration functional page database according to the instruction; performing data anonymization processing on the non-demonstration functional page data to obtain demonstrative functional page data; and obtaining the demonstrative functional page for the target function based on the demonstrative functional page data. This disclosure obtains the demonstrative functional page for any function by performing data anonymization processing on the non-demonstration functional page data, saving time and effort, and the demonstrative functional page data is not randomly obtained, thus ensuring good reliability.

[0030] After introducing the basic principles of this disclosure, various non-limiting embodiments of this disclosure will be described in detail below.

[0031] refer to Figure 1 This is a schematic diagram illustrating an application scenario of the exemplary method for generating functional pages according to embodiments of this disclosure. The application scenario includes a terminal device 101, a server 102, and a data storage system 103. The terminal device 101, server 102, and data storage system 103 can all be connected via wired or wireless communication networks. The terminal device 101 includes, but is not limited to, desktop computers, mobile phones, mobile computers, tablet computers, media players, smart wearable devices, personal digital assistants (PDAs), or other electronic devices capable of performing the aforementioned functions. The server 102 and data storage system 103 can both be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0032] Server 102 provides a service for generating demonstration function pages to users of terminal device 101. Terminal device 101 has a client installed that communicates with server 102. Users can input instructions to obtain demonstration function pages for a target function through the client, such as clicking a virtual button for the target function. The client sends the instructions to server 102. Server 102 retrieves non-demonstration function page data from a pre-built non-demonstration function page database based on the instructions. It then performs data anonymization processing on the non-demonstration function page data to obtain demonstration function page data. Based on the demonstration function page data, it obtains the demonstration function page for the target function and sends it to the client. The client then displays the demonstration function page to the user to help the user understand the target function.

[0033] The data storage system 103 maintains a database of non-demonstration function pages, which includes data pairs consisting of demonstration function page retrieval instructions and non-demonstration function page data. Server 102 provides demonstration function page generation services to users based on the non-demonstration function page database.

[0034] The following is combined Figure 1 The above application scenarios are used to describe an exemplary functional page generation scheme according to exemplary embodiments of this disclosure. It should be noted that the above application scenarios are shown only to facilitate understanding of the spirit and principles of this disclosure, and the embodiments of this disclosure are not limited in any way. Rather, the embodiments of this disclosure can be applied to any applicable scenario.

[0035] refer to Figure 2 This is a flowchart illustrating a method for generating exemplary functional pages provided in this embodiment of the present disclosure.

[0036] The method for generating demonstration function pages includes the following steps:

[0037] Step S210: Obtain a demonstration function page retrieval instruction for the target function, and retrieve non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page retrieval instruction.

[0038] In some exemplary embodiments, the non-exemplary function page database includes data pairs consisting of exemplary function page retrieval instructions and non-exemplary function page data.

[0039] In some exemplary embodiments, the method for constructing a non-exemplary functional page database includes:

[0040] Obtain a non-demonstration function page acquisition instruction for any function and the non-demonstration function page data corresponding to the non-demonstration function page acquisition instruction;

[0041] Construct a demonstration function page retrieval instruction for this function based on the non-demonstration function page retrieval instruction for this function;

[0042] The data pair consisting of the instruction obtained from the demonstration function page and the data from the non-demonstration function page is stored in the non-demonstration function page database.

[0043] In some exemplary embodiments, the non-exemplary function page retrieval instructions include a Uniform Resource Identifier;

[0044] The step of constructing a demonstration function page retrieval instruction for a function based on a non-demonstration function page retrieval instruction for that function includes:

[0045] Replace the first preset character in the Uniform Resource Identifier that represents a non-demonstration function page retrieval instruction type with a second preset character that represents a demonstration function page retrieval instruction type.

[0046] As an example, the Uniform Resource Identifier (URI) of a non-demo functional page retrieval instruction (i.e., a real business instruction) sent to a container (a container is a collection of interfaces between components and the platform in an application server) is intercepted and stored as a separate variable. The ` / api` information (the first preset character indicating that the retrieval instruction type is a non-demo functional page retrieval instruction) in this variable is replaced with the ` / demo-api` information (the second preset character indicating that the retrieval instruction type is a demo functional page retrieval instruction). This operation does not change the URI of the non-demo functional page retrieval instruction. The non-demo functional page retrieval instruction is then executed, and its execution result is obtained. The data pair consisting of the previously stored variable and the execution result is stored in the non-demo functional page database.

[0047] The non-demonstration functional page database stores the request URI and the data obtained from the execution URI of each business interface (optionally, this can be the first execution). The non-demonstration functional page database contains a data table and the update and query interfaces for this table. The table includes the following parts: the URI of the business request and the data returned by the business interface.

[0048] As an example, this is implemented by inheriting the Filter class and overriding the doFilter method. When the container starts, it first retrieves all URIs with demo interfaces from the database and stores them in a static set in memory. When the container receives a normal business request, the system obtains the request URI through the servletRequest object in the doFilter method, then checks if it exists in the static set. If it doesn't exist, as mentioned in Section 3, it stores the interface return data in the database. The system retrieves the interface execution data by waiting for the filterchain in the filter to finish executing and then obtaining the execution result from the servletResponse. If the data exists, it only continues to execute the business logic and does not perform the database storage operation.

[0049] Step S220: Perform data anonymization processing on the non-demonstration function page data to obtain demonstration function page data.

[0050] In some exemplary embodiments, before performing data anonymization processing on the non-exemplary functional page data to obtain the exemplary functional page data, the method further includes:

[0051] The non-demonstration functional page data is traversed by a recursive algorithm, and the non-demonstration functional page data is divided into time series data and non-time series data.

[0052] In some exemplary embodiments, before traversing the non-exemplary functional page data using a recursive algorithm, the method further includes:

[0053] The non-demonstration function page data is divided into arrays and objects based on preset symbols in the non-demonstration function page data.

[0054] In some exemplary embodiments, the step of traversing the non-exemplary functional page data using a recursive algorithm includes:

[0055] In response to determining that the non-demonstration function page data is an array, each element in the array is traversed, and a recursive operation is performed on each element;

[0056] In response to determining that the non-demonstration function page data is an object, each key-value pair is traversed, a recursive operation is performed on each key-value pair, and a recursive operation is performed on the value in the key-value pair.

[0057] In response to determining that the data of the non-demonstration function page is neither an array nor an object, no recursive operation is performed.

[0058] In some exemplary embodiments, the non-exemplary functional page data is the time-series data;

[0059] The process of desensitizing the non-demonstration functional page data to obtain demonstration functional page data includes:

[0060] In response to determining that the key in the object is a timestamp, the time series data is updated based on the time range selected by the user and the timestamp in the object;

[0061] In response to determining that an element in the array is a timestamp, the time series data is updated according to the time range selected by the user and the timestamps in the array;

[0062] In response to the value in the determined object being a timestamp, a timestamp is randomly generated within the time range selected by the user.

[0063] In some exemplary embodiments, the non-exemplary functional page data is the non-time-series data;

[0064] The process of desensitizing the non-demonstration functional page data to obtain demonstration functional page data includes:

[0065] Determine the index of the array or the key of the object. In response to determining that the value of the non-demonstration function page data that is neither an array nor an object is a numeric type, multiply the value by a random number within a preset range to obtain a processed value, and put the processed value into the array or object.

[0066] As an example, the system uses a recursive algorithm to traverse all fields in the data, checking for data in a time format. The backend API typically returns data to the frontend in JSON format. JSON data comes in two forms: arrays and objects. JSON arrays are represented using square brackets "[]", while JSON objects are represented using curly braces "{}". The system determines whether the current layer is an object or an array based on the bracket format of the returned data. After determining whether it is a JSON object, a JSON array, or a regular element, it continues to execute different recursive logic.

[0067] If the current layer is a JSON array, it will iterate through each element in the array and perform recursive operations on each element;

[0068] If the current layer is a JSON object, since JSON objects are in key-value format, we iterate through each key-value pair. Also, according to JSON syntax, the value could be a JSON object, a JSON array, or a regular element, so we continue recursively processing the value.

[0069] If the current element is a regular element, meaning the first and last characters of the value are neither square brackets nor curly braces at the same time, then the recursion stops.

[0070] Recursive algorithms process data in plain format. The recursive algorithm records the current index of the array being traversed or the current key of the object being traversed. When it encounters a plain element with a value, it checks if the element is a numeric type. If it is, it multiplies the value by a random number between 0.8 and 1.2, and then sets the processed value back into the original JSON object or JSON array. This operation is performed concurrently during the recursive traversal.

[0071] A recursive algorithm is used to process time-series data. This disclosure uses millisecond-level timestamps for both front-end and back-end interactions. For JSON data in business logic, timestamps are typically stored in one of three locations: the key in the JSON object, the value in the JSON object, or each element in the JSON array. Dedicated processing logic is provided for these three timestamp locations during recursion and iteration, which are described below:

[0072] The keys in the JSON object are timestamps. During each recursive step, if the current layer is an object, the system checks if each key is a millisecond-level timestamp (i.e., a 13-digit long integer). If so, the system retrieves the user-selected query time range parameters (start and end times), calculates the number of keys in the original JSON object and the interval between each key after sorting the timestamps, and then uses the number of keys and interval parameters to generate a new key-value sequence based on the user-selected start time. The new key-value sequence has the same number of keys and time intervals as the sorted sequence, except the time range is now the user-selected time. After generating the new key-value sequence, the keys are updated in the original JSON object.

[0073] The elements in the JSON array are timestamps. In this case, the processing of each element in the JSON array is the same as the processing of the key value sequence in the previous section. That is, a new time series is generated based on the user-selected time range and the timestamp structure in the original array.

[0074] The value in the JSON object is a timestamp. A timestamp is randomly generated within the time range selected by the user.

[0075] In this disclosure, the demonstration function pages and the non-demonstration function pages (i.e., the real function pages) use the same front-end and back-end. The difference between the two is that the data displayed on the demonstration function pages is the anonymized result data, rather than the real data.

[0076] As an example, in some scenarios, different users have different permissions. On the same functional page, users with the appropriate permissions can view the page normally, and when they click, the frontend sends an ` / api` request to the container. Users without the necessary permissions can only view the demo functional page, and when they click, the frontend sends an ` / demo-api` request to the container. The system intercepts the ` / demo-api` request, preventing it from triggering the original business logic. Instead, after interception, it retrieves the data from the database based on the URI, and then performs data anonymization. If the data contains time series data, it also performs time series adaptation. After processing, the demo functional page data is returned to the frontend, and the user sees the anonymized and time-adapted demo functional page.

[0077] Step S230: Obtain the demonstration function page of the target function based on the demonstration function page data.

[0078] In some exemplary embodiments, obtaining the exemplary function page of the target function based on the exemplary function page data includes:

[0079] The data of the demonstration function page is reorganized into the interface corresponding to the target function to obtain the demonstration function page.

[0080] In some exemplary embodiments, the interface is a container. A container is a collection of interfaces located between components and the platform within an application server. Containers are typically located within the application server and are loaded and maintained by the application server. A container can only exist within one application server, and an application server can create and maintain multiple containers.

[0081] As can be seen from the above, the method for generating exemplary functional pages provided in this disclosure includes: obtaining an instruction to obtain an exemplary functional page for a target function; obtaining non-exemplary functional page data from a pre-constructed non-exemplary functional page database according to the instruction; performing data anonymization processing on the non-exemplary functional page data to obtain exemplary functional page data; and obtaining the exemplary functional page for the target function based on the exemplary functional page data. This disclosure obtains the exemplary functional page for any function by performing data anonymization processing on the non-exemplary functional page data, saving time and effort, and the exemplary functional page data is not randomly obtained, thus having good reliability.

[0082] Furthermore, in this disclosure, when a new business interface is added, sample functional page data and interface configuration information are automatically generated; when the front end requests a regular business interface, it will follow the normal business processing logic, while when it requests a sample functional page interface, it will only follow the sample functional page processing logic, and the sample functional page processing logic does not involve mutual calls of regular business logic; when requesting a sample functional page interface, a dedicated data desensitization algorithm will be executed.

[0083] This disclosure presents a highly versatile solution for implementing sample functional pages. When a new business interface is added, sample functional page data is automatically generated after the first request, eliminating the need for manual addition and demonstrating strong versatility. All logic related to the sample functional pages is written in a universal template. If modifications to the relevant logic are required, only the template needs to be changed, without altering the business interfaces. This makes maintenance very convenient, efficient, and cost-effective.

[0084] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.

[0085] It should be noted that the above description describes some embodiments of this disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0086] Based on the same inventive concept, corresponding to any of the above-described embodiments, this disclosure also provides an apparatus for generating exemplary functional pages.

[0087] refer to Figure 3 The apparatus for generating the demonstration function page includes:

[0088] The non-demonstration function page data acquisition module 310 is configured to acquire a demonstration function page acquisition instruction for a target function, and acquire non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page acquisition instruction.

[0089] The data desensitization module 320 is configured to perform data desensitization processing on the non-demonstration functional page data to obtain the demonstration functional page data.

[0090] The demonstration function page generation module 330 is configured to obtain the demonstration function page of the target function based on the demonstration function page data.

[0091] In some exemplary embodiments, the non-exemplary function page data acquisition module 310 is further configured as follows:

[0092] Obtain a non-demonstration function page acquisition instruction for any function and the non-demonstration function page data corresponding to the non-demonstration function page acquisition instruction;

[0093] Construct a demonstration function page retrieval instruction for this function based on the non-demonstration function page retrieval instruction for this function;

[0094] The data pair consisting of the instruction obtained from the demonstration function page and the data from the non-demonstration function page is stored in the non-demonstration function page database.

[0095] In some exemplary embodiments, the non-demonstration function page acquisition instruction includes a Uniform Resource Identifier; the non-demonstration function page data acquisition module 310 is specifically configured as follows:

[0096] Replace the first preset character in the Uniform Resource Identifier that represents a non-demonstration function page retrieval instruction type with a second preset character that represents a demonstration function page retrieval instruction type.

[0097] In some exemplary embodiments, before performing data anonymization processing on the non-exemplary functional page data to obtain the exemplary functional page data, the data anonymization module 320 is further configured to:

[0098] The non-demonstration functional page data is traversed by a recursive algorithm, and the non-demonstration functional page data is divided into time series data and non-time series data.

[0099] In some exemplary embodiments, before traversing the non-exemplary functional page data using a recursive algorithm, the data desensitization module 320 is further configured to:

[0100] The non-demonstration function page data is divided into arrays and objects based on preset symbols in the non-demonstration function page data.

[0101] In some exemplary embodiments, the data desensitization module 320 is specifically configured as follows:

[0102] In response to determining that the non-demonstration function page data is an array, each element in the array is traversed, and a recursive operation is performed on each element;

[0103] In response to determining that the non-demonstration function page data is an object, each key-value pair is traversed, a recursive operation is performed on each key-value pair, and a recursive operation is performed on the value in the key-value pair.

[0104] In response to determining that the data of the non-demonstration function page is neither an array nor an object, no recursive operation is performed.

[0105] In some exemplary embodiments, the non-exemplary functional page data is the time-series data; the data desensitization module 320 is specifically configured as follows:

[0106] In response to determining that the key in the object is a timestamp, the time series data is updated based on the time range selected by the user and the timestamp in the object;

[0107] In response to determining that an element in the array is a timestamp, the time series data is updated according to the time range selected by the user and the timestamps in the array;

[0108] In response to the value in the determined object being a timestamp, a timestamp is randomly generated within the time range selected by the user.

[0109] In some exemplary embodiments, the non-exemplary functional page data is the non-time-series data; the data desensitization module 320 is specifically configured as follows:

[0110] Determine the index of the array or the key of the object. In response to determining that the value of the non-demonstration function page data that is neither an array nor an object is a numeric type, multiply the value by a random number within a preset range to obtain a processed value, and put the processed value into the array or object.

[0111] In some exemplary embodiments, the exemplary functional page generation module 330 is specifically configured as follows:

[0112] The data of the demonstration function page is reorganized into the interface corresponding to the target function to obtain the demonstration function page.

[0113] For ease of description, the above apparatus is described in terms of its functions, divided into various modules. Of course, in implementing this disclosure, the functions of each module can be implemented in one or more software and / or hardware.

[0114] The apparatus of the above embodiments is used to implement the method for generating the corresponding exemplary functional page in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0115] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the exemplary function page generation method described in any of the above embodiments.

[0116] Figure 4 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0117] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0118] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0119] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0120] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0121] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0122] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0123] The electronic devices described above are used to implement the method for generating the corresponding exemplary function pages in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0124] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the exemplary function page generation method as described in any of the above embodiments.

[0125] The aforementioned non-transitory computer-readable storage media can be any available medium or data storage device that a computer can access, including but not limited to magnetic storage (e.g., floppy disks, hard disks, magnetic tapes, magneto-optical disks (MOs), etc.), optical storage (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND flash), solid-state drives (SSDs)).

[0126] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the exemplary function page generation method as described in any of the embodiments in the exemplary method section above, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0127] Those skilled in the art will recognize that embodiments of this disclosure can be implemented as a system, method, or computer program product. Therefore, this disclosure can be implemented as entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this disclosure can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.

[0128] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (not exhaustive) of a computer-readable storage medium may include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0129] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0130] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0131] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0132] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that, when executed by a computer or other programmable data processing device, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0133] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce a product comprising an instruction apparatus that implements the functions / operations specified in the boxes of a flowchart and / or block diagram.

[0134] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable apparatus can provide a process for implementing the functions / operations specified in the boxes of a flowchart and / or block diagram.

[0135] Furthermore, although the operations of the methods of this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Rather, the steps depicted in the flowcharts may be executed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0136] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar terms used in the embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0137] While the spirit and principles of this disclosure have been described with reference to several specific embodiments, it should be understood that this disclosure is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the appended claims is to be interpreted in the broadest sense, thereby encompassing all such modifications and equivalent structures and functions.

Claims

1. A method for generating a demonstrative functional page, characterized in that, include: Obtain a demonstration function page retrieval instruction for the target function, and retrieve non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page retrieval instruction; Data anonymization processing is performed on the non-demonstration function page data to obtain the demonstration function page data; Based on the data of the demonstration function page, the demonstration function page of the target function is obtained; The non-demonstration function page data is time-series data; The process of desensitizing the non-demonstration functional page data to obtain demonstration functional page data includes: In response to determining that the key in the object is a timestamp, the time series data is updated according to the time range selected by the user and the timestamp in the object; the number of keys and time intervals in the updated time series data remain the same as before the update, and the time range is the time range selected by the user. In response to determining that an element in the array is a timestamp, the time series data is updated according to the time range selected by the user and the timestamps in the array; the number of elements and the time interval in the updated time series data remain the same as before the update, and the time range is the time range selected by the user. In response to the value in the determined object being a timestamp, a timestamp is randomly generated within the time range selected by the user.

2. The method according to claim 1, characterized in that, The method further includes: Obtain a non-demonstration function page acquisition instruction for any function and the non-demonstration function page data corresponding to the non-demonstration function page acquisition instruction; Construct a demonstration function page retrieval instruction for this function based on the non-demonstration function page retrieval instruction for this function; The data pair consisting of the instruction obtained from the demonstration function page and the data from the non-demonstration function page is stored in the non-demonstration function page database.

3. The method according to claim 2, characterized in that, The instructions for obtaining the non-demonstration function page include a Uniform Resource Identifier; The step of constructing a demonstration function page retrieval instruction for a function based on a non-demonstration function page retrieval instruction for that function includes: Replace the first preset character in the Uniform Resource Identifier that represents a non-demonstration function page retrieval instruction type with a second preset character that represents a demonstration function page retrieval instruction type.

4. The method according to claim 1, characterized in that, Before performing data anonymization processing on the non-demonstration functional page data to obtain the demonstration functional page data, the method further includes: The non-demonstration function page data is traversed by a recursive algorithm, and the non-demonstration function page data is divided into time series data and non-time series data.

5. The method according to claim 4, characterized in that, Before traversing the non-demonstration function page data using a recursive algorithm, the method further includes: The non-demonstration function page data is divided into arrays and objects based on preset symbols in the non-demonstration function page data.

6. The method according to claim 5, characterized in that, The step of traversing the non-demonstration function page data using a recursive algorithm includes: In response to determining that the non-demonstration function page data is an array, each element in the array is traversed, and a recursive operation is performed on each element; In response to determining that the non-demonstration function page data is an object, each key-value pair is traversed, a recursive operation is performed on each key-value pair, and a recursive operation is performed on the value in the key-value pair. In response to determining that the data of the non-demonstration function page is neither an array nor an object, no recursive operation is performed.

7. The method according to claim 6, characterized in that, The non-demonstration functional page data is the non-time series data; The process of desensitizing the non-demonstration functional page data to obtain demonstration functional page data includes: Determine the index of the array or the key of the object. In response to determining that the value of the non-demonstration function page data that is neither an array nor an object is a numeric type, multiply the value by a random number within a preset range to obtain a processed value, and put the processed value into the array or object.

8. The method according to claim 1, characterized in that, The step of obtaining the exemplary function page of the target function based on the exemplary function page data includes: The data of the demonstration function page is reorganized into the interface corresponding to the target function to obtain the demonstration function page.

9. An apparatus for generating a demonstrative functional page, characterized in that, include: The non-demonstration function page data acquisition module is configured to acquire a demonstration function page acquisition instruction for a target function, and acquire non-demonstration function page data from a pre-built non-demonstration function page database according to the demonstration function page acquisition instruction. The data anonymization module is configured to perform data anonymization processing on the non-demonstration functional page data to obtain the demonstration functional page data. The demonstration function page generation module is configured to obtain the demonstration function page of the target function based on the demonstration function page data; The non-demonstration function page data is time-series data; The data desensitization module is specifically configured as follows: In response to determining that the key in the object is a timestamp, the time series data is updated according to the time range selected by the user and the timestamp in the object; the number of keys and time intervals in the updated time series data remain the same as before the update, and the time range is the time range selected by the user. In response to determining that an element in the array is a timestamp, the time series data is updated according to the time range selected by the user and the timestamps in the array; the number of elements and the time interval in the updated time series data remain the same as before the update, and the time range is the time range selected by the user. In response to the value in the determined object being a timestamp, a timestamp is randomly generated within the time range selected by the user.

10. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the method as described in any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium stores computer instructions for causing the computer to perform the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • Desensitized data implementation method, device, system and equipment and storage medium

    CN114117498A

  • Data processing method and device, terminal equipment and storage medium

    CN114691485A