CN106777144A - A kind of server switching method and device - Google Patents

A kind of server switching method and device Download PDF

Info

Publication number
CN106777144A
CN106777144A CN201611179104.9A CN201611179104A CN106777144A CN 106777144 A CN106777144 A CN 106777144A CN 201611179104 A CN201611179104 A CN 201611179104A CN 106777144 A CN106777144 A CN 106777144A
Authority
CN
China
Prior art keywords
server
language environment
url
resource file
terminal
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.)
Granted
Application number
CN201611179104.9A
Other languages
Chinese (zh)
Other versions
CN106777144B (en
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.)
China Southern Power Grid Internet Service Co ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201611179104.9A priority Critical patent/CN106777144B/en
Publication of CN106777144A publication Critical patent/CN106777144A/en
Application granted granted Critical
Publication of CN106777144B publication Critical patent/CN106777144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Machine Translation (AREA)

Abstract

The invention provides a kind of server switching method and device, wherein, the method includes:When the server being connected with terminal needs to be switched to second server by first server, it is determined that language environment corresponding with second server;Obtain the corresponding resource file of above-mentioned language environment;The mark of character string searches the corresponding URL of second server from above-mentioned resource file according to where URL;Connection request is sent to the corresponding URL of second server, the connection with second server is set up.In the present invention, by searching the URL of second server from the resource file of language environment corresponding with second server, and connection request is sent to the URL, switched simple and convenient, it is to avoid have the situation that interface does not switch of omitting.

Description

