Page content configuration method, device, electronic device and storage medium

By automatically binding content blocks in the page layout with third-party data interfaces, the time-consuming and labor-intensive manual configuration problem in the prior art is solved, and efficient and accurate page content configuration is achieved.

CN115033268BActive Publication Date: 2025-10-03BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210540653.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2025-10-03
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

In the existing technology, when a web page introduces third-party business data, it requires manual configuration by front-end and back-end R&D personnel, which makes the process time-consuming and labor-intensive, and it is difficult to ensure the accuracy and efficiency of the configuration.

Method used

A page content configuration method is provided. By obtaining the third-party data interface information to be bound to the content block in the page layout, the interface type is determined, and the binding configuration is automatically performed based on the type, reducing manual intervention.

Benefits of technology

It improves the efficiency and accuracy of page content configuration, reduces configuration time, and enables fast and accurate third-party data access, and is suitable for various types of third-party data interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033268B_ABST
    Figure CN115033268B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, electronic device, and storage medium for configuring page content, relating to technical fields such as information flow and computer vision. A specific implementation scheme comprises: obtaining information about a third-party data interface to which a content block in a page layout is to be bound; determining the type of the third-party data interface based on the information about the third-party data interface; and configuring the binding between the content block and the third-party data interface based on the type of the third-party data interface. The present disclosure can effectively save page content configuration time and improve configuration accuracy and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to technical fields such as information flow and computer vision, and more particularly to a method, device, electronic device, and storage medium for configuring page content. Background Art

[0002] The web page development process for an internet portal is a very tedious and meticulous task. It requires not only configuring the page display method but also the page content.

[0003] Traditionally, if a webpage requires third-party business data within a content block, front-end and back-end developers must collaborate to manually retrieve the data from the third party. They then manually enter the data locally and edit and develop the webpage based on the data to display it on the local portal. Summary of the Invention

[0004] The present disclosure provides a method, device, electronic device and storage medium for configuring page content.

[0005] According to one aspect of the present disclosure, a method for configuring page content is provided, comprising:

[0006] Get the information of the third-party data interface to be bound to the content block in the page layout;

[0007] Determining a type of the third-party data interface based on the information of the third-party data interface;

[0008] Based on the type of the third-party data interface, the content block is bound to the third-party data interface.

[0009] According to another aspect of the present disclosure, a device for configuring page content is provided, comprising:

[0010] The acquisition module is used to obtain information about the third-party data interface to be bound to the content block in the page layout;

[0011] a determination module, configured to determine a type of the third-party data interface based on information about the third-party data interface;

[0012] A configuration module is used to configure the binding between the content block and the third-party data interface based on the type of the third-party data interface.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any possible implementation manner and the aspects described above.

[0017] According to yet another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method of the above-mentioned aspect and any possible implementation manner.

[0018] According to yet another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the above-mentioned aspects and any possible implementation method when executed by a processor.

[0019] According to the technology disclosed in the present invention, the configuration time of page content can be effectively saved, and the accuracy and efficiency of configuration can be improved.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.

[0022] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;

[0024] Figure 3 This is a page layout diagram provided by the present disclosure;

[0025] Figure 4 is a schematic diagram according to a third embodiment of the present disclosure;

[0026] Figure 5 is a block diagram of an electronic device for implementing the method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0028] Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0029] It should be noted that the terminal devices involved in the embodiments of the present disclosure may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers and other smart devices; display devices may include but are not limited to personal computers, televisions and other devices with display functions.

[0030] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0031] Currently, when introducing third-party data into a local portal website, front-end and back-end R&D personnel need to work together and perform secondary development and configuration locally, which is a very time-consuming and labor-intensive process.

[0032] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure; Figure 1 As shown, this embodiment provides a method for configuring page content, which can be applied to a page content configuration platform of any website and can include the following steps:

[0033] S101, obtaining information of a third-party data interface to be bound to a content block in a page layout;

[0034] S102. Determine the type of the third-party data interface based on the information of the third-party data interface;

[0035] S103: Based on the type of the third-party data interface, configure the binding between the content block and the third-party data interface.

