A page service processing method, device, equipment and storage medium

Through the software development toolkit SDK, the problem of high cost of landing page development is solved, efficient page development and interactive decoupling is achieved, and it is suitable for rapid development of pages with similar structures.

CN114780262BActive Publication Date: 2025-07-11BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210467942.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-07-11
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the prior art, the development cost and cycle of landing pages are relatively long, and the code modification of different landing pages is complicated, resulting in low development efficiency.

Method used

The page parameters of the target page are obtained through the software development toolkit SDK, the monitoring interface is initialized, the data processing request is listened to, the initial data collection is obtained from the server, the analysis is processed as the target data collection, and the return it to the client for rendering, realizing the decoupling of business logic and page interaction.

Benefits of technology

Reduces duplicate development, reduces development costs, improves page development efficiency, and is easy to modify and reuse in target pages with similar structures and processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114780262B_ABST
    Figure CN114780262B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a page service processing method, apparatus, device, and storage medium, which are applied to a software development kit (SDK), and include: obtaining page parameters of a target page; initializing a listening interface according to the page parameters, and listening to the target page through the listening interface; after a data processing request of the target page is monitored, obtaining an initial data set corresponding to the target page from a server; parsing and processing the data in the initial data set according to the page parameters to obtain a target data set; and returning the target data set to a client corresponding to the target page, so that the client renders the target data. In this way, the decoupling of business logic and page interaction can be achieved. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thereby reducing repeated development, lowering development costs, and improving page development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technologies, and in particular, to a page service processing method, apparatus, device, and storage medium. Background Art

[0002] With the development of the Internet, the need for content landing pages aggregated in the form of themes has emerged. A landing page refers to the page displayed when a user clicks on any content or uses a search engine to search. In the landing page, extended content related to the clicked content or search result link will be displayed.

[0003] In the related art, the display method of the landing page usually relies on the single-page development of the development team, that is, each landing page needs to be developed separately, resulting in a long implementation cost and cycle, and a lot of repetitive work. Moreover, different landing pages usually use the same content request return method. If there is an adjustment to the content request return method, then all the landing page codes need to be modified uniformly, thus consuming a large amount of development costs. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide a page service processing method, apparatus, device, and storage medium to reduce the development cost and cycle. The specific technical solutions are as follows:

[0005] The present invention provides a page service processing method, which is applied to a software development kit (SDK). The method includes:

[0006] Obtain the page parameters of the target page;

[0007] According to the page parameters, initialize the listening interface, and listen to the target page through the listening interface;

[0008] After a data processing request of the target page is monitored, obtain an initial data set corresponding to the target page from the server;

[0009] According to the page parameters, parse and process the data in the initial data set to obtain a target data set;

[0010] Return the target data set to the client corresponding to the target page, so that the client renders the target data.

[0011] Optionally, the page parameters include a preset data structure. The step of parsing and processing the data in the initial data set according to the page parameters to obtain a target data set includes:

[0012] Process the data in the initial data set into target data of the preset data structure to obtain a target data set.

[0013] Optionally, returning the target data set to the client corresponding to the target page includes:

[0014] After detecting a data display request on the target page, determining target data that matches the data display request from the target data set;

[0015] Returning the determined target data to the client corresponding to the target page.

[0016] Optionally, determining target data that matches the data display request from the target data set includes:

[0017] Querying the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0018] Optionally, after returning the target data to the client corresponding to the target page, the method further includes:

[0019] Generating a data processing log for the data sent by the client of the target page, where the data processing log includes the page log information of the target page and the interface log information of the listening interface corresponding to the target page;

[0020] Uploading the data processing log to the server.

[0021] The present invention also discloses a page service processing system, and the system includes:

[0022] A client for uploading page parameters of a target page;

[0023] A software development kit (SDK) for obtaining the page parameters; initializing a listening interface according to the page parameters, and listening to the target page through the listening interface;

[0024] The client is further configured to obtain a data processing request for the target page;