A kind of server switching method and device
Technical field
The present invention relates to field of terminal technology, in particular to a kind of server switching method and device.
Background technology
Developer when Android system exploitation is carried out, often build many set background service environment to carry out by development teams Exploitation, such as, development environment, test environment and production environment, the different server of different environment correspondences, in Android system Development phase, the server of possible formal environments is not built also and is finished, and at this moment carries out Android client if necessary to synchronous Exploitation is, it is necessary to terminal is switched between the different servers.
In the prior art, mostly it is to be needed terminal by manual type when being switched over to the server that terminal is connected The interface for accessing will be needed the URL (Uniform of the server to be switched to is set in terminal Resource Locator, URL), access request is initiated to corresponding server, but, if by manual type one by one Change alias URL, on the one hand operate cumbersome, on the other hand, the URL that might have the interface of omission do not become Change.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of server switching method and device, to attempt to solve Certainly or alleviate above-mentioned produced problem.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
In a first aspect, a kind of server switching method is the embodiment of the invention provides, wherein, methods described includes:
When the server being connected with terminal needs to be switched to second server by first server, it is determined that and second service The corresponding language environment of device;
Obtain the corresponding resource file of the language environment;
The mark of the character string according to where URL searches the second service from the resource file The corresponding URL of device;
Connection request is sent to the corresponding URL of the second server, is set up and the described second clothes The connection of business device.
With reference in a first aspect, the embodiment of the invention provides the first possible implementation of above-mentioned first aspect, its In, it is described to obtain the corresponding resource file of the language environment, including:
The language environment of terminal is switched into the corresponding language environment of the second server;
Obtain the resource file of the corresponding language environment of the second server.
With reference in a first aspect, the embodiment of the invention provides second possible implementation of above-mentioned first aspect, its In, it is described determine corresponding with second server language environment before, also include:
Multilingual environment is chosen from the language environment list of terminal, wherein, the species of the language environment of selection Number with server in server group is consistent, and the terminal is switched between the server in the server group;
The server and the one-to-one relationship of the language environment chosen set up in the server group.
With reference to second possible implementation of first aspect, the of above-mentioned first aspect is the embodiment of the invention provides Three kinds of possible implementations, wherein, the language environment of the server set up in the server group and selection One-to-one relationship, including:
It is respectively created the corresponding resource file of every kind of described language environment of selection;
The URL of the corresponding server is write in each described resource file.
With reference in a first aspect, the embodiment of the invention provides the 4th kind of possible implementation of above-mentioned first aspect, its In, the mark of character string is looked into by getString functions from the resource file according to where the URL Look for the corresponding URL of the second server.
Second aspect, the embodiment of the invention provides a kind of server switching device, wherein, described device includes:
Determining module, for when the server that is connected with terminal needs to be switched to second server by first server, It is determined that language environment corresponding with the second server;
Acquisition module, for obtaining the corresponding resource file of the language environment;
Searching modul, the mark for the character string according to where URL searches institute from the resource file State the corresponding URL of second server;
Sending module, for sending connection request to the corresponding URL of the second server, builds The vertical connection with the second server.
With reference to second aspect, the first possible implementation of above-mentioned second aspect is the embodiment of the invention provides, its In, the acquisition module includes:
Switch unit, for the language environment of terminal to be switched into the corresponding language environment of the second server;
Acquiring unit, the resource file for obtaining the corresponding language environment of the second server.
With reference to second aspect, second possible implementation of above-mentioned second aspect is the embodiment of the invention provides, its In, described device also includes:
Module is chosen, for choosing multilingual environment from the language environment list of terminal, wherein, institute's predicate of selection Say that the species of environment is consistent with the number of server in server group, between server of the terminal in the server group Switch over;
Module is set up, for the server set up in the server group and the language environment of selection one by one Corresponding relation.
With reference to second possible implementation of second aspect, the of above-mentioned second aspect is the embodiment of the invention provides Three kinds of possible implementations, wherein, the module of setting up includes:
Creating unit, the corresponding resource file of every kind of described language environment for being respectively created selection;
Writing unit, the unified resource for writing the corresponding server in each described resource file is determined Position symbol.
With reference to second aspect, the 4th kind of possible implementation of above-mentioned second aspect is the embodiment of the invention provides, its In, the searching modul according to the mark of character string where the URL by getString functions from described The corresponding URL of the second server is searched in resource file.
The embodiment of the invention provides a kind of server switching method and device, in the method, by from second service The URL of second server is searched in the resource file of the corresponding language environment of device, and connection request, switching letter are sent to the URL Folk prescription is just, it is to avoid have the situation that interface does not switch of omitting.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the flow chart of the server switching method that the embodiment of the present invention 1 is provided;
Fig. 2 sets up server with language environment in showing the server switching method that the embodiment of the present invention 1 is provided The flow chart of corresponding relation;
Fig. 3 shows the structural representation of the server switching device that the embodiment of the present invention 2 is provided;
Fig. 4 shows second structural representation of the server switching device that the embodiment of the present invention 2 is provided.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention Middle accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only It is a part of embodiment of the invention, rather than whole embodiments.The present invention generally described and illustrated in accompanying drawing herein is real The component for applying example can be arranged and designed with a variety of configurations.Therefore, it is of the invention to what is provided in the accompanying drawings below The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of selected reality of the invention Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of creative work is not made There is other embodiment, belong to the scope of protection of the invention.
In view of in the prior art, in the prior art, when being switched over to the server that terminal is connected, mostly pass through The URL that terminal is needed that the interface for accessing will be needed to be set to the server to be switched in terminal by manual type, to corresponding Server initiates access request, but, if the URL of the change alias by manual type one by one, on the one hand operation is compared Trouble, on the other hand, the URL that might have the interface of omission does not enter line translation.Based on this, one is the embodiment of the invention provides Server switching method and device are planted, is described below by embodiment.
Embodiment 1
A kind of server switching method is the embodiment of the invention provides, in the method, by from corresponding with second server Language environment resource file in search second server URL, and to the URL send connection request, switch it is simple and convenient, Avoid the occurrence of the situation that interface does not switch of omitting.
Change commanders to develop, it is necessary to build many set background services when Android exploitation is carried out, such as, development environment, Test environment, formal environments etc., especially synchronously carry out the exploitation of android terminal when, it is necessary to terminal several backstage environment it Between switch over, that is, switch different environment, and a kind of server of above-mentioned every kind of environment correspondence, therefore, the switching essence of environment Upper is exactly the switching of server.
In embodiments of the present invention, the switching of server is realized by the switching of android terminal language environment, therefore, , it is necessary to the language environment set up on server and terminal before server switching being carried out using method provided in an embodiment of the present invention Between corresponding relation.
Wherein, the corresponding relation between the language set up on server and terminal is specifically included:From the language environment of terminal Multilingual environment is chosen in list, wherein, the species of the language environment of selection is consistent with the number of server in server group; The server and the one-to-one relationship of the language environment chosen set up in above-mentioned server group.
Wherein, above-mentioned server group be by terminal need several server groups for switching over into, such as, if eventually End need switched between 3 servers, then above-mentioned server group by above-mentioned 3 server groups into, at this moment, need Language environment in choosing 3 from the language environment of terminal, and set up respectively three kinds of language environments and above three server it Between one-to-one relationship.
Wherein, the language environment of above-mentioned selection can be the fewer language that Chinese developer uses, such as, Norway Bock Malvern, Lithuanian etc..
After it have chosen language environment, the server and the one-to-one corresponding of the language environment chosen set up in server group A kind of relation, i.e., the language environment on a kind of server counterpart terminal, detailed process includes:It is respectively created every kind of language of selection The corresponding resource file of environment;The URL of corresponding server is write in each resource file.
In order to elaborate said process, citing is illustrated below, such as, terminal need testing service device, Switched between exploitation server and formal server, it is therefore desirable to three kinds of language environments are chosen in terminal, such as, can To choose default language, Norway's Bock Malvern and the Lithuanian of terminal, above-mentioned three kinds of language are then respectively created corresponding Resource file, three files of establishment are respectively value.xml, values-lv-rLV.xml and valueslt-rLV.xml, its In, value.xml is the resource file of default language, and values-lv-rLV.xml is the resource file of Norway's Bock Malvern, Valueslt-rLT.xml is the language file of Lithuanian, also, the formal server of above-mentioned value.xml files correspondence, Values-lv-rLV.xml files correspondence testing service device, valueslt-rLT.xml files correspondence exploitation server.
After above three resource file has been created, the URL of corresponding server is write in each resource file, The URL of testing service device formally in the URL write-in value.xml files of server will be write into values-lv-rLV.xml In file, will exploitation server URL write-in valueslt-rLT.xml files in, be built such that terminal language environment and The one-to-one relationship between the server of switching is needed, when needing to carry out server switching, it is only necessary to carry out the language of terminal Say the switching of environment.
When server switching is carried out using method provided in an embodiment of the present invention, including step S110-S140, specifically such as Under.
S110, when the server that is connected with terminal needs to be switched to second server by first server, it is determined that with it is upper State the corresponding language environment of second server.
The executive agent of method provided in an embodiment of the present invention is android terminal, when terminal needs switching currently connecting Server when, then need to find out the language environment with the corresponding terminal of second server for needing connection, such as, currently with The server that terminal sets up connection is A servers, and present terminal needs to set up the connection with B servers, at this moment, is connected with terminal Server need to switch to B servers by A servers, and B servers are then second server, due to having been set up before One-to-one relationship between server and the language environment of terminal, therefore, determined from above-mentioned corresponding relation and the second clothes The corresponding language environment of business device.
S120, obtains the corresponding resource file of above-mentioned language environment.
After the language environment corresponding with second server is determined, the language environment is obtained in terminal corresponding Resource file.
Wherein, as one embodiment, as shown in Fig. 2 the corresponding resource file of above-mentioned language environment is obtained, including step S210-S220, it is specific as follows.
S210, the corresponding language environment of second server is switched to by the language environment of terminal.
S220, obtains the resource file of the corresponding language environment of second server.
In embodiments of the present invention, when the language environment of terminal is switched into the corresponding language environment of second server, Firstly the need of then again performing conf.locale=during language environment corresponding with second server inserts function Locale Current, the corresponding language environment of above-mentioned second server is set to the language environment of terminal, reuses function UpdateConfiguration carrys out the language environment of more new terminal, and at this moment, terminal starts to switch language environment.
Specifically, above-mentioned handoff procedure can be realized by following code:
Resources res=context.getResources ();
Locale current=new Locale (lan);
Configuration conf=res.getConfiguration ();
Conf.locale=current;
res.updateConfiguration(conf,res.getDisplayMetrics());
Wherein, in above-mentioned code, Resources res=context.getResources () is represented and created Resources functions, resource file is obtained by Resources, and Locale current represent current language environment, above-mentioned Lan is a character string of incoming different language environment, and language environment is switched by changing its character string, is implemented in the present invention In example, by the above-mentioned lan of the corresponding linguistic substitution of second server, such as, second server is testing service device, test clothes The corresponding language of business device is Norway's Bock Malvern, then need to use rLV to replace above-mentioned lan, Configuration conf tables Show resource file, getConfiguration represents acquisition Current resource file, conf.locale=current is represented the The corresponding language environment of two servers is set to current language environment, and updateConfiguration represents renewal current language Environment.
When user have selected a non-present language environment, the application program in terminal can restart, by terminal Language environment is set to the language environment of user's selection, and the language environment of user's selection is exactly the corresponding language of second server Environment, will work as after current language environment switches to the corresponding language environment of above-mentioned second server by terminal, from current language Its corresponding resource file is obtained in speech environment.
S130, the mark of character string is searched corresponding with second server from above-mentioned resource file according to where URL URL。
The mark of character string where above-mentioned URL can be the title of URL places character string in language resource, then each resource In file, the title of character string is identical where URL.
After the resource file of language file corresponding with second server is obtained, when the application program in terminal is to When two servers carry out network request, the title for first passing through character string where URL searches URL from the resource file, than As said, if being switched to testing service device, the corresponding language of testing service device is Norway's Bock Malvern, then according to where URL The title of character string searches the corresponding URL character strings of testing service device in values-lv-rLV.xml files.
Wherein, in embodiments of the present invention, the mark of character string according to where URL passes through getString Function searches the corresponding URL of second server from above-mentioned resource file.
In embodiments of the present invention, the corresponding URL of second server is searched from resource file by getString, is had Body can be realized by following code:
getResources().getString(R.string.xxx)
Wherein, in above-mentioned code, getString represents the value obtained in R.string.xxx, that is, obtain the character string In URL.
S140, connection request is sent to the corresponding URL of second server, sets up the connection with second server.
After second server corresponding URL is got, connection request is sent to the URL, so, terminal obtains second and takes The data of business device, set up and the connection between second server, realize the switching of server.
Server switching method provided in an embodiment of the present invention, by the money from language environment corresponding with second server The URL of second server is searched in source file, and connection request is sent to the URL, switched simple and convenient, it is to avoid have omission The situation that interface does not switch.
Embodiment 2
The embodiment of the invention provides a kind of server switching device, as shown in figure 3, the device include determining module 310, Acquisition module 320, searching modul 330 and sending module 340;
Above-mentioned determining module 310, for needing to be switched to the second clothes by first server when the server being connected with terminal During business device, it is determined that language environment corresponding with second server;
Above-mentioned acquisition module 320, for obtaining the corresponding resource file of above-mentioned language environment;
Above-mentioned searching modul 330, for the mark according to URL place character string from above-mentioned resource file It is middle to search URL corresponding with second server;
Above-mentioned sending module 340, for sending connection request to the corresponding URL of second server, sets up With the connection of second server.
Wherein, it is single by switching as shown in Fig. 2 above-mentioned acquisition module 320 obtains the corresponding resource file of language environment What unit 321 and acquiring unit 322 were realized, specifically include:
Above-mentioned switch unit 321, for switching to the corresponding language of second server to change part the language environment of terminal;On Acquiring unit 322 is stated, the resource file for obtaining the corresponding language environment of second server.
Wherein, said apparatus also include choosing module and set up module, above-mentioned selection module, for the language ring from terminal Multilingual environment is chosen in the list of border, wherein, the number one of server in the species and server group of the language environment of selection Cause, terminal is switched between the server in server group;It is above-mentioned to set up module, for the service set up in server group The one-to-one relationship of device and the language environment chosen.
The above-mentioned one-to-one relationship for setting up the language environment that module sets up the server and selection for needing switching is to pass through What creating unit and writing unit were realized, specifically include:
Above-mentioned creating unit, the corresponding resource file of every kind of language environment for being respectively created selection;Above-mentioned write-in list Unit, the URL for writing corresponding server in each resource file.
Wherein, in embodiments of the present invention, above-mentioned searching modul is the mark of the character string according to where URL Knowledge searches URL corresponding with second server by getString functions from resource file.
Server switching device provided in an embodiment of the present invention, by the money from language environment corresponding with second server The URL of second server is searched in source file, and connection request is sent to the URL, switched simple and convenient, it is to avoid have omission The situation that interface does not switch.
The server switching device that the embodiment of the present invention is provided can be that the specific hardware or be installed in equipment sets Standby upper software or firmware etc..The technique effect of the device that the embodiment of the present invention is provided, its realization principle and generation and foregoing Embodiment of the method is identical, is to briefly describe, and device embodiment part does not refer to part, refers to corresponding in preceding method embodiment Content.It is apparent to those skilled in the art that, for convenience and simplicity of description, system, dress described above The specific work process with unit is put, the corresponding process in above method embodiment is may be referred to, be will not be repeated here.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by other sides Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, only one kind are patrolled Collect function to divide, there can be other dividing mode when actually realizing, but for example, multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some communication interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in the embodiment that the present invention is provided can be integrated in a processing unit, also may be used Being that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing, additionally, term " the One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Finally it should be noted that:Embodiment described above, specific embodiment only of the invention, is used to illustrate the present invention Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of embodiment of the present invention technical scheme.Should all cover in protection of the invention Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of server switching method, it is characterised in that methods described includes:
When the server that is connected with terminal needs to be switched to second server by first server, it is determined that with the second service The corresponding language environment of device;
Obtain the corresponding resource file of the language environment;
The mark of character string according to where URL searches the second server correspondence from the resource file URL;
Connection request is sent to the corresponding URL of the second server, is set up and the second server Connection.
2. method according to claim 1, it is characterised in that the corresponding resource file of the acquisition language environment, Including:
The language environment of terminal is switched into the corresponding language environment of the second server;
Obtain the resource file of the corresponding language environment of the second server.
3. method according to claim 1, it is characterised in that determination language environment corresponding with second server it Before, also include:
Multilingual environment is chosen from the language environment list of terminal, wherein, species and the clothes of the language environment of selection The number of server is consistent in business device group, and the terminal is switched between the server in the server group;
The server and the one-to-one relationship of the language environment chosen set up in the server group.
4. method according to claim 3, it is characterised in that the server set up in the server group with choose The language environment one-to-one relationship, including:
It is respectively created the corresponding resource file of every kind of described language environment of selection;
The URL of the corresponding server is write in each described resource file.
5. method according to claim 1, it is characterised in that according to the mark of character string where the URL Knowledge searches the corresponding URL of the second server by getString functions from the resource file.
6. a kind of server switching device, it is characterised in that described device includes:
Determining module, for when the server that is connected with terminal needs to be switched to second server by first server, it is determined that Language environment corresponding with the second server;
Acquisition module, for obtaining the corresponding resource file of the language environment;
Searching modul, for searching described the from the resource file according to the mark of character string where URL The corresponding URL of two servers;
Sending module, for sending connection request to the corresponding URL of the second server, set up with The connection of the second server.
7. device according to claim 6, it is characterised in that the acquisition module includes:
Switch unit, for the language environment of terminal to be switched into the corresponding language environment of the second server;
Acquiring unit, the resource file for obtaining the corresponding language environment of the second server.
8. device according to claim 6, it is characterised in that described device also includes:
Module is chosen, for choosing multilingual environment from the language environment list of terminal, wherein, the language ring of selection The species in border is consistent with the number of server in server group, and the terminal is carried out between the server in the server group Switching;
Module is set up, the one-to-one relationship for setting up server and the language environment chosen in the server group.
9. device according to claim 8, it is characterised in that the module of setting up includes:
Creating unit, the corresponding resource file of every kind of described language environment for being respectively created selection;
Writing unit, the unified resource for writing the corresponding server in each described resource file is positioned Symbol.
10. device according to claim 6, it is characterised in that the searching modul is according to the URL The mark of place character string searches the corresponding unification of the second server by getString functions from the resource file URLs.
CN201611179104.9A 2016-12-19 2016-12-19 A kind of server switching method and device Active CN106777144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611179104.9A CN106777144B (en) 2016-12-19 2016-12-19 A kind of server switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611179104.9A CN106777144B (en) 2016-12-19 2016-12-19 A kind of server switching method and device

