Page display method and device, electronic equipment and storage medium

By obtaining the circuit breaker status information of the service interface and hiding the control when the circuit breaker is broken, the problem of abnormal page display caused by the circuit breaker of the service interface is solved, which improves the efficiency of human-computer interaction and user experience.

CN113961371BActive Publication Date: 2026-01-23BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111242911.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2026-01-23
Estimated Expiration
2042-01-23

AI Technical Summary

Technical Problem

In existing technologies, when a service interface is interrupted, users cannot obtain data streams when clicking on related controls on the page displayed on the terminal, resulting in the page failing to display properly and reducing human-computer interaction efficiency and user experience.

Method used

By obtaining the circuit breaker status information of the service interface associated with the control, the control is hidden when the service interface is in a circuit breaker state, and a corresponding call response is sent to the terminal to avoid the control being displayed on the target page, thereby improving the user experience.

Benefits of technology

It improves the efficiency of human-computer interaction, avoids abnormal page display, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961371B_ABST
    Figure CN113961371B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a page display method and device, electronic equipment and storage medium, and belongs to the technical field of Internet. The method obtains the fuse state information of a service interface associated with a called control, hides the control on a target page when the service interface is in a fused state, avoids the situation that the user clicks the control on the target page to cause the page display to be abnormal, and thus improves the human-computer interaction efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of Internet, and particularly relates to a page display method and device, electronic equipment and storage medium. BACKGROUND

[0002] At present, when a user browses a page through a terminal, the terminal displays multiple controls on the page, and the user can click the controls in the page to browse related content. Taking a live page as an example, when the terminal displays the live page, the server calls the interface of the controls in the live page, so that the terminal can display corresponding controls (tabs) such as talent, game, emotion, etc. on the live page. When any control is clicked, the server returns a corresponding data stream (feed) to the terminal by calling a service interface associated with the control, and the terminal can display related information of multiple live rooms on the page based on the returned data stream. If a service interface cannot normally return a data stream, the server will fuse the service interface. In related technologies, the server compares the call success rate of the service interface with a preset threshold, and if the call success rate of the service interface is less than the preset threshold, the service interface is fused.

[0003] In the above technology, after a service interface is fused, if the user clicks the control associated with the service interface in the page displayed by the terminal, the terminal cannot obtain the corresponding data stream, which causes the page to be unable to be normally displayed. Since the implemented operation cannot be effectively responded, the human-computer interaction efficiency is reduced, and the user experience is poor. SUMMARY

[0004] The present disclosure provides a page display method and device, electronic equipment and storage medium, which can improve the human-computer interaction efficiency and enhance the user experience. The technical solutions of the present disclosure are as follows:

[0005] According to a first aspect of the embodiments of the present disclosure, a page display method is provided, which comprises:

[0006] In response to a call request of a terminal to a control in a target page, obtaining the fuse state information of a service interface associated with the control, the fuse state information being used to indicate that the service interface is in a fused state or an unfused state;

[0007] If the fuse state information indicates that the service interface is in the fused state, fusing the interface of the control, and setting the control to a hidden state in the target page;

[0008] Sending a first call response of the control to the terminal, the first call response being used to indicate that the control is hidden in the target page.

[0009] The technical scheme provided by the embodiments of the present disclosure can obtain the fuse state information of the service interface associated with the invoked control, hide the control in the target page when the service interface is in the fused state, avoid the case that the user clicks the control in the target page to cause the page to display abnormally, and thus improve the human-computer interaction efficiency and the user experience.

[0010] In some embodiments, the fuse state information of the service interface is determined based on the invocation condition of the service interface, so that when the server determines whether to display the associated control based on the fuse state information, the invocation condition of the service interface is considered, and in the case that the service interface cannot provide related services based on the invocation, the associated control is hidden in the target page, thereby improving the user experience.

[0011] In some embodiments, the method further comprises:

[0012] processing the service interface based on the historical invocation information of the service interface, and recording the fuse state information of the service interface, wherein the historical invocation information is used to indicate the historical invocation success times of the service interface and the historical invocation failure times of the service interface.

[0013] Through the historical invocation information of the service interface, the server can perform corresponding fuse processing on the service interface when the service interface cannot normally provide services, thereby saving the resources of the server. By recording the fuse state of the service interface, the broadcast of the fuse state of the service interface is realized, the associated control can be hidden in the target page when the service interface is in the fused state, and the user experience is improved.

[0014] In some embodiments, the processing of the service interface based on the historical invocation information of the service interface comprises:

[0015] determining the historical invocation success rate of the service interface based on the historical invocation information of the service interface;

[0016] setting the current working state of the fuse based on the historical invocation times of the service interface, the historical invocation success rate of the service interface, and the historical working state information of the fuse, wherein the fuse is used to process the service interface based on different working states;

[0017] The historical working state information is used to indicate that the historical working state of the fuse is in an open state, a half-open state, or a closed state.

[0018] By comprehensively considering the historical invocation information of the service interface and the historical state of the fuse, the state of the set fuse is more in line with the historical invocation condition of the service interface.

[0019] In some embodiments, setting the current working state of the fuse based on the historical number of invocations of the service interface, the historical success rate of invocations of the service interface, and historical working state information of the fuse of the service interface comprises:

[0020] In each period, setting the current period working state of the fuse based on the number of invocations of the service interface in the previous N periods, the success rate of invocations of the service interface in the previous N periods, and the working state information of the fuse in the previous period, N being an integer greater than 0.

[0021] By setting the working state of the fuse in each period, the working state of the fuse can be updated in a timely manner according to the invocation information of the service interface, and the service interface can be processed accordingly, so that the recorded fuse state information is more in line with the recent invocation of the service interface.

[0022] In some embodiments, setting the current working state of the fuse based on the historical number of invocations of the service interface, the historical success rate of invocations of the service interface, and historical working state information of the fuse of the service interface comprises:

[0023] If the historical working state information indicates that the historical working state of the fuse is a closed state, the historical number of invocations is greater than a first threshold, and the historical success rate of invocations is less than a second threshold, the current working state of the fuse is set to a semi-open state;

[0024] If the historical working state information indicates that the historical working state of the fuse is a semi-open state and the historical number of invocations is 0, or the historical working state information indicates that the historical working state of the fuse is a semi-open state, the historical number of invocations is greater than 0, and the historical success rate of invocations is less than or equal to a third threshold, the current working state of the fuse is set to an open state;

[0025] If the historical working state information indicates that the historical working state of the fuse is a semi-open state, the historical number of invocations is greater than 0, and the historical success rate of invocations is greater than the third threshold, the current working state of the fuse is set to a closed state;