[0036] In this embodiment, the page layout is pre-configured. The page layout may include one, two, or more content blocks, each of which corresponds to a component format and displays content in the corresponding format. The display format of each content block may include text, video, image, etc.

[0037] In actual application, the content displayed in each content block on the website can be the content created by the website itself, or third-party data content can be introduced. In order to improve the efficiency of accessing third-party data and reduce local secondary development, this embodiment provides a fast configuration solution for page content to improve page configuration efficiency.

[0038] In this embodiment, for each content block in the page layout, a third-party data interface to be bound can be configured for it based on operational needs. For example, in a certain area of ​​the page layout, i.e., a content block, weather forecast data needs to be displayed. Based on operational needs, the information of the third-party data interface of the weather forecast data to be displayed in the content block can be pre-determined and obtained. The information of the third-party data interface in this embodiment can include all information used to define the third-party data interface, and can also include information on the data that defines the third-party data interface. Then, based on the information of the third-party data interface, the type of the third-party data interface is determined; and further, based on the type of the third-party data interface, the content block is automatically bound and configured to the third-party data interface, thereby avoiding manual configuration and development, and effectively improving the configuration efficiency of each content block in the page layout.

[0039] According to the method of this embodiment, all content blocks of the page layout can be automatically and quickly configured, and the page content including each content block can be displayed.

[0040] The page content configuration method of this embodiment determines the type of the third-party data interface based on the information of the third-party data interface to which the content block in the page layout is to be bound, and then automatically binds and configures the content block and the third-party data interface based on the type of the third-party data interface, thereby eliminating manual configuration and development, effectively saving page content configuration time, and improving configuration accuracy and efficiency.

[0041] Figure 2 is a schematic diagram according to the second embodiment of the present disclosure; Figure 2 As shown, the configuration method of the page content provided in this embodiment can be Figure 1 Based on the technical solutions of the embodiments shown, the technical solutions of the present disclosure are further described in more detail. Figure 2 As shown, the page content configuration method provided in this embodiment may specifically include the following steps:

[0042] S201, obtaining information of a third-party data interface to be bound to a content block in a page layout;

[0043] For example, information about a third-party data interface may include the domain name, address, request parameters, request protocol, return parameters, and attributes of the returned data. In practical applications, the page layout of a webpage is pre-developed by the website's developers. A page layout may include one, two, or more content blocks, each of which occupies a specific area within the webpage. The multiple content blocks in the page layout collectively constitute the webpage.

[0044] During deployment, the operations and maintenance personnel already have the local web page layout configured. They also know the third-party data interfaces to which each content block is to be bound. They then bind and configure each content block to the corresponding third-party data interface in accordance with the methods of this embodiment. The third-party data interface information can be pre-acquired and input into the website's page content configuration platform to configure the page content.

[0045] The information of the third-party data interface in this embodiment may include domain name, address, request protocol, parameters, and attributes of the returned data, etc. The parameters here refer to the input parameters of the third-party data interface, which can also be called request parameters. The attributes of the returned data can also be called parameters of the returned data.

[0046] S202: Determine the type of the third-party data interface based on at least one of the address, parameters, and attributes of the returned data of the third-party data interface;

[0047] In this embodiment, the types of returned data may include: a fixed data interface, a paged data interface, a recommended data interface, or an online to offline data interface (O2O data interface). In actual applications, other types of third-party data interfaces may be determined based on at least one of the address, parameters, and attributes of the returned data of the third-party data interface, which will not be further described here.

[0048] For example, fixed data interfaces include interfaces for Top 10 Hot News and Hot Topics. These interfaces have a fixed address and fixed request parameters. The content of the returned data may vary, but the structure remains unchanged. Multiple requests through paging are not required; all content is returned at once. If the return data attributes of a third-party data interface include the aforementioned characteristics, such as a fixed address, fixed parameters, and fixed structure of the returned data, but the content varies, the third-party data interface can be classified as a fixed data interface.