[0025] The software development kit (SDK) is further configured to request an initial data set corresponding to the target page from the server after detecting the data processing request for the target page;

[0026] The server is configured to return the initial data set to the software development kit (SDK);

[0027] The software development kit (SDK) is further configured to parse and process the data in the initial data set according to the page parameters to obtain a target data set; and return the target data set to the client;

[0028] The client is further configured to render the target data.

[0029] Optionally, the page parameters include a preset data structure, and the software development kit (SDK) is specifically configured to:

[0030] Process the data in the initial data set into target data of the preset data structure to obtain a target data set.

[0031] Optionally, the client is further configured to receive a data display request for the target page;

[0032] The software development kit (SDK) is specifically configured to, after detecting the data display request, determine target data matching the data display request from the target data set; and return the determined target data to the client.

[0033] Optionally, the software development kit (SDK) is specifically configured to:

[0034] Query, from the target data set, target data corresponding to the data display request according to the data identifier and / or location information carried in the data display request.

[0035] Optionally, the software development kit (SDK) is further configured to generate a data processing log for the client of the target page, where the data processing log includes page log information of the target page and interface log information of the listening interface corresponding to the target page; and upload the data processing log to the server.

[0036] The present invention also discloses a page service processing device applied to a software development kit (SDK). The device includes:

[0037] A parameter acquisition module, configured to acquire page parameters of a target page;

[0038] A listening module, configured to initialize a listening interface according to the page parameters and listen to the target page through the listening interface;

[0039] A data acquisition module, configured to, after detecting a data processing request for the target page, acquire an initial data set corresponding to the target page from a server;

[0040] An analysis module, configured to analyze and process the data in the initial data set according to the page parameters to obtain a target data set;

[0041] A return module, configured to return the target data set to the client corresponding to the target page, so that the client can render the target data.

[0042] Optionally, the page parameters include a preset data structure, and the parsing module is configured to:

[0043] Process the data in the initial data set into target data of the preset data structure to obtain a target data set.

[0044] Optionally, the return module is configured to:

[0045] After detecting a data display request on the target page, determine target data matching the data display request from the target data set;

[0046] Return the determined target data to the client corresponding to the target page.

[0047] Optionally, the return module is configured to:

[0048] Query target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0049] Optionally, the device further includes:

[0050] A log module, configured to generate a data processing log of the client of the target page, where the data processing log includes page log information of the target page and interface log information of the listening interface corresponding to the target page; and upload the data processing log to the server.

[0051] The present invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus;

[0052] The memory is used to store a computer program;

[0053] When the processor is configured to execute the program stored in the memory, it implements any of the above method steps.

[0054] In another aspect of the implementation of the present invention, there is also provided a computer-readable storage medium, in which instructions are stored. When the instructions run on a computer, the computer is caused to execute any of the above page service processing methods.

[0055] In yet another aspect of the implementation of the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, causes the computer to execute any one of the above-described page service processing methods.

[0056] In the solution provided by the embodiment of the present invention, the software development kit (SDK) obtains the page parameters of the target page; initializes the listening interface according to the page parameters, and listens to the target page through the listening interface; after detecting a data processing request for the target page, obtains the initial data set corresponding to the target page from the server; parses and processes the data in the initial data set according to the page parameters to obtain the target data set; and returns the target data set to the client corresponding to the target page so that the client can render the target data.

[0057] In this way, through the software development kit (SDK), it is possible to obtain the page parameters of the target page on the client, obtain the target data set from the server, and then return the target data set to the client, thereby decoupling the business logic from the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thus reducing repetitive development, lowering development costs, and improving page development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art.

[0059] Figure 1 It is a schematic flowchart of a page service processing method provided by an embodiment of the present invention;

[0060] Figure 2 It is a schematic diagram of a solution of a page service processing method provided by an embodiment of the present invention;

[0061] Figure 3 It is an interaction schematic diagram of a page service processing system provided by an embodiment of the present invention;

[0062] Figure 4 It is a schematic structural diagram of a page service processing device provided by an embodiment of the present invention;