[0026] If the historical working state information indicates that the historical working state of the fuse is an open state, the current working state of the fuse is set to a semi-open state.

[0027] By the method for setting the working state of the fuse, when the historical call success rate and the historical call times of the service interface meet the corresponding conditions, the working state of the fuse can be set accordingly, so that the fuse state of the service interface can be updated based on the call condition, and the fuse state of the service interface will not always be in the fused state or the unfused state, so that after the server obtains the fuse state information of the service interface, it can be determined whether to display the associated control in the target page according to the call condition of the service interface, thereby improving the user experience.

[0028] In some embodiments, the open state of the fuse indicates that the service interface is fused for all user accounts, the half-open state of the fuse indicates that the service interface is fused for a target proportion of user accounts and not fused for other user accounts except the target proportion of user accounts, and the closed state of the fuse indicates that the service interface is not fused for all user accounts.

[0029] By setting different working states for the fuse and making the fuse perform corresponding processing on the service interface based on different working states, the fuse state of the service interface is more in line with the call condition.

[0030] In some embodiments, the method further includes:

[0031] If the fuse state information indicates that the service interface is in the unfused state, based on the interface of the control, the display information of the control is obtained, the display information includes the content and style of the control, and the control is set to the display state in the target page.

[0032] The second call response of the control is sent to the terminal, and the second call response is used to instruct to display the control in the target page based on the display information.

[0033] When the service interface is in the unfused state, by sending the second response to the terminal, the terminal can normally display the control in the target page, so that the service related to the control can be provided when the user clicks the control in the target page, and the user experience is improved.

[0034] According to a second aspect of the embodiments of the present disclosure, a page display method is provided, and the method includes:

[0035] In response to a display operation on a target page, a call request of a control in the target page is sent to a server, the call request is used to instruct to obtain a fuse state information of a service interface associated with the control, and the fuse state information is used to indicate that the service interface is in a fused state or an unfused state.

[0036] receive the first calling response of the control returned by the server in a case that the fuse state information indicates that the service interface is in the fused state, the first calling response being used to instruct to hide the control in the target page;

[0037] display the target page, and hide the control in the target page.

[0038] The technical solution provided by the embodiments of the present disclosure can send a calling request of a control in a target page to a server, instruct the server to obtain a fuse state of a service interface associated with the control, and thus hide the control in the displayed target page based on a first response returned by the server in a case that the service interface is in a fused state, thereby avoiding a situation that the target page cannot be normally displayed due to the user clicking the control in the target page, improving the human-computer interaction efficiency, and achieving the purpose of improving the user experience.

[0039] In some embodiments, the method further includes:

[0040] receive a second calling response of the control returned by the server in a case that the fuse state information indicates that the service interface is in the unfused state, the second calling response being used to instruct to display the control in the target page based on display information of the control, the display information including content and style of the control, the display information being obtained based on the interface of the control;

[0041] display the target page, and display the control in the target page based on the display information of the control.

[0042] By receiving the second response returned by the server in a case that the service interface is not fused, the control can be normally displayed in the target page based on the display information of the control, and relevant information is displayed when the user clicks the control, thereby improving the user experience.

[0043] According to a third aspect of the embodiments of the present disclosure, a page display apparatus is provided, which includes:

[0044] an obtaining unit configured to obtain fuse state information of a service interface associated with a control in a target page in response to a calling request of the control by a terminal, the fuse state information being used to indicate that the service interface is in a fused state or an unfused state;

[0045] a fusing unit configured to fuse the interface of the control and set the control to a hidden state in the target page in a case that the fuse state information indicates that the service interface is in the fused state;

[0046] a sending unit configured to send a first calling response of the control to the terminal, the first calling response being used to instruct to hide the control in the target page.

[0047] In some embodiments, the fuse status information of the service interface is determined based on invocation conditions of the service interface.

[0048] In some embodiments, the apparatus further comprises:

[0049] a processing unit configured to perform processing on the service interface based on historical invocation information of the service interface, the historical invocation information being used to represent a number of historical invocation successes of the service interface and a number of historical invocation failures of the service interface, and record fuse status information of the service interface.

[0050] In some embodiments, the processing unit comprises:

[0051] a determining sub-unit configured to perform determination on a historical invocation success rate of the service interface based on the historical invocation information of the service interface.

[0052] a setting sub-unit configured to perform setting on a current working state of a fuse of the service interface based on the number of historical invocations of the service interface, the historical invocation success rate of the service interface, and historical working state information of the fuse, the fuse being used to perform processing on the service interface based on different working states, wherein the historical working state information is used to represent that the historical working state of the fuse is an open state, a half-open state, or a closed state.

[0053] In some embodiments, the setting sub-unit is configured to perform, in each period, setting on a current period working state of the fuse based on a number of invocations of the service interface in previous N periods, a historical invocation success rate of the service interface in the previous N periods, and working state information of the fuse in a previous period, N being an integer greater than 0.

[0054] In some embodiments, the setting sub-unit is configured to perform, if the historical working state information indicates that the historical working state of the fuse is a closed state, the number of historical invocations is greater than a first threshold value, and the historical invocation success rate is less than a second threshold value, setting the current working state of the fuse to a half-open state; if the historical working state information indicates that the historical working state of the fuse is a half-open state and the number of historical invocations is 0, or the historical working state information indicates that the historical working state of the fuse is a half-open state, the number of historical invocations is greater than 0, and the historical invocation success rate is less than or equal to a third threshold value, setting the current working state of the fuse to an open state; if the historical working state information indicates that the historical working state of the fuse is a half-open state, the number of historical invocations is greater than 0, and the historical invocation success rate is greater than the third threshold value, setting the current working state of the fuse to a closed state; if the historical working state information indicates that the historical working state of the fuse is an open state, setting the current working state of the fuse to a half-open state.

[0055] In some embodiments, the fuse being in an open state indicates that the service interface is fused for all user accounts; the fuse being in a half-open state indicates that the service interface is fused for a target proportion of user accounts and not fused for other user accounts except the target proportion of user accounts; and the fuse being in a closed state indicates that the service interface is not fused for all user accounts.

[0056] In some embodiments, the obtaining unit is configured to, if the fuse state information indicates that the service interface is in an unfused state, obtain display information of the control based on an interface of the control, the display information including content and style of the control, and set the control to a display state in the target page.

[0057] The sending unit is configured to send, to the terminal, a second invocation response of the control, the second invocation response being used to instruct to display the control in the target page based on the display information.

[0058] According to a fourth aspect of embodiments of the present disclosure, a page display apparatus includes:

[0059] The sending unit is configured to send, to a server, an invocation request of a control in a target page in response to a display operation on the target page, the invocation request being used to instruct to obtain fuse state information of a service interface associated with the control, the fuse state information being used to indicate that the service interface is in a fused state or an unfused state.