[0049] For example, a paging data interface can be used in scenarios where the amount of data is relatively large and paging is required, such as news lists, product lists, and user reviews. The paging data interface can be used when all data is returned at once and it is easy to time out and can only be obtained by paging multiple requests, and is configured with a fixed number of pages. At this time, based on the fixed paging parameters, the corresponding interface can be determined to be a paging data interface. The paging parameters are used to limit how many pages of data can be obtained per request. Therefore, if the parameters of the third data interface include paging parameters such as "needPageSize", then the type of the third-party data interface can be determined to be a paging data interface. PageSize is used to indicate the number of data items requested at one time, and these data items are displayed on one page. That is, each time a page of data is requested, the number of data items that can be displayed on one page is the number of data items requested at one time. For example, the paging parameter PageSize can be used in text scenarios where the amount of data returned is large and paging is required.

[0050] For example, the recommended data interface may include interfaces for data on hot-selling products, feed news, and the like. The data corresponding to this type of interface does not have a fixed number of pages, and one or more requests return a certain amount of data. At this time, based on the properties of the returned data, such as no fixed number of pages, and each request returns a preset number of data items, it can be determined that the corresponding interface is a recommended data interface. For example, if the parameters of the third data interface do not include parameters that require paging, such as "needPageSize", and the parameters of the returned data include a fixed number of objects, then the type of the third-party data interface can be determined to be a recommended data interface. The recommended data interface can be applied in the scenario of the feed data stream.

[0051] For example, an O2O data interface may include data interfaces for scenarios such as the nearest hot news, the nearest business, and so on. When this type of interface is used, a request is made once or multiple times to return certain data. At this time, based on the attributes of the returned data, such as a fixed quantity, and the requirement that the request parameters carry geographic location information, the corresponding interface is determined to be an O2O data interface. If a location parameter such as "needLBS" is required in the parameters of the third data interface, the type of the third-party data interface can be determined to be an O2O data interface. The O2O data interface can be used in scenarios closely related to geographic location, such as weather information, grocery shopping, maps, and navigation.

[0052] Based on the above method, based on at least one of the address, parameters and attributes of the returned data of the third-party data interface, all information can be comprehensively referenced to accurately determine the type of the third-party data interface, thereby achieving accurate configuration of the content block and the third-party data interface in the page layout.

[0053] S203. Based on the information of the third-party data interface, configure the domain name and / or address for binding the content block and the third-party data interface;

[0054] In this embodiment, the configuration method of binding the content block with the third-party data interface is achieved by configuring parameters.

[0055] Specifically, the third-party data interface information includes the third-party data interface's domain name, address, and other information. When configuring the binding between a content block and the third-party data interface, the third-party data interface's domain name can be configured in the "host" field of the "httpApi" configuration parameter, and the third-party data interface's address can be configured in the "path" field. In actual applications, other similar parameter names can also be used.

[0056] By configuring the domain name and address, you can achieve a very critical step in binding the content block with the third-party data interface. This configuration method is simple, clear, and easy to implement.

[0057] Alternatively, in embodiments of the present disclosure, domain names and addresses may be manually configured. For example, this may include identifying and displaying domain names and addresses in a third-party data interface. Based on the displayed domain name and address of the third-party data interface, a staff member configures the binding between the content block and the domain name and address parameters of the third-party data interface.

[0058] S204: Based on preset cache requirements, configure cache parameters for binding the content block and the third-party data interface;

[0059] S205: Based on the preset flow limiting requirements, configure the flow limiting parameters for binding the content block and the third-party data interface;

[0060] Steps S204 and S205 are optional. In actual applications, whether caching and current limiting are required can be set based on the needs of the third-party data interface, the needs of the website to which the web page belongs, and / or the needs of the user. If necessary, the corresponding parameters need to be configured. For example, if caching is required, caching can be performed according to the request key to speed up the request. If current limiting is required, such as limiting access to 10 times, 8 times, or other times per second, this current limiting is used to limit the request speed to the third-party data interface. If caching is required, the corresponding configuration parameter "cacheTime" can be configured. If caching for 10 seconds is required, it can be configured as: "cacheTime": 10. If current limiting is required, the corresponding configuration parameter "qpsLimited" can be configured. If current limiting is required to 100 times per second, it can be configured as: "qpsLimited": 100. In actual application scenarios, configuration can be performed based on specific cache time requirements and specific current limiting requirements, which are not limited here. For example, cache requirements can be pre-configured in the pre-configuration information of the content block. Specifically, the cache parameters binding the content block to the third-party data interface are configured based on the preconfigured cache requirements of the content block. For another example, rate limiting requirements can be obtained from information on the third-party data interface. Specifically, the rate limiting parameters binding the content block to the third-party data interface are configured based on the rate limiting parameters of the third-party data interface. By configuring these cache and rate limiting parameters, we can enrich configuration options and improve page configuration efficiency.

