CN113391858A - Page loading method and device in client, computer equipment and medium - Google Patents

Page loading method and device in client, computer equipment and medium Download PDF

Info

Publication number
CN113391858A
CN113391858A CN202110785457.8A CN202110785457A CN113391858A CN 113391858 A CN113391858 A CN 113391858A CN 202110785457 A CN202110785457 A CN 202110785457A CN 113391858 A CN113391858 A CN 113391858A
Authority
CN
China
Prior art keywords
request
server
data
login
request data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110785457.8A
Other languages
Chinese (zh)
Inventor
李兴涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Shanghai Dajiaying Information Technology Co Ltd
Suzhou Dajiaying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dajiaying Information Technology Co Ltd, Suzhou Dajiaying Information Technology Co Ltd filed Critical Shanghai Dajiaying Information Technology Co Ltd
Priority to CN202110785457.8A priority Critical patent/CN113391858A/en
Publication of CN113391858A publication Critical patent/CN113391858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page loading method, a page loading device, computer equipment and a medium in a client, wherein the method comprises the following steps: generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server; intercepting and filtering a plurality of abnormal response data fed back by the server, and executing single updating operation on the login credentials aiming at each abnormal response data; and regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data. According to the technical scheme, the request data is reconstructed based on the login certificate updated once, and efficient loading and displaying of the multi-source information page can be achieved when the login certificate of the client is expired; meanwhile, by performing single updating operation on the login credentials, repeated updating of the login credentials can be avoided, and waste of server resources can be avoided.

Description

