System interface display method and device, computer equipment and storage medium
By matching cache resources in the terminal device and deciding whether to send resource requests to the server, the problem of network information transmission pressure and inefficient system interface display in the prior art is solved, and a more efficient system interface display is achieved.
Patent Information
- Application Number
- CN202411464699.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-02-14
AI Technical Summary
While increasing the speed of web page access, the prior art increases the pressure of network information transmission, especially when the client cache expires or does not cache resources, it is necessary to download resources from cloud storage, resulting in inefficiency.
By receiving resource requests, analyzing request information, matching the cache resources of the terminal device. If the target resources are not matched, a resource request is sent to the server, obtaining the target resources and displaying the system interface on the display screen.
By first matching the cache resources of the terminal device and then deciding whether to send resource requests to the server, the frequency of obtaining target resources from remote storage nodes can be effectively reduced and the display efficiency of the system interface can be improved.
Smart Images

Figure CN119441648A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud services, and in particular to a system interface display method, device, computer equipment and storage medium. Background Art
[0002] In order to increase the speed of web page access, the client usually pre-caches the content in the web page. In this way, when the user clicks a link in the web page, the client can directly obtain the resource from the cache, saving the time required for real-time downloading of resources and improving access efficiency. However, the files in the client cache may expire, or the client does not have the requested resources cached. In this case, the server needs to download the resources from the cloud storage device and then send them to the client. This process increases the pressure of information transmission in the network, and a more efficient method of displaying the system interface is urgently needed. Summary of the invention
[0003] The main purpose of this application is to provide a system interface display method, device, equipment and computer storage medium, aiming to improve the generation efficiency of the system interface.
[0004] In a first aspect, the present application provides a system interface display method, the system interface display method comprising the following steps:
[0005] receiving a first resource request, and parsing the first resource request in response to the first resource request to obtain resource information matching the first resource request;
[0006] Performing resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource;
[0007] If the target resource is not matched in the first cache resource, sending a second resource request to the server based on the first resource request;
[0008] Receive the target resource obtained by the server based on the second resource request, and display a corresponding system interface on the display screen of the terminal device according to the target resource.
[0009] In a second aspect, the present application further provides a system interface display device, the system interface display device comprising:
[0010] A request response module, configured to receive a first resource request, and parse the first resource request in response to the first resource request to obtain resource information matching the first resource request;
[0011] A first resource matching module, configured to perform resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource;
[0012] A second resource request module, configured to send a second resource request to a server based on the first resource request when the target resource is not matched in the first cache resource;
[0013] The system interface display module is used to receive the target resource obtained by the server based on the second resource request, and display the corresponding system interface on the display screen of the terminal device according to the target resource.
[0014] In a third aspect, the present application also provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the system interface display method as described above is implemented.
[0015] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the system interface display method as described above is implemented.
[0016] The present application provides a system interface display method, device, equipment and computer storage medium. The present application receives a first resource request, and parses the first resource request in response to the first resource request to obtain resource information matching the first resource request; performs resource matching on a first cache resource stored in a terminal device according to the resource information to obtain a target resource matching the resource information from the first cache resource; sends a second resource request to a server based on the first resource request when the target resource is not matched in the first cache resource; receives the target resource obtained by the server based on the second resource request, and displays the corresponding system interface on the display screen of the terminal device according to the target resource. Since the first cache resource in the terminal device is matched first, and then it is determined whether it is necessary to send a resource request to the server to obtain the target resource cached in the server, or obtain the target resource obtained by the server from remote storage, the target resource of the system interface can be obtained through the cache in the terminal device or the server, reducing the frequency of obtaining the target resource from the remote storage node and improving the display efficiency of the system interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of a flow chart of a system interface display method provided in one embodiment of the present application;
[0019] Figure 2 A usage scenario diagram of a system interface display method provided in one embodiment of the present application;
[0020] Figure 3 A schematic block diagram of a system interface display device provided in one embodiment of the present application;
[0021] Figure 4 The present invention is a block diagram showing the structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0024] Embodiments of the present application provide a system interface display method, apparatus, computer equipment, and computer-readable storage medium.
[0025] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0026] Please refer to Figure 1 , Figure 1A flow chart of a system interface display method provided for an embodiment of the present application. The system interface display method can be used in a terminal or a server to improve the display efficiency of the system interface. The terminal can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device; the server can be an independent server, a server cluster, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0027] Please refer to Figure 2 , Figure 2 This is a usage scenario diagram provided by an embodiment of the present application. Figure 2 As shown, the terminal device matches the target resource in the first cache resource in response to the first resource request. If the target resource is not matched, the terminal device sends a second resource request to the server. If the server does not match the target resource in the second cache resource of the server, the terminal device sends a third resource request to the cloud to obtain the target resource from the remote storage node. The transmission path of the target resource is not shown in the diagram.
[0028] like Figure 1 As shown, the system interface display method includes steps S101 to S104.
[0029] Step S101: Receive a first resource request, and parse the first resource request in response to the first resource request to obtain resource information matching the first resource request.
[0030] Exemplarily, when a user browses a system interface through a browser and clicks on a resource in the system interface, a first resource request is generated to match resources cached locally on the terminal device to determine whether the terminal device has the resource requested by the user cached locally.
[0031] Parsing the first resource request usually involves checking the URL, HTTP method (such as GET or POST), header fields, and possible body data in the first resource request.
[0032] Exemplarily, in order to reduce the amount of data in the first resource request, the resource information in the first resource request can be a short URL obtained by encoding the long URL clicked by the user, and the efficiency of searching for the first cache resource in the terminal device can be improved later through the short URL. Specifically, the short URL can be obtained by mapping the long URL through a URL service platform such as Bitly, TinyURL, Google URLShortener, etc., which is not limited here.
[0033] Step S102: performing resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource.
[0034] Exemplarily, the first cache resource stored in the terminal device is provided with header information for matching with the resource information, and it can be determined whether the first cache resource includes the target resource requested by the user by checking the header information of the first cache resource.
[0035] In some implementations, performing resource matching on a first cache resource stored in a terminal device according to the resource information to obtain a target resource matching the resource information from the first cache resource includes:
[0036] Matching candidate resources corresponding to the resource information in the first cache resource, and performing timeliness verification on the candidate resources;
[0037] In a case where the candidate resource passes the timeliness verification, determining that the target resource is matched in the first cache resource;
[0038] When the first resource information is not matched or the candidate resource fails the timeliness verification, it is determined that the target resource is not matched in the first cache resource.
[0039] For example, even if the header information corresponding to the resource information is matched in the first cache resource, it does not mean that the candidate resource in the first cache resource can be used directly. The first cache resource has a certain timeliness. The server may have updated the target resource, while the first cache resource still stores the unupdated target resource. Therefore, the timeliness of the candidate resource needs to be verified.
[0040] Exemplarily, a timestamp may be set for each candidate resource in the first cache resource type, and when the timestamp is more than a certain period away from the current time, such as 1 hour, the candidate resource is deemed expired. Of course, this is not limited to this and is not limited here.
[0041] In some implementations, the timeliness verification of the candidate resource includes:
[0042] Based on the timestamp information of the candidate resource, sending a timeliness verification request to the server;
[0043] Determine whether the candidate resource passes the timeliness verification according to the status code returned by the server based on the timeliness verification request.
[0044] Exemplarily, since the communication overhead required to transmit the validity verification request including the timestamp and the status code is much smaller than the communication overhead required to transmit the target resource, the server can also assist in verifying whether the candidate resource is expired.
[0045] Exemplarily, the terminal device sends a time validity verification request including a timestamp to the server. The server parses the timestamp in the time validity verification request and obtains the time information of the target resource from the storage node used to store the target resource. The server compares the time information with the timestamp to determine whether the candidate resource is expired. In order to reduce transmission time and improve transmission efficiency, a binary number can be used as a status code, for example, 0 indicates that the candidate resource has expired, and 1 indicates that the candidate resource has not expired.
[0046] Specifically, the server may also send the target resource acquired by itself to the terminal device while determining that the candidate resource has expired and sending a corresponding status code.
[0047] Step S103: If the target resource is not matched in the first cache resource, send a second resource request to the server based on the first resource request.
[0048] Exemplarily, if the header information corresponding to the resource information is not matched in the first cache resource, or the matched candidate resource cannot pass the timeliness verification, it is confirmed that the target resource is not matched in the first cache resource. In this case, the target resource needs to be obtained from the server, so it is necessary to send a second resource request to the server according to the first resource request to request the server to send the corresponding target resource.
[0049] In some implementations, when the target resource is not matched in the first cache resource, sending a second resource request to the server based on the first resource request includes:
[0050] Based on a preset mapping relationship, restore the first link information in the first resource request to obtain corresponding second link information, wherein the length of the second link information is greater than that of the first link information;
[0051] A second resource request including the second link information is sent to the server to obtain a target resource returned by the server based on the second resource request.
[0052] For example, compared with the first cache resource that only serves the terminal device itself, the server needs to process requests from different terminal devices, so it is necessary to generate a second resource request with complete parameters and paths so that the server can process the second resource request. However, the first link information in the first resource request is a short URL. In order to generate the second resource request, it is necessary to determine the second resource information based on the first link information, that is, to restore the short URL to a long URL.
[0053] Exemplarily, the method of restoring a long URL from a short URL can be determined by an inverse operation of a method of mapping a long URL to a short URL, which is not limited here.
[0054] Step S104: receiving the target resource obtained by the server based on the second resource request, and displaying a corresponding system interface on the display screen of the terminal device according to the target resource.
[0055] Exemplarily, the server returns the target resource to the terminal device based on the second resource request, wherein the target resource may be stored in the server or obtained by the server from a storage node in the cloud service, which is not limited here.
[0056] In some implementations, receiving the target resource acquired by the server based on the second resource request, and displaying a corresponding system interface on a display screen of the terminal device according to the target resource includes:
[0057] Acquire a target resource matched by the server in a second cache resource stored in the server based on the second resource request;
[0058] The system interface is displayed according to the target resource returned by the server and the private resources in the first cache resource.
[0059] Exemplarily, the target resource may come from a second cache resource in the server. In this case, in order to avoid leakage of user privacy, public resources shared by multiple terminal devices may be cached in the second cache resource, such as the background of the system interface, the interface architecture and other resources, and then combined with private resources generated for the terminal device user cached in the terminal device, such as the user information in the system interface, to obtain the overall system interface and ensure the user's data security.
[0060] In some implementations, the receiving the target resource acquired by the server based on the second resource request, and displaying a corresponding system interface on a display screen of the terminal device according to the target resource, further includes:
[0061] The target resource is obtained by the server from the storage node through the third resource request generated based on the second resource request, and a corresponding system interface is displayed on the display screen of the terminal device according to the target resource.
[0062] Exemplarily, if the server's second resource cache does not store the relevant target resource, the server needs to request the remote storage node to obtain the target resource. Specifically, if the target resource is not matched in the second cache resource, or the target resource does not pass the timeliness verification, the server generates a third resource request corresponding to the second resource request and sends it to the storage node, so that the storage node returns the target resource to the server according to the third resource request, and the server then forwards the target resource to the terminal device.
[0063] In some implementations, the receiving the target resource acquired by the server based on the second resource request, and displaying a corresponding system interface on a display screen of the terminal device according to the target resource, further includes:
[0064] According to the first resource request, the target resource returned by the server is cached in the first cache resource.
[0065] Exemplarily, the terminal device can update the first cache resource according to the target resource returned by the server. Specifically, the target resource returned by the server should be stored corresponding to the resource information in the first resource request, so that the terminal device can find it according to the resource information when it needs to retrieve the target resource again. Therefore, the target resource and the resource information in the corresponding first resource request are stored in the first cache resource. If the original candidate resource in the first cache resource has expired, the candidate resource is overwritten.
[0066] The system interface display method provided in the above embodiment receives a first resource request, and parses the first resource request in response to the first resource request to obtain resource information matching the first resource request; performs resource matching on the first cache resource stored in the terminal device according to the resource information to obtain the target resource matching the resource information from the first cache resource; sends a second resource request to the server based on the first resource request when the target resource is not matched in the first cache resource; receives the target resource obtained by the server based on the second resource request, and displays the corresponding system interface on the display screen of the terminal device according to the target resource. The target resource of the system interface can be obtained through the cache in the terminal device or server, reducing the frequency of obtaining the target resource from the remote storage node and improving the display efficiency of the system interface.
[0067] See also Figure 3 , Figure 3It is a schematic diagram of a system interface display device provided in an embodiment of the present application. The system interface display device can be configured in a server or a terminal to execute the aforementioned system interface display method.
[0068] like Figure 3 As shown, the system interface display device includes: a request response module 110, a first resource matching module 120, a second resource request module 130, and a system interface display module 140.
[0069] The request response module 110 is used to receive a first resource request, and parse the first resource request in response to the first resource request to obtain resource information matching the first resource request;
[0070] A first resource matching module 120, configured to perform resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource;
[0071] A second resource request module 130, configured to send a second resource request to a server based on the first resource request when the target resource is not matched in the first cache resource;
[0072] The system interface display module 140 is used to receive the target resource obtained by the server based on the second resource request, and display the corresponding system interface on the display screen of the terminal device according to the target resource.
[0073] In some implementations, the first resource matching module 120, in the process of performing resource matching on the first cache resource stored in the terminal device according to the resource information to obtain a target resource matching the resource information from the first cache resource, is used to implement:
[0074] Matching candidate resources corresponding to the resource information in the first cache resource, and performing timeliness verification on the candidate resources;
[0075] In a case where the candidate resource passes the timeliness verification, determining that the target resource is matched in the first cache resource;
[0076] When the first resource information is not matched or the candidate resource fails the timeliness verification, it is determined that the target resource is not matched in the first cache resource.
[0077] In some implementations, the first resource matching module 120, in the process of implementing the timeliness verification of the candidate resources, is used to implement:
[0078] Based on the timestamp information of the candidate resource, sending a timeliness verification request to the server;
[0079] Determine whether the candidate resource passes the timeliness verification according to the status code returned by the server based on the timeliness verification request.
[0080] In some implementations, the system interface display module 140, in the process of receiving the target resource obtained by the server based on the second resource request and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0081] Acquire a target resource matched by the server in a second cache resource stored in the server based on the second resource request;
[0082] The system interface is displayed according to the target resource returned by the server and the private resources in the first cache resource.
[0083] In some implementations, the system interface display module 140, in the process of receiving the target resource obtained by the server based on the second resource request and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0084] The target resource is obtained by the server from the storage node through the third resource request generated based on the second resource request, and a corresponding system interface is displayed on the display screen of the terminal device according to the target resource.
[0085] In some implementations, the second resource request module 120, in the process of sending the second resource request to the server based on the first resource request when the target resource is not matched in the first cache resource, is configured to implement:
[0086] Based on a preset mapping relationship, restore the first link information in the first resource request to obtain corresponding second link information, wherein the length of the second link information is greater than that of the first link information;
[0087] A second resource request including the second link information is sent to the server to obtain a target resource returned by the server based on the second resource request.
[0088] In some implementations, the system interface display module 140, in the process of receiving the target resource obtained by the server based on the second resource request and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0089] According to the first resource request, the target resource returned by the server is cached in the first cache resource.
[0090] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0091] The method and apparatus of the present application can be used in many general or special computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0092] Exemplarily, the above method and apparatus may be implemented in the form of a computer program. The computer program may be implemented in Figure 4 Runs on the computer device shown.
[0093] See also Figure 4 , Figure 4 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server or a terminal.
[0094] like Figure 4 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.
[0095] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any system interface display method.
[0096] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0097] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any system interface display method.
[0098] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0100] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0101] receiving a first resource request, and parsing the first resource request in response to the first resource request to obtain resource information matching the first resource request;
[0102] Performing resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource;
[0103] If the target resource is not matched in the first cache resource, sending a second resource request to the server based on the first resource request;
[0104] Receive the target resource obtained by the server based on the second resource request, and display a corresponding system interface on the display screen of the terminal device according to the target resource.
[0105] In some implementations, the processor, in the process of performing resource matching on the first cache resource stored in the terminal device according to the resource information to obtain a target resource matching the resource information from the first cache resource, is configured to implement:
[0106] Matching candidate resources corresponding to the resource information in the first cache resource, and performing timeliness verification on the candidate resources;
[0107] In a case where the candidate resource passes the timeliness verification, determining that the target resource is matched in the first cache resource;
[0108] When the first resource information is not matched or the candidate resource fails the timeliness verification, it is determined that the target resource is not matched in the first cache resource.
[0109] In some implementations, the processor, during the process of performing timeliness verification on the candidate resource, is configured to implement:
[0110] Based on the timestamp information of the candidate resource, sending a timeliness verification request to the server;
[0111] Determine whether the candidate resource passes the timeliness verification according to the status code returned by the server based on the timeliness verification request.
[0112] In some implementations, the processor, in the process of receiving the target resource obtained by the server based on the second resource request, and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0113] Acquire a target resource matched by the server in a second cache resource stored in the server based on the second resource request;
[0114] The system interface is displayed according to the target resource returned by the server and the private resources in the first cache resource.
[0115] In some implementations, the processor, in the process of receiving the target resource obtained by the server based on the second resource request, and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0116] The target resource is obtained by the server from the storage node through the third resource request generated based on the second resource request, and a corresponding system interface is displayed on the display screen of the terminal device according to the target resource.
[0117] In some implementations, the processor, when executing the process of sending the second resource request to the server based on the first resource request when the target resource is not matched in the first cache resource, is configured to implement:
[0118] Based on a preset mapping relationship, restore the first link information in the first resource request to obtain corresponding second link information, wherein the length of the second link information is greater than that of the first link information;
[0119] A second resource request including the second link information is sent to the server to obtain a target resource returned by the server based on the second resource request.
[0120] In some implementations, the processor, in the process of receiving the target resource obtained by the server based on the second resource request, and displaying the corresponding system interface on the display screen of the terminal device according to the target resource, is used to implement:
[0121] According to the first resource request, the target resource returned by the server is cached in the first cache resource.
[0122] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and brevity of description, the specific working process of the above-mentioned description of the system interface display can refer to the corresponding process in the aforementioned system interface display control method embodiment, and will not be repeated here.
[0123] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the system interface display method of the present application.
[0124] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0125] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0126] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0127] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A system interface display method, characterized in that: The system interface display method comprises: receiving a first resource request, and parsing the first resource request in response to the first resource request to obtain resource information matching the first resource request; Performing resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource; If the target resource is not matched in the first cache resource, sending a second resource request to the server based on the first resource request; Receive the target resource obtained by the server based on the second resource request, and display a corresponding system interface on the display screen of the terminal device according to the target resource.
2. The system interface display method according to claim 1, characterized in that: The performing resource matching on the first cache resource stored in the terminal device according to the resource information to obtain a target resource matching the resource information from the first cache resource includes: Matching candidate resources corresponding to the resource information in the first cache resource, and performing timeliness verification on the candidate resources; In a case where the candidate resource passes the timeliness verification, determining that the target resource is matched in the first cache resource; When the first resource information is not matched or the candidate resource fails the timeliness verification, it is determined that the target resource is not matched in the first cache resource.
3. The system interface display method according to claim 2, characterized in that: The timeliness verification of the candidate resource includes: Based on the timestamp information of the candidate resource, sending a timeliness verification request to the server; Determine whether the candidate resource passes the timeliness verification according to the status code returned by the server based on the timeliness verification request.
4. The system interface display method according to claim 1, characterized in that: The receiving the target resource acquired by the server based on the second resource request, and displaying a corresponding system interface on the display screen of the terminal device according to the target resource, includes: Acquire a target resource matched by the server in a second cache resource stored in the server based on the second resource request; The system interface is displayed according to the target resource returned by the server and the private resources in the first cache resource.
5. The system interface display method according to claim 1, characterized in that: The receiving the target resource obtained by the server based on the second resource request, and displaying a corresponding system interface on the display screen of the terminal device according to the target resource, further includes: The target resource is obtained by the server from the storage node through the third resource request generated based on the second resource request, and a corresponding system interface is displayed on the display screen of the terminal device according to the target resource.
6. The system interface display method according to claim 1, characterized in that: When the target resource is not matched in the first cache resource, sending a second resource request to the server based on the first resource request includes: Based on a preset mapping relationship, restore the first link information in the first resource request to obtain corresponding second link information, wherein the length of the second link information is greater than that of the first link information; A second resource request including the second link information is sent to the server to obtain a target resource returned by the server based on the second resource request.
7. The system interface display method according to claim 1, characterized in that: The receiving the target resource obtained by the server based on the second resource request, and displaying a corresponding system interface on the display screen of the terminal device according to the target resource, further includes: According to the first resource request, the target resource returned by the server is cached in the first cache resource.
8. A system interface display device, characterized in that: The system interface display device comprises: A request response module, configured to receive a first resource request, and parse the first resource request in response to the first resource request to obtain resource information matching the first resource request; A first resource matching module, configured to perform resource matching on a first cache resource stored in a terminal device according to the resource information, so as to obtain a target resource matching the resource information from the first cache resource; A second resource request module, configured to send a second resource request to a server based on the first resource request when the target resource is not matched in the first cache resource; The system interface display module is used to receive the target resource obtained by the server based on the second resource request, and display the corresponding system interface on the display screen of the terminal device according to the target resource.
9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the system interface display method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the system interface display method according to any one of claims 1 to 7 are implemented.