[0061] S206: Based on the type of the third-party data interface, configure the binding between the content block and the third-party data interface;

[0062] In this embodiment, the binding configuration of the content block and the third-party data interface mainly involves configuring the binding parameters to achieve the binding. Specifically, the parameters for the binding configuration may be different based on the type of the third-party data interface. For example, the following situations may be included:

[0063] 1. If the type of the third-party data interface is a fixed data interface, the fixed parameters for binding the content block and the third-party data interface are configured according to the information of the third-party data interface and the pre-configured data categories of the content block. The pre-configured data categories of the content block are used to limit the data categories to be displayed by the content block, such as sports, entertainment, finance, etc. The pre-configured data categories of the content block can be configured by the website staff based on the preferences of the website users. In this embodiment, the fixed parameters can be represented by "fixParamKey". The number of fixed parameters can include one, two or more, for example, they can be identified as "fixParamKey1", "fixParamKey2", ..., "fixParamKeyn" respectively. In actual applications, each fixed parameter can identify a data category to limit the data of the corresponding category that needs to be obtained from the third-party data interface.

[0064] Second, if the third-party data interface is a paging data interface, configure the paging parameters for binding the content block and the third-party data interface based on the third-party data interface information and the preconfigured number of pages for the content block. In this embodiment, the paging data parameter can be identified by "needPageSize." During configuration, the user can set a value for this parameter, such as "needPageSize":10. Other values, such as 5 or 20, are also possible, and are not limited here.

[0065] 3. If the third-party data interface is a recommendation data interface, configure the recommendation parameters for binding the content block and the third-party data interface. Since recommendations can include recommendations based on user information, this type of recommendation requires obtaining user information with user authorization. Correspondingly, the "needCookie" parameter needs to be configured during configuration. If the user's authorization information is obtained, then "needCookie": true is configured. All subsequent recommendation data received by the user is content data obtained from the third-party data interface, filtered based on the user's cookies, and in line with the user's preferences. In actual applications, in addition to recommendations based on user information, recommendations based on preset recommendation rules on the third-party data interface side can also be included, such as recommendations based on popularity or other parameters, which are not limited here. If user information authorization is not obtained, then "needCookie": false is configured. At this time, after the content block is bound to the third-party data interface, it receives content data recommended by the third-party data interface based on preset recommendation rules.

[0066] 4. If the third-party data interface type is an O2O data interface, configure the address parameters that bind the content block to the third-party data interface. Because O2O requires the user's authorized location during use, parameters are configured based on the user's location. For example, during configuration, you need to configure parameters such as "needLBS." If the user has authorized location information, you can set "needLBS": true during configuration. If the user has not authorized location information, or if this parameter does not need to be configured, you can set "needLBS": false.

[0067] It should be noted that when configuring parameters in scenarios 2, 3, and 4 above, and when binding the content block to the third-party data interface, the "fixParamKey" parameter can also be configured simultaneously. In specific implementations, you can first check whether the data category is configured in the content block's pre-configured information. If so, refer to the pre-configured data category of the content block and the configuration in scenario 1 to configure the "fixParamKey" parameter. Specifically, based on scenarios 2, 3, and 4 above, you can refer to the data category to implement paging, recommendations, and O2O data acquisition.

[0068] Each data type has common processing logic at the code level, as well as unique characteristics. Binding configurations can be implemented based on different parameter configurations for different data types and scenarios.

[0069] All third-party data parameters in the above configuration can be obtained from the information of the third-party data interface, and the pre-configuration information of the content block can be pre-configured and stored locally. When using, the relevant information can be obtained for configuration.

[0070] Based on the above configuration method, it is possible to bind and configure the content blocks of the page layout with various types of data interfaces. Moreover, different types of third-party data interfaces can be bound and configured in different ways, which can achieve more precise configuration and effectively improve configuration efficiency and accuracy. Moreover, during configuration, it is only necessary to predetermine the information of the content blocks of the page layout and the third-party data interface to be bound to achieve automatic configuration, which is very efficient.