Page loading method and device in client, computer equipment and medium
Technical Field
The present invention relates to a page display technology, and in particular, to a method and an apparatus for loading a page in a client, a computer device, and a medium.
Background
With the continuous enrichment of client functions, multiple items of information are generally required to be loaded when a client page is displayed; and the overdue login credentials of the client cause the failure of the information request of the client page, so that the overdue login credentials are updated to ensure the validity of the login credentials, and the method has important significance for realizing the loading display of the multi-source information page.
Currently, the update of the login credentials can be realized by actively refreshing the expired login credentials by using the unexpired login credentials update credentials. The logon credential update credential is typically an encrypted string and is associated with the logon credential. Compared with login credentials for acquiring various resources, the login credentials only have the function of acquiring new login credentials, the function and the security requirement of the login credentials are greatly reduced, and therefore the expiration time of the login credentials can be set to be longer.
In the prior art, when the login credential needs to be updated, the application program needs to call a login credential update interface of the server, and the server correspondingly obtains a new login credential and a login credential update credential, and sends the new login credential and the login credential update credential to the application program, so as to update the login credential. For the display of the multi-source information page, the client needs to send a plurality of request data to the server in a short time to perform asynchronous calling of a matched request interface in the server, and an existing login certificate updating mode can form a dead cycle of repeated updating of the login certificate, so that the business processing pressure of the server can be increased, and the waste of server resources is caused.
Disclosure of Invention
The embodiment of the invention provides a page loading method and device in a client, computer equipment and a medium, which are used for realizing efficient loading and display of a multi-source information page when a login certificate in the client is expired.
In a first aspect, an embodiment of the present invention provides a method for loading a page in a client, where the method includes:
generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
intercepting and filtering a plurality of abnormal response data fed back by a server, and executing single updating operation on a login credential aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
In a second aspect, an embodiment of the present invention further provides a page loading apparatus in a client, including:
the request data generation module is used for generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to the server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
the updating operation execution module is used for intercepting and filtering a plurality of abnormal response data fed back by the server and executing single updating operation on the login credentials aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and the page loading display module is used for regenerating request data corresponding to the updated login credentials and sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of page loading in a client according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page loading method in the client provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, when the fact that the login certificate carried in the request data of loading the multi-source information page in the client is expired is detected, the single updating operation of the login certificate is executed, and after the login certificate is updated, the technical means of reconstructing the request data based on the updated login certificate is provided, so that a new loading display mode of the multi-source information page in the client is provided, and the efficient loading display of the multi-source information page when the login certificate in the client is expired can be realized; meanwhile, by performing single updating operation on the expired login credentials, repeated updating of the login credentials can be avoided, the service processing pressure of the server can be reduced, and waste of server resources can be avoided.
Drawings
Fig. 1 is a flowchart of a page loading method in a client according to an embodiment of the present invention;
fig. 2 is a flowchart of a page loading method in a client according to a second embodiment of the present invention;
fig. 3 is a block diagram of a structure of a page loading apparatus in a client according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
First, in order to facilitate understanding of the core protection point of the application document, a brief description is first given of related art points and technical defects in a specific application scenario.
In the prior art, when a multi-source information page in a client is loaded, a plurality of sub-threads are started to execute different functional modules in the client, such as a text content display module, a video content display module, or a comment information display module. In the working state, different functional modules all involve the acquisition of server resources, that is, login credentials stored locally at the client needs to be used to request the server for corresponding server resources. For example, the video content presentation module may obtain video resources in response to a request of a user, and the comment information presentation module may obtain comment information corresponding to a currently presented video in response to the request of the user.
The inventor discovers through creative labor that when loading and displaying a multi-source information page, a plurality of functional modules need to use a login certificate in a client to request resources from a server at the same time in a short time, and the login certificate is expired (the login certificate updating certificate is not expired), at the moment, each functional module receives response result data fed back by the server and informs that the login certificate is expired, and further, each functional module can independently call a login certificate updating interface in the server to request the server to update the login certificate.
That is, a special application scenario may occur, in which the functional module a first requests resources from the server based on the expired login credential, and after the server receives the resource request of the functional module a, and determines that the login credential is expired, the server feeds back response result data of the expired login credential to the functional module a; the functional module A sends a call request of a login credential update interface to the server after receiving response result data fed back by the server; and after receiving the call request of the login credential updating interface, the server issues a new login credential and a login credential updating credential. The interval time for sending the resource request by the functional module B and the functional module A is short, and at the moment, the first updating of the login credentials is still in progress, so that the functional module B still requests resources from the server based on the expired login credentials, and the process is repeated, and the server can update the login credentials and the login credential updating credentials again; the interval time for sending the resource request by the functional module C and the functional modules A and B is also short, at this time, the functional module C may send the resource request based on the original expired login credential or the login credential after one-time updating, but the login credential in the server is updated twice, so that the server considers that the login credential of the functional module C is expired, and the updating operation of the login credential is executed again; therefore, the server continuously executes three times of updating operations of the login credentials in a short time, in addition, the updating times of the login credentials are increased along with the increase of the functional modules, a dead cycle of repeated updating of the login credentials is easily formed, the business processing pressure of the server is increased, and the waste of server resources is caused.
Example one
Fig. 1 is a flowchart of a page loading method in a client according to an embodiment of the present invention, where this embodiment is applicable to a situation where a multi-source information page is efficiently loaded and displayed when a login credential in the client expires, and the method may be executed by a page loading device in the client and integrated on a computer device, where the computer device may be a PC, a tablet computer, or a mobile phone, and the method specifically includes the following steps:
and S110, generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server.
At least two pieces of request data carry login credentials stored in the client, and each piece of request data is used for requesting asynchronous call of a matched request interface in the server.
The multi-source information page is a page needing to load and display various types of information; such as a video recommendation page. In the video recommendation page, the video content, the video comment information, the like, and the like need to be loaded and displayed.
Correspondingly, when the client side obtains a loading request of a user for the multi-source information page, for example, when a video recommendation page jump instruction of the user is obtained, first, each type of information which needs to be loaded on the current video recommendation page is determined, and request data respectively corresponding to each type of information is correspondingly generated and sent to the server, so that each type of information resource corresponding to the multi-source information page is obtained from the server.
In this embodiment, all request data in the plurality of request data may carry the login credential stored in the client to request the login user to acquire the server resource, or at least two request data in the plurality of request data may carry the login credential stored in the client, and one or more request data excluding the request data may not carry the login credential stored in the client, and the request data that does not carry the login credential stored in the client is used to request the server resource that does not need to be restricted by the authority.
It should be noted that the client may implement the request acquisition of each type of information resource in the server by calling the server request interface.
Since the server generally sets different interface specifications for different provided request interfaces, that is, one or more of the parameter types and numbers of request data, the parameter types and numbers of response data, and the data processing logic corresponding to the interfaces may be different for different request interfaces.
Optionally, a matched server port or module may be set in advance for each request interface of the server, and the call to the matched request interface is implemented by sending a request to a different server port or module. Furthermore, when the client generates request data for different request interfaces of the server, the client may add an address, typically, a Uniform Resource Locator (URL) address, of a server port or a module corresponding to the request interface to the request data, and send the request data to the server; when the server receives request data sent by the client, the server directly forwards the request data to a corresponding server port or module according to the address of the server port or module in the request data; the server port or the module acquires the matched information resources according to the received request data, generates response data corresponding to the request data according to the information resources and the address of the corresponding server port or module, and then sends the response data to the client through the server.
The matched server ports or modules are preset for the request interfaces, and when the client generates the request data, the addresses of the matched server ports or modules are added to the request data, so that the distribution of the corresponding server ports or modules of the request data when the server receives the request data can be avoided, the service processing pressure of the server can be reduced, meanwhile, the corresponding server ports or modules are set for processing the corresponding request data specially aiming at different request interfaces, the request data processing flow of the server can be simplified, and the speed of the server for feeding back the response data is improved.
In addition, optionally, the request data generated by the client includes identification information of a request interface to be called, and does not include an address of a server port corresponding to the request interface; after receiving the request data, the server firstly determines a matched server port according to a request interface to be called by the current request data, and sends the current request data to the matched server port according to the address of the matched server port; response data corresponding to the request data are generated by the server port, and finally the response data are fed back to the corresponding client through the server, so that the server can uniformly manage the request interface.
Or, each request interface of the server may be set in a different storage area or a different path of the server in advance; furthermore, when the client generates request data for different request interfaces of the server, the address or the path of the storage area corresponding to the request interface can be added to the request data, and the request data is directly sent to the address or the path of the storage area matched in the server, so that the request interface in the server can be directly called.
Of course, those skilled in the art will understand that other ways may also be adopted to send multiple request data to multiple request interfaces in the server, and this embodiment is not limited to this.
In the method, parameter data in request data of different request interfaces of the server usually differ from each other, so information resources in response data fed back by the server for each request data also differ from each other. Meanwhile, the request data for each request interface generally cannot guarantee to reach each request interface of the server at the same time, that is, synchronous calling of each matched request interface cannot be realized, so that each request data is required to asynchronously call the matched request interface in the server.
In the embodiment of the present invention, optionally, after receiving the request data of the client, the server may first verify the login credentials in the request data; if the login credentials pass the verification successfully, the server sends the current request data to the matched request interface, the request interface generates matched standard response data aiming at the request data, and the server feeds the standard response data back to the client; otherwise, the server generates indication information that the login credential in the client terminal is expired and feeds the indication information back to the client terminal.
Or after receiving the request data of the client, the server sends the request data to the matched request interface according to the server port address in the request data, the identifier of the request interface to be called or the address or path of the set storage area, and the request interface verifies the login certificate in the request data to judge whether the login certificate is in the validity period; if the request interface determines that the login credentials are valid, the request interface directly generates standard response data corresponding to the request data; if the request interface determines that the login certificate is expired, the request interface directly generates indication information that the login certificate in the client is expired; the server feeds back standard response data generated by the request interface or indication information that the login credential in the client is expired to the client.
According to the embodiment of the invention, the login credentials carried by the request data are directly verified by the server or verified by the request interface, so that the login credentials in the client can be flexibly verified.
It should be noted that, when a user initially logs in, a client sends a login request including a user name and a user password to a server; after receiving a login request of a client, a server verifies a user name and a user password; after the verification is successful, the server issues a login certificate and sends the login certificate to the client; after receiving the login credentials, the client stores the login credentials (for example, to Cookie or Local Storage); for example, when a user clicks a "login" button of a login page, a login Application Program Interface (API) of an Application program is called, and the Application program generates a login request and sends the login request to a server; after the server receives the login request, if the login request passes the verification successfully, the server returns target response data with login credentials. The method comprises the following steps that a subsequent client side carries a login certificate issued by a server when sending request data to the server, the server verifies the login certificate in the request data after receiving the request data of the client side, and if the same login certificate is detected to be stored in the server and the login certificate is within the validity period, service parameters corresponding to the request data are returned to the client side; and if the same login credentials are stored in the server and the login credentials exceed the validity period, returning indication information that the login credentials in the client are expired.
In this embodiment, only the last synchronized login credentials of the server are cached in the client, that is, only one login credential is cached in the client; in the server, more than one login credential is stored, and in the resource pool storing the login credentials, besides the latest login credentials (which may or may not be expired, and if the validity period is exceeded and not updated, they are expired), there are many expired login credentials. The server verifies whether the login credentials in the target request data are consistent with the login credentials in the server or not so as to verify the login credentials; if the verification is inconsistent, the server may send a prompt message (for example, "the user credential is wrong and needs to log in again") to the client, so as to prompt the user to log in again.
And S120, intercepting and filtering a plurality of abnormal response data fed back by the server, and executing single updating operation on the login credentials aiming at each abnormal response data.
And the abnormal response data is feedback of the server for target request data with expired login credentials.
In the present embodiment, the fact that the login credential has expired means a state of "the login credential in the client is expired, and the login credential update credential is not expired". The client can automatically trigger the updating operation of the login credentials and the login credential updating credentials by using the login credentials, and the user name and the password do not need to be input again by the current user corresponding to the client, so that the client can be re-logged in without perception of the user.
Specifically, the client intercepts all response data fed back by the server according to each request data, and performs data analysis on the intercepted response data. If the response data is an information resource fed back by aiming at the target request data, the login credentials carried by each request data sent by the client can be determined to be still in the validity period; and if the response data is data enabling the client to update the login credentials, determining that the login credentials carried by the target request data are expired, determining the current request data as the target request data, determining the current response data as abnormal response data, and filtering the current abnormal response data. Through the setting, whether the login certificate of the client is expired or not can be accurately judged.
It should be noted that, because only the unique login credential is stored in the client, if the login credential is expired, the login credentials carried in all the request data of the current multi-source information page are all in an expired state without executing the update operation of the login credentials; therefore, the response data fed back by the server aiming at all the request data for loading the current multi-source information page are abnormal response data.
In the embodiment of the invention, optionally, the abnormal response data fed back by the server is intercepted and filtered, so that the situation that a sender requesting data receives the abnormal response data and the sender triggers the updating operation of the login credentials; furthermore, when one abnormal response data is intercepted, the updating operation of the login credentials is not immediately executed, but after all abnormal response data corresponding to all request data of the current multi-source information page are obtained, the single updating operation of the login credentials is executed, so that the repeated updating of the login credentials in a short time can be avoided, the endless loop involved in the repeated updating of the login credentials can be avoided, the business processing pressure of the server can be reduced, and the waste of server resources is avoided.
In this embodiment of the present invention, optionally, intercepting and filtering a plurality of abnormal response data fed back by the server may include: when target response data fed back by a server are detected, pre-intercepting the target response data, and performing data analysis on the pre-intercepted target response data; if the login certificate carried in the request data matched with the target response data is determined to be overdue according to the analysis result, determining the target response data as abnormal response data, and judging whether an updating time interval condition is met; if yes, filtering the target response data, and triggering and executing the updating operation of the login credentials; otherwise, directly filtering the target response data.
The update time interval condition is a preset update time interval duration of the login credential, for example, 30 seconds, and the update time interval condition is not specifically limited in the embodiment of the present invention. It should be noted that, the login credential is a credential for acquiring the protected resource, and the valid time is short, for example, the valid time of the login credential of each mainstream website is generally not more than one hour; after the login credential is expired, the login credential can be updated by adopting a login credential updating credential, wherein the login credential updating credential is an encrypted character string and is associated with the login credential; since the login credential update credential is only used to obtain a new login credential, the role and security requirements are greatly reduced, so that a longer expiration time can be set, for example, if the client is a browser, the login credential update credential can be set to a longer expiration time, which can be in units of days (e.g., 7 days or 15 days); if the client is a server, the login credential update credential may be permanently valid until the login credential update credential itself is updated.
In this embodiment, if the client determines that the current login credential is expired according to the analysis result of the target response data, the update operation of the login credential is not performed immediately, but it is further determined whether the current login credential satisfies the update time interval condition, for example, whether the current system time is the preset update time is determined to determine whether the update operation is performed, so that repeated update of the login credential can be avoided, the service processing pressure of the server can be reduced, and waste of server resources can be avoided.
The interception filtering operation on the abnormal response data can be executed by an interception module defined in the client, and the interception module realizes the interception filtering operation by triggering a built-in processing logic; the updating operation of the login credentials can be executed by an updating module which is arranged in the client and is independent of the intercepting module, and the intercepting module sends a triggering instruction to the updating module to trigger the updating module to realize the updating operation of the login credentials; the intercepting module and the updating module are both one of the functional modules in the client.
In this embodiment of the present invention, optionally, the determining whether the update time interval condition is satisfied may include: acquiring current system time and latest login credential updating time, and calculating a time difference between the current system time and the latest login credential updating time; judging whether the time difference value exceeds a preset time interval threshold value: if yes, determining that the updating time interval condition is met; otherwise, determining that the updating time interval condition is not met; correspondingly, after triggering to execute the update operation on the login credential, the method further comprises the following steps: the last login credential update time is updated using the current system time.
It should be noted that, the client obtains the latest login credential update time recorded by the client, and determines the time difference between the current system time and the latest login credential update time; further comparing whether the obtained time difference is greater than or equal to a preset time interval threshold (for example, 30 seconds), and if the time difference is greater than or equal to the preset time interval threshold, indicating that an update time interval condition is met; if the time difference is smaller than a preset time interval threshold, indicating that the updating time interval condition is not met; by obtaining the size relation between the time difference and the preset time interval threshold, whether the updating time interval condition is met or not can be accurately judged.
In this embodiment, if it is determined that the update time interval condition is satisfied, it indicates that the update operation of the login credential has not been performed within a set time period, and the request data is the first request data that needs to use the login credential and is initiated by the client after the login credential expires. At the moment, the target response data can be directly filtered, and then the client can be directly triggered to execute the updating operation of the login credentials in a unified manner; if the update time interval condition is determined not to be satisfied, the fact that the update of the login credentials is performed once in a short time is indicated, and the client-side does not temporarily complete the local cache of the updated login credentials because the time of the previous update operation is too short from the current time. In this case, the login credential need not be updated repeatedly, but only the target response data needs to be filtered to prevent the sender of the request data from receiving the target response data.
The target response data are directly filtered when the expired login credentials are determined not to meet the update time interval condition, the target response data are filtered when the expired login credentials are determined to meet the update time interval condition, and corresponding login credential update operation is uniformly triggered and executed, so that the client can be prevented from receiving the target response data for correspondingly executing login credential update for multiple times in a short time, the update operation of the login credentials can be prevented from being triggered by each functional module in the client in the short time, and the call pressure of a login credential update interface of a server can be reduced; meanwhile, the client uniformly triggers the updating operation of the login credentials according to the updating time interval condition, so that the updating of the login credentials still in the valid period can be avoided, and the waste of login credential resources is reduced.
In addition, it should be noted that only one login credential update time is recorded in the client, that is, the latest login credential update time; therefore, after the client triggers and executes the updating operation of the login credentials, the current system time is stored as the latest login credential updating time, and the updating of the login credential updating time can be realized.
And S130, regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
After finishing single updating operation of the login credentials, the client reconstructs request data based on the updated login credentials and sends the reconstructed request data to the server so as to call a request interface matched with the server; since the login credentials in the current request data have been updated the last time, each request data can be verified by the server; then, calling the matched request interface in the server through the request data to obtain the standard response data corresponding to each request data; therefore, loading display of the multi-source information page can be achieved according to the standard response data.
Optionally, after completing the single update operation on the login credential, the request data carrying the login credential stored in the client, generated in S110, needs to be reconstructed to request the server for the required resource. The standard response data which are fed back by the server and do not need permission limitation can be pre-loaded into the multi-source information page, and the standard response data which are fed back by the server aiming at the reconstructed request data and the standard response data can be loaded and displayed in the multi-source information page together.
In this embodiment, optionally, the loading and displaying the multi-source information page according to the standard response data fed back by the server for the new request data may include: after all contents to be displayed of the multi-source information page are obtained according to standard response data fed back by the server, one-time loading display of the multi-source information page is carried out; or each server feeds back standard response data to acquire one to-be-displayed content of the multi-source information page, and the asynchronous loading display is performed on the current to-be-displayed content, so that the flexible loading display of the multi-source information page can be realized.
In this embodiment, optionally, generating a plurality of request data according to the loading request of the multi-source information page, and sending the request data to the server may include: responding to a loading request of a multi-source information page, and preloading a basic page of the multi-source information page; identifying a plurality of areas to be filled in the basic page, and acquiring a plurality of request interfaces corresponding to the filling areas in the server; and constructing a template according to the request data corresponding to each request interface, generating the request data respectively corresponding to each request interface, and respectively sending each request data to the server.
The basic page of the multi-source information page may include a basic frame (e.g., a page layout manner) of the multi-source information page, a local storage resource (e.g., information such as user description information and historical access records), and the like.
In this embodiment, after acquiring a loading request of a multi-source information page of a user, a client first reads a basic frame and local storage resources corresponding to the multi-source information page to preload the basic page of the multi-source information page; further determining the areas to be filled in the current basic page and the information types of the area display contents of the areas to be filled; and determining corresponding request interfaces in the server according to the information types of the areas to be filled, constructing a template according to the request data respectively corresponding to the request interfaces, constructing the request data, and finally sending the constructed request data to the server so as to call the matching request interfaces of the server.
In addition, optionally, the obtaining of the multiple request interfaces corresponding to the areas to be filled in the server may include: acquiring a plurality of request interfaces corresponding to the areas to be filled in the server according to the mapping relation between the areas to be filled and the request interfaces; the same request interface corresponds to one or more areas to be filled. Further, a template may be constructed from the request data corresponding to each request interface, request data corresponding to each request interface may be generated, and each request data may be transmitted to the server, respectively.
Typically, a region to be filled corresponds to a request interface; one request interface corresponds to the acquisition of the regional display content of one information type, for example, the request interface a corresponds to video resource information, and the request interface B corresponds to text resource information. The information types of the area display contents of different areas to be filled may be the same or different; therefore, in the embodiment, the information type of the area display content of each area to be filled is obtained; and then determining corresponding request interfaces according to the information types of the areas to be filled, and determining at least one non-repeated request interface in all the request interfaces as a server request interface corresponding to the current multi-source information page.
In addition, according to the standard response data fed back again by the server for the new request data, the loading and displaying of the multi-source information page may specifically include:
when receiving a target standard response data, acquiring a target request interface corresponding to the target standard response data; if the target request interface is determined to correspond to a plurality of target areas to be filled, respectively extracting area display content corresponding to each target area to be filled from the target standard response data; and respectively loading the display contents of each region into the matched target region to be filled in the multi-source information page for display.
When the client receives standard response data fed back again by the server aiming at new request data, firstly, a matched target request interface is determined in the request interfaces of the server according to the target standard response data; and determining a target region to be filled corresponding to the target request interface according to the mapping relation between the region to be filled and the request interface.
Further, if the number of the target areas to be filled corresponding to the target request interface is multiple, acquiring area display contents corresponding to the target areas to be filled from the target standard response data according to the contents to be displayed of the target areas to be filled; and finally, loading the display content of each region to the corresponding target region to be filled, and realizing the loading display of the multi-source information page.
It should be noted that, respectively extracting the area display content corresponding to each target area to be filled from the target standard response data may include: identifying at least one region information separator in the target standard response data, and dividing the target standard response data into a plurality of region result data according to each region information separator; analyzing the result data of each area respectively to obtain a plurality of area display contents;
alternatively, the target standard response data may be in JSON format, commonly known as "JavaScript Object Notification," which is a text-based, language-independent, lightweight data exchange format. Corresponding identifiers (or IDs) are preset for different areas to be filled, the target standard response data comprises at least one key value pair (namely key: value or key: value) which represents response data of the target request interface to the corresponding target area to be filled, the key name can be the identifier (or ID) corresponding to the target area to be filled, and the key value can be area display content corresponding to the target area to be filled. Extracting the area display content corresponding to each target area to be filled from the target standard response data, and the method may further include: when target standard response data are received, key values matched with identifiers (such as video data, forwarding numbers and comment numbers) corresponding to key names or target filling areas are respectively extracted from the target standard response data, and the key values are used as area display contents; wherein, different areas to be filled correspond to different key names.
In this embodiment, the basic page of the multi-source information page is loaded in advance, and then the request data for the display content of each region is generated according to the region to be filled, so as to obtain the display content of the region of each region to be filled, and the display content of the region is loaded to the matched region to be filled, thereby realizing the loading and displaying of the multi-source information page, reducing the data amount of the data requested by the client to the server, and further improving the speed of loading and displaying the multi-source information page.
According to the technical scheme of the embodiment of the invention, when the fact that the login certificate carried in the request data of loading the multi-source information page in the client is expired is detected, the single updating operation of the login certificate is executed, and after the login certificate is updated, the technical means of reconstructing the request data based on the updated login certificate is provided, so that a new loading display mode of the multi-source information page in the client is provided, and the efficient loading display of the multi-source information page when the login certificate in the client is expired can be realized; meanwhile, by performing single updating operation on the expired login credentials, repeated updating of the login credentials can be avoided, the service processing pressure of the server can be reduced, and waste of server resources can be avoided.
Example two
Fig. 2 is a flowchart of a page loading method in a client according to a second embodiment of the present invention, which is embodied on the basis of the foregoing embodiment, in which an update module predefined in the client executes an update operation on a login credential, and the method specifically includes:
s210, according to the loading request of the multi-source information page, generating a plurality of request data and sending the request data to a server.
At least two pieces of request data carry login credentials stored in the client, and each piece of request data is used for requesting asynchronous call of a matched request interface in the server.
And S220, pre-intercepting the target response data when the target response data fed back by the server is detected, and performing data analysis on the pre-intercepted target response data.
In this embodiment, after analyzing the target response data, three different analysis results may be obtained, where the different analysis results may correspond to different processing strategies, and when determining that the login credential carried in the request data matched with the target response data is expired according to the analysis results, S230 is executed; executing S240 when determining that the login voucher carried in the request data matched with the target response data is not expired according to the analysis result; and executing S250 when the login credential update credential carried in the request data matched with the target response data is determined to be expired according to the analysis result.
S230, determining the target response data as abnormal response data, and judging whether the update time interval condition is met: if yes, go to S260; otherwise, S270 is executed.
S240, the destination response data is transmitted to the destination request data transmitter, and S2110 is executed.
And S250, prompting the current user corresponding to the client to log in the client again, and executing S290.
S260, after the target response data are filtered, a login credential updating request is constructed, the login credential updating request is broadcasted in the client side so that the login credential updating request is provided to the updating module, and single updating operation on the login credential is executed through the updating module.
The updating module registers the broadcast information of the client in advance, monitors the broadcast information in real time after registration, and calls an updating interface provided by the server to execute the updating operation of the login credentials when monitoring the updating request of the login credentials.
The updating module is a module which is preset in the client and used for executing the operation of updating the login credentials, and belongs to one of the functional modules.
Specifically, after detecting that the login credentials are out of date, the client does not execute corresponding updating operation, but generates a login credential updating request, sends the login credential updating request to the updating module, calls the updating interface of the server through the updating module to execute the updating operation on the login credentials, and executes the updating operation on the login credentials by setting a special updating module, so that the updating efficiency can be improved, and the functional independence and the portability of the client codes can be improved.
It should be noted that, the client, when determining that the login credential is expired and satisfying the update time interval condition, will serve as a sender of the broadcast, and send the login credential update request in the client in a broadcast manner; the updating module is used as a broadcast receiver, receives the broadcast sent by the client and executes the updating operation of the corresponding login credentials according to the login credential updating request in the broadcast; the updating module registers broadcast information of a client to be monitored in advance, for example, self-defined broadcast content is registered in a statement file (android manifest) of an application program of the client, so that the registered updating module can monitor the broadcast information of the client in real time; the login credential updating request is sent to the updating module in a broadcasting mode, so that the updating module can accurately receive the updating request.
In this embodiment, the update module receives the broadcast information, performs content analysis on the received broadcast information, and then executes a corresponding update operation according to the login credential update request; further, if the updating of the login credentials fails, the updating module can send prompt information to the user, display the prompt information on a failure page, and record the prompt information into a log file; wherein the prompt message may include an exception time, an exception reason, and a string of exception detail messages (e.g., exception name); if the update is successful, the server sends the updated login credentials and the login credential update credentials to the client, and the client stores the updated login credentials and the login credential update credentials locally, so that the user can know the update state of the login credentials in time.
And S270, directly filtering the target response data.
And S280, regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
S290, acquiring the authentication information input by the current user, and sending the authentication information to the server.
And S2100, when the current user is detected to successfully log in the client again, receiving the updated login credential fed back by the server, and returning to execute the S210.
After receiving an updated login certificate sent by a server, a client regenerates a plurality of request data and sends the request data to the server based on the updated login certificate and a loading request of a multi-source information page; the login credentials carried in the current request data are the latest updated login credentials, so the authentication can be realized through the server; after receiving the target response data fed back by the server, the client performs pre-interception and data analysis on the target response data; at this time, the login voucher carried in the request data matched with the target response data can be determined to be not expired according to the analysis result, so that the target response data is sent to a sender of the target request data, the multi-source information page is loaded and displayed according to the current target response data, the loading display of the multi-source information page can be realized under the scene that the login voucher updating voucher is expired, and the page loading stability of the client is improved.
And S2110, loading and displaying the multi-source information page according to the target response data.
On the basis of the foregoing embodiments, after determining that the login credential carried in the request data matched with the target response data has expired according to the parsing result, the method may further include: recording the identity identification information of the sender of the request data;
correspondingly, after triggering to execute the update operation on the login credential, the method may further include:
after the detection client finishes local caching of the updated login credentials, acquiring each sender corresponding to each identity identification information recorded currently; triggering each sender to use the new login credentials, reconstructing the request header and/or the request body in the request data which does not receive the response data, and sending the reconstructed request data again.
It should be noted that the request data generally includes two parts, a request header and a request body; the content of the request header is different according to different service requirements, and the information of the request data of different interfaces of the server is not completely the same; for example, the request data corresponding to the login API includes an application name (Appname), a device id (deviceid), a Mobile phone number (Mobile), a Mobile phone Platform (Platform), and a verification code (VerifyCode), where Mobile and VerifyCode are input by a user on a client page, and other parameters are obtained by a client front end; because the login API does not need the user to be in a login state, according to the rule of the signature generation process, the login credential in the request data should be null; further, if the user logs in successfully, the response data returned by the server includes a code (for example, 0) corresponding to the successful login, description information (success), an initial login credential and a login credential update credential given to the user with the successful login by the background.
One or more functional modules in the client can only add the login credentials in the request header of the target request data, and the login credentials are not added in the request body. Correspondingly, when a certain functional module sends target request data, and the target request data is filtered by the client because the contained login credentials are expired, once the functional module receives indication information sent by the client after the updating operation is completed, a request header of the target request data can be built again according to the new login credentials according to the indication information, and the request data obtained by the previously built request body is sent again by using the new request header.
Alternatively, one or more functional modules in the client may simultaneously add the login credentials in the request header of the target request data, and the requesting entity indirectly adds the login credentials, for example, the requesting entity includes signature data generated using the login credentials. Correspondingly, when a certain functional module sends target request data, and the target request data is filtered by the client because the contained login credentials are expired, once the functional module receives the indication information sent by the client after the updating operation is completed, the functional module can construct the request header and the request body of the target request data according to the new login credentials again according to the indication information, and obtain new request data to send again.
Correspondingly, in an optional implementation manner of this embodiment, the request body carrying the request data of the login credential includes signature data generated by using the login credential;
regenerating the request data corresponding to the updated login credential, specifically including:
and sending a forced refreshing prompt aiming at the multi-source information page to a client, responding to a page refreshing instruction fed back by a current user of the client aiming at the forced refreshing prompt, and regenerating request data corresponding to the updated login credentials.
In general, the sender for sending the request data does not actively update the already-constructed request body, and therefore, a forced update instruction needs to be sent to each sender to instruct each sender to reconstruct the request body.
Specifically, a prompt box for reloading the page may be first sent to the user corresponding to the client, and the user triggers to generate the corresponding forced refresh instruction, or the client may automatically generate the forced refresh instruction, which is not limited in this embodiment.
In this embodiment, if the request body in the request data sent by each sender includes signature data generated by using the login credential, the update module forcibly triggers reconstruction of the request data to indicate that each sender of the request data reconstructs the request header and the request body of the request data by using the new login credential, so that the request data reconstructed by each sender can be verified by the server, and further, each sender can acquire response data corresponding to each request data, and the service parameter acquisition efficiency of the application program can be improved.
The technical scheme of the embodiment of the invention intercepts all target response data fed back by a server in a client, filters the target response data through a preset updating time interval condition when the login credentials locally stored in the client are determined to be overdue according to the target response data, constructs a login credential updating request and provides the login credential updating request to an updating module, the updating module executes the updating operation of the login credentials, and the special updating module executes the corresponding login credential updating operation, so that the efficiency of updating the login credentials can be improved and the function independence of each functional module can be ensured; the request data is reconstructed based on the updated login credentials to obtain corresponding standard response data, and efficient loading and display of the multi-source information page can be achieved under the condition that the login credentials of the client are expired; meanwhile, by setting the updating time interval condition, the problem of endless circulation caused by repeated updating of the login credentials can be avoided, the service processing pressure of the server can be reduced, and the waste of server resources and login credential resources is reduced.
EXAMPLE III
Fig. 3 is a block diagram of a structure of a page loading apparatus in a client according to a third embodiment of the present invention, where the apparatus specifically includes: a request data generation module 310, an update operation execution module 320 and a page loading display module 330;
the request data generation module 310 is configured to generate a plurality of request data according to a loading request of a multi-source information page and send the request data to a server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
the update operation execution module 320 is configured to intercept and filter multiple abnormal response data fed back by the server, and execute a single update operation on the login credential for each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and the page loading and displaying module 330 is configured to regenerate the request data corresponding to the updated login credential and send the request data to the server, and load and display the multi-source information page according to the standard response data fed back by the server for the new request data.
Optionally, on the basis of the foregoing technical solution, the request data generating module 310 includes:
the basic page preloading unit is used for responding to a loading request of a multi-source information page and preloading a basic page of the multi-source information page;
the device comprises a request interface acquisition unit, a server and a processing unit, wherein the request interface acquisition unit is used for identifying a plurality of areas to be filled in a basic page and acquiring a plurality of request interfaces corresponding to the filled areas in the server;
and the request data sending unit is used for constructing a template according to the request data corresponding to each request interface, generating request data respectively corresponding to each request interface, and respectively sending each request data to the server.
Optionally, on the basis of the foregoing technical solution, the update operation executing module 320 includes:
the data analysis unit is used for pre-intercepting the target response data when the target response data fed back by the server are detected, and performing data analysis on the pre-intercepted target response data;
a condition judging unit, configured to determine, if it is determined according to the analysis result that the login credential carried in the request data that matches the target response data is expired, the target response data as abnormal response data, and judge whether an update time interval condition is satisfied;
the data filtering unit is used for triggering and executing the updating operation of the login credentials after filtering the target response data if the target response data is the target response data; otherwise, directly filtering the target response data.
Optionally, on the basis of the above technical solution, the condition determining unit is specifically configured to obtain a current system time and a latest login credential update time, and calculate a time difference between the current system time and the latest login credential update time;
judging whether the time difference value exceeds a preset time interval threshold value: if yes, determining that the updating time interval condition is met; otherwise, determining that the update time interval condition is not satisfied.
Optionally, on the basis of the above technical solution, the page loading apparatus in the client further includes:
and the time updating module is used for updating the latest login credential updating time by using the current system time.
Optionally, on the basis of the foregoing technical solution, the update operation executing module 320 includes:
the client side is used for receiving the login credential update request and sending the login credential update request to the credential update module;
the updating module registers the broadcast information of the client in advance, monitors the broadcast information in real time after registration, and calls an updating interface provided by the server to execute the updating operation of the login credentials when monitoring the updating request of the login credentials.
Optionally, on the basis of the above technical solution, the request data includes: a request header and a request body; the request body carrying the request data of the login certificate comprises signature data generated by using the login certificate;
the page loading display module 330 is specifically configured to send a forced refresh prompt for the multi-source information page to a client, and respond to a page refresh instruction fed back by a current user of the client for the forced refresh prompt to regenerate request data corresponding to the updated login credential.
Optionally, on the basis of the above technical solution, the request interface obtaining unit is specifically configured to obtain, according to a mapping relationship between the areas to be filled and the request interfaces, multiple request interfaces corresponding to the areas to be filled in the server, where one request interface corresponds to one or multiple areas to be filled;
a page loading display module 330, comprising:
the target request interface acquisition unit is used for acquiring a target request interface corresponding to target standard response data when receiving one target standard response data;
the area display content extraction unit is used for respectively extracting area display content corresponding to each target area to be filled from the target standard response data if the target request interface is determined to correspond to a plurality of target areas to be filled;
and the area display content loading unit is used for loading each area display content into the matched target area to be filled in the multi-source information page respectively for displaying.
The page loading device in the client provided by the embodiment of the invention can execute the page loading method in the client provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the computer apparatus includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of processors 40 in the computer device may be one or more, and one processor 40 is taken as an example in fig. 4; the processor 40, the memory 41, the input device 42 and the output device 43 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 41, as a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the request data generation module 310, the update operation execution module 320, and the page load display module 330) corresponding to the page loading apparatus in the client in the embodiment of the present invention. The processor 40 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 41, namely, implements the above-mentioned page loading method in the client, namely:
generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
intercepting and filtering a plurality of abnormal response data fed back by a server, and executing single updating operation on a login credential aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 43 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for loading a page in a client, and the method includes:
generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
intercepting and filtering a plurality of abnormal response data fed back by a server, and executing single updating operation on a login credential aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the page loading method in the client terminal provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for loading a page in a client is characterized by comprising the following steps:
generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to a server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
intercepting and filtering a plurality of abnormal response data fed back by a server, and executing single updating operation on a login credential aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and regenerating request data corresponding to the updated login credentials, sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
2. The method of claim 1, wherein generating a plurality of request data to send to a server according to a loading request of a multi-source information page comprises:
responding to a loading request of a multi-source information page, and preloading a basic page of the multi-source information page;
identifying a plurality of areas to be filled in the basic page, and acquiring a plurality of request interfaces corresponding to the filling areas in the server;
and constructing a template according to the request data corresponding to each request interface, generating the request data respectively corresponding to each request interface, and respectively sending each request data to the server.
3. The method of claim 1, wherein intercepting and filtering a plurality of abnormal response data fed back by a server comprises:
when target response data fed back by a server are detected, pre-intercepting the target response data, and performing data analysis on the pre-intercepted target response data;
if the login certificate carried in the request data matched with the target response data is determined to be overdue according to the analysis result, determining the target response data as abnormal response data, and judging whether an updating time interval condition is met;
if yes, filtering the target response data, and triggering and executing the updating operation of the login credentials; otherwise, directly filtering the target response data.
4. The method of claim 3, wherein determining whether the update interval condition is satisfied comprises:
acquiring current system time and latest login credential updating time, and calculating a time difference between the current system time and the latest login credential updating time;
judging whether the time difference value exceeds a preset time interval threshold value: if yes, determining that the updating time interval condition is met; otherwise, determining that the updating time interval condition is not met;
after triggering to execute the update operation of the login credential, the method further comprises the following steps:
the last login credential update time is updated using the current system time.
5. The method of claim 3, wherein triggering execution of the update operation on the login credentials comprises:
constructing a login credential update request, and broadcasting the login credential update request in the client to provide the login credential update request to an update module;
the updating module registers the broadcast information of the client in advance, monitors the broadcast information in real time after registration, and calls an updating interface provided by the server to execute the updating operation of the login credentials when monitoring the updating request of the login credentials.
6. The method according to any one of claims 1-5, wherein the request data comprises: a request header and a request body; the request body carrying the request data of the login certificate comprises signature data generated by using the login certificate;
the regenerating of the request data corresponding to the updated login credentials includes:
and sending a forced refreshing prompt aiming at the multi-source information page to a client, responding to a page refreshing instruction fed back by a current user of the client aiming at the forced refreshing prompt, and regenerating request data corresponding to the updated login credentials.
7. The method of claim 2, wherein obtaining a plurality of request interfaces in the server corresponding to the respective areas to be filled comprises:
acquiring a plurality of request interfaces corresponding to the areas to be filled in a server according to the mapping relation between the areas to be filled and the request interfaces, wherein the same request interface corresponds to one or more areas to be filled;
according to the standard response data fed back again by the server aiming at the new request data, the multi-source information page is loaded and displayed, and the method specifically comprises the following steps:
when receiving a target standard response data, acquiring a target request interface corresponding to the target standard response data;
if the target request interface is determined to correspond to a plurality of target areas to be filled, respectively extracting area display content corresponding to each target area to be filled from the target standard response data;
and respectively loading the display contents of each region into the matched target region to be filled in the multi-source information page for display.
8. An apparatus for loading a page in a client, comprising:
the request data generation module is used for generating a plurality of request data according to the loading request of the multi-source information page and sending the request data to the server; at least two request data in the plurality of request data carry login credentials stored in a client, and each request data is used for requesting asynchronous call to a matched request interface in a server;
the updating operation execution module is used for intercepting and filtering a plurality of abnormal response data fed back by the server and executing single updating operation on the login credentials aiming at each abnormal response data; the abnormal response data is feedback of the server aiming at target request data with expired login credentials;
and the page loading display module is used for regenerating request data corresponding to the updated login credentials and sending the request data to the server, and loading and displaying the multi-source information page according to standard response data fed back by the server aiming at the new request data.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a page loading method in a client as recited in any of claims 1-7.
10. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, carries out a method of page loading in a client according to any one of claims 1 to 7.
CN202110785457.8A 2021-07-12 2021-07-12 Page loading method and device in client, computer equipment and medium Pending CN113391858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110785457.8A CN113391858A (en) 2021-07-12 2021-07-12 Page loading method and device in client, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110785457.8A CN113391858A (en) 2021-07-12 2021-07-12 Page loading method and device in client, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN113391858A true CN113391858A (en) 2021-09-14