[0060] The receiving unit is configured to receive a first invocation response of the control returned by the server in a case where the fuse state information indicates that the service interface is in the fused state, the first invocation response being used to instruct to hide the control in the target page.

[0061] The display unit is configured to display the target page in which the control is hidden.

[0062] In some embodiments, the receiving unit is configured to receive a second invocation response of the control returned by the server in a case where the fuse state information indicates that the service interface is in the unfused state, the second invocation response being used to instruct to display the control in the target page based on display information of the control, the display information including content and style of the control, the display information being obtained based on an interface of the control.

[0063] The display unit is configured to display the target page in which the control is displayed based on the display information of the control.

[0064] According to a fifth aspect of embodiments of the present disclosure, an electronic device is provided, which includes:

[0065] one or more processors;

[0066] a memory for storing the program code executable by the processor;

[0067] The processor is configured to execute the program code to implement the page display method of the first aspect or the second aspect.

[0068] According to a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, which includes: when program code in the computer readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the page display method of the first aspect or the second aspect.

[0069] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the page display method of the first aspect or the second aspect is implemented.

[0070] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0071] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure, and do not constitute an undue limitation on the present disclosure.

[0072] Figure 1 is a schematic diagram of an implementation environment of a page display method according to an exemplary embodiment;

[0073] Figure 2 is a flowchart of a page display method according to an exemplary embodiment;

[0074] Figure 3 is a flowchart of a page display method according to an exemplary embodiment;

[0075] Figure 4 is a flowchart of a page display method according to an exemplary embodiment;

[0076] Figure 5 is a flowchart of a page display method according to an exemplary embodiment;

[0077] Figure 6 is a schematic diagram of a working state of a fuse according to an exemplary embodiment;

[0078] Figure 7 is a schematic diagram of a live page according to an exemplary embodiment;

[0079] Figure 8 is a block diagram of a page display device according to an exemplary embodiment;

[0080] Figure 9 is a block diagram of a page display device according to an exemplary embodiment;

[0081] Figure 10 is a structural block diagram of a terminal according to an exemplary embodiment;

[0082] Figure 11 is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0083] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings.

[0084] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0085] The data involved in the present disclosure can be data authorized by the user or sufficiently authorized by all parties.

[0086] Figure 1 is an implementation environment schematic diagram of a page display method provided by the embodiments of the present disclosure, referring to Figure 1 The implementation environment includes a terminal 101 and a server 102, and the terminal 101 and the server 102 are directly or indirectly connected through wired or wireless means.

[0087] The terminal 101 can be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. The server 102 can be a standalone physical server, a server cluster composed of multiple physical servers, or a distributed file system. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Of course, the server 102 can also include other functional servers to provide more comprehensive and diverse services.

[0088] In the embodiments of the present application, the terminal 101 runs various types of application programs, which are application programs supporting page display functions, such as live application programs, music application programs, shopping application programs, etc. The server 102 is associated with a database for storing relevant data of the application programs running on the terminal 101, and the server 102 is used to provide backend services for the application programs running on the terminal 101 based on the data stored in the database.

[0089] It should be understood that the terminal 101 and the server 102 are only used as examples in the embodiments of the present application, and the number of the terminal 101 and the server 102 can be more, which is not limited in the embodiments of the present application.

[0090] Based on Figure 1 the implementation environment shown in the figure, Figure 2 a flowchart of a page display method according to an exemplary embodiment is shown, as Figure 2 shown, the method is executed by the server and includes steps 201 to 203.

[0091] In step 201, the server obtains the fuse state information of the service interface associated with the control in response to the calling request of the terminal to the control in the target page, and the fuse state information is used to indicate that the service interface is in a fused state or an unfused state.

[0092] The target page is a page to be displayed by the terminal, for example, the target page is the home page of the application program, or any page displayed based on the operation of the user during the running of the application program, such as a local page, etc. The target page includes a plurality of controls, and when the terminal needs to display the target page, the target page is displayed by sending a browsing request of the target page to the server, that is, sending a calling request of the control in the target page to the server to display the target page and the plurality of controls of the target page.

[0093] The service interface associated with the control is configured to provide a service related to the control based on the call. For example, if the target page is a live page, the live page includes a "talent" control, and the service interface associated with the "talent" control is configured to obtain a "talent" feed.

[0094] The service interface in the fused state directly returns an invalid result after being called, and does not perform the process of providing the service related to the control. The service interface in the unfused state is called by the server, and the process of providing the service related to the control is performed.

[0095] In step 202, if the fuse state information indicates that the service interface is in the fused state, the server fuses the interface of the control, and sets the control to a hidden state in the target page.

[0096] The interface of the control is configured to obtain display information of the control based on the call. The display information includes content and style of the control. Optionally, the display information further includes other information of the control, which is not limited in the embodiments of the present application. The interface of the control is fused, which means that the interface of the control is called, and the process of obtaining the display information of the control is not performed.

[0097] In the case where the service interface associated with the control is fused, the interface of the control is fused, and the control is set to a hidden state. In the case where the service interface of the control does not provide a related service, the server does not perform the process of obtaining the display information of the control, and the control is not displayed in the target page. This avoids the case where the user clicks the control in the target page to cause the page to display abnormally, improves the human-computer interaction efficiency, and achieves the purpose of improving the user experience.

[0098] In step 203, the server sends a first call response of the control to the terminal. The first call response is configured to instruct to hide the control in the target page.

[0099] The first call response of the control is sent to the terminal, which can instruct the terminal to hide the control when displaying the target page in the case where the service interface of the control does not provide a related service. This avoids the case where the user clicks the control in the target page to cause the page to display abnormally, improves the human-computer interaction efficiency, and achieves the purpose of improving the user experience.

[0100] The technical scheme provided by the embodiments of the present disclosure can hide the control in the target page in the case where the service interface is in the fused state by obtaining the fuse state information of the service interface associated with the called control. This avoids the case where the user clicks the control in the target page to cause the page to display abnormally, thereby improving the human-computer interaction efficiency and achieving the purpose of improving the user experience.

[0101] Based on Figure 1 the implementation environment shown in Figure 3 FIG. 1, a page display method is shown in a flowchart according to an example embodiment, which is executed by a terminal and includes the following steps 301-303. Figure 3

[0102] In step 301, the terminal sends a calling request of a control in a target page to a server in response to a display operation of the target page, the calling request being used to instruct to acquire fuse state information of a service interface associated with the control, the fuse state information being used to indicate that the service interface is in a fused state or an unfused state.

[0103] For example, the terminal sends a browsing request of a live page to the server in response to a display operation of the live page by a user in a live application, that is, sends a calling request of a control in the live page to the server.

