CN110908694A - Hot updating system and method for electronic bidding client application - Google Patents

Hot updating system and method for electronic bidding client application Download PDF

Info

Publication number
CN110908694A
CN110908694A CN201911127779.2A CN201911127779A CN110908694A CN 110908694 A CN110908694 A CN 110908694A CN 201911127779 A CN201911127779 A CN 201911127779A CN 110908694 A CN110908694 A CN 110908694A
Authority
CN
China
Prior art keywords
script code
local
code file
latest
file
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
CN201911127779.2A
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.)
Zheng Wei Yun Ltd
Original Assignee
Zheng Wei Yun 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 Zheng Wei Yun Ltd filed Critical Zheng Wei Yun Ltd
Priority to CN201911127779.2A priority Critical patent/CN110908694A/en
Publication of CN110908694A publication Critical patent/CN110908694A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Abstract

A hot updating system and method for electronic bidding client application belongs to the technical field of software upgrading and updating. The invention solves the problem that the software upgrading or updating speed is slow in the existing method. The invention realizes the synchronization of the local script code file and the latest script code file by using a hot updating method, thereby completing the upgrading and updating of software. When the hot update operation is carried out, the hot update is carried out only according to the difference between the local script code file and the latest script code file, the local script code file of the client can be quickly updated as required, compared with the full-amount replacement strategy of the existing method, the method reduces a lot of unnecessary update amount, and improves the speed of upgrading or updating the software by more than 30%. The invention can be applied to the upgrading and updating of software.

Description

