CN108270806A - A kind of more application upgrade method and systems - Google Patents

A kind of more application upgrade method and systems Download PDF

Info

Publication number
CN108270806A
CN108270806A CN201611258890.1A CN201611258890A CN108270806A CN 108270806 A CN108270806 A CN 108270806A CN 201611258890 A CN201611258890 A CN 201611258890A CN 108270806 A CN108270806 A CN 108270806A
Authority
CN
China
Prior art keywords
file
upgrade
authority
multiple application
upgrading
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
CN201611258890.1A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201611258890.1A priority Critical patent/CN108270806A/en
Publication of CN108270806A publication Critical patent/CN108270806A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/10Tax strategies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/123Tax preparation or submission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of more application upgrade method and systems, which includes:Receive the upgrade package with authority;Open the upgrade package for carrying authority, verification, solution are separated by decantation to the upgrade file cryptograph files, authority cryptograph files, upgrade script cryptograph files of multiple application programs or file, extract the version number of the multiple application program or file and edition compatibility information table;Obtain the version number of the multiple application programs of server internal or file;By the version number of multiple application programs or file in the version number of the multiple application programs of the server internal or file and the upgrade package, matched according to the edition compatibility information table;If successful match, the application programming interfaces of the multiple application program or file is called to be upgraded.Method and system provided by the invention realizes that server is mostly safeguarded using safety upgrade, saves O&M spending, reduces and safeguard complexity.

Description