[0063] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0064] The following will describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0065] The following will describe in detail the page service processing method provided by the embodiments of the present invention through specific embodiments.

[0066] As Figure 1 shown, it is a flowchart of the page service processing method provided by the embodiments of the present invention. This method is applied to a Software Development Kit (SDK) and includes:

[0067] S11: Obtain the page parameters of the target page.

[0068] The Software Development Kit (SDK) is the Software Development Kit, which refers to a collection of relevant documents, examples, and tools for assisting in the development of a certain type of software. In the present invention, developers encapsulate relevant business logics to obtain the SDK, and then the client runs the SDK to implement corresponding services. One SDK can be applied by multiple clients, thereby improving the development efficiency of developers.

[0069] Among them, the target page is the page requested by the client. Usually, various contents are included in the target page. As the user performs operations such as pulling down and refreshing the target page, the client needs to render and display the corresponding contents. The page parameters are the relevant parameters corresponding to the target page, which can be used to request relevant data of the target page or display relevant data. For example, the page parameters can include the name, type, and resource address of the target page, and can also include the size of the target page, the positions of each window in the target page, window identifiers, and window types, etc., without specific limitations.

[0070] S12: Initialize the listening interface according to the page parameters, and listen to the target page through the listening interface.

[0071] According to the page parameters, the listening interface can be initialized so that the listening interface can be used to listen to requests in the target page, thereby facilitating the response to the listened requests. Among them, the listening interface can adopt the publish-subscribe mode. The publish-subscribe mode defines a one-to-many dependency relationship, allowing multiple subscriber objects to listen to a certain topic object at the same time. When this topic object changes its own state, it will notify all subscriber objects so that they can automatically update their own states. That is to say, multiple SDKs can listen to a target page.

[0072] S13: After listening to the data processing request of the target page, obtain the initial data set corresponding to the target page from the server.

[0073] Among them, the data processing request can be generated in response to a preset operation of the user on the target page, such as refreshing the page, pulling down the page, or clicking an operation on a certain button on the page, and so on. The data processing request corresponding to the target page can be one type, or can include multiple types. Multiple data processing requests can correspond to different initial data sets, or can also correspond to the same initial data set. The present invention does not make any limitation on this, and can be set according to the application scenario of the target page and the user requirements.

[0074] For example, in a target page with a single theme, multiple different data processing requests may be generated. Each data processing request can correspond to different data of this theme. For example, a certain data processing request is used to request video data related to this theme, and another data processing request is used to request relevant content in any data format of sub-themes under this theme classification, and so on. There is no specific limitation.

[0075] After the SDK monitors the data processing request of the target page, it can obtain the corresponding initial data set from the server according to the data processing request. In the initial data set, there are usually multiple initial data corresponding to the data processing request. These initial data can be applied to various different pages, have a relatively complex data structure, and a large amount of data.

[0076] S14: Parse and process the data in the initial data set according to the page parameters to obtain a target data set.

[0077] In one implementation manner, the page parameters include a preset data structure, which is also the data structure corresponding to the target page. In other words, in the target page, data with the preset data structure can be displayed. As can be seen from the foregoing, the data structure of the initial data is relatively complex and the amount of data is large.

[0078] Then, in this step, the specific steps of parsing and processing the data in the initial data set according to the page parameters to obtain a target data set include: processing the data in the initial data set into target data with a preset data structure to obtain a target data set.

[0079] That is to say, parse and process the initial data in the initial data set, and convert the initial data into target data with a preset data structure. In this way, on the one hand, the obtained target data can better adapt to the target page, facilitating the analysis, rendering, and display of data by the target page in the subsequent process. On the other hand, the initial data can be compressed, and redundant partial information can be deleted, making the data obtained by the client more concise and the amount of data smaller.