Hot updating system and method for electronic bidding client application
Technical Field
The invention belongs to the technical field of software upgrading and updating, and particularly relates to a hot updating system and method for electronic bidding client application.
Background
When a series of problems such as some idiopathic bugs on the line or the change of software functions caused by some reasons occur to the software, the software needs to be upgraded or updated. The existing software upgrading or updating method comprises the following steps: and prompting the software version upgrading on a software login interface, and downloading and reinstalling the software by a user through a prompting function. Although the mode can realize the upgrading or updating of the software version, the whole content of the software is updated, and the upgrading or updating speed is slow.
Disclosure of Invention
The invention aims to solve the problem that the software upgrading or updating speed is low in the existing method, and provides a hot updating system and method for an electronic bidding client application.
The technical scheme adopted by the invention for solving the technical problems is as follows:
based on one aspect of the invention, the hot updating system applied by the electronic bidding client comprises the electronic bidding client, a local script code module, a local data read-write module, a local static library module and a latest code library module, wherein:
the interface of the local script code module is respectively linked with the interface of the local static library module and the interface of the local data read-write module;
the electronic bidding client is linked with the interface of the local script code module, and the local script code module is synchronous with the codes of the latest code base module.
Based on another aspect of the invention, the electronic bidding client comprises a login page, and after a user enters the login page, the access service checks whether the current version is the latest version;
if the current version is the latest version, continuing the login operation;
if the current version is not the latest version, further checking whether the electronic bidding client of the latest version on the line needs to be completed by downloading and reinstalling;
if the downloading and the reinstalling are needed to complete, the downloading and the reinstalling are carried out; after the installation is finished, the electronic bidding client is opened again, and the login operation is continued after the electronic bidding client enters a login page;
and if the operation is not required to be completed by downloading and reinstalling, performing hot updating operation, and continuing login operation after the hot updating operation is completed.
The invention has the beneficial effects that: the invention relates to a hot updating system and a hot updating method for an electronic bidding client application. When the hot update operation is carried out, the hot update is carried out only according to the difference between the local script code file and the latest script code file, the local script code file of the client can be quickly updated as required, compared with the full-amount replacement strategy of the existing method, the method reduces a lot of unnecessary update amount, and improves the speed of upgrading or updating the software by more than 30%.
Meanwhile, in the method of the invention, the user does not need to download and install again, and the non-perception version upgrading of the user can be realized.
Drawings
FIG. 1 is a topology diagram of a thermal update system of the present invention;
FIG. 2 is a logic diagram of an electronic bidding client for software upgrade or update in accordance with the present invention;
FIG. 3 is a flow chart of the hot refresh method of the present invention.
Detailed Description
The first embodiment is as follows: as shown in fig. 1, the thermal update system of an electronic bidding client application according to this embodiment includes an electronic bidding client, a local script code module, a local data read-write module, a local static library module, and an up-to-date code library module, where:
the interface of the local script code module is respectively linked with the interface of the local static library module and the interface of the local data read-write module;
the electronic bidding client is linked with the interface of the local script code module, and the local script code module is synchronous with the codes of the latest code base module.
In the present embodiment, the electronic bidding client is used for creating a bidding document during a bidding period of a supplier. In order to ensure the confidentiality of the label making process of the supplier, the client is required to support offline label making and adopt a C/S architecture to realize client application. The bidding client side is divided into three modules, a login page can support network communication, a bidding document list page can support network communication, and a bidding document making page needs to support off-line making.
The language of the script code file of the script code module includes an interpretive language such as html, js, and the like.
The second embodiment is as follows: the first difference between the present embodiment and the specific embodiment is: the local static library module is used for providing system services and third-party services for the hot update system.
The third concrete implementation mode: the second embodiment is different from the first embodiment in that: the system service comprises a file read-write service and a network communication service; the third party services include a CA driven login service and a signature processing service.
The fourth concrete implementation mode: the present embodiment differs from the first, second or third embodiment in that: the operation realized by the local script code module comprises inputting an account password and logic judgment; and the local script code module transmits the account password to the network request of the server by calling the local static library module.
The local script code module needs to rely on the local static library invocation module to provide the base capabilities.
The fifth concrete implementation mode: based on the hot updating method of the hot updating system of the electronic bidding client application, according to the first specific embodiment, after the latest code base module issues the latest code, the local script code module and the latest code base module perform code synchronization to complete the hot updating of the local script code file in the local script code module;
the electronic bidding client realizes the functions of the electronic bidding client through the local script code file in the local script code module.
The sixth specific implementation mode: as shown in fig. 2. The fifth embodiment is different from the fifth embodiment in that: the electronic bidding client comprises a login page, and after a user enters the login page, the access service checks whether the current version is the latest version;
if the current version is the latest version, continuing the login operation;
if the current version is not the latest version, further checking whether the electronic bidding client of the latest version on the line needs to be completed by downloading and reinstalling;
if the downloading and the reinstalling are needed to complete, the downloading and the reinstalling are carried out; after the installation is finished, the electronic bidding client is opened again, and the login operation is continued after the electronic bidding client enters a login page;
and if the operation is not required to be completed by downloading and reinstalling, performing hot updating operation, and continuing login operation after the hot updating operation is completed.
The upgrade of the bottom layer interface must be upgraded by downloading and installing again, and 80% of scenes are only that the upgrade on the service function can be completed by hot update.
The seventh embodiment: the sixth embodiment is different from the sixth embodiment in that: before the hot update operation is performed, file numbering needs to be performed on script code files in a local script code module, each script code file has a unique number corresponding to the unique number, and each number only corresponds to one unique script code file.
File number, i.e., file ID: the number used for carrying out the uniqueness confirmation on the script code file ensures that each script code file has a unique number. As the file ID, a Hash ID generated by the path of the file. The local code corresponds to the code of the online code library, and the file ID is consistent.
The specific implementation mode is eight: as shown in fig. 3. The seventh embodiment is different from the seventh embodiment in that: the code hot update operation specifically comprises the following steps:
the method comprises the following steps that firstly, an electronic bidding client downloads a latest script code file, Hash table processing is carried out on the downloaded latest script code file, namely, a HashMap container is set, the number of the latest script code file is used as a key value, the information of the latest script code file is used as a value, the key value and the value of the downloaded latest script code file are stored in the HashMap container, and a map set is generated;
the latest downloaded script code file is subjected to Hash table-punching processing, so that subsequent quick query can be facilitated. The script code file information includes script file contents, script file paths, and the like.
Step two, traversing the local script code file, and inquiring from the map set according to the file number of the traversed local script code file;
if the map set does not have the latest script code file with the same file number as the local script code file M, deleting the local script code file M;
if the map set has the latest script code file M1 with the same file number as the local script code file M, comparing the local script code file M with the latest script code file M1, and checking whether the content of the latest script code file M1 is changed compared with the local script code file M;
if not, then do not process;
if the script code file is changed, replacing the local script code file M with the latest script code file M1;
processing other local script code files in the same way;
step three, filtering out the latest script code file which is not inquired from the map set, and copying the filtered latest script code file to a local script code file directory of the electronic bidding client;
and completing the synchronization of the local script code file and the latest script code file, and finishing the hot updating operation.
The specific implementation method nine: the eighth embodiment is different from the eighth embodiment in that: the verification of whether the content of the latest script code file M1 changes compared with the local script code file M is realized by performing MD5 calculation (MD5 information digest algorithm) on the latest script code file M1 and the local script code file M.
The above-described calculation examples of the present invention are merely to explain the calculation model and the calculation flow of the present invention in detail, and are not intended to limit the embodiments of the present invention. It will be apparent to those skilled in the art that other variations and modifications of the present invention can be made based on the above description, and it is not intended to be exhaustive or to limit the invention to the precise form disclosed, and all such modifications and variations are possible and contemplated as falling within the scope of the invention.