[0104] In step 302, the terminal receives a first calling response of the control returned by the server in a case where the fuse state information indicates that the service interface is in the fused state, the first calling response being used to instruct to hide the control in the target page.

[0105] In step 303, the terminal displays the target page in which the control is hidden.

[0106] The technical solution provided by the embodiments of the present disclosure can send a calling request of a control in a target page to a server, instruct the server to acquire fuse state information of a service interface associated with the control, and thus hide the control in the displayed target page according to a first response returned by the server in a case where the service interface is in a fused state, thereby avoiding the case that a user clicks the control in the target page to cause the page to display abnormally, and achieving the purposes of improving human-computer interaction efficiency and user experience.

[0107] The above Figure 2 to Figure 3 The corresponding embodiments are the basic flow of the page display method provided by the present application, and the page display method provided by the present application is further described below based on Figure 4 and Figure 5 , which is shown in a flowchart according to an example embodiment, and includes the following steps 401-405. Figure 4 Figure 5 Figure 4

[0108] ​​​​​​​In step 401, the terminal sends a calling request of a control in a target page to the server in response to a display operation of the target page, the calling request being used to indicate to acquire the fuse state information of a service interface associated with the control, the fuse state information being used to indicate that the service interface is in a fused state or an unfused state.

[0109] In some embodiments, the terminal sends a browsing request of the target page to the server in response to the display operation of the target page, that is, sends a calling request of the plurality of controls in the target page to the server, the calling request carrying an identifier of a target user account and page information of the target page, and being used to instruct the server to acquire the fuse state information of the service interfaces associated with the plurality of controls for the target user account, the page information being information such as a link of the target page pointing to the target page, and the target user account being a user account currently logged in by the terminal.

[0110] In step 402, the server acquires the fuse state information of the service interface associated with the control in response to the calling request of the control in the target page by the terminal.

[0111] In some embodiments, the server records the fuse state information of the service interfaces associated with the plurality of controls in the target page in a cache, and the embodiments of the present application take acquiring the fuse state information of the service interface associated with any control as an example for description. The server determines, based on the page information of the target page, that the target page includes the plurality of controls in response to the calling request of the plurality of controls in the target page by the terminal, acquires, for any control, an identifier of the service interface associated with the control based on an identifier of the control, and acquires, based on the identifier of the service interface and an identifier of a target user account, the fuse state information of the service interface for the target user account from the cache.

[0112] Exemplarily, the process of recording the fuse state information of the service interface associated with any control is described, the fuse state information of the service interface being determined based on a calling condition of the service interface, including the following three processes.

[0113] Process 1: The server records historical calling information of the service interface based on a calling result of the service interface.

[0114] The calling result is used to indicate that the service interface calling succeeds or fails, and the historical calling information is used to indicate a historical calling success number of the service interface and a historical calling failure number of the service interface.

[0115] In some embodiments, the server records the calling result of the service interface each time it is called, accumulates the historical calling success number and the historical calling failure number of the service interface based on the calling results of the service interface multiple times, obtains the historical calling information of the service interface, and records the identifier of the service interface and the historical calling information in the database correspondingly. Optionally, the server accumulates the historical calling success number and the historical calling failure number of the service interface respectively according to a preset period.

[0116] Exemplarily, as shown in Figure 5 , taking the target page as a live page, the server provides multiple services, as shown in steps 1 to 6 in Figure 5 , the server can realize the above process through a live service, a downstream service, a message queue, and a message queue consumer. The terminal sends a calling request of the service interface associated with the control to the server in response to the click operation of the control in the live page, the live service calls the service interface in response to the calling request, the service interface calls the downstream service related to the control, the downstream service provides a service related to the control and returns corresponding data, the live service sends the data returned by the downstream service to the terminal, and determines the calling result of the service interface, records the calling result of the service interface and the identifier of the service interface in the message queue correspondingly, the consumer of the message queue obtains the calling result of the service interface from the message queue based on the identifier of the service interface, accumulates the historical calling success number and the historical calling failure number of the service interface respectively based on the calling result, obtains the historical calling information of the service interface, and records the identifier of the service interface and the historical calling information in the database correspondingly.

[0117] Process 2, the server processes the service interface based on the historical calling information of the service interface.

[0118] In some embodiments, the fuse state of the service interface is realized by a fuse, which is used to process the service interface based on different working states. The server determines the historical calling success rate (successRatio) of the service interface based on the historical calling success number and the historical calling failure number in the historical calling information of the service interface, adds the historical calling success number and the historical calling failure number to obtain the historical calling number (reqCount) of the service interface, and sets the current working state of the fuse based on the historical calling number, the historical calling success rate of the service interface, and the historical working state information of the fuse.

[0119] The historical operating status information indicates whether the fuse has been in an open, half-open, or closed state. An open fuse indicates that the service interface trips all user accounts; a half-open fuse indicates that the service interface trips a target percentage of user accounts, but not other user accounts; a closed fuse indicates that the service interface does not trip any of those user accounts.

[0120] The process of setting the current operating state of the fuse in the above-mentioned server will be described by way of example. Figure 6 As shown, there are four methods:

[0121] (1) If the historical working status information indicates that the historical working status of the fuse is closed, the number of historical calls is greater than the first threshold (rule.minReqCount), and the success rate of the historical calls is less than the second threshold (rule.successRatio-Threshold), then set the current status of the fuse to half-open.

[0122] (2) If the historical working status information indicates that the historical working status of the fuse is half open and the number of historical calls is 0, or if the historical working status information indicates that the historical working status of the fuse is half open, the number of historical calls is greater than 0 and the success rate of historical calls is less than or equal to the third threshold (rule.getSuccessRatio-Threshold), then set the current working status of the fuse to open.

[0123] (3) If the historical working status information indicates that the historical working status of the fuse is half open, the number of historical calls is greater than 0, and the success rate of the historical calls is greater than the third threshold, then set the current working status of the fuse to closed.

[0124] (4) If the historical working status information indicates that the historical working status of the fuse is open, set the current working status of the fuse to half open.

[0125] For example, such as Figure 5 As shown in steps 9 to 11, in each cycle, the server retrieves the working status information of the circuit breaker of the service interface in the previous cycle, the number of calls and the success rate of the call in the previous N cycles from the database and caches them based on the identifier of the service interface. Based on the working status information of the circuit breaker in the previous cycle, the number of calls and the success rate of the call in the previous N cycles, the server sets the working status of the circuit breaker in the current cycle through the above four methods, where N is an integer greater than 0.

[0126] Process 3, the server records the fuse state information of the service interface.