A kind of more application upgrade method and systems
Technical field
The present invention relates to server applications to upgrade field, and more particularly, to a kind of more application upgrade methods and be System.
Background technology
With the deep propulsion of " battalion changes increasing ", either national revenue department or large enterprise all suffer from distribution The problem of handling value-added tax business.In order to which centralization, networking, high speed realize that distribution handles value-added tax business, and go out In security consideration, either local side or enterprises end are all using internal network application, the clothes of many important internal network applications Business device is not connect with internet, and all terminals, server and whole network belong to an internal lan being isolated from the outside Network.
On the other hand, since value-added tax business can be higher to secrecy and safety requirements, no matter local side is declared dutiable goods certification tax control Server or enterprises end are made out an invoice tax control server, all close all debugging interfaces (such as serial ports) and network service (such as TFTP, FTP, SSH, NFS), only open service relevant with business and port.Simultaneously, it is desirable that technical service personnel avoid computer room live as possible It safeguards.
Generally, there are own shortcomings for traditional server application upgrading:
(1) user data is destroyed, causes user can not transacting business.Traditional server upgrading is reached using specific operation The mode that entire application file system is directly replaced on hardware carries out, i.e., directly wipes entire application file system point on hardware Then area is written new file system and completes upgrading;
(2) secrecy and demand for security are not met, operation difficulty is big.Traditional server upgrading is needed by opening debugging interface Upgrading is completed in (such as serial ports) or opening network service (such as TFTP, FTP, SSH, NFS);
(3) conventionally employed single application program individually upgrades, there are multiple affiliate application versions mismatch, particularly Version mismatches between application program and its dynamic library version, application program and auxiliary device firmware version, leads to business procedure Operation exception;
(4) since server application is widely popularized, initial design can not meet growing user demand, to meet Growing user demand, needs to arrange new application program, and traditional upgrading mode can not meet newly-increased application program from Without to there is upgrading.
Under such network environment, it is more how tax control server to be carried out by a kind of not only safety but also economic simple mode The upgrading of a different application, at the same do not destroy user using data, do not influence customer service and become a technical barrier.
Invention content
It is an object of the invention to be directed to the problems such as server updating difficulty is big, of high cost, dangerous, flow is complicated, carry The multiple and different application upgrades of tax control server are carried out, while do not destroy user's application for a kind of not only safety but also economic simple method Data do not influence customer service.
According to one aspect of the invention, a kind of more application upgrade methods, including:
S100 receives the upgrade package with authority;
S200, opens the upgrade package for carrying authority, and verification, solution are separated by decantation to multiple application programs or file Upgrade file cryptograph files, authority cryptograph files, upgrade script cryptograph files, extract the multiple application program or file Version number and edition compatibility information table;
S300 obtains the version number of the multiple application programs of server internal or file;
S400, by multiple applications in the version number of the multiple application programs of the server internal or file and the upgrade package The version number of program or file is matched according to the edition compatibility information table;
S500 if successful match, calls the application programming interfaces of the multiple application program or file to be upgraded.
Optionally, it is further included after the step S200:
Decryption and authorization file cipher text file obtains upgrading authority;
If with upgrading authority, step S300 is performed;
If without upgrading authority, the multiple application programs or the upgrade file ciphertext text of file isolated described in deletion Part, authority cryptograph files, upgrade script cryptograph files.
Optionally, the upgrading authority includes:Upgrade term of validity, upgrade user right, IC card permission, USBKEY power Limit.
Optionally, include after the step S300:
Judge whether upgrade maintenance server mark;
If there are the upgrade maintenance server mark, run mode document upgrading application programming interfaces pair are called Upgrade maintenance server is upgraded;
If there is no the upgrade maintenance server marks, step S400 is performed.
Optionally, include after the step S500:
Judge whether the multiple application program or file all upgrade successfully;
If so, the upgrade script cryptograph files of the multiple application program or file are decrypted, and according to the upgrading of acquisition Script file is updated the upgrade script of the server internal;
Journey is applied according to multiple in the upgrade package to the version number of the multiple application programs of the server internal or file The version number of sequence or file is updated.
According to a further aspect of the present invention, a kind of more application upgrade methods of tax control server, including:
S001 sets upgrade maintenance serve end program inside tax control server;
S002 runs the upgrade maintenance serve end program;
S003, to upgrade package of the tax control central server request with authority;
S004 receives the upgrade package for carrying authority;
S005 calls the upgrade maintenance serve end program to handle the upgrade package with authority, complete Into the upgrading of the tax control server internal applications.
According to another aspect of the present invention, a kind of upgrade maintenance service end system, including:
Receiving module receives the upgrade package with authority;
Upgrade package unpacks module, opens the upgrade package for carrying authority, and verification, solution are separated by decantation to multiple using journey The upgrade file cryptograph files of sequence or file, authority cryptograph files, upgrade script cryptograph files and the multiple application Program or the version number of file and edition compatibility information table;
Command analysis module receives application layer command word and parameter, according to the command word and the corresponding work(of parameter call It can module;
File decryption correction verification module, upgrade file cryptograph files, authority to the multiple application program or file Cryptograph files, upgrade script cryptograph files are decrypted and verify;
Version information management module extracts the version number of the multiple application program or file and edition compatibility information table, With the version number for obtaining the multiple application programs of server internal or file;
The version information management module, by the version number of the multiple application programs of the server internal or file with it is described The version number of multiple application programs or file in upgrade package is matched according to the edition compatibility information table;
If the version information management module obtain successful match as a result, if the function module call it is the multiple should Upgraded with the application programming interfaces of program or file.
Optionally, the upgrade maintenance service end system further includes:
The file decryption correction verification module, decryption and authorization file cipher text file obtains upgrading authority, and judges whether have Upgrading authority;
If with upgrading authority, the version information management module, by the multiple application programs of the server internal or text The version number of part and the version number of multiple application programs or file in the upgrade package, carry out according to the edition compatibility information table Matching;
If without upgrading authority, the upgrade package unpacks module, the multiple application programs isolated described in deletion or Upgrade file cryptograph files, authority cryptograph files, the upgrade script cryptograph files of file.
Optionally, the upgrading authority includes:Upgrade term of validity, upgrade user right, IC card permission, USBKEY power Limit.
Optionally, the upgrade maintenance service end system further includes:Run mode document transmission module:It is taken according to upgrade maintenance Business device end routine denotation, then call run mode document upgrading application programming interfaces to rise upgrade maintenance server Grade.
Optionally, the upgrade file cryptograph files are transferred to server memory by the run mode document transmission module Buffer area;
Upgrade file cryptograph files in the server memory buffer area are decrypted school by the file decryption correction verification module It tests, after examining successfully, the program file after content write-in is born the same name will be decrypted.
Optionally, the upgrade maintenance service end system further includes:
Upgrade script management module, receives the multiple application program or mark that file all upgrades successfully, passes through institute The upgrade script cryptograph files that file decryption correction verification module decrypts the multiple application program or file are stated, and according to the liter of acquisition Grade script file is updated the upgrade script of the server internal;
The service is written in the version number of multiple application programs or file in the upgrade package by version information management module Corresponding multiple application programs or file inside device.
Optionally, the upgrade maintenance service end system, further includes:
Inoperative state document transmission module, to not actuated executable file, related library file, third party's management tool, The transmission of static file;
Auxiliary device firmware transmission module is transmitted auxiliary device bottom firmware program;
Auxiliary device upgraded module, upgrades auxiliary device;
Resource management module is responsible for correlation bottom hardware operation.
According to a further aspect of the invention, a kind of tax control server, including:
Program setup module sets upgrade maintenance serve end program inside tax control server;
Program runs module, runs the upgrade maintenance serve end program;
Transceiver module to upgrade package of the tax control central server request with authority, and receives described carry and authorizes The upgrade package of file;
Upgrade maintenance serve end program calling module calls the upgrade maintenance serve end program to described literary with authorizing The upgrade package of part is handled, and completes the upgrading of the tax control server internal applications.
The present invention has the advantages that by using above-mentioned technical proposal:
The present invention by handling the upgrade package for carrying authority, obtain multiple application programs for needing to upgrade or File is targetedly upgraded to carry out application program or file, avoids the replacement to entire application file system;This hair The bright upgrade package by carrying authority to tax control central server, tax control central server can be managed collectively tax control service The upgrading of device application;Upgrade package of the present invention with authority includes multiple application programs or file, can be to multiple applications Program or file are upgraded, and include the version number of multiple application programs or file in the upgrade package of authority, are being carried out Before upgrading, to the version numbers of application programs multiple in upgrade package or file and the multiple application programs of server internal or file Version number is matched, and can avoid the unmatched problem of version;The present invention by according to the upgrade script file of acquisition to institute The upgrade script for stating server internal is updated, and can realize and newly-increased application program is upgraded from scratch.
Description of the drawings
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by::
Fig. 1 is the more application upgrade method flow diagrams of one embodiment of the invention;
Fig. 2 is the more application upgrade method flow diagrams of another embodiment of the present invention;
Fig. 3 is one key upgrade method flow chart of one embodiment of the invention;
Fig. 4 is one embodiment of the invention upgrade maintenance service end system structure chart;
Fig. 5 is one embodiment of the invention tax control server system construction drawing.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to attached drawing, however, the present invention can use many different shapes Formula is implemented, and be not limited to the embodiment described herein, and to provide these embodiments be to disclose at large and fully The present invention, and fully convey the scope of the present invention to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached Icon is remembered.
Unless otherwise indicated, term used herein has person of ordinary skill in the field (including scientific and technical terminology) It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its The linguistic context of related field has consistent meaning, and is not construed as Utopian or too formal meaning.
Embodiment one
As shown in Figure 1, a kind of more application upgrade methods in the embodiment of the present invention, including:
S100 receives the upgrade package with authority;
S200, opens the upgrade package for carrying authority, and verification, solution are separated by decantation to multiple application programs or file Upgrade file cryptograph files, authority cryptograph files, upgrade script cryptograph files, extract the multiple application program or file Version number and edition compatibility information table;
S300 obtains the version number of the multiple application programs of server internal or file;
S400, by multiple applications in the version number of the multiple application programs of the server internal or file and the upgrade package The version number of program or file is matched according to the edition compatibility information table;
S500 if successful match, calls the application programming interfaces of the multiple application program or file to be upgraded.
In the present embodiment, the upgrade package with authority by authority, multiple application files, upgrade script, Edition compatibility information table forms, and internal file is packaged encapsulation by encryption, it can be ensured that the safety of upgrade file.
In step s 200, the upgrade package with authority is packaged by special canned software, passes through special envelope Dress software opens the upgrade package, isolates upgrade file cryptograph files, the authority ciphertext text of multiple application programs or file Part, upgrade script cryptograph files extract the version number of the multiple application program or file and edition compatibility information table.Wherein, Special canned software can ensure the safety of upgrade package.
In the present embodiment, server internal is equipped with multiple application programs or file in advance, and saves multiple applications The version number of program or file, the method being capable of multiple application programs or file progress to server internal through this embodiment Upgrading.
In the present embodiment, the application programming interfaces of the multiple application program or file is called to be upgraded, wherein described The application programming interfaces of multiple application programs or file are located at application layer, and upgrade maintenance serve end program needs to send to application layer The instruction of the application programming interfaces of the multiple application program of request call or file, the multiple application program of application layer or text The application programming interfaces of part send the multiple application program or the upgrade file ciphertext of file to upgrade maintenance serve end program File, authority cryptograph files, upgrade script cryptograph files.
As one preferred embodiment of the invention, further included after the step S200:
Decryption and authorization file cipher text file obtains upgrading authority;
If with upgrading authority, step S300 is performed;
If without upgrading authority, the multiple application programs or the upgrade file ciphertext text of file isolated described in deletion Part, authority cryptograph files, upgrade script cryptograph files.
In the present embodiment, the upgrading authority includes:Upgrade term of validity, upgrade user right, IC card permission, USBKEY Permission.Wherein, upgrading term of validity is current date within term of validity, then with upgrading authority, does not otherwise have upgrading power Limit;Upgrading user right refer to by set some users have upgrading authority, only when the user with upgrading authority into It can be upgraded during row upgrading;IC card permission, USBKEY permissions are referred to be risen by being inserted into IC card, USBKEY Grade permission.
In the present embodiment, by the judgement to upgrading authority, expired upgrade package is deleted.
As one preferred embodiment of the invention, include after the step S300:
Judge whether upgrade maintenance server mark;
If there are the upgrade maintenance server mark, run mode document upgrading application programming interfaces pair are called Upgrade maintenance server is upgraded;
If there is no the upgrade maintenance server marks, step S400 is performed.
In the present embodiment, by the technical solution, the upgrading in itself to upgrade maintenance server can be realized.
As one preferred embodiment of the invention, include after the step S500:
Judge whether the multiple application program or file all upgrade successfully;
If so, the upgrade script cryptograph files of the multiple application program or file are decrypted, and according to the upgrading of acquisition Script file is updated the upgrade script of the server internal;
Journey is applied according to multiple in the upgrade package to the version number of the multiple application programs of the server internal or file The version number of sequence or file is updated.
In the present embodiment, multiple application programs or document upgrading success after, can feed back and upgrade successfully mark, according to upgrade into Work(mark is capable of deciding whether that all application programs or file upgrade successfully, if all application programs or file upgrade Success carries out the upgrade script update of server internal and the update of the version number of the multiple application programs of server internal or file again. Wherein, be not that each application program or file have upgrade script file in upgrade package, it according to the needs of system and Setting, when new an application program or file are upgraded from scratch, upgrade package can be attached to the new application program Or the upgrade script file of file, after all application programs or document upgrading success, by the new application program or file Upgrade script file be added in the upgrade script of server internal, in next starting up, updated liter can be started Grade script, automatically opens the new application program or file, upgrades from scratch so as to fulfill new application program or file.
A kind of more application upgrade methods can be used in tax control server in the embodiment of the present invention, ensure that tax control server mostly should It is safeguarded with safety upgrade, saves O&M spending, reduces and safeguard complexity.
Embodiment two
As shown in Fig. 2, a kind of more application upgrade methods of tax control server in the embodiment of the present invention, including:
S001 sets upgrade maintenance serve end program inside tax control server;
S002 runs the upgrade maintenance serve end program;
S003, to upgrade package of the tax control central server request with authority;
S004 receives the upgrade package for carrying authority;
S005 calls the upgrade maintenance serve end program to handle the upgrade package with authority, complete Into the upgrading of the tax control server internal applications.
In step S001, upgrade maintenance serve end program is set for rising inside tax control server by developing instrument Grade needs.
In the present embodiment, the upgrading of tax control central server unified management tax control server does not need to adjust by opening Upgrading is completed in try mouth (such as serial ports) or opening network service (such as TFTP, FTP, SSH, NFS), ensure that upgrading safety and The difficulty of maintenance.
In the present embodiment, the upgrade package with authority by authority, multiple application files, upgrade script, Edition compatibility information table forms, and internal file is packaged encapsulation by encryption, it can be ensured that the safety of upgrade file.In step In S005, upgrade maintenance serve end program is handled the upgrade package with authority i.e. using shown in embodiment one Method multiple application programs or file are upgraded.
Embodiment three
Fig. 3 is one key upgrade method flow chart of one embodiment of the invention, and the present invention is by a specific embodiment come to more Application upgrade method illustrates.
Step S3001, opens the upgrade package for carrying authority, verification, solution be separated by decantation to multiple application programs or Upgrade file cryptograph files, authority cryptograph files, the upgrade script cryptograph files of file obtain edition compatibility information table, And decryption and authorization file cipher text file.
Step S3002 reads onboard clock chip clock API, and the upgrading for obtaining the upgrade package with authority is effective Time limit.Wherein, API (Application Program Interface, application programming interfaces) of the present invention, onboard clock chip Clock API saves the upgrading term of validity of the upgrade package.
Step S3003, authority verification.
The step is used to judge the upgrade package with authority whether within term of validity, if in term of validity It is interior, perform step S3004;If not within term of validity, step 3006 is performed.
Step S3004 extracts the version number of the multiple application program or file and edition compatibility information table, calls upgrading Judge API, obtain the version number of the multiple application programs of server internal or file.
Step S3005 judges whether upgrade maintenance server mark.
The step is obtained the upgrade maintenance server end in the upgrade package with authority by version information management module Routine denotation, if performing step S3007 there are upgrade maintenance server mark in the upgrade package;If the upgrade package Interior there is no upgrade maintenance server marks, then perform step S3008.
Step S3006 deletes the upgrade file cryptograph files isolated, authority cryptograph files, script file ciphertext File.
Execution of step S3006, then terminate.
Step S3007 calls run mode program upgrading API, completes the upgrading of upgrade maintenance server.
The step is the upgrading to upgrade maintenance server in itself.Execution of step S3006, then perform step S3010。
Step S3008 judges upgrading later with the presence or absence of more application version mismatch problems.
The step is used for more unmatched problems of application version after settlement server internal upgrade, if upgrading is applied more later Mismatch problem is not present in version, then performs step S3009;If there are mismatch problems for more application versions after upgrading, tie Beam.
Step S3009 according to file in upgrade package, calls corresponding upgrading API, completes multiple utility program or file liter Grade.
Upgrade API in the step to include:Upgrading judges API, run mode document upgrading API, inoperative state document upgrading API, sub- equipment firmware document upgrading API, version updating API, upgrade script update API.
Step S3010, judges whether application program or file all upgrade successfully.
According to step S3010, if application program or file all upgrade successfully, step S3011 is performed;If application program Or file does not upgrade successfully all, then terminates.
Step S3011 calls upgrade script update API, updates upgrade script.
Step S3012 calls version write-in API, multiple application programs is written or file corresponds to version number, restart server Order.
After step S3012, then terminate.
By handling the upgrade package for carrying authority in the embodiment of the present invention, obtaining need to upgrade multiple should With program or file, targetedly upgraded to carry out application program or file, avoided to entire application file system It replaces;Upgrade package of the present invention with authority includes multiple application programs or file, can be to multiple application programs or text Part is upgraded, and includes the version number of multiple application programs or file in the upgrade package of authority, before being upgraded, To the version numbers of application programs multiple in upgrade package or file and the version number of the multiple application programs of server internal or file into Row matching, can avoid the unmatched problem of version;The present invention by according to the upgrade script file of acquisition to the server Internal upgrade script is updated, and can realize and newly-increased application program is upgraded from scratch.
Example IV
As shown in figure 4, based on above method embodiment, a kind of upgrade maintenance service end system in the embodiment of the present invention, packet It includes:
Receiving module receives the upgrade package with authority;
Upgrade package unpacking module 4000, opens the upgrade package for carrying authority, and verification, solution are separated by decantation to multiple answer With the upgrade file cryptograph files of program or file, authority cryptograph files, upgrade script cryptograph files and the multiple Application program or the version number of file and edition compatibility information table;
Command analysis module 4008 receives application layer command word and parameter, corresponding according to the command word and parameter call Function module;
File decryption correction verification module 4013, upgrade file cryptograph files, mandate to the multiple application program or file File cipher text file, upgrade script cryptograph files are decrypted and verify;
Version information management module 4009 extracts the version number of the multiple application program or file and edition compatibility information Table and the version number for obtaining the multiple application programs of server internal or file;
The version information management module 4009, by the version number of the multiple application programs of the server internal or file with The version number of multiple application programs or file in the upgrade package is matched according to the edition compatibility information table;
If the version information management module 4009 obtain successful match as a result, if the function module call it is described more The application programming interfaces of a application program or file are upgraded.
In the present embodiment, function module includes:Version information management module 4009, upgrade script management module 4014, fortune Row state document transmission module 4010, inoperative state document transmission module 4011, auxiliary device firmware file transmission module 4012.
Wherein, the application programming interfaces of application program or file include:Upgrading judges API 4001, run mode document upgrading API 4002, inoperative state document upgrading API 4003, sub- equipment firmware document upgrading API 4004, version updating API 4005, upgrade script update API 4006.
Upgrading judges API 4001, extracts the version number of the multiple application program or file and edition compatibility information table, The version number of the multiple application programs of server internal or file is obtained, judges that upgrading mismatches later with the presence or absence of more application versions Problem.
Run mode document upgrading API 4002 upgrades the program being currently running.
Inoperative state document upgrading API 4003 rises non-executable file file or the current program not run Grade such as upgrades not actuated executable file, related library file, third party's management tool, static file.
Sub- equipment firmware document upgrading API 4004, upgrades auxiliary device firmware program.
Upgrade script updates API 4006, receives the multiple application program or mark that file all upgrades successfully, solution The upgrade script cryptograph files of close the multiple application program or file, and according to the upgrade script file of acquisition to the service Upgrade script inside device is updated.
The service is written in the version number of multiple application programs or file in the upgrade package by version updating API 4005 Corresponding multiple application programs or file inside device.
As the preferred embodiment of the present invention, the upgrade maintenance service end system further includes:
The file decryption correction verification module 4013, decryption and authorization file cipher text file obtains upgrading authority, and judges whether With upgrading authority;
If with upgrading authority, the version information management module 4009, by the multiple application programs of the server internal Or the version number of multiple application programs or file in the version number of file and the upgrade package, according to the edition compatibility information table It is matched;
If without upgrading authority, the upgrade package unpacks module 4000, and that is isolated described in deletion is multiple using journey The upgrade file cryptograph files of sequence or file, authority cryptograph files, upgrade script cryptograph files.
In the present embodiment, the upgrading authority includes:Upgrade term of validity, upgrade user right, IC card permission, USBKEY Permission.Wherein, upgrading term of validity is current date within term of validity, then with upgrading authority, does not otherwise have upgrading power Limit;Upgrading user right refer to by set some users have upgrading authority, only when the user with upgrading authority into It can be upgraded during row upgrading;IC card permission, USBKEY permissions are referred to be risen by being inserted into IC card, USBKEY Grade permission.
As the preferred embodiment of the present invention, the upgrade maintenance service end system further includes:Run mode file transmits Module 4010:According to upgrade maintenance server mark, then run mode document upgrading application programming interfaces are called to upgrading Safeguard service device end program is upgraded.
In the present embodiment, the upgrade file cryptograph files are transferred to server by run mode document transmission module 4010 Internal memory cache region;File decryption correction verification module 4013, by the upgrade file cryptograph files solution in the server memory buffer area Close verification after examining successfully, will decrypt the program file after content write-in is born the same name.
As the preferred embodiment of the present invention, the upgrade maintenance service end system further includes:Upgrade script manages mould Block 4014, receives the multiple application program or mark that file all upgrades successfully, passes through the file decryption correction verification module The upgrade script cryptograph files of 4013 the multiple application programs of decryption or file, and according to the upgrade script file of acquisition to institute The upgrade script for stating server internal is updated;Version information management module 4009 applies journey by multiple in the upgrade package The corresponding multiple application programs of the server internal or file is written in the version number of sequence or file.
In the present embodiment, the program file after duplication of name is to the interim name of program file, and program file passes in order to prevent Defeated process goes wrong, after program file verification, transmission, checking procedure is waited for complete, that is, after determining that program file is correct, The old file name of recovery routine file.Auxiliary device refers to connect special slave device on an operating system, can be USB connections Mode or PCIE connection modes, wherein, auxiliary device includes safety chip;Firmware program is the necessary journey of auxiliary device operation Sequence.Bottom hardware includes SSD (Solid State Disk, solid state disk) solid-state disk file read-write operations, internal memory operation, secret key Algorithm chip operation etc..
As the preferred embodiment of the present invention, the upgrade maintenance service end system further includes:Inoperative state file passes Defeated module 4011, the transmission to not actuated executable file, related library file, third party's management tool, static file;It is attached Equipment firmware transmission module 4012 is transmitted auxiliary device bottom firmware program;Auxiliary device firmware upgrade module 4013, Sub- equipment firmware document upgrading API 4004 is called to upgrade auxiliary device firmware;Resource management module 4016 is responsible for phase Close bottom hardware operation.
Embodiment five
According to another aspect of the present invention, a kind of tax control server 5000, including:
Program setup module 5001 sets upgrade maintenance serve end program inside tax control server;
Program runs module 5002, runs the upgrade maintenance serve end program;
Transceiver module 5003 to upgrade package of the tax control central server request with authority, and carries described in reception The upgrade package of authority;
Upgrade maintenance serve end program calling module 5004 calls the upgrade maintenance serve end program to award described carry The upgrade package of power file is handled, and completes the upgrading of the tax control server internal applications.
In the present embodiment, the upgrading of tax control central server unified management tax control server does not need to adjust by opening Upgrading is completed in try mouth (such as serial ports) or opening network service (such as TFTP, FTP, SSH, NFS), ensure that upgrading safety and The difficulty of maintenance.
In the present embodiment, the upgrade package with authority by authority, multiple application files, upgrade script, Edition compatibility information table forms, and internal file is packaged encapsulation by encryption, it can be ensured that the safety of upgrade file.Upgrade maintenance Serve end program is handled the upgrade package with authority i.e. using method shown in embodiment one, is carried out to multiple Application program or file are upgraded.
The present invention is intended to provide a kind of more application upgrade method and systems, by being carried out to the upgrade package for carrying authority Processing obtains the multiple application programs for needing to upgrade or file, is targetedly upgraded to carry out application program or file, Avoid the replacement to entire application file system;Upgrade package of the present invention with authority includes multiple application programs or text Part can upgrade multiple application programs or file, and include multiple application programs or text in the upgrade package of authority The version number of part, it is more to the version number and server internal of application programs multiple in upgrade package or file before being upgraded The version number of a application program or file is matched, and can avoid the unmatched problem of version;The present invention passes through according to acquisition Upgrade script file the upgrade script of the server internal is updated, can realize to newly-increased application program from without to Some upgradings.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as What subsidiary Patent right requirement was limited, in addition to the present invention other embodiments disclosed above are equally fallen the present invention's In the range of.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one of described device, component etc. example is construed to, unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.

Claims (14)

  1. A kind of 1. more application upgrade methods, which is characterized in that including:
    S100 receives the upgrade package with authority;
    S200, opens the upgrade package for carrying authority, and verification, solution are separated by decantation to the upgrading of multiple application programs or file File cipher text file, authority cryptograph files, upgrade script cryptograph files extract the multiple application program or the version of file This number and edition compatibility information table;
    S300 obtains the version number of the multiple application programs of server internal or file;
    S400, by multiple application programs in the version number of the multiple application programs of the server internal or file and the upgrade package Or the version number of file, it is matched according to the edition compatibility information table;
    S500 if successful match, calls the application programming interfaces of the multiple application program or file to be upgraded.
  2. 2. more application upgrade methods according to claim 1, wherein, it is further included after the step S200:
    Decryption and authorization file cipher text file obtains upgrading authority;
    If with upgrading authority, step S300 is performed;
    If without upgrading authority, delete described in the upgrade file cryptograph files of multiple application programs for isolating or file, Authority cryptograph files, upgrade script cryptograph files.
  3. 3. more application upgrade methods according to claim 2, wherein, the upgrading authority includes:Upgrade term of validity, rise Grade user right, IC card permission, USBKEY permissions.
  4. 4. more application upgrade methods according to claim 1, wherein, include after the step S300:
    Judge whether upgrade maintenance server mark;
    If there are the upgrade maintenance server mark, run mode document upgrading application programming interfaces are called to upgrading Safeguard service device end program is upgraded;
    If there is no the upgrade maintenance server marks, step S400 is performed.
  5. 5. more application upgrade methods according to claim 1, wherein, include after the step S500:
    Judge whether the multiple application program or file all upgrade successfully;
    If so, the upgrade script cryptograph files of the multiple application program or file are decrypted, and according to the upgrade script of acquisition File is updated the upgrade script of the server internal;
    To the version number of the multiple application programs of the server internal or file according to multiple application programs in the upgrade package or The version number of file is updated.
  6. A kind of 6. more application upgrade methods of tax control server, which is characterized in that including:
    S001 sets upgrade maintenance serve end program inside tax control server;
    S002 runs the upgrade maintenance serve end program;
    S003, to upgrade package of the tax control central server request with authority;
    S004 receives the upgrade package for carrying authority;
    S005 calls the upgrade maintenance serve end program to handle the upgrade package with authority, completes institute State the upgrading of tax control server internal applications.
  7. 7. a kind of upgrade maintenance service end system, which is characterized in that including:
    Receiving module receives the upgrade package with authority;
    Upgrade package unpacks module, opens the upgrade package for carrying authority, verification, solution be separated by decantation to multiple application programs or Upgrade file cryptograph files, authority cryptograph files, upgrade script cryptograph files and the multiple application program of file Or the version number of file and edition compatibility information table;
    Command analysis module receives application layer command word and parameter, according to the command word and the corresponding function mould of parameter call Block;
    File decryption correction verification module, upgrade file cryptograph files, authority ciphertext to the multiple application program or file File, upgrade script cryptograph files are decrypted and verify;
    Version information management module is extracted the version number of the multiple application program or file and edition compatibility information table and is obtained Take the version number of the multiple application programs of server internal or file;
    The version information management module, by the version number of the multiple application programs of the server internal or file and the upgrading The version number of multiple application programs or file in packet is matched according to the edition compatibility information table;
    If the version information management module obtain successful match as a result, if the function module call and the multiple apply journey The application programming interfaces of sequence or file are upgraded.
  8. 8. upgrade maintenance service end system according to claim 7 further includes:
    The file decryption correction verification module, decryption and authorization file cipher text file obtain upgrading authority, and judge whether there is upgrading Permission;
    If with upgrading authority, the version information management module, by the multiple application programs of the server internal or file Version number and the version number of multiple application programs or file in the upgrade package, according to edition compatibility information table progress Match;
    If without upgrading authority, the upgrade package unpacks module, the multiple application programs isolated described in deletion or file Upgrade file cryptograph files, authority cryptograph files, upgrade script cryptograph files.
  9. 9. upgrade maintenance service end system according to claim 8, wherein, the upgrading authority includes:Upgrade term of validity, Upgrade user right, IC card permission, USBKEY permissions.
  10. 10. upgrade maintenance service end system according to claim 7 further includes:Run mode document transmission module:According to upgrading Safeguard service device end routine denotation, then call run mode document upgrading application programming interfaces to upgrade maintenance server into Row upgrading.
  11. 11. upgrade maintenance service end system according to claim 10, wherein,
    The upgrade file cryptograph files are transferred to server memory buffer area by the run mode document transmission module;
    Upgrade file cryptograph files in the server memory buffer area are decrypted verification by the file decryption correction verification module, After examining successfully, the program file after content write-in is born the same name will be decrypted.
  12. 12. upgrade maintenance service end system according to claim 7 further includes:
    Upgrade script management module, receives the multiple application program or mark that file all upgrades successfully, passes through the text Part decryption correction verification module decrypts the upgrade script cryptograph files of the multiple application program or file, and according to the upgrading foot of acquisition This document is updated the upgrade script of the server internal;
    The version number of multiple application programs or file in the upgrade package is written in the server version information management module The corresponding multiple application programs in portion or file.
  13. 13. upgrade maintenance service end system according to claim 7 further includes:
    Inoperative state document transmission module, to not actuated executable file, related library file, third party's management tool, static state The transmission of file;
    Auxiliary device firmware transmission module is transmitted auxiliary device bottom firmware program;
    Auxiliary device upgraded module, upgrades auxiliary device;
    Resource management module is responsible for correlation bottom hardware operation.
  14. 14. a kind of tax control server, which is characterized in that including:
    Program setup module sets upgrade maintenance serve end program inside tax control server;
    Program runs module, runs the upgrade maintenance serve end program;
    Transceiver module to upgrade package of the tax control central server request with authority, and receives described with authority Upgrade package;
    Upgrade maintenance serve end program calling module calls the upgrade maintenance serve end program to described with authority Upgrade package is handled, and completes the upgrading of the tax control server internal applications.
CN201611258890.1A 2016-12-30 2016-12-30 A kind of more application upgrade method and systems Pending CN108270806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611258890.1A CN108270806A (en) 2016-12-30 2016-12-30 A kind of more application upgrade method and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611258890.1A CN108270806A (en) 2016-12-30 2016-12-30 A kind of more application upgrade method and systems

Publications (1)

Publication Number Publication Date
CN108270806A true CN108270806A (en) 2018-07-10

Family

ID=62754743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611258890.1A Pending CN108270806A (en) 2016-12-30 2016-12-30 A kind of more application upgrade method and systems

Country Status (1)

Country Link
CN (1) CN108270806A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743174A (en) * 2018-12-21 2019-05-10 积成电子股份有限公司 The monitoring and managing method that electric power monitoring security management and control system program updates
CN110795121A (en) * 2019-09-27 2020-02-14 北京浪潮数据技术有限公司 Virtualization system upgrading method, device, equipment and computer readable storage medium
CN111338667A (en) * 2020-02-10 2020-06-26 浙江大华技术股份有限公司 Upgrading method and upgrading device for application program APP
CN112764803A (en) * 2021-01-20 2021-05-07 青岛海尔科技有限公司 Version upgrading method and device, storage medium and electronic device
CN112860283A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment
CN113079141A (en) * 2021-03-23 2021-07-06 贵州航天云网科技有限公司 Network security situation perception system and method based on artificial intelligence
CN113407215A (en) * 2021-06-29 2021-09-17 山东新一代信息产业技术研究院有限公司 Automatic operation and maintenance method and system based on multi-node server mode
CN113672256A (en) * 2021-08-03 2021-11-19 东莞新能安科技有限公司 Processing method and server of executable file, software upgrading method and client

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136770A (en) * 2006-10-13 2008-03-05 中兴通讯股份有限公司 Automatically updating method and apparatus for telecom multi-branch network management system
CN101751730A (en) * 2008-12-10 2010-06-23 航天信息股份有限公司 Safety operating platform of tax-controlling device
CN101907996A (en) * 2010-07-30 2010-12-08 浪潮齐鲁软件产业有限公司 Remote update method of fiscal cash register
CN101984691A (en) * 2010-10-25 2011-03-09 东莞宇龙通信科技有限公司 Upgrading method of system built-in software and mobile terminal
CN102541596A (en) * 2011-12-22 2012-07-04 中标软件有限公司 Operating system upgrading method and device
CN102932777A (en) * 2012-10-24 2013-02-13 华为终端有限公司 Method for updating terminal application and user terminal
CN103136002A (en) * 2011-11-25 2013-06-05 航天信息股份有限公司 Automatic upgrade control method based on UBoot instruction and system
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN103701856A (en) * 2013-11-29 2014-04-02 四川长虹电器股份有限公司 Method for defining and acquiring upgrade package of terminal equipment
CN104464114A (en) * 2014-12-11 2015-03-25 上海富友支付服务有限公司 System and method for managing and monitoring safety of application of financial terminals
US20150121358A1 (en) * 2009-06-04 2015-04-30 Abbott Diabetes Care Inc. Method and System for Updating a Medical Device
CN105656859A (en) * 2014-11-18 2016-06-08 航天信息股份有限公司 Secure online upgrade method and system for tax control equipment software
CN106160852A (en) * 2016-09-29 2016-11-23 武汉虹信通信技术有限责任公司 The network system of a kind of transmission equipment and remote upgrade method thereof
CN106201578A (en) * 2016-06-25 2016-12-07 国云科技股份有限公司 A kind of software system more new frame

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136770A (en) * 2006-10-13 2008-03-05 中兴通讯股份有限公司 Automatically updating method and apparatus for telecom multi-branch network management system
CN101751730A (en) * 2008-12-10 2010-06-23 航天信息股份有限公司 Safety operating platform of tax-controlling device
US20150121358A1 (en) * 2009-06-04 2015-04-30 Abbott Diabetes Care Inc. Method and System for Updating a Medical Device
CN101907996A (en) * 2010-07-30 2010-12-08 浪潮齐鲁软件产业有限公司 Remote update method of fiscal cash register
CN101984691A (en) * 2010-10-25 2011-03-09 东莞宇龙通信科技有限公司 Upgrading method of system built-in software and mobile terminal
CN103136002A (en) * 2011-11-25 2013-06-05 航天信息股份有限公司 Automatic upgrade control method based on UBoot instruction and system
CN102541596A (en) * 2011-12-22 2012-07-04 中标软件有限公司 Operating system upgrading method and device
CN102932777A (en) * 2012-10-24 2013-02-13 华为终端有限公司 Method for updating terminal application and user terminal
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN103701856A (en) * 2013-11-29 2014-04-02 四川长虹电器股份有限公司 Method for defining and acquiring upgrade package of terminal equipment
CN105656859A (en) * 2014-11-18 2016-06-08 航天信息股份有限公司 Secure online upgrade method and system for tax control equipment software
CN104464114A (en) * 2014-12-11 2015-03-25 上海富友支付服务有限公司 System and method for managing and monitoring safety of application of financial terminals
CN106201578A (en) * 2016-06-25 2016-12-07 国云科技股份有限公司 A kind of software system more new frame
CN106160852A (en) * 2016-09-29 2016-11-23 武汉虹信通信技术有限责任公司 The network system of a kind of transmission equipment and remote upgrade method thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743174A (en) * 2018-12-21 2019-05-10 积成电子股份有限公司 The monitoring and managing method that electric power monitoring security management and control system program updates
CN110795121A (en) * 2019-09-27 2020-02-14 北京浪潮数据技术有限公司 Virtualization system upgrading method, device, equipment and computer readable storage medium
CN112860283A (en) * 2019-11-12 2021-05-28 深圳怡化电脑股份有限公司 Self-identification upgrading method and device of SP (service provider) upgrading package and computer equipment
CN112860283B (en) * 2019-11-12 2024-04-02 深圳怡化电脑股份有限公司 SP upgrade package self-identification upgrade method and device and computer equipment
CN111338667A (en) * 2020-02-10 2020-06-26 浙江大华技术股份有限公司 Upgrading method and upgrading device for application program APP
CN111338667B (en) * 2020-02-10 2023-08-01 浙江大华技术股份有限公司 Application program APP upgrading method and device
CN112764803A (en) * 2021-01-20 2021-05-07 青岛海尔科技有限公司 Version upgrading method and device, storage medium and electronic device
CN113079141A (en) * 2021-03-23 2021-07-06 贵州航天云网科技有限公司 Network security situation perception system and method based on artificial intelligence
CN113407215A (en) * 2021-06-29 2021-09-17 山东新一代信息产业技术研究院有限公司 Automatic operation and maintenance method and system based on multi-node server mode
CN113672256A (en) * 2021-08-03 2021-11-19 东莞新能安科技有限公司 Processing method and server of executable file, software upgrading method and client

Similar Documents

Publication Publication Date Title
CN108270806A (en) A kind of more application upgrade method and systems
US9049194B2 (en) Methods and systems for internet security via virtual software
TWI537765B (en) On-board applet migration
CN101571900B (en) Software copyright protection method, device and system
US8612742B2 (en) Method of authentication at time of update of software embedded in information terminal, system for same and program for same
CN103080946B (en) For managing the method for file, safety equipment, system and computer program safely
EP2919413A2 (en) Data security verification method and device
US20130007465A1 (en) Apparatus, Systems and Method for Virtual Desktop Access and Management
CN103839011B (en) The guard method of confidential document and device
CN104733008A (en) Mobile storage equipment capable of realizing cloud storage based on fingerprint identification
WO2007056476A2 (en) Device providing a secure work environment and utilizing a virtual interface
CN106796619B (en) Genomic information services
CN101669125A (en) Method and system for authenticating a user
US8863241B2 (en) System and method for managing usage rights of software applications
CN103873241B (en) safety shield, digital certificate management system and method
CN104135531B (en) A kind of upgrade method and device of Web softwares
KR20170133307A (en) Online financial transactions, identity authentication system and method using real cards
US20130232337A1 (en) User terminal and method for playing digital rights management content
CN113014393B (en) Password safe box system based on hardware encryption and application method
EP3193262A1 (en) Database operation method and device
CN105187447B (en) A kind of terminal security login method
KR101625065B1 (en) User authentification method in mobile terminal
CN105208031B (en) A kind of terminal authentication method
US8499333B2 (en) Secure device feature unlock mechanism third party development
CN108270741A (en) Mobile terminal authentication method 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180710