Claims (9)

1. The utility model provides a hot update system of client application is bid to electron, its characterized in that, hot update system includes client, local script code module, local data read-write module, local static library module, the latest code library module of bid to the electron, wherein:
the interface of the local script code module is respectively linked with the interface of the local static library module and the interface of the local data read-write module;
the electronic bidding client is linked with the interface of the local script code module, and the local script code module is synchronous with the codes of the latest code base module.
2. The system of claim 1, wherein the local static library module is configured to provide system services and third party services for the hot-update system.
3. The system of claim 2, wherein the system services comprise a file read-write service and a network communication service; the third party services include a CA driven login service and a signature processing service.
4. A hot-update system for an electronic bidding client application according to claim 1, 2 or 3, wherein the operation implemented by the local script code module comprises inputting an account password and a logic judgment; and the local script code module transmits the account password to the network request of the server by calling the local static library module.
5. The thermal update method of the thermal update system of the electronic bid client application is characterized in that after the latest code base module issues the latest code, the local script code module and the latest code base module perform code synchronization to complete the thermal update of the local script code file in the local script code module;
the electronic bidding client realizes the functions of the electronic bidding client through the local script code file in the local script code module.
6. The method for hot updating of an electronic bidding client application according to claim 5, wherein the electronic bidding client comprises a login page, and when the user enters the login page, the access service checks whether the current version is the latest version;
if the current version is the latest version, continuing the login operation;
if the current version is not the latest version, further checking whether the electronic bidding client of the latest version on the line needs to be completed by downloading and reinstalling;
if the downloading and the reinstalling are needed to complete, the downloading and the reinstalling are carried out; after the installation is finished, the electronic bidding client is opened again, and the login operation is continued after the electronic bidding client enters a login page;
and if the operation is not required to be completed by downloading and reinstalling, performing hot updating operation, and continuing login operation after the hot updating operation is completed.
7. The method as claimed in claim 6, wherein before the hot update operation, the script code files in the local script code module are required to be numbered, each script code file has a unique number corresponding to it, and each number corresponds to only one script code file.
8. The method for hot update of an electronic bidding client application according to claim 7, wherein the code hot update operation specifically comprises the following steps:
the method comprises the following steps that firstly, an electronic bidding client downloads a latest script code file, Hash table processing is carried out on the downloaded latest script code file, namely, a HashMap container is set, the number of the latest script code file is used as a key value, the information of the latest script code file is used as a value, the key value and the value of the downloaded latest script code file are stored in the HashMap container, and a map set is generated;
step two, traversing the local script code file, and inquiring from the map set according to the file number of the traversed local script code file;
if the map set does not have the latest script code file with the same file number as the local script code file M, deleting the local script code file M;
if the map set has the latest script code file M1 with the same file number as the local script code file M, comparing the local script code file M with the latest script code file M1, and checking whether the content of the latest script code file M1 is changed compared with the local script code file M;
if not, then do not process;
if the script code file is changed, replacing the local script code file M with the latest script code file M1;
processing other local script code files in the same way;
step three, filtering out the latest script code file which is not inquired from the map set, and copying the filtered latest script code file to a local script code file directory of the electronic bidding client;
and completing the synchronization of the local script code file and the latest script code file, and finishing the hot updating operation.
9. The method of claim 8, wherein the checking whether the content of the latest script code file M1 is changed from the local script code file M is performed by performing MD5 calculation on the latest script code file M1 and the local script code file M.
CN201911127779.2A 2019-11-18 2019-11-18 Hot updating system and method for electronic bidding client application Pending CN110908694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911127779.2A CN110908694A (en) 2019-11-18 2019-11-18 Hot updating system and method for electronic bidding client application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911127779.2A CN110908694A (en) 2019-11-18 2019-11-18 Hot updating system and method for electronic bidding client application