[0071] Further optionally, in one embodiment of the present disclosure, the configuration of all the above situations can be based on the type of the third-party data interface, and the content block can be bound and configured with the third-party data interface in a visual manner. Specifically, during the configuration process, all the above binding configurations can be displayed in a visual display manner, so that the user can perceive the parameter binding configuration process in real time. In addition, optionally, a user interaction button can be provided after the display, and the configuration takes effect when the user clicks OK. At the same time, the user can also check and modify the configuration parameters, and then click OK, so that the user can check them in time, and when the binding configuration parameters are wrong, they can be modified in time to further improve the accuracy and configuration efficiency of the page content configuration.

[0072] Alternatively, in one embodiment of the present disclosure, based on the above-mentioned different situations, the parameters that need to be configured can be obtained, and a configuration interface for the parameters can be popped up for the staff to configure the displayed parameters. After the staff completes the configuration, they click OK. Correspondingly, the website's page content configuration platform receives and saves the staff's configuration, and realizes the binding of the third-party data interface with the content block.

[0073] For example, if the third-party data interface is a fixed data interface, the fixed parameters required to bind the content block and the third-party data interface are obtained based on the third-party data interface information and the pre-configured data category of the content block. A fixed parameter configuration interface pops up, allowing the staff to configure the fixed parameters in a similar manner to the above embodiment. After the configuration is completed, click OK.

[0074] If the type of the third-party data interface is a paging data interface, the paging parameters required for binding the content block and the third-party data interface are obtained based on the information of the third-party data interface and the number of paging pre-configured for the content block; and a configuration interface for the paging parameters is popped up for the staff to configure the paging parameters in a similar manner to the above embodiment, and the implementation method is the same as above.

[0075] If the type of the third-party data interface is a recommended data interface, obtain the recommended parameters required for binding the content block and the third-party data interface; and pop up a configuration interface for the recommended parameters for the staff to configure the recommended parameters in a similar manner to the above embodiment, and the implementation method is the same as above.

[0076] If the third-party data interface is an O2O data interface, the address parameters required for binding the content block and the third-party data interface are obtained. A configuration interface for the address parameters is displayed, allowing the staff to configure the address parameters in a similar manner to the above embodiment. The implementation method is the same as above.

[0077] For example, Figure 3 This is a page layout diagram provided by the present disclosure. Figure 3 As shown, a page layout includes content blocks 1, 2, and 3. These three content blocks can display content in different formats. For example, content block 1 can display weather forecasts or statistics about participation in an event. Content block 2 can display popular news stories. Content block 3 can display expert lectures in video format. Different types of third-party data interfaces can be bound to different content blocks.

[0078] For example, the following is a diagram of all parameter configurations when binding a content block with a third-party data interface:

[0079]

[0080]

[0081] The above code includes all the above parameters as an example. In actual applications, the required parameters should be determined based on the data type of the third-party data interface and the pre-configured information of the content block. Only the required parameters should be configured.

[0082] It should be noted that if the type of the third-party data interface is a paging data interface, each request only requests multiple data in one page. In order to facilitate subsequent data requests to the third-party data interface, each time a page of data displayed in the content block can be requested. When the content block and the third-party data interface are bound and configured in accordance with the above embodiment, each page, that is, the data records to be requested for each request can be configured based on PageSize. For example, when PageSize = 5, the first request is configured to request the 1st to 5th data, and the second request is used to request the 6th to 10th data, and so on.

[0083] By adopting the above-mentioned page content configuration method of this embodiment, it is possible to configure any content block in the page layout and the third-party data interface to be bound, thereby realizing the configuration of any page.

[0084] The page content configuration method of this embodiment adopts the above technical solution and configures the corresponding parameters based on different types of third-party data interfaces, such as fixed data interface, paging data interface, recommended data interface and O2O data interface, so as to automatically bind the content block with the third-party data interface and realize the page configuration. Moreover, the whole process can be realized automatically, and the configuration accuracy and efficiency are very high.