[0127] In some embodiments, the server records the identification of the service interface, the identification of each user account and the fuse state of the corresponding service interface in the cache, so that when the server receives the invocation request of the control, the server can quickly obtain the fuse state information of the service interface associated with the control from the cache, so that the interface of the control can be fused and the terminal can be instructed to hide the control in the target page in the case that the associated service interface has been fused, so as to improve the user experience.

[0128] It should be noted that the server will update the fuse information of the service interface stored in the cache according to the current fuse state of the service interface. For example, in each period, the server will update the fuse state information of the service interface stored in the cache based on the fuse state of the service interface processed by the fuse.

[0129] In step 403, if the fuse state information indicates that the service interface is in the fused state, the server fuses the interface of the control and sets the control to the hidden state in the target page.

[0130] In some embodiments, if the fuse state information indicates that the service interface is in the fused state for the target user account, the server fuses the interface of the control for the target user account and sets the control to the hidden state in the target page. Thus, in the case that the service interface associated with the control does not provide related services, the server does not perform the process of obtaining the display information of the control, and the control is hidden in the target page, which can avoid the case that the user clicks the control in the target page to cause the page to display abnormally, thereby improving the user experience.

[0131] In step 404, the server sends a first invocation response of the control to the terminal, and the first invocation response is used to instruct to hide the control in the target page.

[0132] In some embodiments, the server determines a display position of the control in the target page, sequentially moves the display positions of other controls behind the target display position in the target page, and sends a first call response to the terminal, the first call response carrying the adjusted display positions of the other controls except the control, the identification of the corresponding control, and other information for displaying the target page, for instructing the terminal to display the other controls except the control in the target page based on the adjusted display positions, thereby hiding the control. For example, as shown in FIG. 7, the controls in the target page include “recommendation”, “color value”, “talent”, “game”, “sales”, and “emotion”, if it is required to hide “talent” in the target page, the server sequentially moves the display positions of “game”, “sales”, and “emotion”, and sends the first call response to the terminal.

[0133] Optionally, the server instructs the terminal to hide the control through other manners, which are not limited in the embodiments of the present application.

[0134] By sending the first call response of the control to the terminal, the terminal can be instructed to hide the control when the service interface of the control does not provide relevant services, thereby avoiding the situation that the target page displays abnormally when the user clicks the control in the target page, improving the human-computer interaction efficiency, and achieving the purpose of improving the user experience.

[0135] In some embodiments, the steps 402 to 404 are implemented based on an interface fusing tool package, which runs in the server, for example, in the form of a plug-in, for providing the functions described in the steps 402 to 404 for the background services of multiple application programs in the server.

[0136] In step 405, the terminal receives the first call response of the control returned by the server, displays the target page, and hides the control in the target page.

[0137] In some embodiments, the terminal receives the first call response of the control returned by the server, displays the target page, and displays the other controls except the control in the target page based on the adjusted display positions, thereby hiding the control in the target page. Optionally, the terminal hides the control in the target page through other manners, which are not limited in the embodiments of the present application.

[0138] It should be noted that the above steps 403 to 405 are described by taking the service interface as an example in the fused state. In some embodiments, the service interface is in the non-fused state, and the above steps 403 to 405 can be replaced by: if the fuse state information indicates that the service interface is in the non-fused state, the server obtains display information of the control based on the interface of the control, sets the control to a display state in the target page, and sends a second call response of the control to the terminal, the second call response being used to instruct to display the control in the target page based on the display information. The terminal receives the second call response of the control returned by the server, displays the target page, and displays the control in the target page based on the display information of the control.

[0139] Exemplarily, for the above steps 401 to 405, the target page is taken as an example in a live page, as shown in the following table. Figure 5 As shown in the table, the terminal sends a call request of the control in the live page to the server (step 7), the live service of the server requests the fuse state information of the service interface associated with the control for the target user account from the cache of the server in response to the call request of the control (step 8), the cache of the server sends the fuse state information of the service interface for the target user account to the live service (step 12), if the fuse state information indicates that the service interface is in the fused state for the target user account, the live service returns a first call response of the control to the terminal (step 13), and if the fuse state information indicates that the service interface is in the non-fused state for the target user account, the live service sends a second call response of the control to the terminal (step 14).

[0140] The technical scheme provided by the embodiments of the present disclosure can hide the control in the target page when the service interface is in the fused state, avoid the case that the user clicks the control in the target page to cause the page to display abnormally, and thus achieve the purposes of improving the human-computer interaction efficiency and improving the user experience.

[0141] Figure 8 is a block diagram of a page display device according to an exemplary embodiment. Referring to Figure 8 , the device includes an obtaining unit 801, a fusing unit 802, and a sending unit 803.

[0142] The obtaining unit 801 is configured to obtain fuse state information of a service interface associated with a control in response to a call request of the control in a target page by a terminal, the fuse state information being used to indicate that the service interface is in a fused state or a non-fused state.

[0143] The fusing unit 802 is configured to execute the following operation: if the fusing state information indicates that the service interface is in a fusing state, fuse the interface of the control, and set the control to a hidden state in the target page.

[0144] The sending unit 803 is configured to execute the following operation: send the first calling response of the control to the terminal, where the first calling response is used to instruct to hide the control in the target page.

[0145] In some embodiments, the fusing state information of the service interface is determined based on calling conditions of the service interface.

[0146] In some embodiments, the apparatus further comprises:

[0147] The processing unit is configured to execute the following operation: based on historical calling information of the service interface, process the service interface, and record fusing state information of the service interface, where the historical calling information is used to indicate a historical calling success number of the service interface and a historical calling failure number of the service interface.

[0148] In some embodiments, the processing unit comprises:

[0149] The determining subunit is configured to execute the following operation: based on historical calling information of the service interface, determine a historical calling success rate of the service interface.

[0150] The setting subunit is configured to execute the following operation: based on a historical calling number of the service interface, a historical calling success rate of the service interface, and historical working state information of a fuse of the service interface, set a current working state of the fuse, where the fuse is used to process the service interface based on different working states, and the historical working state information is used to indicate that the historical working state of the fuse is in an open state, a half-open state, or a closed state.

[0151] In some embodiments, the setting subunit is configured to execute the following operation: in each period, based on a calling number of the service interface in the previous N periods, a calling success rate of the service interface in the previous N periods, and working state information of the fuse in the previous period, set a working state of the fuse in the current period, where N is an integer greater than 0.

[0152] In some embodiments, the setting subunit is configured to: set the current working state of the fuse to a half-open state if the historical working state information indicates that the historical working state of the fuse is closed, the number of historical calls is greater than a first threshold, and the historical call success rate is less than a second threshold; set the current working state of the fuse to an open state if the historical working state information indicates that the historical working state of the fuse is half-open and the number of historical calls is 0, or if the historical working state information indicates that the historical working state of the fuse is half-open, the number of historical calls is greater than 0, and the historical call success rate is less than or equal to a third threshold; set the current working state of the fuse to a closed state if the historical working state information indicates that the historical working state of the fuse is open, the current working state of the fuse is set to a half-open state.