[0080] It can be understood that the target page can correspond to multiple different data processing requests. Different data processing requests usually correspond to different target data sets. In other words, information such as environment variables or display positions corresponding to different data processing requests and different target data sets is also different. Then, the target data corresponding to each data processing request can be hierarchically stored in the form of data processing request - target data set - target data, that is, according to the data processing request, first query the corresponding target data set, and then query the corresponding target data from the target data set. Among them, the target data or target data set can be queried according to the position information corresponding to different target data or target data sets, or the target data or target data set can be queried according to the data identifiers corresponding to different target data or target data sets, without specific limitation.

[0081] S15: Return the target data set to the client corresponding to the target page so that the client can render the target data.

[0082] In this step, the SDK returns the target data to the client, and the client can then render the target data to achieve the display of the data corresponding to the data processing request on the target page. Among them, the SDK can return the target data set to the client at one time, reducing the number of data interactions between the SDK and the client and improving the data transmission efficiency. Or, the SDK can further respond to the data display request of the target page and return the required partial target data to the client each time.

[0083] For example, in one implementation, the step of returning the target data set to the client corresponding to the target page may include: after detecting the data display request on the target page, determining the target data that matches the data display request from the target data set; returning the determined target data to the client corresponding to the target page.

[0084] Among them, the data display request can be bound to the page event of the target page. That is to say, different page events can trigger corresponding data display requests. For example, if there is a video playback window on the target page, then after the video playback window is displayed on the target page for more than a preset duration, the client can generate a corresponding data display request to enable the SDK to return the target data corresponding to the video playback window to the client.

[0085] In this way, it is possible to avoid the problem that the client receives too much target data at one time, resulting in a slowdown in the client's processing speed, and further improve the processing efficiency of the target data and the rendering efficiency of the target page.

[0086] Further, the step of determining target data matching the data display request from the target data set may include: querying the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0087] As can be seen from the foregoing, the SDK can hierarchically store the target data in the target data set in the form of data processing request - target data set - target data. The target data set and the target data may have different data identifiers or correspond to different location information. In this way, the SDK can query the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0088] Among them, the location information may refer to the coordinates of the display position of the target data on the target page, or may also refer to the location identifier of the target data on the target page. For example, each display window on the target page is sorted in the order from top to bottom and from left to right, and its serial number can be used as the location identifier of the display window.

[0089] In the embodiment of the present invention, after returning the target data to the client corresponding to the target page, a data processing log of the target page may also be generated. The data processing log includes the page log information of the target page and the interface log information of the listening interface corresponding to the target page; then, the data processing log is uploaded to the server.

[0090] Among them, the page log information is the relevant log information of the target page, including but not limited to page parameter information, rendering information, user behavior information, etc. The interface log information is the log information related to the SDK, including but not limited to listening interface initialization information, data processing request information, data reporting information, etc., and is not specifically limited. In this way, by uploading the data processing log, the log upload process can be improved, which helps developers analyze the display situation of the target page, accurately locate and troubleshoot problems.

[0091] As Figure 2 shown, it is a schematic diagram of a solution logic provided by an embodiment of the present invention. This solution includes four relevant modules, namely a service entry module, a request processing module, an advertisement information module, and an advertisement data module.

[0092] First, in the service entry module, the target page sends page parameters to the SDK for SDK initialization; the SDK initializes the listening interface according to the page parameters and listens to the target page through the listening interface. Then, in the request processing module, the SDK listens to the data processing request of the target page, requests the initial data set corresponding to the target page from the server, and returns the data feedback result of the server to the target page. At the same time, the advertising information module can parse and process the data in the initial data set according to the page parameters to obtain the target data set and bind page events. In the advertising data module, after the SDK listens to the data display request of the target page, it determines the target data that matches the data display request from the target data set and returns the determined target data to the client; furthermore, the client can render the target data.

[0093] In one implementation, more independent service modules can also be abstracted, such as a general page rendering module, etc., to form a component library for the general services of the target page, etc., so as to develop the target page at a lower cost. In addition, data buried points can be flexibly configured during the log feedback process to further facilitate developers to perform data detection with a rich and complete link.