Publications (1)

Publication Number Publication Date
CN110908694A true CN110908694A (en) 2020-03-24

Family

ID=69816856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911127779.2A Pending CN110908694A (en) 2019-11-18 2019-11-18 Hot updating system and method for electronic bidding client application

Country Status (1)

Country Link
CN (1) CN110908694A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581113A (en) * 2020-06-04 2020-08-25 网易(杭州)网络有限公司 File updating method and device, storage medium, processor and electronic device
CN115423578A (en) * 2022-09-01 2022-12-02 广东博成网络科技有限公司 Bidding method and system based on micro-service containerization cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device
CN106155729A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 The hot update method of Lua script, Apparatus and system
CN106227554A (en) * 2016-07-08 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method and apparatus carrying out applying heat renewal in ios system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155729A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 The hot update method of Lua script, Apparatus and system
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device
CN106227554A (en) * 2016-07-08 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method and apparatus carrying out applying heat renewal in ios system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZERONE羽: "Lua脚本热更新方案", 《HTTPS://BLOG.CSDN.NET/YUYINGWIN/ARTICLE/DETAILS/80105789/》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581113A (en) * 2020-06-04 2020-08-25 网易(杭州)网络有限公司 File updating method and device, storage medium, processor and electronic device
CN111581113B (en) * 2020-06-04 2023-10-27 网易(杭州)网络有限公司 File updating method and device, storage medium, processor and electronic device
CN115423578A (en) * 2022-09-01 2022-12-02 广东博成网络科技有限公司 Bidding method and system based on micro-service containerization cloud platform
CN115423578B (en) * 2022-09-01 2023-12-05 广东博成网络科技有限公司 Bid bidding method and system based on micro-service containerized cloud platform

Similar Documents

Publication Publication Date Title
CN108305072B (en) Method, apparatus, and computer storage medium for deploying a blockchain network
CN108111331B (en) Method, device, storage medium, processor and system for acquiring update data packet
CN102622241B (en) A kind of method for upgrading software and device
CN100580653C (en) Application programming interface for administering the distribution of software updates in an update distribution system
CN109787774B (en) Upgrade downloading method and device based on digital signature verification, server and terminal
CN101931647B (en) Three-tier architecture based method for optimizing incremental update of system data
US20090183145A1 (en) Techniques for reducing down time in updating applications with metadata
CN101546269B (en) System and method capable of executing file version updating
EP1105796A1 (en) Reconfiguration manager for controlling upgrades of electronic devices
WO2007130594A2 (en) Techniques to perform gradual upgrades
CN103188097A (en) Method, device and system achieving patch management
CN102541596A (en) Operating system upgrading method and device
CN106371874A (en) Plug-in data loading method and equipment
CN102541941A (en) Version management control method for multiple parties to co-operate file
CN104243515A (en) Method and device for processing configuration information
CN103257869B (en) A kind of ECU program smart download method
CN110908694A (en) Hot updating system and method for electronic bidding client application
CN111859315A (en) Authorization activation device
CN105592091A (en) Security application downloading method
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
CN114296771A (en) Installation package increment upgrading method and device based on file comparison
CN114064073A (en) Software version upgrading method and device, computer equipment and storage medium
CN105721451A (en) Extensible Modbus protocol analyzing method and device
CN111857862A (en) Plug-in management method and device, electronic equipment and computer readable storage medium
US20090037493A1 (en) Method and device for updating an object with copyright attribute

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: 20200324

RJ01 Rejection of invention patent application after publication