Publications (2)

Publication Number Publication Date
CN106777144A true CN106777144A (en) 2017-05-31
CN106777144B CN106777144B (en) 2019-10-25

Family

ID=58890313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611179104.9A Active CN106777144B (en) 2016-12-19 2016-12-19 A kind of server switching method and device

Country Status (1)

Country Link
CN (1) CN106777144B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153543A (en) * 2017-12-29 2018-06-12 北京酷我科技有限公司 A kind of method of server address switching
CN110474933A (en) * 2018-05-09 2019-11-19 视联动力信息技术股份有限公司 A kind of terminal switch method and view networking management system
CN113190425A (en) * 2021-04-28 2021-07-30 北京京东振世信息技术有限公司 Resource switching method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002251261A (en) * 2001-02-23 2002-09-06 Canon Inc Picture outputting device and information processor and data processing method and storage medium
CN102255875A (en) * 2010-05-20 2011-11-23 华为软件技术有限公司 Server switching method and system
CN102479185A (en) * 2010-11-23 2012-05-30 大连兆阳软件科技有限公司 Method for controlling language version of software by server side
CN102571759A (en) * 2011-12-16 2012-07-11 Tcl集团股份有限公司 Communication method, device and system for online application program
CN103338401A (en) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 Video playing control method, device and system for mobile terminal browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002251261A (en) * 2001-02-23 2002-09-06 Canon Inc Picture outputting device and information processor and data processing method and storage medium
CN102255875A (en) * 2010-05-20 2011-11-23 华为软件技术有限公司 Server switching method and system
CN102479185A (en) * 2010-11-23 2012-05-30 大连兆阳软件科技有限公司 Method for controlling language version of software by server side
CN102571759A (en) * 2011-12-16 2012-07-11 Tcl集团股份有限公司 Communication method, device and system for online application program
CN103338401A (en) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 Video playing control method, device and system for mobile terminal browser

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153543A (en) * 2017-12-29 2018-06-12 北京酷我科技有限公司 A kind of method of server address switching
CN108153543B (en) * 2017-12-29 2021-03-02 北京酷我科技有限公司 Server address switching method
CN110474933A (en) * 2018-05-09 2019-11-19 视联动力信息技术股份有限公司 A kind of terminal switch method and view networking management system
CN110474933B (en) * 2018-05-09 2022-09-20 视联动力信息技术股份有限公司 Terminal exchange method and video network management system
CN113190425A (en) * 2021-04-28 2021-07-30 北京京东振世信息技术有限公司 Resource switching method and device
CN113190425B (en) * 2021-04-28 2023-09-22 北京京东振世信息技术有限公司 Resource switching method and device