[0094] As can be seen from the above, the solution provided by the embodiment of the present invention can obtain the page parameters of the target page on the client through the software development kit (SDK), obtain the target data set from the server, and then return the target data set to the client, so as to decouple the business logic from the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interlinked processes, which is easy to modify and reuse, thus reducing duplicate development, lowering the development cost, and improving the page development efficiency.

[0095] As Figure 3 shown, the embodiment of the present invention also provides a page service processing system, which includes a client, an SDK, and a server. Specifically, it includes the following steps:

[0096] S21: The client uploads the page parameters of the target page.

[0097] Among them, the target page is the page requested by the client. Usually, the target page includes various contents. As the user performs operations such as pulling down and refreshing the target page, the client needs to render and display the corresponding contents. The page parameters are the relevant parameters corresponding to the target page, which can be used to request the relevant data of the target page or display the relevant data. For example, the page parameters can include the name, type, and resource address of the target page, and can also include the size of the target page, the positions of each window in the target page, window identifiers, and window types, etc., without specific limitations.

[0098] S22: The SDK obtains the page parameters; based on the page parameters, initializes the listening interface, and listens to the target page through the listening interface.

[0099] Based on the page parameters, the listening interface can be initialized so that the listening interface can be used to listen to the requests in the target page, thereby facilitating the response to the listened requests. Among them, the listening interface can adopt the publish-subscribe mode. The publish-subscribe mode defines a one-to-many dependency relationship, allowing multiple subscriber objects to listen to a certain topic object at the same time. When this topic object changes its own state, it will notify all subscriber objects, enabling them to automatically update their own states. That is to say, multiple SDKs can listen to a target page.

[0100] S23: The client obtains the data processing request of the target page.

[0101] Among them, the data processing request can be generated in response to a preset operation of the user on the target page, such as refreshing the page, pulling down the page, or clicking on a certain button on the page, etc. The data processing requests corresponding to the target page can be one type or include multiple types. Multiple data processing requests can correspond to different initial data sets or the same initial data set. The present invention does not make any limitations on this and can be set according to the application scenario of the target page and the user's needs.

[0102] For example, in a target page with a single theme, multiple different data processing requests may be generated. Each data processing request can correspond to different data of this theme. For example, a certain data processing request is used to request video data related to this theme, and another data processing request is used to request the relevant content in any data format of the sub-themes under this theme classification, etc., without specific limitations.

[0103] S24: After the SDK listens to the data processing request of the target page, it requests the initial data set corresponding to the target page from the server.

[0104] S25: The server returns the initial data set to the SDK.

[0105] After the SDK listens to the data processing request of the target page, it can obtain the corresponding initial data set from the server according to the data processing request. In the initial data set, there are usually multiple initial data corresponding to the data processing request. These initial data can be applied to various different pages, have a relatively complex data structure, and a large amount of data.

[0106] S26: The SDK parses and processes the data in the initial data set according to the page parameters to obtain the target data set.

[0107] S27: The SDK returns the target data set to the client.

[0108] In one implementation, the page parameters include a preset data structure, which is the data structure corresponding to the target page. In other words, on the target page, the data of the preset data structure can be displayed. As mentioned above, the data structure of the initial data is relatively complex and the amount of data is large.

[0109] Then, in this step, the specific steps of parsing and processing the data in the initial data set according to the page parameters to obtain the target data set include: processing the data in the initial data set into target data of the preset data structure to obtain the target data set.

[0110] That is to say, the initial data in the initial data set is parsed and processed, and the initial data is converted into target data with a preset data structure. In this way, on the one hand, the obtained target data can better adapt to the target page, facilitating the analysis, rendering, and display of data on the target page in the subsequent process. On the other hand, the initial data can be compressed, and redundant partial information can be deleted, making the data obtained by the client more concise and the amount of data smaller.

