CN115484163A - System switching method and device, storage medium and electronic device - Google Patents

System switching method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115484163A
CN115484163A CN202211049935.XA CN202211049935A CN115484163A CN 115484163 A CN115484163 A CN 115484163A CN 202211049935 A CN202211049935 A CN 202211049935A CN 115484163 A CN115484163 A CN 115484163A
Authority
CN
China
Prior art keywords
switching
information
target
current
switched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211049935.XA
Other languages
Chinese (zh)
Inventor
郭棕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211049935.XA priority Critical patent/CN115484163A/en
Publication of CN115484163A publication Critical patent/CN115484163A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a system switching method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the system switching method comprises the following steps: receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a current system of a background to a target system; determining whether an access interface of the current system is configured with switching information based on the system switching request, wherein the switching information is used for indicating switching of the background system; the technical scheme is adopted, and the problems that due to the fact that front-end manual switching is adopted, updating and version releasing of front-end codes are needed, and therefore system updating time is too long and the like are solved.

Description

System switching method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a system switching method and device, a storage medium and an electronic device.
Background
In the era of high-speed development of information technology, a plurality of technologies are continuously updated in an iterative manner, a background can be continuously updated, a frame and the technologies can be continuously changed in version, if a background system is switched under the condition that the background technology is immature, but a problem occurs, the original system is switched back, codes at the front end are updated, and the versions are published at the front end, so that the online fault time is too long, and the service is down.
Aiming at the problems that the system updating time is too long and the like caused by the fact that front-end codes are updated and version release through front-end manual switching in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the application provides a system switching method and device, a storage medium and an electronic device, and aims to at least solve the problems that in the related art, due to the fact that front-end manual switching is performed, updating and version releasing are required to be performed on front-end codes, and therefore system updating time is too long.
According to an embodiment of the present application, a handover method of a system is provided, including: receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a current system of a background to a target system; determining whether an access interface of the current system is configured with switching information based on the system switching request, wherein the switching information is used for indicating switching of the background system; and switching the current system to the target system according to the switching information under the condition that the switching information is configured in an access interface of the current system and indicates that the current system is switched to the target system.
In an exemplary embodiment, determining whether the access interface of the current system is configured with the handover information according to the system handover request includes: determining whether a switching configuration item exists in a section corresponding to the interface, wherein the switching configuration item is used for indicating a first domain name of a system to be switched and a first access path of the system to be switched; and determining that switching information is configured in the access interface under the condition that the switching configuration item exists in the section corresponding to the interface.
In one exemplary embodiment, switching the current system to a target system according to the switching information includes: determining whether the system to be switched in the switching configuration item is consistent with the target system or not according to the first system identification of the target system and the second system identification of the system to be switched; and under the condition that the system to be switched is consistent with the target system, switching the second domain name of the current system and the second access path of the current system into the first domain name of the system to be switched and the first access path of the system to be switched so as to switch the current system to the target system.
In one exemplary embodiment, switching the current system to a target system according to the switching information includes: determining system configuration information of the background in a cache library of the background; when the system configuration information indicates that the current system of the background is a target system, prohibiting the execution of system switching; and under the condition that the system configuration information indicates that the current system of the background is not the target system, switching the current system to the target system according to the switching information.
In an exemplary embodiment, before or after determining the system configuration information of the background in the cache library of the background, the method further comprises: receiving a modification operation of a target object on the system information of the current system, wherein the modification operation at least comprises one of the following operations: write operation and delete operation; and updating the system information of the current system in the cache library according to the modification operation.
In an exemplary embodiment, after the current system is handed over to the target system according to the handover information, the method further comprises: and sending a switching result to the front end under the condition that the background successfully switches the current system to a target system, wherein the switching result comprises: and the third domain name of the target system and the third access path of the target system, so that the front end forwards the request information to the target system according to the third domain name of the target system and the third access path of the target system under the condition that the front end receives the request information.
In one exemplary embodiment, determining whether an access interface of the current system is configured with handover information based on the system handover request includes: determining whether identity authentication information exists in the system switching request; under the condition that identity authentication information exists in the system switching request, verifying whether the identity authentication information is legal or not; and under the condition that the identity authentication information is legal, determining whether the access interface of the current system is configured with switching information or not based on the system switching request.
According to another embodiment of the present application, there is also provided a switching device of a system, including: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a system switching request sent by a front end, and the system switching request is used for requesting to switch a background current system to a target system; a determining module, configured to determine, based on the system switching request, whether a switching information is configured on an access interface of the current system, where the switching information is used to indicate switching of the background system; and the switching module is used for switching the current system to the target system according to the switching information under the condition that the switching information is configured in the access interface of the current system and indicates that the current system is switched to the target system.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the handover method of the above system when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the switching method of the system through the computer program.
In the embodiment of the application, a system switching request sent by a front end is received, wherein the system switching request is used for requesting to switch a background current system to a target system; determining whether an access interface of the current system is configured with switching information based on the system switching request, wherein the switching information is used for indicating switching of the background system; switching information is configured in an access interface of the current system, and the current system is switched to a target system according to the switching information under the condition that the switching information indicates that the current system is switched to the target system; by adopting the technical scheme, the problems that the system updating time is too long and the like due to the fact that the front end codes are updated and the versions are released through manual front end switching are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a hardware environment diagram of a handover method of a system according to an embodiment of the present application;
FIG. 2 is a flow chart of a handover method of a system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a handover method of a system according to an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a handover method of a system according to an alternative embodiment of the present application;
fig. 5 is a block diagram of a switching device of a system according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present application, a handover method of a system is provided. The switching method of the system is widely applied to full-house intelligent digital control application scenes such as Smart Home, intelligent Home equipment ecology, intelligent house (intelligence house) ecology and the like. Alternatively, in the present embodiment, the switching method of the above system may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a system switching method is provided, which is applied to a computer terminal, and fig. 2 is a flowchart of the system switching method according to the embodiment of the present application, where the flowchart includes the following steps:
step S202, receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a background current system to a target system;
step S204, determining whether a switching information is configured on an access interface of the current system based on the system switching request, wherein the switching information is used for indicating the switching of the background system;
step S206, when switching information is configured in the access interface of the current system and the switching information indicates to switch the current system to the target system, switching the current system to the target system according to the switching information.
Receiving a system switching request sent by a front end through the steps, wherein the system switching request is used for requesting to switch a background current system to a target system; determining whether a switching information is configured on an access interface of the current system based on the system switching request, wherein the switching information is used for indicating the switching of the background system; the method comprises the steps that switching information is configured in an access interface of a current system, and the switching information indicates that the current system is switched to a target system according to the switching information, so that the problems that in the related art, due to the fact that a front end needs to be updated and version-released through front end manual switching, the system updating time is too long and the like are solved.
In an exemplary embodiment, determining whether the access interface of the current system is configured with the handover information according to the system handover request includes: determining whether a switching configuration item exists in a section corresponding to the interface, wherein the switching configuration item is used for indicating a first domain name of a system to be switched and a first access path of the system to be switched; and determining that switching information is configured in the access interface under the condition that the switching configuration item exists in the section corresponding to the interface.
It should be noted that, in this embodiment, whether the interface is configured with the switching information is determined according to the switching configuration item in the section corresponding to the interface, where, in the case that the switching configuration item exists in the section corresponding to the interface, it is determined that the switching information is configured in the access interface; and under the condition that the switching configuration item is not arranged in the section corresponding to the interface, determining that the switching information is not configured in the access interface.
It should be noted that "the first domain name of the system to be switched and the first access path of the system to be switched" in the switching configuration item may be modified, and in the case that "the domain name and the access path" in the switching configuration item are used to indicate the system 1, the current system is switched to the system 1 according to the switching configuration item; under the condition that the 'domain name and access path' in the switching configuration item is used for indicating the system 2, the current system can be switched to the system 2 according to the switching configuration item, namely, the technical effect of switching the current system to the target system according to the switching configuration item can be realized only by modifying the switching configuration item in the embodiment of the application.
In one exemplary embodiment, switching the current system to a target system according to the switching information includes: determining whether the system to be switched in the switching configuration item is consistent with the target system or not according to the first system identification of the target system and the second system identification of the system to be switched; and under the condition that the system to be switched is consistent with the target system, switching the second domain name of the current system and the second access path of the current system into the first domain name of the system to be switched and the first access path of the system to be switched so as to switch the current system to the target system.
In order to avoid switching to an incorrect system, in the embodiment of the present application, according to a first system identifier in a system switching request and a second configuration system identifier in a system to be switched in the switching configuration item, determining whether the system to be switched is a system to which the target object is to be switched, and under a condition that it is determined that the system to be switched is the system to which the target object is to be switched, switching a second domain name of the current system and a second access path of the current system to a first domain name of the system to be switched and a first access path of the system to be switched; and sending prompt information to the front end under the condition that the system to be switched is determined not to be the system to which the target object needs to be switched, so that the target object can determine whether to be switched to the system to be switched.
In one exemplary embodiment, switching the current system to a target system according to the switching information includes: determining system configuration information of the background in a cache library of the background; when the system configuration information indicates that the current system of the background is a target system, prohibiting the execution of system switching; and under the condition that the system configuration information indicates that the current system of the background is not the target system, switching the current system to the target system according to the switching information.
That is to say, the cache library of the background stores the system configuration information of the current background, determines whether the current system and the target system are the same system according to the configuration information of the current background, and does not switch the current system when the current system and the target system are the same system; and under the condition that the current system and the target system are not the same system, switching the current system.
In an exemplary embodiment, before or after determining the system configuration information of the background in the cache library of the background, the method further includes: receiving a modification operation of a target object on the system information of the current system, wherein the modification operation at least comprises one of the following operations: write operation and delete operation; and updating the system information of the current system in the cache library according to the modification operation.
It should be noted that, in order to obtain system information corresponding to a system more quickly, system update information in a database is cached in a cache library, and when a target object performs a modification operation on system information of a current system in the database, the system information of the current system in the cache library is updated synchronously according to the modification operation, so that the system information in the database is ensured to be consistent with the system information in the cache library.
In an exemplary embodiment, after the switching the current system to the target system according to the switching information, the method further includes: and sending a switching result to the front end under the condition that the background successfully switches the current system to a target system, wherein the switching result comprises: and the third domain name of the target system and the third access path of the target system, so that the front end forwards the request information to the target system according to the third domain name of the target system and the third access path of the target system under the condition that the front end receives the request information.
The method comprises the steps that when a background is switched to a target system, a switching result is sent to a front end, when the front end obtains the switching result and receives request information again, a third domain name of the target system and a third access path of the target system are determined according to the switching result, and the request information is sent to the target system through the third domain name and the third access path of the target system.
When the access paths of the current system and the target system are the same, the access path of the target system may not be included in the switching result.
In one exemplary embodiment, determining whether an access interface of the current system is configured with handover information based on the system handover request includes: determining whether identity authentication information exists in the system switching request; under the condition that identity authentication information exists in the system switching request, verifying whether the identity authentication information is legal or not; and under the condition that the identity authentication information is legal, determining whether the access interface of the current system is configured with switching information or not based on the system switching request.
It should be noted that, with the above embodiment, the identity information of the user is verified when the system switching request is received, and the system is switched when the identity information is verified, so that the security of the system switching is improved.
In order to better understand the process of the handover method of the system, the following describes a flow of the handover method of the system with reference to an optional embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for switching a system is provided, and fig. 3 is a schematic diagram (one) of a method for switching a system according to an optional embodiment of the present application, as shown in fig. 3, specifically including the following steps:
for the system 1, before the system is switched, the slice surround logic (equivalent to the switching information in the above embodiment) is added to the interfaces of the system 1.
Step S301: the method comprises the steps that a front end sends a system switching request to a system 1, and whether a tangent plane surrounding logic is configured for an interface of the system 1 is checked, wherein the system switching request is used for indicating that the system 1 is switched to a system 2; if the interface is not configured with the tangent plane surrounding logic, executing a step S304, otherwise executing a step S302;
step S302: reading a background system configuration in a redis, wherein the background system configuration is used for indicating that the system 1 is switched to a system to be switched;
step S303: and determining whether the system to be switched is the system 1, if so, not switching, and if not, returning the mark of the switching system 2 to the front end.
For the system 2, before the system is switched, the interface of the system 2 is added with the tangent plane surrounding logic.
Step S401: the front end sends a system switching request to the system 2, and checks whether a tangent plane surrounding logic is configured for an interface of the system 2, wherein the system switching request is used for indicating that the system 2 is switched to the system 1; if the interface is not configured with the section surrounding logic, executing a step S404, otherwise executing a step S402;
step S402: reading a background system configuration in a redis, wherein the background system configuration is used for indicating that the system 2 is switched to a system to be switched;
step S403: and determining whether the system to be switched is the system 2, if so, not switching, and if not, returning the mark of the switching system 1 to the front end.
It should be noted that the front-end code needs to configure interface access paths of all systems for making system requests at any time; in the case where the front-end code configures the interface access path of system 2, the front-end code no longer accesses system 1, switching all requests to system 2.
Optionally, fig. 4 is a schematic diagram (ii) of a handover method of a system according to an alternative embodiment of the present application, as shown in fig. 4, specifically as follows:
under the condition that a user modifies the background project request configuration, the database and the redis must be synchronized to ensure that the cache is effective.
By the embodiment, a system switching request sent by a front end is received, wherein the system switching request is used for requesting to switch a background current system to a target system; determining whether an access interface of the current system is configured with a tangent plane surrounding logic or not based on the system switching request, wherein the switching information is used for indicating the switching of the background system; the switching information is configured in the access interface of the current system, and the section surrounding logic indicates that the current system is switched to the target system, the current system is switched to the target system according to the section surrounding logic, so that the problems that in the related art, the system updating time is too long and the like due to the fact that the front end code needs to be updated and the version is released through front end manual switching, and further, in the embodiment of the application, the current system is automatically switched to the target system according to the section surrounding logic through setting the access interface and switching the surrounding logic, the front end code does not need to be updated and the version is released, and therefore the operation is simple and easy, and multiple systems can be configured in real time to be switched at will.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
FIG. 5 is a block diagram of a switching device of a system according to an embodiment of the present application; as shown in fig. 5, includes:
a receiving module 52, configured to receive a system switching request sent by a front end, where the system switching request is used to request to switch a current system in a background to a target system;
a determining module 54, configured to determine, based on the system switching request, whether a switching information is configured on an access interface of the current system, where the switching information is used to indicate switching of the system in the background;
a switching module 56, configured to configure switching information in an access interface of the current system, and switch the current system to the target system according to the switching information when the switching information indicates that the current system is switched to the target system.
Receiving a system switching request sent by a front end through the device, wherein the system switching request is used for requesting to switch a background current system to a target system; determining whether an access interface of the current system is configured with switching information based on the system switching request, wherein the switching information is used for indicating switching of the background system; the method comprises the steps that switching information is configured in an access interface of a current system, and the switching information indicates that the current system is switched to a target system according to the switching information, so that the problems that in the related art, due to the fact that a front end needs to be updated and version-released through front end manual switching, the system updating time is too long and the like are solved.
In an exemplary embodiment, the determining module 54 is configured to determine whether a switching configuration item exists in a section corresponding to the interface, where the switching configuration item is used to indicate a first domain name of a system to be switched and a first access path of the system to be switched; and determining that switching information is configured in the access interface under the condition that the switching configuration item exists in the section corresponding to the interface.
It should be noted that, in this embodiment, whether the interface is configured with the switching information is determined according to the switching configuration item in the section corresponding to the interface, where, in the case that the switching configuration item exists in the section corresponding to the interface, it is determined that the switching information is configured in the access interface; and under the condition that the switching configuration item is not arranged in the section corresponding to the interface, determining that the switching information is not configured in the access interface.
It should be noted that "the first domain name of the system to be switched and the first access path of the system to be switched" in the switching configuration item may be modified, and in the case that "the domain name and the access path" in the switching configuration item are used to indicate the system 1, the current system is switched to the system 1 according to the switching configuration item; under the condition that the 'domain name and access path' in the switching configuration item are used for indicating the system 2, the current system can be switched to the system 2 according to the switching configuration item, namely, the technical effect of switching the current system to the target system according to the switching configuration item can be realized only by modifying the switching configuration item in the embodiment of the application.
In an exemplary embodiment, the switching module 56 is further configured to determine whether the system to be switched in the switching configuration item is consistent with the target system according to the first system identifier of the target system and the second system identifier of the system to be switched; and under the condition that the system to be switched is consistent with the target system, switching the second domain name of the current system and the second access path of the current system into the first domain name of the system to be switched and the first access path of the system to be switched so as to switch the current system to the target system.
In order to avoid switching to an incorrect system, in the embodiment of the present application, according to a first system identifier in a system switching request and a second configuration system identifier in a system to be switched in the switching configuration item, determining whether the system to be switched is a system to which the target object is to be switched, and under a condition that it is determined that the system to be switched is the system to which the target object is to be switched, switching a second domain name of the current system and a second access path of the current system to a first domain name of the system to be switched and a first access path of the system to be switched; and sending prompt information to the front end under the condition that the system to be switched is determined not to be the system to which the target object needs to be switched, so that the target object can determine whether to be switched to the system to be switched.
In an exemplary embodiment, the switching module 56 is further configured to determine the system configuration information of the background in the cache library of the background; under the condition that the system configuration information indicates that the current system of the background is a target system, prohibiting executing system switching; and under the condition that the system configuration information indicates that the current system of the background is not the target system, switching the current system to the target system according to the switching information.
That is, the cache library of the background stores the system configuration information of the current background, and determines whether the current system and the target system are the same system according to the configuration information of the current background, and under the condition that the current system and the target system are the same system, the current system is not switched; and under the condition that the current system and the target system are not the same system, switching the current system.
In an exemplary embodiment, the receiving module 52 is further configured to receive a modification operation performed by a target object on the system information of the current system, where the modification operation includes at least one of: write operation and delete operation; and updating the system information of the current system in the cache library according to the modification operation.
It should be noted that, in order to obtain system information corresponding to a system more quickly, system update information in a database is cached in a cache library, and when a target object performs a modification operation on system information of a current system in the database, the system information of the current system in the cache library is updated synchronously according to the modification operation, so that the system information in the database is ensured to be consistent with the system information in the cache library.
In an exemplary embodiment, the apparatus further comprises: a sending module, configured to send a switching result to the front end when the background successfully switches the current system to a target system, where the switching result includes: and the third domain name of the target system and the third access path of the target system, so that the front end forwards the request information to the target system according to the third domain name of the target system and the third access path of the target system under the condition that the front end receives the request information.
The method comprises the steps that when a background is switched to a target system, a switching result is sent to a front end, when the front end obtains the switching result and receives request information again, a third domain name of the target system and a third access path of the target system are determined according to the switching result, and the request information is sent to the target system through the third domain name and the third access path of the target system.
When the access paths of the current system and the target system are the same, the access path of the target system may not be included in the switching result.
In an exemplary embodiment, the determining module 54 is configured to determine whether authentication information exists in the system handover request; under the condition that identity authentication information exists in the system switching request, verifying whether the identity authentication information is legal or not; and under the condition that the identity authentication information is legal, determining whether the access interface of the current system is configured with switching information or not based on the system switching request.
It should be noted that, with the above embodiment, the identity information of the user is verified when the system switching request is received, and the system is switched when the identity information passes verification, so that the security of the system switching is improved.
Embodiments of the present application also provide a storage medium including a stored program, where the program performs any one of the methods described above when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
the method comprises the following steps of S1, receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a current system of a background to a target system;
s2, determining whether a switching information is configured on an access interface of the current system or not based on the system switching request, wherein the switching information is used for indicating the switching of the background system;
and S3, under the condition that switching information is configured in an access interface of the current system and indicates that the current system is switched to the target system, switching the current system to the target system according to the switching information.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the following steps of S1, receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a current system of a background to a target system;
s2, determining whether a switching information is configured on an access interface of the current system or not based on the system switching request, wherein the switching information is used for indicating the switching of the background system;
and S3, under the condition that switching information is configured in an access interface of the current system and indicates that the current system is switched to the target system, switching the current system to the target system according to the switching information.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for handover of a system, comprising:
receiving a system switching request sent by a front end, wherein the system switching request is used for requesting to switch a current system of a background to a target system;
determining whether an access interface of the current system is configured with switching information based on the system switching request, wherein the switching information is used for indicating switching of the background system;
and under the condition that switching information is configured in an access interface of the current system and indicates that the current system is switched to the target system, switching the current system to the target system according to the switching information.
2. The system switching method according to claim 1, wherein determining whether the access interface of the current system is configured with the switching information according to the system switching request comprises:
determining whether a switching configuration item exists in a section corresponding to the interface, wherein the switching configuration item is used for indicating a first domain name of a system to be switched and a first access path of the system to be switched;
and determining that switching information is configured in the access interface under the condition that the switching configuration item exists in the section corresponding to the interface.
3. The system switching method according to claim 2, wherein switching the current system to a target system according to the switching information comprises:
determining whether the system to be switched in the switching configuration item is consistent with the target system or not according to the first system identification of the target system and the second system identification of the system to be switched;
and under the condition that the system to be switched is consistent with the target system, switching the second domain name of the current system and the second access path of the current system into the first domain name of the system to be switched and the first access path of the system to be switched so as to switch the current system to the target system.
4. The system switching method according to claim 1, wherein determining whether the access interface of the current system is configured with switching information based on the system switching request comprises:
determining whether identity authentication information exists in the system switching request;
under the condition that identity authentication information exists in the system switching request, verifying whether the identity authentication information is legal or not;
and under the condition that the identity authentication information is legal, determining whether the access interface of the current system is configured with switching information or not based on the system switching request.
5. The system switching method according to claim 1, wherein switching the current system to a target system according to the switching information comprises:
determining system configuration information of the background in a cache library of the background;
when the system configuration information indicates that the current system of the background is a target system, prohibiting the execution of system switching;
and under the condition that the system configuration information indicates that the current system of the background is not the target system, switching the current system to the target system according to the switching information.
6. The system switching method according to claim 5, wherein before or after determining the system configuration information of the background in the cache library of the background, the method further comprises:
receiving a modification operation of a target object on the system information of the current system, wherein the modification operation at least comprises one of the following operations: write operation and delete operation;
and updating the system information of the current system in the cache library according to the modification operation.
7. The system handover method according to claim 1, wherein after the handover of the current system to a target system according to the handover information, the method further comprises:
and sending a switching result to the front end under the condition that the background successfully switches the current system to a target system, wherein the switching result comprises: and the third domain name of the target system and the third access path of the target system, so that the front end forwards the request information to the target system according to the third domain name of the target system and the third access path of the target system under the condition that the front end receives the request information.
8. A switching device for a system, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a system switching request sent by a front end, and the system switching request is used for requesting to switch a background current system to a target system;
a determining module, configured to determine, based on the system switching request, whether a switching information is configured on an access interface of the current system, where the switching information is used to indicate switching of the background system;
and the switching module is used for switching the current system to the target system according to the switching information under the condition that the switching information is configured in the access interface of the current system and indicates that the current system is switched to the target system.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211049935.XA 2022-08-30 2022-08-30 System switching method and device, storage medium and electronic device Pending CN115484163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211049935.XA CN115484163A (en) 2022-08-30 2022-08-30 System switching method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211049935.XA CN115484163A (en) 2022-08-30 2022-08-30 System switching method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115484163A true CN115484163A (en) 2022-12-16