Also Published As

Publication number Publication date
CN106777144B (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN105391811B (en) domain name resolution method, access method of application server and terminal thereof
CN106020504B (en) Information output method and device
CN108804188A (en) Changing an interface skin method and device
CN105700925B (en) A kind of interface implementing method and device of APP
CN110716783A (en) Front-end page generation and deployment method and device, storage medium and equipment
CN107438814A (en) Entity action suggestion on mobile device
CN108255993A (en) Extract method, apparatus, electronic equipment and the storage medium of service fields
CN106990950A (en) The method and apparatus of interface layout
CN108399072A (en) Five application page update method and device
CN109213498A (en) A kind of configuration method and server of internet web front-end
CN104540108B (en) According to the method and device of user's dialing numbers recommendation information
CN106777144A (en) A kind of server switching method and device
CN105224396A (en) A kind of business data processing method and device
CN114780080A (en) Micro front end integration method, device and monitoring method
CN105653326A (en) System and method for batch Linux system installation and detection
CN108206750A (en) The configuration method and device of virtual machine network interface card
CN106062693A (en) Desktop sharing method and mobile terminal
CN105573757B (en) The language update method and device of android system
CN105068802A (en) Cross device running Web application software implementation system and method
CN102929835B (en) Device management method and device
CN109165332A (en) A kind of webpage information acquisition methods, device and equipment
CN104267974A (en) Method and device for calling business interface
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN104735041A (en) Method and device for having access to offline resources
CN106411977A (en) Tab synchronization method, terminal, server and system

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231114

Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699

Patentee after: China Southern Power Grid Internet Service Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right