[0085] In actual applications, various types of third-party data interfaces, such as fixed data interfaces, paged data interfaces, recommended data interfaces, and O2O data interfaces, can be implemented according to the technical solution of this embodiment, and configured and bound to corresponding content blocks in the page layout of a webpage. This allows the acquisition of graphic, text, and video content from each content block on the webpage from the third-party data interface. For example, the acquisition of video list data can be implemented, and the corresponding video content can be obtained based on the video list data.

[0086] For example, when developing and configuring sudden media events using traditional methods, the entire process is time-consuming and labor-intensive, and the timeliness of the media events cannot be guaranteed. However, using the page configuration method of this embodiment, configuration can be completed quickly and accurately, saving time and effort, and achieving very high configuration efficiency. It can realize real-time display of any sudden media events on the local website, which is very convenient to use.

[0087] Figure 4 is a schematic diagram according to the third embodiment of the present disclosure; Figure 4 As shown, this embodiment provides a page content configuration device 400, which can be applied to a page configuration platform of any website, including:

[0088] Acquisition module 401 is used to acquire information of a third-party data interface to be bound to a content block in a page layout;

[0089] Determining module 402, for determining the type of the third-party data interface based on the information of the third-party data interface;

[0090] The configuration module 403 is used to configure the binding between the content block and the third-party data interface based on the type of the third-party data interface.

[0091] The page content configuration device 400 of this embodiment uses the above modules to implement the configuration of page content. The implementation principle is the same as that of the above related method embodiments. For details, please refer to the records of the above related methods and will not be repeated here.

[0092] Further optionally, in one embodiment of the present disclosure, the determining module 402 is configured to:

[0093] The type of the third-party data interface is determined based on at least one of an address, a parameter, and an attribute of returned data of the third-party data interface.

[0094] Further optionally, in one embodiment of the present disclosure, the type of the data interface includes: a fixed data interface, a paged data interface, a recommended data interface, or an online / offline data interface.

[0095] Further optionally, in one embodiment of the present disclosure, the configuration module 403 is used to:

[0096] If the type of the third-party data interface is a fixed data interface, configure the fixed parameters for binding the content block and the third-party data interface according to the information of the third-party data interface and the pre-configured data category of the content block;

[0097] If the type of the third-party data interface is a paging data interface, configure the paging parameters for binding the content block and the third-party data interface according to the information of the third-party data interface and the number of paging preconfigured for the content block;

[0098] If the third-party data interface is a recommended data interface, configure the recommended parameters for binding the content block and the third-party data interface; or

[0099] If the type of the third-party data interface is an online / offline data interface, configure the address parameters for binding the content block and the third-party data interface.

[0100] Further optionally, in one embodiment of the present disclosure, the configuration module 403 is configured to:

[0101] Based on the type of the third-party data interface, the content block and the third-party data interface are bound and configured in a visual manner.

[0102] Further optionally, in one embodiment of the present disclosure, the configuration module 403 is further configured to:

[0103] Based on the information of the third-party data interface, the domain name and / or address for binding the content block and the third-party data interface is configured.

[0104] Further optionally, in one embodiment of the present disclosure, the configuration module 403 is further configured to:

[0105] Based on pre-set caching requirements, configure caching parameters for binding content blocks and third-party data interfaces; and / or

[0106] Based on the preset flow limiting requirements, configure the flow limiting parameters for binding content blocks and third-party data interfaces.

[0107] The page content configuration device 400 of the above embodiment realizes the configuration of page content by adopting the above modules. The implementation principle is the same as that of the above related method embodiments. For details, please refer to the description of the above related methods, which will not be repeated here.

[0108] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0109] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0110] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0111] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the device 500 can also be stored in the RAM 503. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0112] Various components in device 500 are connected to I / O interface 505, including: an input unit 506, such as a keyboard, mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, optical disk, etc.; and a communication unit 509, such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0113] The computing unit 501 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the above-mentioned methods of the present disclosure. For example, in some embodiments, the above-mentioned methods of the present disclosure can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the above-mentioned methods of the present disclosure described above can be performed. Alternatively, in other embodiments, the computing unit 501 can be configured to perform the above-mentioned methods of the present disclosure by any other appropriate means (e.g., by means of firmware).