Family

ID=77625868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110785457.8A Pending CN113391858A (en) 2021-07-12 2021-07-12 Page loading method and device in client, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN113391858A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302250A (en) * 2021-12-17 2022-04-08 北京达佳互联信息技术有限公司 Resource processing method, device, system, equipment and storage medium
CN114510283A (en) * 2021-12-23 2022-05-17 贝壳找房网(北京)信息技术有限公司 Page loading method and device, electronic equipment and storage medium
CN114745363A (en) * 2022-03-18 2022-07-12 成都数联云算科技有限公司 Method, system, device and medium for processing front-end application request message

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146611A1 (en) * 2008-12-09 2010-06-10 Microsoft Corporation Credential Sharing Between Multiple Client Applications
CN107147647A (en) * 2017-05-11 2017-09-08 腾讯科技(深圳)有限公司 A kind of webpage authorization method and device
CN108900559A (en) * 2018-09-26 2018-11-27 平安普惠企业管理有限公司 Management method, device, computer equipment and the storage medium of logging on authentication
CN109587133A (en) * 2018-11-30 2019-04-05 武汉烽火众智智慧之星科技有限公司 A kind of single-node login system and method
CN109753783A (en) * 2018-11-28 2019-05-14 北京友信科技有限公司 A kind of single-point logging method based on machine learning, device and computer readable storage medium
CN111209349A (en) * 2019-12-26 2020-05-29 曙光信息产业(北京)有限公司 Method and device for updating session time
CN111258602A (en) * 2020-01-10 2020-06-09 百度在线网络技术(北京)有限公司 Information updating method and device
CN111314204A (en) * 2020-01-14 2020-06-19 腾讯科技(深圳)有限公司 Interaction method, device, terminal and storage medium
CN111628965A (en) * 2020-04-03 2020-09-04 北京奇艺世纪科技有限公司 Cross-domain name login method and device
CN111741033A (en) * 2020-08-27 2020-10-02 腾讯科技(深圳)有限公司 Method, device, equipment and medium for account number cross-equipment login management
CN111756753A (en) * 2020-06-28 2020-10-09 中国平安财产保险股份有限公司 Authority verification method and system
CN112800410A (en) * 2021-02-02 2021-05-14 北京明略昭辉科技有限公司 Multi-product login management method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146611A1 (en) * 2008-12-09 2010-06-10 Microsoft Corporation Credential Sharing Between Multiple Client Applications
CN107147647A (en) * 2017-05-11 2017-09-08 腾讯科技(深圳)有限公司 A kind of webpage authorization method and device
CN108900559A (en) * 2018-09-26 2018-11-27 平安普惠企业管理有限公司 Management method, device, computer equipment and the storage medium of logging on authentication
CN109753783A (en) * 2018-11-28 2019-05-14 北京友信科技有限公司 A kind of single-point logging method based on machine learning, device and computer readable storage medium
CN109587133A (en) * 2018-11-30 2019-04-05 武汉烽火众智智慧之星科技有限公司 A kind of single-node login system and method
CN111209349A (en) * 2019-12-26 2020-05-29 曙光信息产业(北京)有限公司 Method and device for updating session time
CN111258602A (en) * 2020-01-10 2020-06-09 百度在线网络技术(北京)有限公司 Information updating method and device
CN111314204A (en) * 2020-01-14 2020-06-19 腾讯科技(深圳)有限公司 Interaction method, device, terminal and storage medium
CN111628965A (en) * 2020-04-03 2020-09-04 北京奇艺世纪科技有限公司 Cross-domain name login method and device
CN111756753A (en) * 2020-06-28 2020-10-09 中国平安财产保险股份有限公司 Authority verification method and system
CN111741033A (en) * 2020-08-27 2020-10-02 腾讯科技(深圳)有限公司 Method, device, equipment and medium for account number cross-equipment login management
CN112800410A (en) * 2021-02-02 2021-05-14 北京明略昭辉科技有限公司 Multi-product login management method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
_无、涯的博客-CSDN博客: "双token刷新、续期,access_token和refresh_token实效如何设置_双token续期", vol. 1, pages 276 - 280, Retrieved from the Internet <URL:https://blog.csdn.net/a704397849/article/details/90216739> *
琉琉666666的博客-CSDN博客: "前端解决刷新token,并发请求_前端fetch刷新token", pages 1 - 4, Retrieved from the Internet <URL:https://blog.csdn.net/rookieWeb/article/details/107908416> *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302250A (en) * 2021-12-17 2022-04-08 北京达佳互联信息技术有限公司 Resource processing method, device, system, equipment and storage medium
CN114302250B (en) * 2021-12-17 2024-06-21 北京达佳互联信息技术有限公司 Resource processing method, device, system, equipment and storage medium
CN114510283A (en) * 2021-12-23 2022-05-17 贝壳找房网(北京)信息技术有限公司 Page loading method and device, electronic equipment and storage medium
CN114745363A (en) * 2022-03-18 2022-07-12 成都数联云算科技有限公司 Method, system, device and medium for processing front-end application request message
CN114745363B (en) * 2022-03-18 2023-12-15 成都数联云算科技有限公司 Front-end application request message processing method, system and device and medium

