CN107688462A - Method for upgrading software and front-end server - Google Patents

Method for upgrading software and front-end server Download PDF

Info

Publication number
CN107688462A
CN107688462A CN201710226910.5A CN201710226910A CN107688462A CN 107688462 A CN107688462 A CN 107688462A CN 201710226910 A CN201710226910 A CN 201710226910A CN 107688462 A CN107688462 A CN 107688462A
Authority
CN
China
Prior art keywords
client
upgrading
terminal
escalation policy
inquiry message
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
CN201710226910.5A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710226910.5A priority Critical patent/CN107688462A/en
Priority to PCT/CN2017/111560 priority patent/WO2018188336A1/en
Publication of CN107688462A publication Critical patent/CN107688462A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of method for upgrading software, and the upgrade method is applied to front-end server, and the upgrade method comprises the following steps:The upgrading inquiry message that receiving terminal is sent, and judge whether the client in the terminal needs to be upgraded according to the upgrading inquiry message and default escalation policy, wherein the default escalation policy configuration is in the front-end server;If the client needs to be upgraded, upgrade information is returned to the terminal according to the default escalation policy.The present invention also provides a kind of front-end server.The present invention configures the edition upgrading strategy of client in front-end server, and client is when carrying out edition upgrading inquiry, it is not necessary to accesses database, directly carries out updating operation in front end.By simplifying the process of software upgrading with upper type, the present invention, simultaneously because upgrading is completed in front end, personnel are facilitated to safeguard.

Description