Family

ID=84422711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211049935.XA Pending CN115484163A (en) 2022-08-30 2022-08-30 System switching method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115484163A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892607A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Computer platform spare-system programe long-distance switch-over operation and control method and system
US20170364844A1 (en) * 2016-06-16 2017-12-21 Vmware, Inc. Automated-application-release-management subsystem that supports insertion of advice-based crosscutting functionality into pipelines
CN112000738A (en) * 2020-08-18 2020-11-27 中国建设银行股份有限公司 Database connection switching method, device, equipment and medium
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system
CN114168463A (en) * 2021-12-01 2022-03-11 北京天九云电子商务集团有限公司 Method and device for switching project environment, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892607A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Computer platform spare-system programe long-distance switch-over operation and control method and system
US20170364844A1 (en) * 2016-06-16 2017-12-21 Vmware, Inc. Automated-application-release-management subsystem that supports insertion of advice-based crosscutting functionality into pipelines
CN112000738A (en) * 2020-08-18 2020-11-27 中国建设银行股份有限公司 Database connection switching method, device, equipment and medium
CN113360213A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Application program version switching method, device, equipment and system
CN114168463A (en) * 2021-12-01 2022-03-11 北京天九云电子商务集团有限公司 Method and device for switching project environment, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN104809046A (en) Application program networking control method and application program networking control device
CN115175152A (en) Intelligent device binding method and device, storage medium and electronic device
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN115484163A (en) System switching method and device, storage medium and electronic device
CN115048392A (en) Data deletion method and device, storage medium and electronic device
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN116027937A (en) Rendering method and device of component to be edited, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN114675928A (en) Container mirror image construction method and device, storage medium and electronic device
CN114780565A (en) Cache updating method and device, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN115174383B (en) Equipment updating method, storage medium and electronic device
CN115525309A (en) Version updating method and device, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN112135162B (en) Service execution method, device and server
CN115484116B (en) Processing method and device of equipment data, storage medium and electronic device
CN115766863A (en) Unified access method, device and system for skill flow and storage medium
CN114817778A (en) Page skipping method and device, storage medium and electronic device
CN115268962A (en) Program updating method, program updating device, storage medium and electronic device
CN115695534A (en) Target application running method and device, storage medium and electronic device
CN115469638A (en) Interface test method and device, storage medium and electronic device
CN115145615A (en) Memory data refreshing method and device, storage medium and electronic device
CN115473754A (en) Multi-system access management method and device and multi-system management platform
CN205648006U (en) Wireless network access system
CN115694913A (en) Method and apparatus for transmitting device information, storage medium, and electronic apparatus

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