[0153] In some embodiments, the circuit breaker being in an open state indicates that the service interface circuit breaks for all user accounts; the circuit breaker being in a half-open state indicates that the service interface circuit breaks for a target proportion of user accounts, but does not circuit break for other user accounts besides the target proportion; the circuit breaker being in a closed state indicates that the service interface does not circuit break for any of the user accounts.

[0154] In some embodiments, the acquisition unit 801 is configured to perform the following: if the circuit breaker status information indicates that the service interface is in an uncircuited state, based on the interface of the control, acquire the display information of the control, the display information including the content and style of the control, and set the control to a display state on the target page;

[0155] The sending unit 803 is configured to execute a second call response to the terminal, the second call response being used to instruct the control to be displayed on the target page based on the display information.

[0156] Figure 9 This is a block diagram illustrating a page display device according to an exemplary embodiment. (Refer to...) Figure 9 The device includes a transmitting unit 901, a receiving unit 902, and a display unit 903.

[0157] Sending unit 901 is configured to perform a call request to a control in the target page in response to a display operation on the target page. The call request is used to indicate the circuit breaker status information of the service interface associated with the control. The circuit breaker status information is used to indicate whether the service interface is in a circuit breaker state or a non-circuit breaker state.

[0158] The receiving unit 902 is configured to receive a first calling response of the control returned by the server in a case where the fuse state information indicates that the service interface is in the fused state, the first calling response being used to instruct to hide the control on the target page.

[0159] The display unit 903 is configured to display the target page in which the control is hidden.

[0160] In some embodiments, the receiving unit 902 is configured to receive a second calling response of the control returned by the server in a case where the fuse state information indicates that the service interface is in the unfused state, the second calling response being used to instruct to display the control on the target page based on display information of the control, the display information including content and style of the control, the display information being obtained based on an interface of the control.

[0161] The display unit 903 is configured to display the target page in which the control is displayed based on the display information of the control.

[0162] It should be noted that the above Figure 8 The embodiments of the page display apparatus and the page display method provided by the above Figure 9 The embodiments of the page display apparatus and the page display method provided by the above

[0163] The embodiments of the page display apparatus and the page display method provided by the above Figure 10 is a structural block diagram of a terminal according to an example embodiment. The terminal 1000 can be a smart phone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a notebook computer, or a desktop computer. The terminal 1000 can also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0164] Generally, the terminal 1000 includes a processor 1001 and a memory 1002.

[0165] The processor 1001 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1001 can be implemented in at least one of a hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA), and the like. The processor 1001 can also include a main processor and a co-processor. The main processor is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit). The co-processor is a low-power consumption processor for processing data in a standby state. In some embodiments, the processor 1001 can be integrated with a graphics processor (GPU) for rendering and drawing content required to be displayed by a display screen. In some embodiments, the processor 1001 can further include an artificial intelligence (AI) processor for processing computing operations related to machine learning.

[0166] The memory 1002 can include one or more computer-readable storage media that can be non-transitory. The memory 1002 can also include high-speed random access memory and nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one program code for being executed by the processor 1001 to implement a process performed by a terminal in a page display method provided by the method embodiments in the present application.

[0167] In some embodiments, the terminal 1000 can also optionally include a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002, and the peripheral device interface 1003 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1003 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008, and a power supply 1009.

[0168] The peripheral interface 1003 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002 and the peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002 and the peripheral interface 1003 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.

[0169] The radio frequency circuit 1004 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1004 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area networks and / or wireless fidelity (WiFi) networks. In some embodiments, the radio frequency circuit 1004 can also include near field communication (NFC) related circuitry, and the present application is not limited in this regard.

[0170] The display screen 1005 is configured to display a user interface (UI). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 is further configured to capture touch signals on or above the surface of the display screen 1005. The touch signals can be input to the processor 1001 as control signals for processing. In this case, the display screen 1005 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1005 can be one, disposed on the front panel of the terminal 1000; in other embodiments, the display screen 1005 can be at least two, respectively disposed on different surfaces of the terminal 1000 or in a folding design; in other embodiments, the display screen 1005 can be a flexible display screen, disposed on a curved surface or a folding surface of the terminal 1000. Even, the display screen 1005 can also be disposed in an irregular shape other than a rectangle, i.e., a special-shaped screen. The display screen 1005 can be made of liquid crystal display (LCD), organic light-emitting diode (OLED), etc.

[0171] The camera assembly 1006 is configured to capture images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is disposed on the front panel of the terminal, and the rear-facing camera is disposed on the back of the terminal. In some embodiments, the rear-facing camera is at least two, which is any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blur function by fusing the main camera and the depth-of-field camera, the panoramic shooting and virtual reality (VR) shooting function by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1006 can further include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0172] The audio circuit 1007 can include a microphone and a speaker. The microphone is used to collect sound waves of a user and an environment, and convert the sound waves into an electrical signal input to the processor 1001 for processing, or input to the radio frequency circuit 1004 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal 1000. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert an electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can the electrical signal be converted into a sound wave audible to humans, but also can be converted into a sound wave inaudible to humans for ranging purposes. In some embodiments, the audio circuit 1007 can also include a headphone jack.

[0173] The positioning component 1008 is used to position the current geographic location of the terminal 1000 to realize navigation or location-based services (LBS). The positioning component 1008 can be a positioning component based on the global positioning system (GPS) of the United States, the Beidou system of China, the Glonass system of Russia or the Galileo system of the European Union.

[0174] The power supply 1009 is used to supply power to each component in the terminal 1000. The power supply 1009 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0175] In some embodiments, the terminal 1000 also includes one or more sensors 1010. The one or more sensors 1010 include but are not limited to: an acceleration sensor 1011, a gyroscope sensor 1012, a pressure sensor 1013, a fingerprint sensor 1014, an optical sensor 1015 and a proximity sensor 1016.

[0176] The acceleration sensor 1011 can detect the acceleration magnitude in three coordinate axes of the coordinate system established by the terminal 1000. For example, the acceleration sensor 1011 can be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used for gaming or user motion data collection.

[0177] The gyroscope sensor 1012 can detect the body direction and rotation angle of the terminal 1000, and can collect 3D motions of the user on the terminal 1000 in cooperation with the acceleration sensor 1011. The processor 1001 can implement the following functions according to the data collected by the gyroscope sensor 1012: motion sensing (such as changing the UI according to the tilt operation of the user), image stabilization when shooting, game control, and inertial navigation.