Method for upgrading software and front-end server
Technical field
The present invention relates to software upgrading technical field, more particularly to a kind of method for upgrading software and front-end server.
Background technology
Cell phone software app upgradings are One functions very common among software application, what the app substantially to network possessed Upgrade function.By software upgrading, the bug of lowest version software can be repaired, software is optimized, increase new function and spy Property, provide the user more preferable experience.
Traditional app upgrade methods, all it is that software upgrading is handled by background server.It is configured with the database of rear end each Edition upgrading strategy corresponding to version app, when app is upgraded, app sends version number information, backstage to background server The corresponding edition upgrading strategy that server is searched for according to version number information in the database of rear end is to determine the need for upgrading.This Kind upgrade method is related to front end, backstage and database simultaneously, and its escalation process is complex;And due to related escalation policy It is disposed in database, is unfavorable for staff and is safeguarded.
The content of the invention
It is a primary object of the present invention to propose a kind of method for upgrading software and front-end server, it is intended to solve software upgrading Process is complicated, and personnel safeguard the technical problem of inconvenience.
To achieve the above object, the present invention provides a kind of method for upgrading software, and the method for upgrading software is applied to front end Server, the upgrade method comprise the following steps:
The upgrading inquiry message that receiving terminal is sent, and institute is judged according to the upgrading inquiry message and default escalation policy State whether the client in terminal needs to be upgraded, wherein the default escalation policy configuration is in the front-end server;
If the client needs to be upgraded, upgrade information is returned to the terminal according to the default escalation policy.
Preferably, the upgrading inquiry message that the receiving terminal is sent, and according to the upgrading inquiry message and default liter Level strategy judges that the step of whether client in the terminal needs to be upgraded includes:
The upgrading inquiry message that receiving terminal is sent, and the upgrading inquiry message is entered according to the first default resolution rules Row parsing, obtains the version number information of the client in the terminal;
The default escalation policy of corresponding version is searched according to the version number information of the client;
Whether the client is judged according to the default escalation policy of the version number information of the client and corresponding version Need to be upgraded.
Preferably, the upgrading inquiry message that the receiving terminal is sent, and according to the upgrading inquiry message and default liter Level strategy judges the step of whether client in the terminal needs to be upgraded, in addition to:
The upgrading inquiry message that receiving terminal is sent, and the upgrading inquiry message is entered according to the second default resolution rules Row parsing, obtains the data directory information of the client in the terminal;
There should be data directory information to sentence according to what the data directory information of the client and default escalation policy included Whether the client of breaking needs to be upgraded.
Preferably, if the client needs to be upgraded, returned according to the default escalation policy to the terminal The step of returning upgrade information includes:
If the client needs to be upgraded, and upgrades type and attach most importance to big upgrading, then according to the default escalation policy The first upgrade information is returned to the terminal, to be updated completely to the client;
If the client needs to be upgraded, and upgrades type as common upgrading, then according to the default escalation policy The second upgrade information is returned to the terminal, to carry out part renewal to the client.
Preferably, the upgrade method also includes:
When issuing redaction client, the default escalation policy is updated according to issue situation.
In addition, to achieve the above object, the present invention also provides a kind of front-end server, and the front-end server is configured with pre- If escalation policy, the front-end server includes:
Upgrade judge module, for receiving terminal send upgrading inquiry message, and according to it is described upgrading inquiry message and Default escalation policy judges whether the client in the terminal needs to be upgraded;
Information return module, if needing to be upgraded for the client, according to the default escalation policy to described Terminal returns to upgrade information.
Preferably, the upgrading judge module includes:
First resolution unit, the upgrading inquiry message sent for receiving terminal, and according to the first default resolution rules pair The upgrading inquiry message is parsed, and obtains the version number information of the client in the terminal;
Tactful searching unit, for searching the default upgrading plan of corresponding version according to the version number information of the client Slightly;
First judging unit, the default escalation policy for the version number information according to the client and corresponding version are sentenced Whether the client of breaking needs to be upgraded.
Preferably, the upgrading judge module also includes:
Second resolution unit, the upgrading inquiry message sent for receiving terminal, and according to the second default resolution rules pair The upgrading inquiry message is parsed, and obtains the data directory information of the client in the terminal;
Second judging unit, answered for what the data directory information according to the client and default escalation policy included There is data directory information to judge whether the client needs to be upgraded.
Preferably, described information returns to module and included:
First returning unit, if needing to be upgraded for the client, and upgrade type and attach most importance to big upgrading, then basis The default escalation policy returns to the first upgrade information to the terminal, to be updated completely to the client;
Second returning unit, if needing to be upgraded for the client, and upgrade type as common upgrading, then basis The default escalation policy returns to the second upgrade information to the terminal, to carry out part renewal to the client.
Preferably, the front-end server also includes:
Policy update module, for when issuing redaction client, updating the default upgrading plan according to issue situation Slightly.
The upgrading inquiry message that the present invention is sent by receiving terminal, and according to the upgrading inquiry message and default upgrading Strategy judges whether the client in the terminal needs to be upgraded, wherein the default escalation policy configuration is in the front end Server;If the client needs to be upgraded, upgrade information is returned to the terminal according to the default escalation policy.It is logical Cross with upper type, invention software upgrade method configures the edition upgrading strategy of client to exist in front-end server, client When carrying out edition upgrading inquiry, it is not necessary to access database, directly carry out upgrading inquiry in front end;When needing to be upgraded, directly Connect and return to related upgrade information, updating operation is completed in pure front end, it is simple and convenient.Therefore, this invention simplifies software upgrading Process, simultaneously because upgrading is completed in front end, personnel are facilitated to safeguard.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of invention software upgrade method first embodiment;
Fig. 2 is the upgrading inquiry message that receiving terminal is sent described in Fig. 1, and according to the upgrading inquiry message and is preset Escalation policy judges whether the client in the terminal needs the refinement schematic flow sheet upgraded;
Fig. 3 is the upgrading inquiry message that receiving terminal is sent described in Fig. 1, and according to the upgrading inquiry message and is preset Escalation policy judges whether the client in the terminal needs the refinement schematic flow sheet upgraded;
Need to be upgraded if Fig. 4 is the client described in Fig. 1, according to the default escalation policy to the terminal Return to the refinement schematic flow sheet of upgrade information;
Fig. 5 is the high-level schematic functional block diagram of front-end server first embodiment of the present invention;
Fig. 6 is the refinement high-level schematic functional block diagram for upgrading judge module described in Fig. 5;
Fig. 7 is the refinement high-level schematic functional block diagram for upgrading judge module described in Fig. 5;
Fig. 8 is the refinement high-level schematic functional block diagram of information return module described in Fig. 5.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 1, Fig. 1 are the schematic flow sheet of invention software upgrade method first embodiment.
In the present embodiment, the method for upgrading software is applied to front-end server, and the upgrade method comprises the following steps:
Step S10, the upgrading inquiry message that receiving terminal is sent, and according to the upgrading inquiry message and default upgrading plan Slightly judge whether the client in the terminal needs to be upgraded, wherein the default escalation policy configuration takes in the front end Business device.
Traditional app upgrade methods, all it is that software upgrading is handled by background server.It is configured with the database of rear end each Edition upgrading strategy corresponding to version app, when app is upgraded, app sends version number information, backstage to background server Server according to version number information search for rear end database in corresponding edition upgrading strategy with determine the need for upgrading and Upgrade method.This upgrade method is related to front end, backstage and database simultaneously, and its escalation process is complex, and due to Related escalation policy is disposed in database, is unfavorable for staff and is safeguarded.In the present embodiment, by the liter of client Level strategy configuration is in front-end server so that when client carries out upgrading renewal, directly accesses front-end server, is not related to Background server and database, the updating operation of client is completed in front end.
Specifically, the escalation policy of client is configured in the internal memory of front-end server, and for escalation policy file, Using the form of json files.Json is a kind of data format of lightweight, is occupied little space, and transmission speed is fast, and json branch Multilingual is held, the language such as including C, C#, Java, JavaScript, PHP, Python, form is simple, is easy to read and write, and is easy to solve Analysis, there is well readable and compatible, by using json files, code development quantity can be enormously simplify, and be easy to Safeguard;Can be that the client of each version individually corresponds to an escalation policy file, side for the escalation policy of client Person who happens to be on hand for an errand person is safeguarded or is configured the escalation policy of all versions in same escalation policy file, reduces internal memory Occupancy.Escalation policy file can also use the form of xml document, and xml is standard generalized markup language (SGML) subset, Web transmission is especially suitable for, its uniform format, meets standard, is easy to data sharing and remote interaction;Certain escalation policy file is also It can take other form.When upgrading beginning, terminal collects the relevant release note of client, and wherein terminal includes movement eventually End and PC terminals;When version information is collected and finished, terminal forward end server sends upgrading inquiry message, is wrapped in inquiry message The client release information of collection is included, to confirm whether client needs to upgrade.Front-end server is receiving terminal transmission Upgrading inquiry message when, by upgrade inquiry message in client release information contrasted with the escalation policy in internal memory, Judge whether the client current version in terminal meets the requirements, if undesirable, the client needs to be upgraded more Newly, now into step S20.
Step S20, if the client needs to be upgraded, returned and risen to the terminal according to the default escalation policy Level information.
In the present embodiment, if front-end server judges the client in the terminal according to upgrading inquiry message and escalation policy Need to carry out upgrading renewal, then corresponding upgrade information can be returned to terminal according to the upgrade path that escalation policy includes.Tool Body, front-end server can to terminal return upgrade link, by open the link can enter client upgrade interface, and The upgrading interface downloads redaction client and carries out client replacement completion upgrading renewal, or is carried out online more at the upgrading interface Newly;Certainly, front-end server directly can also return to the data needed for upgrading to terminal, so that the client of terminal completes upgrading Renewal.
Further, if front-end server judges client in the terminal not according to upgrading inquiry message and escalation policy Need to carry out upgrading renewal, then can return to terminal can not use upgrade information accordingly.
Further, front-end server can issue situation according to the redaction of client and escalation policy is carried out in real time Renewal.
In specific implementation, terminal forward end server send upgrading inquiry message, with determine client whether need into The operation of row upgrading renewal, can be that user is carried out when opening client;It can certainly be the timing automatic forward end of terminal Server sends upgrading inquiry message, to ensure that client is in latest edition.
In the present embodiment, by the upgrading inquiry message of receiving terminal transmission, and according to the upgrading inquiry message and in advance If escalation policy judges whether the client in the terminal needs to be upgraded, wherein the default escalation policy configuration is in institute State front-end server;If the client needs to be upgraded, returned and upgraded to the terminal according to the default escalation policy Information.By the way that with upper type, the method for upgrading software in the present embodiment takes the edition upgrading strategy configuration of client in front end Business device, client is when carrying out edition upgrading inquiry, it is not necessary to accesses database, directly carries out upgrading inquiry in front end;Needing When being upgraded, related upgrade information is directly returned, updating operation is completed in pure front end, it is simple and convenient.The present embodiment by with Upper type, simplify the process of software upgrading, simultaneously because upgrading is completed in front end, facilitate personnel to safeguard.
Reference picture 2, Fig. 2 are the upgrading inquiry message that receiving terminal is sent described in Fig. 1, and according to the upgrading inquiry letter Breath and default escalation policy judge whether the client in the terminal needs the refinement schematic flow sheet upgraded.
Based on above-mentioned embodiment illustrated in fig. 1, step S10 includes:
Step S11, the upgrading inquiry message that receiving terminal is sent, and the upgrading is ask according to the first default resolution rules Ask that information is parsed, obtain the version number information of the client in the terminal.
In the present embodiment, when upgrading beginning, terminal collects the version information of client, wherein client release packet Include the version number information of client;When version information is collected and finished, terminal can be carried out by predetermined encryption rule to version information Encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;When encryption is completed, Terminal forward end server sends the upgrading inquiry message for including encryption version information.Front-end server is receiving terminal transmission Upgrading inquiry message when, upgrading inquiry message will be parsed according to the first default resolution rules, and obtain terminal and be collected into Prototype version information.
Step S12, the default escalation policy of corresponding version is searched according to the version number information of the client.
In the present embodiment, front-end server, will be according to the version number information in internal memory when obtaining prototype version information Escalation policy corresponding to middle lookup version.
Step S13, the visitor is judged according to the default escalation policy of the version number information of the client and corresponding version Whether family end, which needs, is upgraded.
In the present embodiment, front-end server, will be according to basis when finding escalation policy corresponding with client release Upgrading path and version number in escalation policy determine whether client needs to be upgraded.For example, client release number is V2, It is V2 to V3 that if the upgrading path in respective upgrades strategy is found according to version number V2, it is determined that the client needs to be risen Level;If according to version number V2 find upgrading path in respective upgrades strategy for V2 into V2, or escalation policy without upgrading road Footpath, it is determined that the client need not be upgraded.
Further, when issuing redaction client, front-end server can issue situation pair according to the redaction of client Escalation policy is updated in real time.For example, the client respective upgrades strategy of V1 versions was that V1 rises to V2 originally, in issue V3 When, the client respective upgrades strategy modification of V1 versions rises to V3, while the client escalation policy (V2 of newly-increased V2 versions for V1 Rise to V3).
In the present embodiment, terminal first can be entered before upgrading inquiry message is sent to the version information in upgrading inquiry message Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Terminal is by client The version number at end is sent to front-end server, to judge whether client needs to upgrade, it is not necessary to accesses database, simplification is soft The process of part upgrading.
Reference picture 3, Fig. 3 are the upgrading inquiry message that receiving terminal is sent described in Fig. 1, and according to the upgrading inquiry letter Breath and default escalation policy judge whether the client in the terminal needs the refinement schematic flow sheet upgraded.
Based on above-mentioned embodiment illustrated in fig. 1, step S10 also includes:
Step S14, the upgrading inquiry message that receiving terminal is sent, and the upgrading is ask according to the second default resolution rules Ask that information is parsed, obtain the data directory information of the client in the terminal.
In the present embodiment, when upgrading beginning, terminal collects the version information of client, wherein client release packet Include the data directory information of client;When version information is collected and finished, terminal can be entered by predetermined encryption rule to version information Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Encryption is completed When, terminal forward end server sends the upgrading inquiry message for including encryption version information.Front-end server is receiving terminal During the upgrading inquiry message of transmission, upgrading inquiry message will be parsed according to the second default resolution rules, and obtain terminal receipts The initial data directory information collected.
Step S15, there should be data mesh according to what the data directory information of the client and default escalation policy included Record information judges whether the client needs to be upgraded.
In the present embodiment, front-end server, will be according to initial data directory information when obtaining initial data directory information There should be data directory information to be contrasted with what escalation policy included, judge that data should be had by whether lacking correlation in client; If so, then judging that client needs to carry out upgrading renewal, while difference data directory information is generated, and according to the difference data mesh Record upgrade information corresponding to information to terminal return.
Further, when issuing redaction client, front-end server can issue situation pair according to the redaction of client Escalation policy is updated in real time.For example, there should be data directory to include ab data in former escalation policy, in newly issue V2 versions This when, according to the newly-increased data cases of V2 versions, will there should be data directory to be revised as including abc data in former escalation policy.
In the present embodiment, terminal first can be entered before upgrading inquiry message is sent to the version information in upgrading inquiry message Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Terminal is by client The data directory information at end is sent to front-end server, is contrasted with the data directory in front-end server, to judge whether Whether client, which needs, upgrades, it is not necessary to accesses database, simplifies the process of software upgrading.
Reference picture 4, need to be upgraded if Fig. 4 is the client described in Fig. 1, according to the default escalation policy to The terminal returns to the refinement schematic flow sheet of upgrade information.
Based on above-mentioned embodiment illustrated in fig. 1, step S20 includes:
Step S21, if the client needs to be upgraded, and upgrades type and attach most importance to big upgrading, then according to described default Escalation policy returns to the first upgrade information to the terminal, to be updated completely to the client.
In the present embodiment, if front-end server judges the client need in terminal according to upgrading inquiry message and escalation policy Upgrade, and the type upgraded attaches most importance to big upgrading, it is necessary to replaced completely to client, then will be according to escalation policy to end End returns to the first upgrade information.Terminal can be updated completely by first upgrade information to the client.
Step S22, if the client needs to be upgraded, and upgrades type as common upgrading, then according to described default Escalation policy returns to the second upgrade information to the terminal, to carry out part renewal to the client.
In the present embodiment, if front-end server judges the client need in terminal according to upgrading inquiry message and escalation policy Upgrade, and the type upgraded is commonly to upgrade, it is necessary to which the partial content of client is modified and/or increased and decreased in part Hold, then the second upgrade information will be returned to terminal according to escalation policy.Terminal can be by second upgrade information to the client Carry out part renewal.
In the present embodiment, front-end server provides different upgrade methods for the client of different editions, in great upgrading When client is replaced completely, operation that the partial content of client is modified and/or increase and decrease in common upgrading is simple Change client escalation process, and facilitate personnel to safeguard.
The present invention further provides a kind of front-end server.
Reference picture 5, Fig. 5 are the high-level schematic functional block diagram of front-end server first embodiment of the present invention.
In the present embodiment, the front-end server is configured with default escalation policy, and the front-end server includes:
Upgrade judge module 10, the upgrading inquiry message sent for receiving terminal, and according to the upgrading inquiry message Judge whether the client in the terminal needs to be upgraded with default escalation policy.
Traditional app upgrade methods, all it is that software upgrading is handled by background server.It is configured with the database of rear end each Edition upgrading strategy corresponding to version app, when app is upgraded, app sends version number information, backstage to background server Server according to version number information search for rear end database in corresponding edition upgrading strategy with determine the need for upgrading and Upgrade method.This upgrade method is related to front end, backstage and database simultaneously, and its escalation process is complex, and due to Related escalation policy is disposed in database, is unfavorable for staff and is safeguarded.In the present embodiment, by the liter of client Level strategy configuration is in front-end server so that when client carries out upgrading renewal, directly accesses front-end server, is not related to Background server and database, the updating operation of client is completed in front end.
Specifically, the escalation policy of client is configured in the internal memory of front-end server, and for escalation policy file, Using the form of json files.Json is a kind of data format of lightweight, is occupied little space, and transmission speed is fast, and json branch Multilingual is held, the language such as including C, C#, Java, JavaScript, PHP, Python, form is simple, is easy to read and write, and is easy to solve Analysis, there is well readable and compatible, by using json files, code development quantity can be enormously simplify, and be easy to Safeguard;Can be that the client of each version individually corresponds to an escalation policy file, side for the escalation policy of client Person who happens to be on hand for an errand person is safeguarded or is configured the escalation policy of all versions in same escalation policy file, reduces internal memory Occupancy.Escalation policy file can also use the form of xml document, and xml is standard generalized markup language (SGML) subset, Web transmission is especially suitable for, its uniform format, meets standard, is easy to data sharing and remote interaction;Certain escalation policy file is also It can take other form.When upgrading beginning, terminal collects the relevant release note of client, and wherein terminal includes movement eventually End and PC terminals;When version information is collected and finished, terminal forward end server sends upgrading inquiry message, is wrapped in inquiry message The client release information of collection is included, to confirm whether client upgrades.Front-end server is receiving the liter of terminal transmission During level inquiry message, the client release information upgraded in inquiry message is contrasted with the escalation policy in internal memory, judged Whether the client current version in terminal meets the requirements, if undesirable, the client needs to carry out upgrading renewal.
Information return module 20, if needing to be upgraded for the client, according to the default escalation policy to institute State terminal and return to upgrade information.
In the present embodiment, if front-end server judges the client in the terminal according to upgrading inquiry message and escalation policy Need to carry out upgrading renewal, then corresponding upgrade information can be returned to terminal according to the upgrade path that escalation policy includes.Tool Body, front-end server can to terminal return upgrade link, by open the link can enter client upgrade interface, and The upgrading interface downloads redaction client and carries out client replacement completion upgrading renewal, or is carried out online more at the upgrading interface Newly;Certainly, front-end server directly can also return to the data needed for upgrading to terminal, so that the client of terminal completes upgrading Renewal.
Further, if front-end server judges client in the terminal not according to upgrading inquiry message and escalation policy Need to carry out upgrading renewal, then can return to terminal can not use upgrade information accordingly.
Further, front-end server can issue situation according to the redaction of client and escalation policy is carried out in real time Renewal.
In specific implementation, terminal forward end server send upgrading inquiry message, with determine client whether need into The operation of row upgrading renewal, can be that user is carried out when opening client;It can certainly be the timing automatic forward end of terminal Server sends upgrading inquiry message, to ensure that client is in latest edition.
In the present embodiment, by the upgrading inquiry message of receiving terminal transmission, and according to the upgrading inquiry message and in advance If escalation policy judges whether the client in the terminal needs to be upgraded, wherein the default escalation policy configuration is in institute State front-end server;If the client needs to be upgraded, returned and upgraded to the terminal according to the default escalation policy Information.By the way that with upper type, the method for upgrading software in the present embodiment takes the edition upgrading strategy configuration of client in front end Business device, client is when carrying out edition upgrading inquiry, it is not necessary to accesses database, directly carries out upgrading inquiry in front end;Needing When being upgraded, related upgrade information is directly returned, updating operation is completed in pure front end, it is simple and convenient.The present embodiment by with Upper type, simplify the process of software upgrading, simultaneously because upgrading is completed in front end, facilitate personnel to safeguard.
Reference picture 6, Fig. 6 are the refinement high-level schematic functional block diagram for upgrading judge module described in Fig. 5.
Based on above-mentioned embodiment illustrated in fig. 5, the upgrading judge module 10 includes:
First resolution unit 11, the upgrading inquiry message sent for receiving terminal, and according to the first default resolution rules The upgrading inquiry message is parsed, obtains the version number information of the client in the terminal.
In the present embodiment, when upgrading beginning, terminal collects the version information of client, wherein client release packet Include the version number information of client;When version information is collected and finished, terminal can be carried out by predetermined encryption rule to version information Encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;When encryption is completed, Terminal forward end server sends the upgrading inquiry message for including encryption version information.Front-end server is receiving terminal transmission Upgrading inquiry message when, upgrading inquiry message will be parsed according to the first default resolution rules, and obtain terminal and be collected into Prototype version information.
Tactful searching unit 12, for searching the default upgrading plan of corresponding version according to the version number information of the client Slightly.
In the present embodiment, front-end server, will be according to the version number information in internal memory when obtaining prototype version information Escalation policy corresponding to middle lookup version.
First judging unit 13, for the version number information according to the client and the default escalation policy of corresponding version Judge whether the client needs to be upgraded.
In the present embodiment, front-end server, will be according to basis when finding escalation policy corresponding with client release Upgrading path and version number in escalation policy determine whether client needs to be upgraded.For example, client release number is V2, It is V2 to V3 that if the upgrading path in respective upgrades strategy is found according to version number V2, it is determined that the client needs to be risen Level;If according to version number V2 find upgrading path in respective upgrades strategy for V2 into V2, or escalation policy without upgrading road Footpath, it is determined that the client need not be upgraded.
Further, when issuing redaction client, front-end server can issue situation pair according to the redaction of client Escalation policy is updated in real time.For example, the client respective upgrades strategy of V1 versions was that V1 rises to V2 originally, in issue V3 When, the client respective upgrades strategy modification of V1 versions rises to V3, while the client escalation policy (V2 of newly-increased V2 versions for V1 Rise to V3).
In the present embodiment, terminal first can be entered before upgrading inquiry message is sent to the version information in upgrading inquiry message Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Terminal is by client The version number at end is sent to front-end server, to judge whether client needs to upgrade, it is not necessary to accesses database, simplification is soft The process of part upgrading.
Reference picture 7, Fig. 7 are the refinement high-level schematic functional block diagram for upgrading judge module described in Fig. 5.
Based on above-mentioned embodiment illustrated in fig. 5, the upgrading judge module 10 also includes:
Second resolution unit 14, the upgrading inquiry message sent for receiving terminal, and according to the second default resolution rules The upgrading inquiry message is parsed, obtains the data directory information of the client in the terminal.
In the present embodiment, when upgrading beginning, terminal collects the version information of client, wherein client release packet Include the data directory information of client;When version information is collected and finished, terminal can be entered by predetermined encryption rule to version information Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Encryption is completed When, terminal forward end server sends the upgrading inquiry message for including encryption version information.Front-end server is receiving terminal During the upgrading inquiry message of transmission, upgrading inquiry message will be parsed according to the second default resolution rules, and obtain terminal receipts The initial data directory information collected.
Second judging unit 15, for described in the data directory information according to the client and the judgement of default escalation policy Whether client, which needs, is upgraded.
In the present embodiment, front-end server, will be according to initial data directory information when obtaining initial data directory information There should be data directory information to be contrasted with what escalation policy included, judge that data should be had by whether lacking correlation in client; If so, then judging that client needs to carry out upgrading renewal, while difference data directory information is generated, and according to the difference data mesh Record upgrade information corresponding to information to terminal return.
Further, when issuing redaction client, front-end server can issue situation pair according to the redaction of client Escalation policy is updated in real time.For example, there should be data directory to include ab data in former escalation policy, in newly issue V2 versions This when, according to the newly-increased data cases of V2 versions, will there should be data directory to be revised as including abc data in former escalation policy.
In the present embodiment, terminal first can be entered before upgrading inquiry message is sent to the version information in upgrading inquiry message Row encryption, prevents version information is tampered from causing correctly to upgrade, while be also prevented from the leaking data of terminal;Terminal is by client The data directory information at end is sent to front-end server, is contrasted with the data directory in front-end server, to judge whether Whether client, which needs, upgrades, it is not necessary to accesses database, simplifies the process of software upgrading.
Reference picture 8, Fig. 8 are the refinement high-level schematic functional block diagram of information return module described in Fig. 5.
Based on above-mentioned embodiment illustrated in fig. 5, the upgrading judge module 20 includes:
First returning unit 21, if needing to be upgraded for the client, and upgrade type and attach most importance to big upgrading, then root The first upgrade information is returned to the terminal according to the default escalation policy, to be updated completely to the client.
In the present embodiment, if front-end server judges the client need in terminal according to upgrading inquiry message and escalation policy Upgrade, and the type upgraded attaches most importance to big upgrading, it is necessary to replaced completely to client, then will be according to escalation policy to end End returns to the first upgrade information.Terminal can be updated completely by first upgrade information to the client.
Second returning unit 22, if needing to be upgraded for the client, and upgrade type as common upgrading, then root The second upgrade information is returned to the terminal according to the default escalation policy, to carry out part renewal to the client.
In the present embodiment, if front-end server judges the client need in terminal according to upgrading inquiry message and escalation policy Upgrade, and the type upgraded is commonly to upgrade, it is necessary to which the partial content of client is modified and/or increased and decreased in part Hold, then the second upgrade information will be returned to terminal according to escalation policy.Terminal can be by second upgrade information to the client Carry out part renewal.
In the present embodiment, front-end server provides different upgrade methods for the client of different editions, in great upgrading When client is replaced completely, operation that the partial content of client is modified and/or increase and decrease in common upgrading is simple Change client escalation process, and facilitate personnel to safeguard.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for upgrading software, it is characterised in that the method for upgrading software is applied to front-end server, the upgrading side Method comprises the following steps:
The upgrading inquiry message that receiving terminal is sent, and the end is judged according to the upgrading inquiry message and default escalation policy Whether the client in end needs to be upgraded, wherein the default escalation policy configuration is in the front-end server;
If the client needs to be upgraded, upgrade information is returned to the terminal according to the default escalation policy.
2. upgrade method as claimed in claim 1, it is characterised in that the upgrading inquiry message that the receiving terminal is sent, and Judge whether the client in the terminal needs the step upgraded according to the upgrading inquiry message and default escalation policy Suddenly include:
The upgrading inquiry message that receiving terminal is sent, and the upgrading inquiry message is solved according to the first default resolution rules Analysis, obtains the version number information of the client in the terminal;
The default escalation policy of corresponding version is searched according to the version number information of the client;
According to the default escalation policy of the version number information of the client and corresponding version judge the client whether needs Upgraded.
3. upgrade method as claimed in claim 1, it is characterised in that the upgrading inquiry message that the receiving terminal is sent, and Judge whether the client in the terminal needs the step upgraded according to the upgrading inquiry message and default escalation policy Suddenly, in addition to:
The upgrading inquiry message that receiving terminal is sent, and the upgrading inquiry message is solved according to the second default resolution rules Analysis, obtains the data directory information of the client in the terminal;
There should be data directory information to judge institute according to what the data directory information of the client and default escalation policy included State whether client needs to be upgraded.
4. upgrade method as claimed in claim 1, it is characterised in that if the client needs to be upgraded, according to The step of default escalation policy returns to upgrade information to the terminal includes:
If the client needs to be upgraded, and upgrades type and attach most importance to big upgrading, then according to the default escalation policy to institute State terminal and return to the first upgrade information, to be updated completely to the client;
If the client needs to be upgraded, and upgrades type as common upgrading, then according to the default escalation policy to institute State terminal and return to the second upgrade information, to carry out part renewal to the client.
5. the upgrade method as described in any one of Claims 1-4 claim, it is characterised in that the upgrade method is also Including:
When issuing redaction client, the default escalation policy is updated according to issue situation.
6. a kind of front-end server, it is characterised in that the front-end server is configured with default escalation policy, the front end services Device includes:
Upgrade judge module, the upgrading inquiry message sent for receiving terminal, and according to the upgrading inquiry message and preset Escalation policy judges whether the client in the terminal needs to be upgraded;
Information return module, if needing to be upgraded for the client, according to the default escalation policy to the terminal Return to upgrade information.
7. front-end server as claimed in claim 6, it is characterised in that the upgrading judge module includes:
First resolution unit, the upgrading inquiry message sent for receiving terminal, and according to the first default resolution rules to described Upgrading inquiry message is parsed, and obtains the version number information of the client in the terminal;
Tactful searching unit, for searching the default escalation policy of corresponding version according to the version number information of the client;
First judging unit, the default escalation policy for the version number information according to the client and corresponding version judge institute State whether client needs to be upgraded.
8. front-end server as claimed in claim 6, it is characterised in that the upgrading judge module also includes:
Second resolution unit, the upgrading inquiry message sent for receiving terminal, and according to the second default resolution rules to described Upgrading inquiry message is parsed, and obtains the data directory information of the client in the terminal;
Second judging unit, there should be number for what the data directory information according to the client and default escalation policy included Judge whether the client needs to be upgraded according to directory information.
9. front-end server as claimed in claim 6, it is characterised in that described information, which returns to module, to be included:
First returning unit, if needing to be upgraded for the client, and upgrade type and attach most importance to big upgrading, then according to Default escalation policy returns to the first upgrade information to the terminal, to be updated completely to the client;
Second returning unit, if needing to be upgraded for the client, and upgrade type as common upgrading, then according to Default escalation policy returns to the second upgrade information to the terminal, to carry out part renewal to the client.
10. the front-end server as described in any one of claim 6 to 9 claim, it is characterised in that the front end services Device also includes:
Policy update module, for when issuing redaction client, updating the default escalation policy according to issue situation.
CN201710226910.5A 2017-04-10 2017-04-10 Method for upgrading software and front-end server Pending CN107688462A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710226910.5A CN107688462A (en) 2017-04-10 2017-04-10 Method for upgrading software and front-end server
PCT/CN2017/111560 WO2018188336A1 (en) 2017-04-10 2017-11-17 Software upgrade method, front-end server and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710226910.5A CN107688462A (en) 2017-04-10 2017-04-10 Method for upgrading software and front-end server