[0111] It can be understood that the target page can correspond to multiple different data processing requests. Different data processing requests usually correspond to different target data sets. In other words, the information such as environmental variables or display positions corresponding to different data processing requests and different target data sets is also different. Then, the target data corresponding to each data processing request can be stored hierarchically in the form of data processing request - target data set - target data, that is, according to the data processing request, first query the corresponding target data set, and then query the corresponding target data from the target data set. Among them, the target data or target data set can be queried according to the position information corresponding to different target data or target data sets, or the target data or target data set can be queried according to the data identifiers corresponding to different target data or target data sets, and the specific method is not limited.

[0112] S28: The client renders the target data.

[0113] In one implementation, the page parameters include a preset data structure, and the software development kit (SDK) is specifically used to: process the data in the initial data set into target data of the preset data structure to obtain the target data set.

[0114] In this step, the SDK returns the target data to the client, and the client can then render the target data to achieve the display of the data corresponding to the data processing request on the target page. Among them, the SDK can return the target data set to the client at one time, reducing the number of data interactions between the SDK and the client and improving the data transmission efficiency. Alternatively, the SDK can further respond to the data display request of the target page and return the required part of the target data to the client each time.

[0115] For example, in one implementation, the step of returning the target data set to the client corresponding to the target page may include: after detecting the data display request on the target page, determining the target data that matches the data display request from the target data set; and returning the determined target data to the client corresponding to the target page.

[0116] Among them, the data display request can be bound to the page event of the target page. That is to say, different page events can trigger corresponding data display requests. For example, if there is a video playback window on the target page, then after the video playback window is displayed on the target page for more than a preset duration, the client can generate a corresponding data display request to enable the SDK to return the target data corresponding to the video playback window to the client.

[0117] In this way, it is possible to avoid the problem that the client receives too much target data at one time, resulting in a slowdown in the client's processing speed, and further improve the processing efficiency of the target data and the rendering efficiency of the target page.

[0118] Furthermore, the step of determining the target data that matches the data display request from the target data set may include: querying the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0119] As can be seen from the foregoing, the SDK can hierarchically store the target data in the target data set in the form of data processing request - target data set - target data. The target data set and the target data may have different data identifiers or correspond to different location information. In this way, the SDK can query the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

[0120] Among them, the location information may refer to the coordinates of the display position of the target data on the target page, or it may also refer to the location identifier of the target data on the target page. For example, each display window on the target page is sorted from top to bottom and from left to right, and its serial number can be used as the location identifier of the display window.

[0121] In an embodiment of the present invention, after returning the target data to the client corresponding to the target page, a data processing log of the client sending data of the target page may also be generated. The data processing log includes page log information of the target page and interface log information of the listening interface corresponding to the target page. Then, the data processing log is uploaded to the server.

[0122] Among them, the page log information is the relevant log information of the target page, including but not limited to page parameter information, rendering information, user behavior information, etc. The interface log information is the log information related to the SDK, including but not limited to listening interface initialization information, data processing request information, data reporting information, etc., and is not specifically limited. In this way, by uploading the data processing log, the log upload process can be improved, which helps developers analyze the display situation of the target page and accurately locate and troubleshoot problems.

[0123] As can be seen from the above, the solution provided by the embodiment of the present invention can obtain the page parameters of the target page of the client through the software development kit (SDK), obtain the target data set from the server, and then return the target data set to the client, so as to decouple the business logic from the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thereby reducing duplicate development, lowering the development cost, and improving the page development efficiency.

[0124] As Figure 4 shown, the embodiment of the present invention also provides a structural schematic diagram of a page service processing device, which is applied to the software development kit (SDK). The device includes:

[0125] A parameter acquisition module 301, configured to acquire page parameters of a target page;

[0126] A listening module 302, configured to initialize a listening interface according to the page parameters and listen to the target page through the listening interface;

[0127] A data acquisition module 303, configured to acquire an initial data set corresponding to the target page from the server after a data processing request of the target page is listened to;

[0128] An analysis module 304, configured to analyze and process the data in the initial data set according to the page parameters to obtain a target data set;

[0129] A return module 305, configured to return the target data set to the client corresponding to the target page so that the client renders the target data.