[0178] The pressure sensor 1013 can be arranged on the side frame of the terminal 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1013 is arranged on the side frame of the terminal 1000, the holding signal of the user on the terminal 1000 can be detected, and the left-hand or right-hand recognition or shortcut operation can be performed by the processor 1001 according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is arranged on the lower layer of the display screen 1005, the controllable control on the UI interface can be controlled by the processor 1001 according to the pressure operation of the user on the display screen 1005. The controllable control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0179] The fingerprint sensor 1014 is used to collect the fingerprint of the user, and the identity of the user can be recognized by the processor 1001 according to the fingerprint collected by the fingerprint sensor 1014, or by the fingerprint sensor 1014 according to the collected fingerprint. When the identity of the user is recognized as a trusted identity, the processor 1001 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, payment, and changing settings. The fingerprint sensor 1014 can be arranged on the front, back or side of the terminal 1000. When the terminal 1000 is provided with a physical button or a manufacturer's trademark, the fingerprint sensor 1014 can be integrated with the physical button or the manufacturer's trademark.

[0180] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is decreased. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1015.

[0181] The proximity sensor 1016, also referred to as a distance sensor, is usually arranged on the front panel of the terminal 1000. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal 1000. In an embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 gradually decreases, the display screen 1005 is switched from the bright screen state to the screen-off state under the control of the processor 1001; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 gradually increases, the display screen 1005 is switched from the screen-off state to the bright screen state under the control of the processor 1001.

[0182] Those skilled in the art can understand that the structure shown in the foregoing embodiments is not a limitation on the terminal 1000, and the terminal 1000 can include more or fewer components than those shown in the drawings, or combine certain components, or adopt a different arrangement of components. Figure 10 Those skilled in the art can understand that the structure shown in the foregoing embodiments is not a limitation on the terminal 1000, and the terminal 1000 can include more or fewer components than those shown in the drawings, or combine certain components, or adopt a different arrangement of components.

[0183] The embodiments of the present disclosure provide an electronic device for performing the page display method described above, in some embodiments, the electronic device is provided as a server, Figure 11 FIG. 11 is a block diagram of a server 1100 according to an exemplary embodiment. The server 1100 can have a large difference in configuration or performance, and can include one or more processors (Central Processing Units, CPUs) 1101 and one or more memories 1102, wherein the one or more memories 1102 store at least one program code, which is loaded and executed by the one or more processors 1101 to implement the processes performed by the server in the page display method provided by the various method embodiments described above. Of course, the server 1100 can also have a wired or wireless network interface, a keyboard, and an input and output interface, etc., so as to perform input and output, and the server 1100 can also include other components for realizing the functions of the device, which are not described herein.

[0184] In exemplary embodiments, a computer-readable storage medium including program code is also provided, for example, the memory 1102 including program code, and the above program code can be executed by the processor 1101 of the server 1100 to complete the page display method described above. Alternatively, the computer-readable storage medium can be a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), a compact-disc read-only memory (compact-disc read-only memory, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0185] In an example embodiment, a computer program product is also provided, comprising a computer program which, when executed by a processor, implements the page display method described above.

[0186] In some embodiments, the computer program related to the embodiments of the present application can be deployed to execute on one electronic device, or on multiple electronic devices located in one place, or on multiple electronic devices distributed in multiple places and interconnected through a communication network, which can constitute a blockchain system.

[0187] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure following the general principles thereof and including such modifications and changes as come within the meaning and scope of the present disclosure. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0188] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. A page display method, characterized in that, The method includes: In response to a terminal's request to call a control on a target page, the circuit breaker status information of the service interface associated with the control is obtained. The service interface is used to provide services related to the control based on the call, and the circuit breaker status information is used to indicate whether the service interface is in a circuit-breaker state or a non-circuit-breaker state. If the circuit breaker status information indicates that the service interface is in a circuit breaker state, the interface of the control is circuit breakered, and the control is set to a hidden state on the target page. The interface of the control is used to obtain the display information of the control based on the call. A first invocation response for the control is sent to the terminal, the first invocation response being used to instruct the control to be hidden in the target page.

2. The page display method according to claim 1, characterized in that, The circuit breaker status information of the service interface is determined based on the call status of the service interface.

3. The page display method according to claim 1 or 2, characterized in that, The method further includes: Based on the historical call information of the service interface, the service interface is processed, and the circuit breaker status information of the service interface is recorded. The historical call information is used to represent the number of successful historical calls and the number of failed historical calls of the service interface.

4. The page display method according to claim 3, characterized in that, The processing of the service interface based on its historical call information includes: Based on the historical call information of the service interface, determine the historical call success rate of the service interface; Based on the historical call count of the service interface, the historical call success rate of the service interface, and the historical working status information of the circuit breaker of the service interface, the current working status of the circuit breaker is set, and the circuit breaker is used to process the service interface based on different working statuses; The historical operating status information is used to indicate whether the historical operating status of the fuse is open, partially open, or closed.

5. The page display method according to claim 4, characterized in that, Setting the current working state of the circuit breaker based on the historical call count, historical call success rate, and historical working state information of the service interface's circuit breaker includes: In each cycle, based on the number of calls to the service interface in the previous N cycles, the success rate of the calls to the service interface in the previous N cycles, and the working status information of the circuit breaker in the previous cycle, the working status of the circuit breaker in the current cycle is set, where N is an integer greater than 0.

6. The page display method according to claim 4 or 5, characterized in that, Setting the current working state of the circuit breaker based on the historical call count, historical call success rate, and historical working state information of the service interface's circuit breaker includes: If the historical working status information indicates that the historical working status of the fuse is closed, the number of historical calls is greater than a first threshold, and the success rate of the historical calls is less than a second threshold, then the current working status of the fuse is set to half-open. If the historical working status information indicates that the fuse's historical working status is half-open and the number of historical calls is 0, or if the historical working status information indicates that the fuse's historical working status is half-open, the number of historical calls is greater than 0, and the historical call success rate is less than or equal to the third threshold, then the current working status of the fuse is set to open. If the historical working status information indicates that the fuse's historical working status is half-open, the number of historical calls is greater than 0, and the success rate of historical calls is greater than the third threshold, then the current working status of the fuse is set to closed. If the historical operating status information indicates that the fuse's historical operating status was open, then the fuse's current operating status is set to half-open.

7. The page display method according to claim 6, characterized in that, The circuit breaker being in the open state indicates that the service interface will trip all user accounts; the circuit breaker being in the half-open state indicates that the service interface will trip a target proportion of user accounts, but will not trip other user accounts; the circuit breaker being in the closed state indicates that the service interface will not trip all user accounts.