Publications (1)

Publication Number Publication Date
CN107688462A true CN107688462A (en) 2018-02-13

Family

ID=61152366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710226910.5A Pending CN107688462A (en) 2017-04-10 2017-04-10 Method for upgrading software and front-end server

Country Status (2)

Country Link
CN (1) CN107688462A (en)
WO (1) WO2018188336A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088926A (en) * 2023-01-10 2023-05-09 睿智合创(北京)科技有限公司 Decision component version management method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282359A1 (en) * 2004-05-20 2008-11-13 International Business Machines Corporation System for controlling write access to an ldap directory
CN102281160A (en) * 2011-09-15 2011-12-14 苏州阔地网络科技有限公司 Method for automatically upgrading functions, system and server thereof
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN106095455A (en) * 2016-06-17 2016-11-09 北京小米移动软件有限公司 A kind of application update method and device
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468414B (en) * 2015-11-30 2019-07-09 Tcl集团股份有限公司 A kind of upgrading method thereof and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282359A1 (en) * 2004-05-20 2008-11-13 International Business Machines Corporation System for controlling write access to an ldap directory
CN102281160A (en) * 2011-09-15 2011-12-14 苏州阔地网络科技有限公司 Method for automatically upgrading functions, system and server thereof
CN105653262A (en) * 2015-12-21 2016-06-08 Tcl集团股份有限公司 Application program upgrade method, device and system
CN106095455A (en) * 2016-06-17 2016-11-09 北京小米移动软件有限公司 A kind of application update method and device
CN106502747A (en) * 2016-11-02 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method of application upgrade and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088926A (en) * 2023-01-10 2023-05-09 睿智合创(北京)科技有限公司 Decision component version management method
CN116088926B (en) * 2023-01-10 2023-10-20 睿智合创(北京)科技有限公司 Decision component version management method