[0130] In one implementation, the page parameters include a preset data structure, and the analysis module 304 is configured to:

[0131] Process the data in the initial data set into the target data of the preset data structure to obtain a target data set.

[0132] In one implementation, the return module 305 is configured to:

[0133] After monitoring a data display request for the target page, determine target data matching the data display request from the target data set;

[0134] Return the determined target data to the client corresponding to the target page.

[0135] In one implementation, the return module 305 is configured to:

[0136] Query, from the target data set, target data corresponding to the data display request according to the data identifier and / or location information carried in the data display request.

[0137] In one implementation, the device further includes:

[0138] A log module, configured to generate a data processing log for the data sent by the client of the target page, where the data processing log includes the page log information of the target page and the interface log information of the listening interface corresponding to the target page; and upload the data processing log to the server.

[0139] As can be seen from the above, the solution provided by the embodiments of the present invention can obtain the page parameters of the target page of the client through the software development kit (SDK), obtain the target data set from the server, and then return the target data set to the client, thereby decoupling the business logic from the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thereby reducing repeated development, lowering the development cost, and improving the page development efficiency.

[0140] The embodiments of the present invention further provide an electronic device, as Figure 5 shown, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504. Among them, the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0141] The memory 503 is used to store a computer program;

[0142] The processor 501, when executing the program stored in the memory 503, implements the following steps:

[0143] Obtain the page parameters of the target page;

[0144] Initialize a listening interface according to the page parameters, and monitor the target page through the listening interface;

[0145] After a data processing request of the target page is monitored, obtain an initial data set corresponding to the target page from the server;

[0146] Parse and process the data in the initial data set according to the page parameters to obtain a target data set;

[0147] Return the target data set to the client corresponding to the target page, so that the client can render the target data.

[0148] As can be seen from the above, the solution provided by the embodiment of the present invention can obtain the page parameters of the target page of the client through the software development kit (SDK), obtain the target data set from the server, and then return the target data set to the client, thereby realizing the decoupling of the business logic and the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thus reducing repeated development, lowering the development cost, and improving the page development efficiency.

[0149] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is used in the figure to represent it, but it does not mean that there is only one bus or one type of bus.

[0150] The communication interface is used for communication between the above terminal and other devices.

[0151] The memory may include a Random Access Memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.

[0152] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU for short), a Network Processor (NP for short), etc.; it may also be a Digital Signal Processor (DSP for short), an Application Specific Integrated Circuit (ASIC for short), a Field-Programmable Gate Array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0153] In another embodiment provided by the present invention, there is also provided a computer-readable storage medium storing instructions, which, when running on a computer, cause the computer to execute the page service processing method described in any one of the above embodiments.

[0154] In another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, cause the computer to execute the page service processing method described in any one of the above embodiments.

[0155] As can be seen from the above, the solution provided by the embodiments of the present invention can obtain the page parameters of the target page of the client through the Software Development Kit (SDK), obtain the target data set from the server, and then return the target data set to the client, thereby decoupling the business logic from the page interaction. Due to the portability of the SDK, it can be applied to the development of different target pages with similar structures and interconnected processes, which is easy to modify and reuse, thus reducing repetitive development, lowering the development cost, and improving the page development efficiency.

[0156] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0157] It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also other elements not expressly listed, or elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.

[0158] Each embodiment in this specification is described in a related manner. The same or similar parts between the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

[0159] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are all included within the protection scope of the present invention.

Claims

1. A page service processing method, characterized in that, Applied to a software development kit (SDK), the method includes: Obtain the page parameters of the target page; According to the page parameters, initialize the listening interface and listen to the target page through the listening interface; After detecting a data processing request for the target page, obtain the initial data set corresponding to the target page from the server; According to the page parameters, parse and process the data in the initial data set to obtain the target data set; Return the target data set to the client corresponding to the target page so that the client can render the target data; the target data is queried and obtained from the target data set based on a data display request; the data display request is triggered by a page event of the target page; Among them, the page parameters include a preset data structure, and according to the page parameters, parsing and processing the data in the initial data set to obtain the target data set includes: Process the data in the initial data set into target data of the preset data structure to obtain the target data set.

