Interface switching method and device and computer readable storage medium

A technology of interface switching and interface, which is applied in the direction of data exchange network, digital transmission system, electrical components, etc., to achieve the effect of improving the timeliness.

Active Publication Date: 2019-08-02
PING AN TECH (SHENZHEN) CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the above technical problems, the present invention provides an interface switching method, which is applied to electronic devices and detects the operation status of each interface. Store the detected data in the database, where the returned information includes the information on the url of the server that provides the interface service; when the interface in use fails, take out the detected data from the database in the order closest to the current moment The latest operation status of the interface, take out the fault-free interface that returns the correct information and the status code is the same as the default value of the status code; before the application accesses the fault-free interface, it first obtains the configuration of the fault-free interface from the database that stores the configuration of the interface. Then complete the interface switching

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface switching method and device and computer readable storage medium
  • Interface switching method and device and computer readable storage medium
  • Interface switching method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Hereinafter, embodiments of the interface switching method, device, and computer-readable storage medium of the present invention will be described with reference to the accompanying drawings. Those of ordinary skill in the art can realize that the described embodiments can be modified in various different ways or combinations thereof without departing from the spirit and scope of the present invention. Therefore, the drawings and description are illustrative in nature, and are not used to limit the protection scope of the claims. In addition, in this specification, the drawings are not drawn to scale, and the same reference numerals denote the same parts.

[0032] figure 1 It is a schematic flowchart of an interface switching method provided by an embodiment of the present invention, which is applied to an electronic device, and the method includes the following steps:

[0033] Step S10: Detect the operation status of each interface, specifically, send a detection request ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the base frame operation and maintenance, and provides an interface switching method and device and a storage medium. The method comprises the steps of detecting the operationcondition of each interface, the operation condition at least comprising the response time consumption, an http state code, and a judgment result of whether the returned information is correct or not; when the used interface has a fault, taking out the detected latest operation condition of each interface from the database according to the sequence closest to the current moment, and taking out afault-free interface with the correct return information and the http state code being the same as the preset value of the state code; and using the application to obtain the configuration of the fault-free interface to complete the switching of the interface. When an existing interface fails, the interface can be issued and configured to a service system according to different interfaces and is quickly connected with the interface with the optimal operation condition, the application does not need to be restarted in the switching process, and the recovery time efficiency of the application isimproved.

Description

Technical field [0001] The invention relates to the operation and maintenance of a base frame, in particular to an interface switching method, device and computer readable storage medium. Background technique [0002] The current system is rarely self-contained. In Internet applications, it is often necessary to call some third-party functional interfaces, such as face recognition, weather query, map interface, etc. These services will have multiple The supplier provides the interface. For example, Moji Weather, National Meteorological Administration, etc. all open interfaces for weather query. Gaode Maps and Baidu Maps also provide interfaces for map display. At this stage, if the interface provided by a single supplier fails, you need to manually modify the configuration and restart, and then switch to another interface, because this process requires manual operation, which takes a long time, affects the timeliness of function recovery and restarts Bring loss to system avail...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/0654H04L67/34H04L67/30
Inventor 张旭明宫林涛
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products