Also Published As

Publication number Publication date
WO2018188336A1 (en) 2018-10-18

Similar Documents

Publication Publication Date Title
US8352861B2 (en) Display control information generation
US9178793B1 (en) Engine for processing content rules associated with locations in a page
CN102622241B (en) A kind of method for upgrading software and device
US9898260B2 (en) Adaptive function-based dynamic application extension framework
US9038014B2 (en) Intelligently recommending schemas based on user input
US10430510B2 (en) Method for controlling access to electronic documents based on stateless communication
US20090276488A1 (en) Extensible, Asynchronous, Centralized Analysis And Optimization Of Server Responses To Client Requests
US20090205013A1 (en) Customization restrictions for multi-layer XML customization
CN101496000A (en) Two-way and multi-master synchronization over web syndications
WO2012034440A1 (en) Method and device for generating database upgrading script
CN1886976B (en) Method and apparatus for performing actions on a wireless device using action lists and versioning
CN102833350A (en) Processing method and processing device of WebApp updating
CN111966738B (en) System for automatically realizing back-end programming by selecting front-end configuration
US20050009538A1 (en) Localization of resources used by applications in hand-held electronic devices and methods thereof
US20130132809A1 (en) Structure and method for widget personalization and widget interaction
Frederick et al. Beginning smartphone web development
CN114036425A (en) Page access method, client, server and system
CN108520019A (en) Data managing method, device, equipment and computer readable storage medium
CN116643753A (en) Automatic code generation method
CN107688462A (en) Method for upgrading software and front-end server
CN102799476B (en) Method, terminal and system for substituting and updating application program
US8504539B2 (en) Method of XML document management to selectively cancel specific past operation and system using the same
US11468378B2 (en) Method and apparatus for skill sharing
US20240095448A1 (en) Automatic guidance to interactive entity matching natural language input
CN113703819B (en) Dynamic message analysis method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180213

RJ01 Rejection of invention patent application after publication