Software upgrade method and electronic device
Abstract
The present application is applicable to a field of computer application technology, and provides a software upgrade method, device and electronic device. The method includes: after receiving an upgrade request sent by a service platform, sending an upgrade query instruction to a transaction terminal; receiving a query result fed back by the transaction terminal, the query result being generated by executing the upgrade query instruction on the transaction terminal using a software tool development kit integrated in the software to be upgraded; and determining whether to upgrade the software to be upgraded in the transaction terminal according to the query result. Through the present application, a problem of data loss or software crash when upgrading software during a transaction can be solved, and the reliability and flexibility of software upgrades can be improved.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A software upgrade method, applied to an electronic device, the method comprising: after receiving an upgrade request sent by a service platform, sending an upgrade query instruction to a transaction terminal, comprising: sending the upgrade query instruction to the transaction terminal by a first thread according to a cross-process communication; receiving a query result fed back by the transaction terminal, the query result being generated by executing the upgrade query instruction on the transaction terminal using a software tool development kit integrated in the software to be upgraded; and determining whether to upgrade the software to be upgraded in the transaction terminal according to the query result, comprising: verifying an authentication credential in the query result and determining whether to upgrade the software to be upgraded by using a second thread, which is a process that downloads the installation package of the upgraded version before the first thread.
- Claim 2Depends on #1
The method according to claim 1, wherein the upgrade request comprises an upgraded version of the software to be upgraded, after receiving the upgrade request sent by the service platform, the method further comprises: according to one or more upgrade requests, downloading an installation package of the upgraded version corresponding to each upgrade request respectively; according to an application package name of the software to be upgraded, querying the software to be upgraded on the transaction terminal; invoking a query interface corresponding to the software to be upgraded, and sending the upgrade query instruction to the transaction terminal, wherein the installation package is used to upgrade the software to be upgraded in the transaction terminal according to a unified installation interface.
- Claim 3Depends on #1
The method according to claim 1, wherein the query result comprises a response result and an authentication credential, determining whether to upgrade the software to be upgraded in the transaction terminal according to the query result further comprises: verifying the authentication credential by invoking an authentication interface of the service platform; in response that the authentication credential passes, determining whether to upgrade the software to be upgraded in the transaction terminal according to the response result; in response that the authentication credential fails, upgrading the software to be upgraded in the transaction terminal, wherein the response result and the authentication credential are respectively generated by the transaction terminal according to the cross-process interaction method and the credential generation method in the software tool development kit.
- Claim 4Depends on #3
The method according to claim 3, wherein determining whether to upgrade the software to be upgraded in the transaction terminal according to the query result further comprises: in response that the response result indicates to update, upgrading the software to be upgraded in the transaction terminal; in response that the response result indicates not to update, starting a multiple inquiry mechanism, which is used to send the upgrade inquiry instruction to the transaction terminal again after a preset time.
- Claim 5Depends on #3
The method according to claim 3, wherein upgrading the software to be upgraded in the transaction terminal further comprises: calculating a difference in binary data between an installation package of the upgraded version and an installation package of an older version corresponding to the software to be upgraded by a binary file difference algorithm; generating a difference file according to the difference in binary data, wherein the difference file is used to instruct the transaction terminal to synthesize an upgrade installation package according to the installation package of the old version and the difference file, and upgrade the software to be upgraded according to the upgrade installation package.
- Claim 6Independent Claim
A software upgrade method, the method comprising: receiving an upgrade query instruction sent by a client for a software to be upgraded, wherein the upgrade query instruction is generated by the client after receiving the upgrade request sent by a service platform and the client sends the upgrade query instruction to a transaction terminal by a first thread according to a cross-process communication; invoking a software tool development kit integrated in the software to be upgraded, and executing the upgrade query instruction, and generating a query result; sending the query result to the client, wherein the query result is used to instruct the client to verify an authentication credential in the query result and determine whether to upgrade the software to be upgraded by using a second thread, which is a process that downloads the installation package of the upgraded version before the first thread.
- Claim 7Depends on #6
The method according to claim 6, wherein a software development kit also includes an authentication key, and the query result comprises a response result and an authentication credential, invoking the software tool development kit integrated in the software to be upgraded, and executing the upgrade query instruction, and generating the query result further comprises: invoking a cross-process interaction method in the software tool development kit, and executing the upgrade query instruction, and generating the response result; invoking a credential generation method in the software tool development kit, and generating the authentication credential according to the authentication key, wherein the authentication key is generated by the service platform for a development software, and the authentication credential is used by the client to verify a older version of the software to be upgraded, and the response result is used by the client to determine whether to upgrade the software to be
- Claim 8Independent Claim
An electronic device, comprising: a memory storing at least one instruction; a processor, when the at least one instruction is executed by the processor, the processor is caused to: after receiving an upgrade request sent by a service platform, send an upgrade query instruction to a transaction terminal, wherein the processor sends the upgrade query instruction to the transaction terminal by a first thread according to a cross-process communication; receive a query result fed back by the transaction terminal, the query result being generated by executing the upgrade query instruction on the transaction terminal using a software tool development kit integrated in the software to be upgraded; and determine whether to upgrade the software to be upgraded in the transaction terminal according to the query result, wherein the processor verifies an authentication credential in the query result and determines whether to upgrade the software to be upgraded by using a second thread, which is a p
Technical Overview & Description
This application claims priority to Chinese Patent Application No. 202111580790.1 filed on Dec. 22, 2021, in China National Intellectual Property Administration, the contents of which are incorporated by reference herein. FIELD The subject matter herein generally relates to a technology field of computer application, in particular, relates to a software upgrade method, a software upgrade device and an electronic device. BACKGROUND With a development of the Internet, mobile payment has spread throughout every corner of life, and payment terminals also support increasingly rich transaction software. At present, on one transaction terminal, since the transaction software is often in the process of customer transaction or payment, transaction data is extremely important to the transaction software. During an execution process of the customer transaction or payment, rushing to upgrade the transaction software on the transaction terminal will cause a loss of transaction data, or cause a running transaction software to crash. SUMMARY The present application provides a software upgrade method, a software upgrade device and an electronic device, which can solve a problem of data loss or software crash when upgrading a software during a transaction process. In a first aspect, the present application provides the software upgrade method, the method includes: after receiving an upgrade request sent by a service platform, sending an upgrade query instruction to a transaction terminal; receiving a query result fed back by the transaction terminal, the query result being generated by executing the upgrade query instruction on the transaction terminal using a software tool development kit integrated in the software to be upgraded; and determining whether to upgrade the software to be upgraded in the transaction terminal according to the query result. In a possible implementation of the first aspect, the upgrade request includes an upgraded version of the software to be upgraded, af
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
| Patent | Title | Year | Citations |
|---|