2. The method according to claim 1, wherein The returning the target data set to the client corresponding to the target page includes: After detecting a data display request for the target page, determine the target data matching the data display request from the target data set; Return the determined target data to the client corresponding to the target page.

3. The method according to claim 2, wherein The determining the target data matching the data display request from the target data set includes: Query the target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

4. The method according to claim 1, characterized in that, After returning the target data to the client corresponding to the target page, the method further includes: Generate a data processing log of the client of the target page, where the data processing log includes the page log information of the target page and the interface log information of the listening interface corresponding to the target page; Upload the data processing log to the server.

5. A page service processing system, characterized in that, The system includes: A client for uploading the page parameters of the target page; A software development kit (SDK) for obtaining the page parameters; initializing the listening interface according to the page parameters and listening to the target page through the listening interface; The client is further used to obtain the data processing request of the target page; The software development kit (SDK) is further used to request the initial data set corresponding to the target page from the server after detecting the data processing request of the target page; The server is used to return the initial data set to the software development kit (SDK); The software development kit (SDK) is further used to parse and process the data in the initial data set according to the page parameters to obtain the target data set; return the target data set to the client; The client is further configured to render the target data; the target data is queried and obtained from the target data set based on a data display request; the data display request is triggered by a page event of the target page; Wherein, the page parameters include a preset data structure, and the software development kit (SDK) is specifically configured to: Process the data in the initial data set into target data of the preset data structure to obtain a target data set.

6. The system according to claim 5, wherein, The client is further configured to receive a data display request for the target page; The software development kit (SDK) is specifically configured to, after detecting the data display request, determine target data matching the data display request from the target data set; and return the determined target data to the client.

7. The system according to claim 6, wherein The software development kit (SDK) is specifically configured to: Query target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

8. The system according to claim 5, wherein, The software development kit (SDK) is further configured to generate a data processing log of the data sent by the client of the target page, where the data processing log includes page log information of the target page and interface log information of the listening interface corresponding to the target page; and upload the data processing log to the server.

9. A page service processing device, characterized in that, Applied to a software development kit (SDK), the apparatus includes: A parameter acquisition module, configured to acquire page parameters of a target page; A listening module, configured to initialize a listening interface according to the page parameters and listen to the target page through the listening interface; A data acquisition module, configured to, after detecting a data processing request for the target page, acquire an initial data set corresponding to the target page from a server; An analysis module, configured to analyze and process the data in the initial data set according to the page parameters to obtain a target data set; A return module, configured to return the target data set to the client corresponding to the target page, so that the client renders the target data; the target data is queried and obtained from the target data set based on a data display request; the data display request is triggered by a page event of the target page; Wherein, the page parameters include a preset data structure, and the analysis module is configured to: Process the data in the initial data set into target data of the preset data structure to obtain a target data set.

10. The device according to claim 9, wherein The return module is configured to: After detecting a data display request on the target page, determine target data matching the data display request from the target data set; Return the determined target data to the client corresponding to the target page.

11. The device according to claim 10, wherein The return module is configured to: Query target data corresponding to the data display request from the target data set according to the data identifier and / or location information carried in the data display request.

12. The device according to claim 9, characterized in that, The apparatus further includes: A log module, which is used to generate a data processing log of the data sent by the client of the target page. The data processing log includes the page log information of the target page and the interface log information of the listening interface corresponding to the target page; and upload the data processing log to the server.

13. An electronic device, characterized in that, It includes a processor, a communication interface, a memory and a communication bus. Among them, the processor, the communication interface and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 1-4 when executing the program stored on the memory.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in any one of claims 1-4.

Citation Information

Patent Citations

  • Data monitoring method and apparatus

    CN106383765A

  • Page data processing method and device, client and server

    CN107729537A