CN110119290A - The spare page switching method of application program, device, computer equipment and storage medium - Google Patents
The spare page switching method of application program, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110119290A CN110119290A CN201910295657.8A CN201910295657A CN110119290A CN 110119290 A CN110119290 A CN 110119290A CN 201910295657 A CN201910295657 A CN 201910295657A CN 110119290 A CN110119290 A CN 110119290A
- Authority
- CN
- China
- Prior art keywords
- page
- default
- spare
- load
- address
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
This application involves a kind of spare page switching method of application program based on Pages Security, device, computer equipment and storage mediums.The described method includes: obtaining the page load request for carrying default page address;According to page load request, to the corresponding default page in default page server load default page address;If monitoring, default page load is abnormal, obtains static mappings table;The corresponding spare page address in default page address is obtained according to static mappings table;Based on spare page address, the spare page corresponding with spare page address is loaded to spare page server.It being capable of the timely and effectively cut-in stand-by page using this method.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of spare page switching method of application program, device,
Computer equipment and storage medium.
Background technique
With the universal of intelligent mobile terminal and fast-developing, be mounted on intelligent mobile terminal application program (APP,
It Application is in) explosive growth, at essential tool for people's lives.
In order to which the use of application program is stablized, application program is usually to set for crucial business function module in exploitation
The spare page is set.For example, when business module default page is the primary page (the Native page), exploitation same page content
The H5 page develops the primary page as the spare page when business module default page is the H5 page as the spare page.Work as business
When module is unable to normal load failure, switching enables the content of pages that spare page load obtains page module, so as to answer
With program normal use.
However, the spare page switching of legacy application is to need artificially to change parameter in backend arrangement.Therefore often
Cause to make application program the case where being unable to normal use occur due to failing timely and effectively to change.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind being capable of the timely and effectively spare page of application program
Switching method, device, computer equipment and storage medium.
A kind of spare page switching method of application program, which comprises
Obtain the page load request for carrying default page address;
According to the page load request, the corresponding default page in the default page address is loaded to default page server
Face;
If monitoring, the default page load is abnormal, obtains static mappings table;
The corresponding spare page address in the default page address is obtained according to the static mappings table;
Based on the spare page address, loaded to spare page server corresponding spare with the spare page address
The page.
If described in one of the embodiments, monitor that the default page load is abnormal, static mappings table is obtained
Include:
Obtain the abnormal Exception Type of the default page load;
Judged whether to meet preset switching condition according to the Exception Type;
If satisfied, then obtaining static mappings table.
The abnormal Exception Type of the page load that obtains includes: before in one of the embodiments,
Physical equipment mark is obtained, is identified according to the physical equipment and obtains corresponding physics equipment working state value;
Determine whether physical network is opened according to the physical equipment operation state values;
If the physical network is opened, the abnormal Exception Type of the page load is obtained.
In one of the embodiments, the method also includes:
If the physical network is not turned on, corresponding default prompt information is obtained according to the physical label;
Physical network is opened according to the default prompt information instruction user.
In one of the embodiments, the method also includes:
If monitoring, the spare page load is abnormal, interrupts the page load request, carries until reacquiring
There is the page load request of new default page address;
It is again corresponding to the new default page address of default page server load according to the page load request
Default page.
In one of the embodiments, it is described obtain the page load request for carrying default page address before include:
The enabled instruction for obtaining application program, is sent to default page server for the enabled instruction;
Receive the latest edition number that default page server responds the application program that the enabled instruction is returned;
The current version number of the application program is obtained, is answered described in the latest edition number and current version number determination
Whether need to update with program;
If so, updating the application program and corresponding static mappings table.
In one of the embodiments, be based on the spare page address, to spare page server load with it is described standby
After the step of spare page corresponding with page address, further includes:
Obtain handover information, the handover information includes the page info of current page, load abnormal Exception Type and
Switching time;
Journal file is generated according to the handover information and is sent to default page server.
A kind of spare page switching device of application program, described device include:
Sending module, for obtaining the page load request for carrying default page address;
Loading module is used for according to the page load request, with loading the default page to default page server
The corresponding default page in location;
Monitoring modular, if obtaining static mappings table for monitoring that the default page load is abnormal;
Module is obtained, for according to the corresponding spare page in the static mappings table acquisition default page address
Location;
The loading module is also used to based on the spare page address, to the load of spare page server with it is described spare
The corresponding spare page in page address.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device realizes the spare page switching method of application program described in above-mentioned any one when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The spare page switching method of application program described in above-mentioned any one is realized when row.
The spare page switching method of above-mentioned application program, device, computer equipment and storage medium, first by obtaining
The page load request for carrying default page address loads default page to default page server according to page load request
The corresponding default page in address, and real-time perfoming monitoring during default page is reloaded, to guarantee the suitable of page load
Benefit carries out.If monitoring obtains the current default page, there is exception in load, obtains static mappings table.It is obtained according to static mappings table
Spare page address loads the corresponding spare page in spare page address to spare page server based on spare page address,
To realize the switching for carrying out the spare page automatically in the business function module exception of application program, it is not necessarily to manual intervention, and
When complete page switching effectively to ensure program normal use.
Detailed description of the invention
Fig. 1 is the application scenario diagram of the spare page switching method of application program in one embodiment;
Fig. 2 is the flow diagram of the spare page switching method of application program in one embodiment;
If Fig. 3 is to monitor that default page load is abnormal in one embodiment, the process of static mappings table step is obtained
Schematic diagram;
Fig. 4 is the flow diagram of the spare page switching method of application program in another embodiment;
Fig. 5 is the structural block diagram of the spare page switching device of application program in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
The spare page switching method of application program provided by the present application, can be applied in application environment as shown in Figure 1.
Wherein, user terminal 102 is communicated with default page server 104 by network, user terminal 102 pass through network with it is spare
Page server 106 is communicated.User terminal 102 obtains the page load request for carrying default page address;User is whole
End 102 loads the corresponding default page in default page address according to page load request, to default page server 104;User
If terminal 102 monitors default page, load is abnormal, obtains static mappings table;User terminal 102 is obtained according to static mappings table
Take the corresponding spare page address in default page address;User terminal 102 is based on spare page address, to spare page server
The 106 loads spare page corresponding with spare page address.Wherein, user terminal 102 can be, but not limited to be various personal meters
Calculation machine, laptop, smart phone, tablet computer and portable wearable device, default server 104 and spare page clothes
Business device 106 can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of spare page switching method of application program, in this way
Applied to being illustrated for the user terminal 102 in Fig. 1, comprising the following steps:
Step S202 obtains the page load request for carrying default page address.
Wherein, page load request refers to that response user opens some page of business module in the operation of application program
Request.Default page address is the page address for passing through some page that user's operation application program is opened.Default
Page type can be the primary page according to the type of application program, or the H5 page.The type of application program includes Web
App (application program based on Web), Hybrid App (mixed mode mobile application) and Native App (primary app).
The default page of Web App is the H5 page, and the default page of Hybrid App can be the H5 page, or the primary page,
The default page of Native App is the primary page.
Specifically, when user opens any one in Application Program Interface operation by touch screen or keying in user terminal
When default page, if the mode for opening default page is to need to input the default page address of the default page, when user exists
After the address field of application program completes the input of default page address and clicks determining or hop button, user terminal obtains automatically
The default page address that family is inputted is taken, and at the same time response user's operation generates page load request, and user institute is defeated
The default page address entered carries in page load request, loads subsequently through the page corresponding silent to default page address
Recognize page server load default page.User is only needed to click application by touch screen or keying if opening default page mode
The corresponding control of the default page in program, then when the user clicks after the control, it is to be somebody's turn to do that automatic trigger user terminal obtains in advance
The default page address of control bundle and at the same time response user's clicking operation generates page load request, and this is tied up in advance
Fixed default page address carries in page load request, loads subsequently through the page corresponding silent to default page address
Recognize page server load default page.
Step S204, according to page load request, to the corresponding default in default page server load default page address
The page.
Wherein, default page server refers to the server for being able to respond the default page load request.Work as user terminal
When getting the page load request for carrying default page address under the operation of application program by user, user terminal will
The page load request is sent to corresponding default page server.According to the page load request, to default page server
The entrained corresponding default page in default page address of load.
Specifically, after default page server receives page load request, response page load request, and according to default
Page address obtains corresponding default page data packet.The default page data packet is returned to user's end by default page server
End, user terminal load received default page data packet, obtain the content of pages of default page, and will load
The content of pages of acquisition be shown in the display device that user terminal is connected.
Step S206, if monitoring, default page load is abnormal, obtains static mappings table.
Wherein, load is abnormal refers to that the error situation occurred when obtaining content of pages, including user terminal can not obtain
The default page data packet or user terminal that return to default server get the default page of default server return
After data packet, but occurs situations such as parsing mistake or failure during load parses the default page data packet.It is quiet
State mapping table refers to the default page address of business module and reflecting for spare page address in application program with the spare page
Penetrate relation table.
Specifically, after user terminal sends page load request to default page server, that is, start page monitoring function.
There is the abnormal situation of default page load when user terminal detects during monitoring, then starting switches from default page
For the handover mechanism of the spare page, user terminal obtains static mappings table according to handover mechanism.Static mappings table can be by opening
The mapping relations of hair personnel pre-set default page address and spare page address, are pre-stored in the local data of user terminal
In library or in configuration file.Wherein, handover mechanism is the logic task that default page is switched to the spare page.For example,
If default page is the H5 page, the primary page spare set by the H5 page will be switching to.If default page is primary
The page will then be switching to the H5 page spare set by the primary page.
Step S208 obtains the corresponding spare page address in default page address according to static mappings table.
Step S210 is based on spare page address, loads to spare page server corresponding with spare page address standby
Use the page.
Wherein, spare page server is the server for being able to respond the spare page load request.Specifically, user
Terminal 102 is therefrom searched and is added by the default page address stored in static mappings table and the mapping relations of spare page address
The abnormal corresponding spare page address in default page address is carried, and spare page address is sent to spare page server.
After standby server receives the spare page address of user terminal transmission, obtained according to the spare page address corresponding standby
User terminal is fed back to page data packet.User terminal acquires the spare page by loading spare page data packet, and
The spare page is shown in the display device of user terminal, that is, completes the switching of the spare page of application program.In this implementation
In example, the server of default page and the spare page is mutually indepedent, is then in order to avoid working as server without using same server
Both when failure simultaneously non-serviceable situation
The above-mentioned spare page switching method of application program is added by the page for carrying default page address obtained first
Request is carried, is added to the corresponding default page in default page server load default page address and again according to page load request
Real-time perfoming monitors during carrying default page, to guarantee going on smoothly for page load.If monitoring obtains current default page
There is exception in face load, then obtains static mappings table.Spare page address is obtained according to static mappings table, based on the spare page
Location loads the corresponding spare page in spare page address to spare page server, to realize the business function in application program
Automatically the switching of the spare page is carried out when module exception, is not necessarily to manual intervention, completes page switching timely and effectively to ensure journey
Sequence normal use.
In one embodiment, as shown in figure 3, default page load is abnormal if monitoring, static mappings table packet is obtained
Include following steps:
Step S302 obtains the abnormal Exception Type of default page load.
Wherein, the different pages occurs having different Exception Types when load is abnormal.The page of the primary page loads abnormal
Type includes: that null pointer, Array Bound, network can not connect.And the page load Exception Type of the H5 page then includes: 403
Mistake (server is forbidden accessing), 404 wrong (server does not find file or catalogue), 501-505 mistake are (wrong inside server
Accidentally) etc..
Specifically, due to having corresponding exception information when the page loads abnormal, then when user terminal is to corresponding with service
When the device request of loading page, if monitoring, page load is abnormal, obtains exception information.Determine that load is abnormal according to exception information
Type.For example, if default page is the H5 page, when user terminal is to default page server request of loading default page address
It is monitored to the page load when the corresponding H5 page and exception occurs.And exception information is " HTTP error 403-forbidden ", then
Directly determining the abnormal Exception Type of load by the exception information is 403 mistakes.
Step S304 judges whether to meet preset switching condition according to Exception Type.
Wherein, switching condition is to preset to decide whether to carry out the rule that default page is switched to the spare page.Switching
Condition then includes Exception Type when page load is abnormal, then whether the Exception Type when there is page load exception belongs to
Exception Type in switching condition determines whether to carry out spare page switching.
Specifically, after the Exception Type that user terminal is currently occurred according to exception information, the switching prestored is obtained
Condition.It searches whether to include the Exception Type currently occurred from the Exception Type for including in switching condition.If currently occurring
Exception Type has identical Exception Type in switching condition, then it represents that the Exception Type meets preset switching condition, can be with
Carry out the switching of the spare page.If the Exception Type currently occurred does not have identical Exception Type in switching condition, then it represents that
The Exception Type currently occurred is unsatisfactory for preset switching condition, then without spare page switching.
Step S306, if satisfied, then obtaining static mappings table.
Specifically, it when determining that the Exception Type currently occurred meets switching and requires according to preset switching condition, then obtains
Static mappings table.It searches and is obtained the spare page corresponding to the abnormal default page address of load occur from static mappings table
Location.Based on the spare page address to the spare spare page of page server request of loading.In the present embodiment, when loading
When the situation of exception, is determined whether to meet switching condition according to Exception Type, not only record switch reasons for subsequent development people
Member is adjusted the accuracy for also assuring switching.
It in one embodiment, include: to obtain physical equipment mark, root before obtaining the abnormal Exception Type of page load
It is identified according to physical equipment and obtains corresponding physics equipment working state value;Determine that physical network is according to physical equipment operation state values
No unlatching;If physical network is opened, the abnormal Exception Type of page load is obtained.
Wherein, physical label is for differentiating number or symbol set by the different physical equipments of identification.Physical equipment
Refer to equipment that hard disk is connect with system, including host, router and interchanger etc..Physical network is then to have in a network respectively
Kind physical equipment and medium (optical cable, cable and twisted pair etc.) connect the network to be formed.Operation state values, which refer to, to be used for
Prompt the logical value of physics equipment working state.
Specifically, when the page loads exception, all physical equipments being connect with client terminal system are obtained first
Physical label.The operation state values for removing to obtain corresponding physical equipment according to physical label, confirm the object according to operation state values
Reason equipment whether opens physical network or physical network is in available mode.If the equal table of the operation state values of all physical equipments
Show that physics network is opened and in available mode, then it represents that caused by there is abnormal not instead of local device in page load, page
Caused by the corresponding server in face, then the abnormal Exception Type of available load, meets condition according to Exception Type judgement
The switching of standby page face is carried out afterwards.Wherein, the operation state values of physical equipment include but is not limited to power supply status value, system mode
Value, wide area network status value, local area network state value and wireless status value etc., as long as the equal of physical equipment working condition can be indicated
It can be with.
For example, it is assumed that operation state values logical value 0,1 and 2 indicates, 0 expression indicator light often goes out, 1 indicates that indicator light is normal
Bright, 2 expression indicator light flashings.And power supply status value indicates that the power supply of physical equipment is normal for 1, power supply status most 0 table
Show that the power supply of physical equipment is not powered on.System mode value be 0 indicate physics device systems if there are failure, system mode values be
1 indicates physics device systems initialization failure, indicates that physics device systems are normal if system mode value is 2.And wide area
Netted state value be 0 indicate physics device network be not connected with successfully, wide area network status value is 1 indicates successful connection but do not have
Corresponding data legend, wide area network status value be 2 indicate successful connection and have data transmission etc..Then when determine Exception Type it
Preceding acquired mark A is the physical label of router, then gets the power supply status value of router, system shape according to mark A
State value, wide area network status value etc., according to different conditions value determine router power supply, system, wide area network etc. whether open and
It works normally.Only all state values of physical equipment, which are in normally-open working condition, just can determine that the physics of the physical equipment
Network problem useless.It in the present embodiment, is not only merely that server connect error with terminal due to causing page load abnormal,
It is also possible to be caused by the failure of local physical equipment.Therefore, it is verified before the cut-in stand-by page and determines local physics
Whether the physical network of equipment, which is opened, normally avoids blindly switching and leading to not the real causes for determining that page load is abnormal.
In one embodiment, if physical network is not turned on, corresponding default prompt is obtained according to physical label and is believed
Breath;Indicate that user opens physical network according to default prompt information.
Wherein, prompt information is to preset the information for being stored in and carrying out corresponding operating locally for prompt user.And by
Different in each physical equipment, the operation state values of different physical equipments are different, and the operation state values to break down be also with
What machine can not be determined, therefore various situations set different prompt informations in advance.
Specifically, when determining that user's physical network is not opened according to operation state values, then according to the mark of physical equipment
Corresponding prompt information when physical network is not turned on is obtained with fail operation state value.For example, if by obtaining router
Power work state value is 0, then can determine that the power supply of router is not switched on, then obtaining corresponding prompt information is that " please connect
Logical router power supply ", if being worked normally when not having other when user opens router power supply by prompt information
It can load to obtain the requested page.Then will be prompted to information is that " please connect router power supply " is shown in the aobvious of user terminal
User is prompted to connect router power supply on showing device.It in the present embodiment, is to be caused to be then to lead to by physical equipment when load is abnormal
It crosses preset prompt prompt user and is modified and avoid blindly switching, it is determined that load abnormal real causes.
In one embodiment, as shown in figure 4, providing another application program spare page switching method, in step
S210 is based on spare page address, also wraps after loading the spare page corresponding with spare page address to spare page server
It includes:
Step S212, if monitoring, spare page load is abnormal, interrupts page load request, carries until reacquiring
There is the page load request of new default page address.
It is corresponding to load new default page address to default page server again according to page load request by step S214
Default page.And return step S206 is monitored default page load condition
Wherein, interrupting page load request is the page load request for terminating this instruction load and opening the page.Also,
Prompt user's selection, which reopens the page or determines, terminates this operation.If user, which selects to determine, terminates this operation, tie
The load of the beam page shows blank page in user terminal.User carries out page in terminal again if user's selection reopens the page
Face operates to generate the page load request for carrying new default page address.User terminal adds according to the new page of acquisition
Request is carried to the corresponding default page in default server load default page address.Corresponding to the new default page address of load
Default page when, then return step S206 is monitored default page load condition.
In the present embodiment, while monitoring the load condition of the spare page, when the spare page also occur load it is abnormal when it is complete
Full cut-off only interrupts this page load request, not the cut-in stand-by page, does not also return to continue to load default page.It avoids the occurrence of
The page loads the case where endless loop.Only default page is reloaded by obtaining new page load request when user continues operation
The content of pages in face.
In one embodiment, comprising steps of obtaining before obtaining the page load request for carrying default page address
Enabled instruction is sent to default page server by the enabled instruction of application program;Receive the response starting of default page server
Instruct the latest edition number of returned application program;The current version number for obtaining application program, compares latest edition number and works as
Preceding version number determines whether application program needs to update;If so, more new application and corresponding static mappings table.
Wherein, enabled instruction refers to that user starts the request of application program by operation instruction user terminal.Due to application
Program is in continuous updating state, then latest edition number refer to application program update to current latest edition version number.Currently
Version number refers to the version number for being used in the application program of user terminal local.
Specifically, need to start corresponding application program before user requests to open the page, when user answers by clicking
Enabled instruction is generated with program icon.User terminal gets and the enabled instruction is sent to default server after enabled instruction,
The latest edition number that default server then obtains the corresponding application program of the enabled instruction returns to user terminal.User terminal obtains
The current version number for taking the local version of application program, compares latest edition number and local version number.If local version number is equal to
Latest edition number, then it represents that local application is latest edition, possesses newest default page and default page is corresponding standby
Use page info.If local version number is less than latest edition number, then it represents that local application is legacy version, then it represents that local to answer
There may be the variation of increase or reduction with the corresponding spare page of the default page and default page of program.Therefore, when this
When ground version number is less than latest edition number, then meets update condition, i.e., local application is updated to latest edition, simultaneously i.e.
The corresponding static mappings table of the application program is updated simultaneously.In the present embodiment, it ensure that newest default page by updating
The information of face and the corresponding spare page.
In one embodiment, it is based on spare page address, to the load of spare page server and spare page address pair
After the step of spare page answered, acquisition handover information is further comprised the steps of:, handover information includes the page letter of current page
Breath, loads abnormal Exception Type and switching time;Journal file is generated according to handover information and is sent to default page service
Device.
Wherein, the page info of current page is to switch to the spare page info after the spare page.Load exception
Exception Type is the Exception Type determined when loading abnormal according to exception information.Switching time is to switch default page
System time when for the spare page.
Specifically, it after the page spare to spare page server load request based on spare page address, collects and obtains
Page info, Exception Type and the switching time of current page generate journal file and are sent to default page server.Log
File generated can be stored in advance in local journal file template by obtaining, according to journal file template that handover information is defeated
Enter into log file template and generate journal file, and is journal file name according to present system time and date.Log
Default server can be sent to after file generated in real time, can also be sent out after collecting multiple journal files in preset time timing
Give default server.In the present embodiment, journal file is generated by handover information and reports to default server, for exploit person
Member solves the defect failure of server-side according to information in time.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 5, providing a kind of spare page switching device of application program, comprising: send
Module 502, loading module 504, monitoring modular 506 and acquisition module 508, in which:
Sending module 502, for obtaining the page load request for carrying default page address.
Loading module 504, for being corresponded to default page server load default page address according to page load request
Default page.
Monitoring modular 506, if obtaining static mappings table for monitoring that default page load is abnormal.
Module 508 is obtained, for obtaining the corresponding spare page address in default page address according to static mappings table.
Loading module 504 is also used to based on spare page address, to the load of spare page server and spare page address
The corresponding spare page.
In one embodiment, monitoring modular 506 is also used to obtain the abnormal Exception Type of default page load;According to different
Normal type judges whether to meet preset switching condition;If satisfied, then obtaining static mappings table.
In one embodiment, the spare page switching device of application program further includes judgment module, is set for obtaining physics
Standby mark identifies according to physical equipment and obtains corresponding physics equipment working state value;It is determined according to physical equipment operation state values
Whether physical network is opened;If physical network is opened, the abnormal Exception Type of page load is obtained.
In one embodiment, if judgment module is also used to physical network and is not turned on, according to physical label acquisition pair
The default prompt information answered;Indicate that user opens physical network according to default prompt information.
In one embodiment, it if loading module 504 is also used to monitor that spare page load is abnormal, interrupts the page and adds
Request is carried, until reacquiring the page load request for carrying new default page address;Again according to page load request
The new corresponding default page in default page address is loaded to default page server.
In one embodiment, the spare page switching device of application program further includes update module, applies journey for obtaining
Enabled instruction is sent to default page server by the enabled instruction of sequence;It receives default page server and responds enabled instruction institute
The latest edition number of the application program of return;The current version number for obtaining application program, compares latest edition number and current version
Number determine application program whether need to update;If so, more new application and corresponding static mappings table.
In one embodiment, the spare page switching device of application program further includes generation module, for obtaining switching letter
Breath, handover information includes the page info of current page, loads abnormal Exception Type and switching time;It is raw according to handover information
At journal file and it is sent to default page server.
Specific restriction about the spare page switching device of application program may refer to spare above for application program
The restriction of page switching method, details are not described herein.Modules in the above-mentioned spare page switching device of application program can be complete
Portion or part are realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of calculating
In processor in machine equipment, it can also be stored in a software form in the memory in computer equipment, in order to processor
It calls and executes the corresponding operation of the above modules.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of spare page switching method of application program.The display screen of the computer equipment can be liquid crystal display or electronics
Ink display screen, the input unit of the computer equipment can be the touch layer covered on display screen, are also possible to computer and set
Key, trace ball or the Trackpad being arranged on standby shell, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, the processor perform the steps of when executing computer program
Obtain the page load request for carrying default page address;
According to page load request, to the corresponding default page in default page server load default page address;
If monitoring, default page load is abnormal, obtains static mappings table;
The corresponding spare page address in default page address is obtained according to static mappings table;
Based on spare page address, the spare page corresponding with spare page address is loaded to spare page server.
In one embodiment, it is also performed the steps of when processor executes computer program
Obtain the abnormal Exception Type of default page load;
Judged whether to meet preset switching condition according to Exception Type;
If satisfied, then obtaining static mappings table.
In one embodiment, it is also performed the steps of when processor executes computer program
Physical equipment mark is obtained, is identified according to physical equipment and obtains corresponding physics equipment working state value;
Determine whether physical network is opened according to physical equipment operation state values;
If physical network is opened, the abnormal Exception Type of page load is obtained.
In one embodiment, it is also performed the steps of when processor executes computer program
If physical network is not turned on, corresponding default prompt information is obtained according to physical label;
Indicate that user opens physical network according to default prompt information.
In one embodiment, it is also performed the steps of when processor executes computer program
If monitoring, spare page load is abnormal, interrupts page load request, carries new write from memory until reacquiring
Recognize the page load request of page address;
The corresponding default page in new default page address is loaded to default page server again according to page load request
Face.
In one embodiment, it is also performed the steps of when processor executes computer program
The enabled instruction for obtaining application program, is sent to default page server for enabled instruction;
Receive the latest edition number for the application program that the response enabled instruction of default page server is returned;
The current version number for obtaining application program, compares latest edition number and current version number determines whether application program needs
It updates;
If so, more new application and corresponding static mappings table.
In one embodiment, it is also performed the steps of when processor executes computer program
Handover information is obtained, handover information includes the page info of current page, loads abnormal Exception Type and switching
Time;
Journal file is generated according to handover information and is sent to default page server.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Obtain the page load request for carrying default page address;
According to page load request, to the corresponding default page in default page server load default page address;
If monitoring, default page load is abnormal, obtains static mappings table;
The corresponding spare page address in default page address is obtained according to static mappings table;
Based on spare page address, the spare page corresponding with spare page address is loaded to spare page server.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Obtain the abnormal Exception Type of default page load;
Judged whether to meet preset switching condition according to Exception Type;
If satisfied, then obtaining static mappings table.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Physical equipment mark is obtained, is identified according to physical equipment and obtains corresponding physics equipment working state value;
Determine whether physical network is opened according to physical equipment operation state values;
If physical network is opened, the abnormal Exception Type of page load is obtained.
In one embodiment, it is also performed the steps of when computer program is executed by processor
If physical network is not turned on, corresponding default prompt information is obtained according to physical label;
Indicate that user opens physical network according to default prompt information.
In one embodiment, it is also performed the steps of when computer program is executed by processor
If monitoring, spare page load is abnormal, interrupts page load request, carries new write from memory until reacquiring
Recognize the page load request of page address;
The corresponding default page in new default page address is loaded to default page server again according to page load request
Face.
In one embodiment, it is also performed the steps of when computer program is executed by processor
The enabled instruction for obtaining application program, is sent to default page server for enabled instruction;
Receive the latest edition number for the application program that the response enabled instruction of default page server is returned;
The current version number for obtaining application program, compares latest edition number and current version number determines whether application program needs
It updates;
If so, more new application and corresponding static mappings table.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Handover information is obtained, handover information includes the page info of current page, loads abnormal Exception Type and switching
Time;
Journal file is generated according to handover information and is sent to default page server.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of spare page switching method of application program, which comprises
Obtain the page load request for carrying default page address;
According to the page load request, the corresponding default page in the default page address is loaded to default page server;
If monitoring, the default page load is abnormal, obtains static mappings table;
The corresponding spare page address in the default page address is obtained according to the static mappings table;
Based on the spare page address, to spare page server load standby page corresponding with the spare page address
Face.
2. the method according to claim 1, wherein if described monitor that default page load is abnormal,
Obtaining static mappings table includes:
Obtain the abnormal Exception Type of the default page load;
Judged whether to meet preset switching condition according to the Exception Type;
If satisfied, then obtaining static mappings table.
3. according to the method described in claim 2, it is characterized in that, it is described obtain the abnormal Exception Type of page load it
Before include:
Physical equipment mark is obtained, is identified according to the physical equipment and obtains corresponding physics equipment working state value;
Determine whether physical network is opened according to the physical equipment operation state values;
If the physical network is opened, the abnormal Exception Type of the page load is obtained.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the physical network is not turned on, corresponding default prompt information is obtained according to the physical label;
Physical network is opened according to the default prompt information instruction user.
5. the method according to claim 1, wherein the method also includes:
If monitoring, the spare page load is abnormal, interrupts the page load request, carries newly until reacquiring
Default page address page load request;
It is again corresponding silent to the new default page address of default page server load according to the page load request
Recognize the page.
6. the method according to claim 1, wherein described obtain the page load for carrying default page address
Include: before request
The enabled instruction for obtaining application program, is sent to default page server for the enabled instruction;
Receive the latest edition number that default page server responds the application program that the enabled instruction is returned;
The current version number of the application program is obtained, the latest edition number and current version number determine described using journey
Whether sequence, which needs, updates;
If so, updating the application program and corresponding static mappings table.
7. the method according to claim 1, wherein the spare page address is based on, to spare Page Service
After the step of device load corresponding with the spare page address spare page, further includes:
Handover information is obtained, the handover information includes the page info of current page, loads abnormal Exception Type and switching
Time;
Journal file is generated according to the handover information and is sent to default page server.
8. a kind of spare page switching device of application program, which is characterized in that described device includes:
Sending module, for obtaining the page load request for carrying default page address;
Loading module, for loading the default page address pair to default page server according to the page load request
The default page answered;
Monitoring modular, if obtaining static mappings table for monitoring that the default page load is abnormal;
Module is obtained, for obtaining the corresponding spare page address in the default page address according to the static mappings table;
The loading module is also used to based on the spare page address, to the load of spare page server and the spare page
The corresponding spare page in address.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295657.8A CN110119290A (en) | 2019-04-12 | 2019-04-12 | The spare page switching method of application program, device, computer equipment and storage medium |
PCT/CN2019/102590 WO2020206907A1 (en) | 2019-04-12 | 2019-08-26 | Application program standby page switching method and apparatus, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295657.8A CN110119290A (en) | 2019-04-12 | 2019-04-12 | The spare page switching method of application program, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110119290A true CN110119290A (en) | 2019-08-13 |
Family
ID=67521030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910295657.8A Pending CN110119290A (en) | 2019-04-12 | 2019-04-12 | The spare page switching method of application program, device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110119290A (en) |
WO (1) | WO2020206907A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111290797A (en) * | 2020-01-20 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Page switching method, client, server, electronic equipment and system |
WO2020206907A1 (en) * | 2019-04-12 | 2020-10-15 | 平安科技(深圳)有限公司 | Application program standby page switching method and apparatus, computer device and storage medium |
CN111991803A (en) * | 2020-08-28 | 2020-11-27 | 厦门雅基软件有限公司 | Cloud game switching method and device and computer readable storage medium |
CN113301148A (en) * | 2021-05-21 | 2021-08-24 | 北京达佳互联信息技术有限公司 | Page display method, device, server, terminal and storage medium |
CN114995861A (en) * | 2022-08-02 | 2022-09-02 | 中航信移动科技有限公司 | Weex-based application program updating method, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150261620A1 (en) * | 2014-03-13 | 2015-09-17 | Carlos Ruiz | Systems and methods for reducing load database time |
CN106055564A (en) * | 2016-05-18 | 2016-10-26 | 平安科技(深圳)有限公司 | Method and device for page loading |
CN109474668A (en) * | 2018-10-16 | 2019-03-15 | 平安科技(深圳)有限公司 | CDN service switching method, device, computer equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7325045B1 (en) * | 2003-08-05 | 2008-01-29 | A9.Com, Inc. | Error processing methods for providing responsive content to a user when a page load error occurs |
CN107729352B (en) * | 2017-08-30 | 2020-07-31 | 深圳壹账通智能科技有限公司 | Page resource loading method and terminal equipment |
CN110119290A (en) * | 2019-04-12 | 2019-08-13 | 平安科技(深圳)有限公司 | The spare page switching method of application program, device, computer equipment and storage medium |
-
2019
- 2019-04-12 CN CN201910295657.8A patent/CN110119290A/en active Pending
- 2019-08-26 WO PCT/CN2019/102590 patent/WO2020206907A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150261620A1 (en) * | 2014-03-13 | 2015-09-17 | Carlos Ruiz | Systems and methods for reducing load database time |
CN106055564A (en) * | 2016-05-18 | 2016-10-26 | 平安科技(深圳)有限公司 | Method and device for page loading |
CN109474668A (en) * | 2018-10-16 | 2019-03-15 | 平安科技(深圳)有限公司 | CDN service switching method, device, computer equipment and storage medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020206907A1 (en) * | 2019-04-12 | 2020-10-15 | 平安科技(深圳)有限公司 | Application program standby page switching method and apparatus, computer device and storage medium |
CN111290797A (en) * | 2020-01-20 | 2020-06-16 | 北京字节跳动网络技术有限公司 | Page switching method, client, server, electronic equipment and system |
CN111991803A (en) * | 2020-08-28 | 2020-11-27 | 厦门雅基软件有限公司 | Cloud game switching method and device and computer readable storage medium |
CN111991803B (en) * | 2020-08-28 | 2023-01-31 | 厦门雅基软件有限公司 | Cloud game switching method and device and computer readable storage medium |
CN113301148A (en) * | 2021-05-21 | 2021-08-24 | 北京达佳互联信息技术有限公司 | Page display method, device, server, terminal and storage medium |
CN114995861A (en) * | 2022-08-02 | 2022-09-02 | 中航信移动科技有限公司 | Weex-based application program updating method, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020206907A1 (en) | 2020-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110119290A (en) | The spare page switching method of application program, device, computer equipment and storage medium | |
CN110647438B (en) | Event monitoring method and device, computer equipment and storage medium | |
CN108768728B (en) | Operation and maintenance task processing method and device, computer equipment and storage medium | |
CN111045901A (en) | Container monitoring method and device, storage medium and electronic equipment | |
US20030033550A1 (en) | Uninterruptible power supply (UPS) devices monitoring system | |
CN108897658B (en) | Method and device for monitoring master database, computer equipment and storage medium | |
CN108829485A (en) | Update method, device, storage medium and the computer equipment of application interface layout | |
CN110377481B (en) | Log management method, device, equipment and storage medium | |
CN110851159B (en) | Business rule updating method and device, computer equipment and storage medium | |
CN111078507A (en) | Data monitoring method, system, computer equipment and storage medium | |
CN113407383B (en) | Main and standby system switching method and device, server and main and standby system | |
CN109388622A (en) | A kind of log information processing method, device, equipment and readable storage medium storing program for executing | |
CN112612988A (en) | Page processing method and device, computer equipment and storage medium | |
CN111767173A (en) | Network equipment data processing method and device, computer equipment and storage medium | |
CN113220540A (en) | Service management method, device, computer equipment and storage medium | |
CN109324961A (en) | System automatic test approach, device, computer equipment and storage medium | |
CN108427560A (en) | API file management methods, server and storage medium | |
CN112631627A (en) | Software upgrading method and device, computer equipment and storage medium | |
CN116431731A (en) | Data asynchronous export method, device, equipment and storage medium thereof | |
CN112130889A (en) | Resource management method and device, storage medium and electronic device | |
CN113326052A (en) | Method and device for upgrading service component, computer equipment and storage medium | |
CN114157582A (en) | Switch port state monitoring method and device and network communication system | |
CN112818204A (en) | Service processing method, device, equipment and storage medium | |
CN110879757A (en) | Restarting method and device for abnormal operation of client and computer equipment | |
CN113094251A (en) | Embedded system testing method and device, computer 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 |
Application publication date: 20190813 |
|
RJ01 | Rejection of invention patent application after publication |