8. The page display method according to claim 1, characterized in that, The method further includes: If the circuit breaker status information indicates that the service interface is in an unbroken state, based on the interface of the control, obtain the display information of the control, the display information including the content and style of the control, and set the control to a display state on the target page; A second invocation response for the control is sent to the terminal, the second invocation response being used to instruct the control to be displayed on the target page based on the display information.

9. A page display method, characterized in that, The method includes: In response to the display operation of the target page, a call request for the control in the target page is sent to the server. The call request is used to indicate the circuit breaker status information of the service interface associated with the control. The service interface is used to provide services related to the control based on the call. The circuit breaker status information is used to indicate whether the service interface is in a circuit breaker state or a non-circuit breaker state. The server receives a first call response to the control when the circuit breaker status information indicates that the service interface is in a circuit breaker state. The first call response is used to indicate that the control is hidden on the target page. The first call response is obtained when the interface of the control is circuit breaker broken. The interface of the control is used to obtain the display information of the control based on the call. Display the target page, and hide the control on the target page.

10. The page display method according to claim 9, characterized in that, The method further includes: The server receives a second call response to the control when the circuit breaker status information indicates that the service interface is in an unbroken state. The second call response is used to instruct the display of the control on the target page based on the display information of the control. The display information includes the content and style of the control and is obtained based on the interface of the control. The target page is displayed, and the control is displayed on the target page based on the display information of the control.

11. A page display device, characterized in that, The device includes: The acquisition unit is configured to respond to a terminal's call request to a control on a target page, and acquire circuit breaker status information of a service interface associated with the control. The service interface is used to provide services related to the control based on the call, and the circuit breaker status information is used to indicate whether the service interface is in a circuit breaker state or a non-circuit breaker state. The circuit breaker unit is configured to, if the circuit breaker status information indicates that the service interface is in a circuit breaker state, breaker the interface of the control and set the control to a hidden state on the target page. The interface of the control is used to obtain the display information of the control based on the call. The sending unit is configured to execute sending a first invocation response of the control to the terminal, the first invocation response being used to instruct the control to be hidden in the target page.

12. The page display device according to claim 11, characterized in that, The circuit breaker status information of the service interface is determined based on the call status of the service interface.

13. The page display device according to claim 10 or 11, characterized in that, The device further includes: The processing unit is configured to process the service interface based on the historical call information of the service interface, and record the circuit breaker status information of the service interface. The historical call information is used to represent the number of successful historical calls and the number of failed historical calls of the service interface.

14. The page display device according to claim 13, characterized in that, The processing unit includes: The subunit is configured to execute historical call information based on the service interface to determine the historical call success rate of the service interface. The setting subunit is configured to perform operations based on the historical call count of the service interface, the historical call success rate of the service interface, and the historical working status information of the circuit breaker of the service interface, and to set the current working status of the circuit breaker. The circuit breaker is used to process the service interface based on different working statuses. The historical working status information is used to indicate that the historical working status of the circuit breaker is open, half-open, or closed.

15. The page display device according to claim 14, characterized in that, The setting subunit is configured to, in each cycle, set the working state of the circuit breaker in the current cycle based on the number of calls to the service interface in the previous N cycles, the success rate of the calls to the service interface in the previous N cycles, and the working state information of the circuit breaker in the previous cycle, where N is an integer greater than 0.

16. The page display device according to claim 14 or 15, characterized in that, The setting subunit is configured to: if the historical operating status information indicates that the fuse's historical operating status was closed, the number of historical calls is greater than a first threshold, and the historical call success rate is less than a second threshold, set the current operating status of the fuse to a half-open state; if the historical operating status information indicates that the fuse's historical operating status was half-open and the number of historical calls is 0, or if the historical operating status information indicates that the fuse's historical operating status was half-open, the number of historical calls is greater than 0, and the historical call success rate is less than or equal to a third threshold, set the current operating status of the fuse to an open state; if the historical operating status information indicates that the fuse's historical operating status was half-open, the number of historical calls is greater than 0, and the historical call success rate is greater than the third threshold, set the current operating status of the fuse to a closed state; and if the historical operating status information indicates that the fuse's historical operating status was open, set the current operating status of the fuse to a half-open state.

17. The page display device according to claim 16, characterized in that, The circuit breaker being in the open state indicates that the service interface will trip all user accounts; the circuit breaker being in the half-open state indicates that the service interface will trip a target proportion of user accounts, but will not trip other user accounts; the circuit breaker being in the closed state indicates that the service interface will not trip all user accounts.

18. The page display device according to claim 11, characterized in that, The acquisition unit is configured to perform the following actions: if the circuit breaker status information indicates that the service interface is in an unbroken state, based on the interface of the control, acquire the display information of the control, the display information including the content and style of the control, and set the control to a display state on the target page; The sending unit is configured to execute a second invocation response to the terminal, the second invocation response being used to instruct the control to be displayed on the target page based on the display information.

19. A page display device, characterized in that, The device includes: The sending unit is configured to perform a call request for a control on the target page in response to a display operation on the target page. The call request is used to indicate the circuit breaker status information of the service interface associated with the control. The service interface is used to provide services related to the control based on the call. The circuit breaker status information is used to indicate whether the service interface is in a circuit breaker state or a non-circuit breaker state. The receiving unit is configured to receive a first call response of the control returned by the server when the circuit breaker status information indicates that the service interface is in a circuit breaker state. The first call response is used to indicate that the control is hidden on the target page. The first call response is obtained when the interface of the control is circuit breaker broken. The interface of the control is used to obtain the display information of the control based on the call. The display unit is configured to display the target page and hide the controls on the target page.

20. The page display device according to claim 19, characterized in that, The receiving unit is configured to receive a second call response of the control returned by the server when the circuit breaker status information indicates that the service interface is in an uncircuited state. The second call response is used to instruct the display of the control on the target page based on the display information of the control. The display information includes the content and style of the control and is obtained based on the interface of the control. The display unit is configured to display the target page and, based on the display information of the control, display the control on the target page.

21. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory used to store the executable program code of the processor; The processor is configured to execute the program code to implement the page display method as described in any one of claims 1 to 8, or the page display method as described in claim 9 or 10.

22. A computer-readable storage medium, characterized in that, When the program code in the computer-readable storage medium is executed by the processor of the electronic device, the electronic device is able to perform the page display method as described in any one of claims 1 to 8, or the page display method as described in claim 9 or 10.

23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the page display method of any one of claims 1 to 8, or the page display method of claim 9 or 10.

Citation Information

Patent Citations

  • Terminal window display method and device, computer equipment and storage medium

    CN110018870A

  • Cache-based server interface fusing method and device

    CN110737567A