Page processing methods and apparatus
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2026-08-14
AI Technical Summary
但这种方式往往无法较好地解决页面白屏问题,给用户造成非常不好的浏览体验
[0045]上述发明中的一个实施例具有如下优点或有益效果:在终端出现白屏事件时,根据终端信息,从至少一个白屏故障信息中,确定出目标故障信息。白屏故障信息可根据导致白屏页面的原因进行设置,白屏故障信息可用于表征:终端内存不足、终端网络信号弱、页面代码错误等。目标故障信息对应于终端产生白屏事件的原因,通过目标故障信息匹配出终端对应的处理程序,利用匹配的处理程序,可以完善地解决终端的白屏问题,提升用户的浏览体验。
Smart Images

Figure CN115827293B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a page processing method and apparatus. Background Technology
[0002] Users frequently need to access application pages to obtain information of interest. During the page loading process, a series of network requests and resource parsing are required, and errors at any step can lead to a blank screen. When a blank screen occurs, the system typically kills the page process to ensure the application continues to function normally. However, this method often fails to effectively resolve the blank screen issue, resulting in a very poor browsing experience for users. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a page processing method and apparatus that can effectively solve the problem of blank screens and improve the user's browsing experience.
[0004] In a first aspect, embodiments of the present invention provide a page processing method, including:
[0005] Upon detecting a white screen event on the target terminal, obtain the terminal information of the target terminal;
[0006] Acquire multiple preset white screen fault information, and determine the target fault information that matches the terminal information from the multiple white screen fault information;
[0007] Based on the target fault information, determine the target processing program corresponding to the target terminal;
[0008] Control the target terminal to execute the target processing program.
[0009] Optionally, determining the target fault information matching the terminal information from the plurality of white screen fault information includes:
[0010] The current fault information is determined from the multiple white screen fault information;
[0011] Determine the detection conditions corresponding to the current fault information;
[0012] Determine whether the terminal information meets the detection conditions;
[0013] In response to the terminal information satisfying the detection conditions, the current fault information is determined as the target fault information that matches the terminal information.
[0014] Optionally, determining the detection conditions corresponding to the current fault information includes:
[0015] In response to the current fault information indicating insufficient terminal memory, the verification conditions are determined to include at least one of the following: free memory is less than a first memory threshold, available memory is less than a second memory threshold, and the number of loaded pages is greater than a number threshold.
[0016] In response to the current fault information indicating a weak terminal network signal, the verification condition is determined to include: the network signal strength is less than a strength threshold.
[0017] In response to the current fault information indicating a page code error, the verification conditions are determined to include: an error message being generated during the terminal's page loading process.
[0018] Optionally, determining the target processing program corresponding to the target terminal based on the target fault information includes:
[0019] In response to the target fault information indicating insufficient terminal memory, the page removal procedure is determined to be the target processing procedure;
[0020] Alternatively, in response to the target fault information indicating a weak terminal network signal, the page loading program is determined to be the target processing program;
[0021] Alternatively, in response to an error in the target fault information characterization page code, the reporting program is determined to be the target processing program.
[0022] Optionally, the target handler is a page removal handler;
[0023] The control of the target terminal to execute the target processing program includes:
[0024] Using the page removal procedure, at least one page is identified from the multiple pages loaded on the terminal for removal.
[0025] Delete the process related to the removal of the page.
[0026] Optionally, from a plurality of pages loaded by the terminal, at least one page to be removed is determined, including:
[0027] Based on the page loading time, multiple candidate pages are determined from the multiple pages loaded by the terminal;
[0028] Determine whether the candidate page is a page in the whitelist;
[0029] If the candidate page is not a page in the whitelist, the candidate page will be selected as the page to be removed.
[0030] Optionally, the target processing program is a reporting program;
[0031] The control of the target terminal to execute the target processing program includes:
[0032] Obtain error information generated during the page loading process of the target terminal;
[0033] The error message is sent to the server using the reporting procedure.
[0034] Receive and install the upgrade package returned by the server in response to the error message.
[0035] Secondly, embodiments of the present invention provide a page processing apparatus, including:
[0036] The information acquisition module is used to monitor the white screen event of the target terminal and acquire the terminal information of the target terminal;
[0037] The information matching module is used to acquire multiple preset white screen fault information and determine the target fault information that matches the terminal information from the multiple white screen fault information.
[0038] The program determination module is used to determine the target processing program corresponding to the target terminal based on the target fault information.
[0039] The control module is used to control the target terminal to execute the target processing program.
[0040] Thirdly, embodiments of the present invention provide an electronic device, including:
[0041] One or more processors;
[0042] Storage device for storing one or more programs.
[0043] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0044] Fourthly, embodiments of the present invention provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in any of the above embodiments.
[0045] One embodiment of the above invention has the following advantages or beneficial effects: When a white screen event occurs on the terminal, a target fault information is determined from at least one white screen fault information based on the terminal information. The white screen fault information can be set according to the cause of the white screen, and can be used to characterize: insufficient terminal memory, weak terminal network signal, page code error, etc. The target fault information corresponds to the cause of the white screen event on the terminal. By matching the target fault information with the corresponding processing program on the terminal, the white screen problem on the terminal can be effectively resolved, improving the user's browsing experience.
[0046] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0047] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0048] Figure 1 This is a schematic diagram of the flow of a page processing method provided in an embodiment of the present invention;
[0049] Figure 2 This is a schematic diagram of the flow of another page processing method provided in an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram of the flow of another page processing method provided in an embodiment of the present invention;
[0051] Figure 4 This is a schematic diagram of the structure of a page processing device provided in one embodiment of the present invention;
[0052] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0053] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0054] It should be noted that the acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0055] This invention provides a page processing method that can determine specific solutions based on the causes of blank screens, thereby better addressing blank screen time in terminals. Figure 1 This is a schematic diagram illustrating the flow of a page processing method according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0056] Step 101: Monitor the white screen event on the target terminal and obtain the terminal information of the target terminal.
[0057] The method of this invention is applied to a terminal or server. The solution of this invention can be used to solve the white screen problem of various types of pages, such as native pages, H4 pages, and H5 pages.
[0058] A white screen event can be determined as follows: Capture the currently displayed page to create a detection image. Scale this image; scaling reduces the number of pixels for subsequent processing while preserving image integrity, thus speeding up the traversal and improving performance. Calculate the proportion of non-white pixels in the detection image to the total number of pixels, and compare this proportion to a preset threshold to determine if it's a white screen. In non-dark mode, pixels with RGB components R < 245, G < 245, and B < 245 can be defined as non-white pixels. In dark mode, pixels with RGB components R > 10, G > 10, and B > 10 can be defined as non-white pixels.
[0059] Terminal information includes information related to the white screen event or the terminal status. Terminal information may include: free memory, available memory, CPU usage, number of pages loaded, network signal strength, and error messages related to page loading.
[0060] Step 102: Obtain multiple preset white screen fault information, and determine the target fault information that matches the terminal information from the multiple white screen fault information.
[0061] The white screen error message can be set according to the cause of the white screen page. The white screen error message can be used to indicate insufficient terminal memory, weak terminal network signal, page code error, etc.
[0062] The target fault information matching the terminal information can be determined in the following way: determine the current fault information from multiple white screen fault information; determine the fault information corresponding to the current fault information; determine whether the terminal information meets the fault information; in response to the terminal information meeting the fault information, determine the current fault information as the target fault information matching the terminal information.
[0063] Specifically, if the white screen error message indicates insufficient terminal memory, the verification conditions include: free memory less than a first memory threshold, available memory less than a second memory threshold, and the number of pages loaded greater than a quantity threshold. If the white screen error message indicates a weak terminal network signal, the verification conditions include: network signal strength less than a strength threshold. If the white screen error message indicates a page code error, the verification conditions may include: error messages generated during the terminal page loading process.
[0064] Step 103: Based on the target fault information, determine the target processing program fault information corresponding to the target terminal.
[0065] Step 104: Control the target terminal to execute the target processing program.
[0066] The processing program corresponds to the white screen fault information. This program can resolve or mitigate the risk of a white screen appearing on the terminal. Different white screen fault information corresponds to different processing programs. By controlling the target terminal to execute the target processing program corresponding to the target fault information, the white screen problem can be resolved.
[0067] In this embodiment of the invention, when a white screen event occurs on the terminal, a target fault information is determined from at least one white screen fault information based on the terminal information. The white screen fault information can be set according to the cause of the white screen. The target fault information corresponds to the cause of the white screen event on the terminal. By matching the target fault information with the corresponding processing program on the terminal, the white screen problem on the terminal can be resolved more effectively, improving the user's browsing experience.
[0068] In one embodiment of the present invention, after controlling the target terminal to execute the target processing program, the method further includes: determining a plurality of pages to be displayed on the terminal; determining the loading priority of each page to be displayed based on the page information of the pages to be displayed; and loading each page to be displayed sequentially according to the loading priority.
[0069] Page information may include: page weight, page size, page load time, etc. Based on loading priority, each page to be displayed is loaded sequentially. Compared to loading all pages simultaneously, this reduces the memory, CPU, and other resources required for page loading, ensuring stable system operation and reducing the risk of page crashes.
[0070] Figure 2 This is a schematic diagram illustrating the flow of another page processing method provided in an embodiment of the present invention. Figure 2 As shown, the method includes:
[0071] Step 201: Monitor the white screen event on the target terminal and obtain the terminal information of the target terminal.
[0072] Step 202: Obtain multiple preset white screen fault information, and determine the target fault information that matches the terminal information from the multiple white screen fault information.
[0073] Step 203: In response to the target fault information indicating insufficient terminal memory, determine the page removal procedure as the target handler.
[0074] If free memory is less than a first memory threshold, available memory is less than a second memory threshold, or the number of pages loaded exceeds a certain threshold, the terminal will experience insufficient memory, resulting in a blank screen event. Terminal information may include: free memory, available memory, and the number of pages loaded. If the terminal information meets the verification conditions corresponding to insufficient terminal memory, the fault information indicating insufficient terminal memory will be identified as the target fault information.
[0075] Step 204: Using the page removal procedure, identify at least one page to be removed from the multiple pages loaded in the terminal.
[0076] The page removal procedure is used to identify at least one page to remove from multiple pages loaded from the terminal and delete the associated processes of the page in order to release the system memory occupied by the associated processes of the page.
[0077] At least one page to be removed can be determined as follows: Based on page load time, identify multiple candidate pages from multiple pages loaded on the terminal; determine whether the candidate page is a page in the whitelist; if the candidate page is not a page in the whitelist, determine the candidate page as the page to be removed.
[0078] Based on page load time, multiple candidate pages are identified from the multiple pages loaded by the terminal; it is determined whether each candidate page is a page in the whitelist; if a candidate page is not a page in the whitelist, the candidate page is identified as a page to be removed.
[0079] Generally, pages that load earlier have less noticeable interaction with the user, so removing an earlier loaded page has less impact on the user. Additionally, users can set up a whitelist to store important pages; pages on the whitelist will not be deleted. Setting up a whitelist ensures that important pages are not removed.
[0080] Step 205: Delete the processes related to the removal of the page.
[0081] When the system has limited free memory or a large number of pages to load, a blank screen may occur. Therefore, in such cases, deleting some of the processes related to those pages can help maintain system performance and stability.
[0082] Step 206: In response to the target fault information indicating weak terminal network signal, determine the page loading program as the target processing program.
[0083] A weak network signal on a terminal can cause a blank screen event. Terminal information may include network signal strength, etc. If the terminal information meets the verification conditions corresponding to a weak network signal, the fault information indicating a weak network signal will be identified as the target fault information.
[0084] Step 207: Use the page loader to reload the page corresponding to the white screen event.
[0085] Using a page loader, the blank screen on the terminal is reloaded when preset loading conditions are met. These preset loading conditions can be set as needed. Examples include: a preset time interval, or the terminal's current network signal strength exceeding a threshold.
[0086] A weak or unstable network signal on the device can also cause a blank screen. After a preset time, or when the network signal strength is detected to exceed a threshold, a page loader can be used to reload the blank screen.
[0087] Step 208: In response to the error code on the target fault information characterization page, determine that the reporting program is the target processing program.
[0088] Page code errors can cause a blank screen on the terminal. Terminal information may include: whether error messages occurred during page loading, and the nature of the error messages. Under the validation conditions corresponding to the page code error, the fault information indicating the page code error is identified as the target fault information.
[0089] Step 209: Obtain error information generated during the loading of the page on the target terminal; use the reporting program to send the error information to the server.
[0090] Step 210: Receive and install the upgrade package returned by the server in response to the error message.
[0091] Errors may also exist in the page's code, such as missing JS resources or syntax errors during JavaScript execution, leading to a blank screen on the terminal. In this case, the error message needs to be sent to the server for display and processing.
[0092] Error messages are generated by the terminal during the page loading process. Error messages may include error descriptions, resource URLs, row numbers, column numbers, etc.
[0093] There are several ways to determine if there are error messages during page loading on the terminal. For example, a monitoring script can be set up in the terminal to detect error messages during page loading. Alternatively, relevant logs can be analyzed to determine if errors occur during page loading.
[0094] When an error message is detected during page loading on the terminal, it can be further determined whether the page loading process caused a blank screen event on the terminal. If the page loading process caused a blank screen event on the terminal, the error message is reported to the server for further processing.
[0095] The server receives error messages from the terminal. These errors are generated during page loading, specifically when a blank screen appears. The server sends an update package to the terminal to reduce the risk of a recurrence of the blank screen issue. After collecting the error messages, the server can also summarize and analyze them, then send the summarized error information to relevant personnel for further processing of the blank screen problem.
[0096] Figure 3 This is a schematic diagram of the flow of another procedure determination method provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the terminal loads an H5 page through a webview. During the page loading process, if issues arise such as JS resources not being downloaded or syntax errors occurring while JavaScript is modifying the DOM tree, a blank screen may appear. In this case, the target fault information corresponding to the terminal information represents a code error. The terminal can monitor error information during the page loading process and report the error information to the server. The specific steps are as follows:
[0097] After a certain delay following page loading, the terminal determines whether a white screen event has occurred. If a white screen event occurs, the terminal collects error logs to obtain error information from the page loading process. If no error information is found, no action is taken. If error information is found and a white screen issue occurs, the error information is reported to the server. The terminal can generate error information based on the error logs it collects.
[0098] The server analyzes the error messages, determines the corresponding upgrade package, and returns the upgrade package to the client. Further, after collecting the error messages, the server processes them, performing comprehensive ranking based on factors such as daily active users of the page and the percentage of blank screen occurrences. The server then visualizes the blank screen-related information and sends emails containing this information to relevant business teams for technical personnel to review, analyze, and process.
[0099] This invention provides a comprehensive solution for handling and monitoring white screen errors by analyzing the underlying principles of white screen occurrence. Different solutions are offered for different causes of white screen errors. This invention effectively reduces the probability of white screen errors and improves the user's browsing experience.
[0100] Figure 4 This is a schematic diagram of the structure of a page processing device provided in one embodiment of the present invention. Figure 4 As shown, the device includes:
[0101] The information acquisition module 401 is used to monitor the white screen event of the target terminal and acquire the terminal information of the target terminal.
[0102] The information matching module 402 is used to acquire multiple preset white screen fault information and determine the target fault information that matches the terminal information from the multiple white screen fault information.
[0103] The program determination module 403 is used to determine the target processing program corresponding to the target terminal based on the target fault information;
[0104] Processing module 404 is used to control the target terminal to execute the target processing program.
[0105] Optionally, the information matching module 402 is specifically used for:
[0106] The current fault information is determined from multiple white screen fault messages;
[0107] Determine the detection conditions corresponding to the current fault information;
[0108] Determine whether the terminal information meets the detection conditions;
[0109] In response to the terminal information meeting the detection conditions, the current fault information is identified as the target fault information that matches the terminal information.
[0110] Optionally, the information matching module 402 is specifically used for:
[0111] In response to the current fault information indicating insufficient terminal memory, the verification conditions are determined to include at least one of the following: free memory is less than a first memory threshold, available memory is less than a second memory threshold, and the number of pages loaded is greater than a number threshold.
[0112] In response to the current fault information indicating a weak terminal network signal, the verification conditions are determined to include: the network signal strength is less than the strength threshold.
[0113] In response to the current fault information indicating a code error on the page, the verification conditions include: the error message was generated during the page loading process on the terminal.
[0114] Optionally, the program determining module 403 is specifically used for:
[0115] In response to the target fault information indicating insufficient terminal memory, the page removal procedure is identified as the target handler.
[0116] Alternatively, in response to the target fault information indicating a weak terminal network signal, the page loading program is determined to be the target processing program;
[0117] Alternatively, in response to an error in the target fault information characterization page code, the reporting program is determined to be the target processing program.
[0118] Optionally, the target handler is a page removal handler;
[0119] The device also includes:
[0120] Processing module 404 is specifically used to determine at least one page to be removed from multiple pages loaded by the terminal using a page removal procedure.
[0121] Delete the processes related to removing the page.
[0122] Optionally, the processing module 404 is also used for:
[0123] Based on the page load time, multiple candidate pages are determined from the multiple pages loaded on the terminal;
[0124] Determine if the candidate page is in the whitelist;
[0125] If the alternative page is not in the whitelist, the alternative page will be selected as the page to be removed.
[0126] Optionally, the target processing procedure is a reporting procedure;
[0127] Processing module 404 is also used for:
[0128] Obtain error messages generated during the page loading process on the target terminal;
[0129] The error message is sent to the server using the reporting program.
[0130] Receive and install the upgrade package returned by the server in response to the error message.
[0131] This invention provides an electronic device, comprising:
[0132] One or more processors;
[0133] Storage device for storing one or more programs.
[0134] When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.
[0135] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system 500 suitable for implementing a terminal device of the present invention. Figure 5 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0136] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0137] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.
[0138] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.
[0139] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0140] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0141] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be located in a processor, and for example, can be described as: an information acquisition module, an information matching module, a program determination module, and a processing module. The names of these modules do not necessarily limit the module itself; for example, the information acquisition module can also be described as "a module that monitors a white screen event on the target terminal and acquires the terminal information of the target terminal."
[0142] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:
[0143] Upon detecting a white screen event on the target terminal, obtain the terminal information of the target terminal;
[0144] Acquire multiple preset white screen fault information, and determine the target fault information that matches the terminal information from the multiple white screen fault information;
[0145] Based on the target fault information, determine the target processing program corresponding to the target terminal;
[0146] Control the target terminal to execute the target processing program.
[0147] According to the technical solution of this invention, when a white screen event occurs on a terminal, a target fault information is determined from at least one white screen fault information based on terminal information. The white screen fault information can be set according to the cause of the white screen, and can be used to characterize conditions such as insufficient memory detection, network signal detection, and code error detection. The target fault information corresponds to the cause of the white screen event on the terminal. By matching the target fault information with the corresponding processing program on the terminal, the white screen problem on the terminal can be resolved more effectively, improving the user's browsing experience.
[0148] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A page processing method, characterized in that, include: Upon detecting a white screen event on the target terminal, obtain the terminal information of the target terminal; Acquire multiple preset white screen fault information, and determine the target fault information that matches the terminal information from the multiple white screen fault information; The step of determining the target fault information that matches the terminal information from the plurality of white screen fault information includes: determining the current fault information from the plurality of white screen fault information; determining the detection conditions corresponding to the current fault information; determining whether the terminal information meets the detection conditions; and, in response to the terminal information meeting the detection conditions, determining the current fault information as the target fault information that matches the terminal information. The step of determining the detection conditions corresponding to the current fault information includes: in response to the current fault information indicating insufficient terminal memory, determining the detection conditions includes at least one of: free memory less than a first memory threshold, available memory less than a second memory threshold, and the number of loaded pages greater than a number threshold; in response to the current fault information indicating weak terminal network signal, determining the detection conditions includes: network signal strength less than a strength threshold; in response to the current fault information indicating a page code error, determining the detection conditions includes: error information being generated during the terminal page loading process; Based on the target fault information, determine the target processing program corresponding to the target terminal; Control the target terminal to execute the target processing program.
2. The method according to claim 1, characterized in that, The step of determining the target processing program corresponding to the target terminal based on the target fault information includes: In response to the target fault information indicating insufficient terminal memory, the page removal procedure is determined to be the target processing procedure; Alternatively, in response to the target fault information indicating a weak terminal network signal, the page loading program is determined to be the target processing program; Alternatively, in response to an error in the target fault information characterization page code, the reporting program is determined to be the target processing program.
3. The method according to claim 1, characterized in that, The target processing program is a page removal program; The control of the target terminal to execute the target processing program includes: Using the page removal procedure, at least one page is identified from the multiple pages loaded on the terminal for removal. Delete the process related to the removal of the page.
4. The method according to claim 3, characterized in that, Determining at least one page to remove from the plurality of pages loaded from the terminal includes: Based on the page loading time, multiple candidate pages are determined from the multiple pages loaded by the terminal; Determine whether the candidate page is a page in the whitelist; If the candidate page is not a page in the whitelist, the candidate page will be selected as the page to be removed.
5. The method according to claim 1, characterized in that, The target processing procedure is a reporting procedure; The control of the target terminal to execute the target processing program includes: Obtain error information generated during the page loading process of the target terminal; The error message is sent to the server using the reporting procedure. Receive and install the upgrade package returned by the server in response to the error message.
6. A page processing apparatus, characterized in that, include: The information acquisition module is used to monitor the white screen event of the target terminal and acquire the terminal information of the target terminal; The information matching module is used to acquire multiple preset white screen fault information and determine the target fault information that matches the terminal information from the multiple white screen fault information. The information matching module is specifically used to: determine the current fault information from multiple white screen fault information; Determine the detection conditions corresponding to the current fault information; determine whether the terminal information meets the detection conditions; In response to the terminal information satisfying the detection conditions, the current fault information is determined as the target fault information that matches the terminal information; In response to the current fault information indicating insufficient terminal memory, the detection conditions are determined to include at least one of the following: free memory is less than a first memory threshold, available memory is less than a second memory threshold, and the number of pages loaded is greater than a number threshold; in response to the current fault information indicating weak terminal network signal, the detection conditions are determined to include: network signal strength is less than a strength threshold; in response to the current fault information indicating page code error, the detection conditions are determined to include: error information is generated during the terminal page loading process; The program determination module is used to determine the target processing program corresponding to the target terminal based on the target fault information. The control module is used to control the target terminal to execute the target processing program.
7. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-5.
8. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Freeze screen solution method, mobile terminal and computer readable storage medium
CN107807861A
Page control method, device, system and equipment and readable storage medium
CN112559918A