[0114] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0116] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0119] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0120] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.

[0121] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A method for configuring page content, comprising: Get the information of the third-party data interface to be bound to the content block in the page layout; Determining a type of the third-party data interface based on the information of the third-party data interface; Based on the type of the third-party data interface, binding and configuring the content block and the third-party data interface; Determining the type of the third-party data interface based on the information of the third-party data interface includes: Determining a type of the third-party data interface based on at least one of an address, parameters, and attributes of returned data of the third-party data interface; the types of data interfaces include: a fixed data interface, a paged data interface, a recommended data interface, or an online / offline data interface; Binding and configuring the content block and the third-party data interface based on the type of the third-party data interface includes: If the type of the third-party data interface is a fixed data interface, the fixed parameters for binding the content block and the third-party data interface are configured according to the information of the third-party data interface and the pre-configured data category of the content block; the pre-configured data category is used to limit the data category to be displayed by the content block.

2. The method according to claim 1, wherein Binding and configuring the content block with the third-party data interface based on the type of the third-party data interface further includes: If the type of the third-party data interface is a paging data interface, configuring paging parameters for binding the content block and the third-party data interface according to information of the third-party data interface and a preconfigured number of paging for the content block; If the type of the third-party data interface is a recommendation data interface, configuring recommendation parameters for binding the content block and the third-party data interface; or If the type of the third-party data interface is an online / offline data interface, the address parameters for binding the content block and the third-party data interface are configured.

3. The method according to claim 2, wherein: Binding and configuring the content block and the third-party data interface based on the type of the third-party data interface includes: Based on the type of the third-party data interface, the content block is bound and configured with the third-party data interface in a visual manner.

4. The method according to any one of claims 1 to 3, wherein: The method further comprises: Based on the information of the third-party data interface, the domain name and / or address for binding the content block and the third-party data interface is configured.

5. The method according to any one of claims 1 to 3, wherein: The method further comprises: Based on preset cache requirements, configuring cache parameters for binding the content block and the third-party data interface; and / or Based on the preset current limiting requirement, the current limiting parameters for binding the content block and the third-party data interface are configured.

6. A device for configuring page content, comprising: The acquisition module is used to obtain information about the third-party data interface to be bound to the content block in the page layout; a determination module, configured to determine a type of the third-party data interface based on information about the third-party data interface; A configuration module, configured to configure binding between the content block and the third-party data interface based on the type of the third-party data interface; The determining module is configured to: determining a type of the third-party data interface based on at least one of an address, parameters, and attributes of returned data of the third-party data interface; The types of data interfaces include: fixed data interface, paged data interface, recommended data interface or online / offline data interface; The configuration module is used to configure the fixed parameters for binding the content block and the third-party data interface based on the information of the third-party data interface and the pre-configured data category of the content block if the type of the third-party data interface is a fixed data interface; the pre-configured data category is used to limit the data category to be displayed by the content block.

7. The device according to claim 6, wherein The configuration module is further configured to: If the type of the third-party data interface is a paging data interface, configuring paging parameters for binding the content block and the third-party data interface according to information of the third-party data interface and a preconfigured number of paging for the content block; If the type of the third-party data interface is a recommended data interface, configuring recommended parameters for binding the content block and the third-party data interface; or If the type of the third-party data interface is an online / offline data interface, the address parameters for binding the content block and the third-party data interface are configured.

8. The device according to claim 7, wherein The configuration module is used to: Based on the type of the third-party data interface, the content block is bound and configured with the third-party data interface in a visual manner.

9. The device according to any one of claims 6 to 8, wherein: The configuration module is further configured to: Based on the information of the third-party data interface, the domain name and / or address for binding the content block and the third-party data interface is configured.

10. The device according to any one of claims 6 to 8, wherein: The configuration module is further configured to: Based on preset cache requirements, configuring cache parameters for binding the content block and the third-party data interface; and / or Based on the preset current limiting requirement, the current limiting parameters for binding the content block and the third-party data interface are configured.

11. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.

13. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • A third-party service interface construction method and device

    CN109947410A

  • Page display method and device, computer readable storage medium and electronic equipment

    CN112799663A