Similar Documents

Publication Publication Date Title
US11206451B2 (en) Information interception processing method, terminal, and computer storage medium
CN113391858A (en) Page loading method and device in client, computer equipment and medium
CN108306877B (en) NODE JS-based user identity information verification method and device and storage medium
CN111158891B (en) Analysis task processing method and device based on Flink technology and storage medium
CN107196950B (en) Verification method, verification device and server
CN109471865B (en) Offline data management method, system, server and storage medium
CN107580046B (en) Long connection service system and method
CN109039987A (en) A kind of user account login method, device, electronic equipment and storage medium
CN105577777A (en) Message processing method, device and system
CN113422784B (en) Login certificate updating method and device, computer equipment and storage medium
CN115189897A (en) Access processing method and device for zero trust network, electronic equipment and storage medium
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN112966262B (en) Method and device for generating operation log, electronic equipment and storage medium
CN111427710B (en) Communication method, device, equipment and storage medium of components in application program
CN106657140B (en) Application authorization method and device
US9374437B2 (en) Schema validation proxy
CN113778709B (en) Interface calling method, device, server and storage medium
CN113760688B (en) Remote debugging method, system, web server, equipment and storage medium
CN112714092B (en) Registration login method, device and computer readable storage medium
CN113630273A (en) Account logout system, method, device and storage medium
CN109981521B (en) Message association method, message association device and message association system
CN108093416B (en) Mobile APP push data acquisition method and terminal
CN114265661B (en) Page display method, device, equipment and storage medium for mobile client
CN112653505B (en) Real-time spectrum monitoring and debugging system and method
CN108989184B (en) Barrage message processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210914