CN110990038A - Method, apparatus, electronic device, and medium for applying local updates - Google Patents

Method, apparatus, electronic device, and medium for applying local updates Download PDF

Info

Publication number
CN110990038A
CN110990038A CN201911200266.XA CN201911200266A CN110990038A CN 110990038 A CN110990038 A CN 110990038A CN 201911200266 A CN201911200266 A CN 201911200266A CN 110990038 A CN110990038 A CN 110990038A
Authority
CN
China
Prior art keywords
application
version information
response
update package
current version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911200266.XA
Other languages
Chinese (zh)
Other versions
CN110990038B (en
Inventor
王文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sinochem Information Technology Co Ltd
Original Assignee
Sinochem Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sinochem Information Technology Co Ltd filed Critical Sinochem Information Technology Co Ltd
Priority to CN201911200266.XA priority Critical patent/CN110990038B/en
Publication of CN110990038A publication Critical patent/CN110990038A/en
Application granted granted Critical
Publication of CN110990038B publication Critical patent/CN110990038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

Embodiments of the present disclosure disclose methods, apparatuses, electronic devices, and media for applying local updates. One embodiment of the method comprises: in response to detecting a first user operation for an application, acquiring current version information of the application; acquiring locally stored version information of the application, and determining whether the version information is consistent with the current version information; in response to the inconsistency, acquiring a download path corresponding to the current version information; in response to detecting a second user operation for the application, replacing the directory file corresponding to the version information based on the download path; in response to detecting a third user operation with respect to the application, determining that the application update is complete. This embodiment improves the user experience.

Description

Method, apparatus, electronic device, and medium for applying local updates
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for applying local updates.
Background
At present, common application upgrading schemes for hybrid applications include full package upgrading and patch package upgrading, and the upgrading ranges of the two schemes are all users who install the applications. Most of applications have wide user range and different requirements, and it can be expected that the requirements change frequently in the later period of the application, and if the requirements change of each unit per se needs to upgrade the application by all users, the use experience of the users can be greatly influenced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose methods, apparatuses, electronic devices and media for applying local updates to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for applying local updates, the method comprising: in response to detecting a first user operation aiming at an application, acquiring current version information of the application; acquiring locally stored version information of the application, and determining whether the version information is consistent with the current version information; in response to the inconsistency, acquiring a download path corresponding to the current version information; in response to detecting a second user operation aiming at the application, replacing the directory file corresponding to the version information based on the download path and the download path; in response to detecting a third user operation with respect to the application, determining that the application update is complete.
In some embodiments, the obtaining current version information of the application in response to detecting the first user operation for the application includes: the method comprises the steps of responding to the detection of a first user operation aiming at an application, and acquiring area information of the application; and acquiring the current version information of the application corresponding to the area information according to the area information, and taking the current version information as the current version information of the application.
In some embodiments, the replacing the directory file corresponding to the version information based on the download path and the download path in response to detecting the second user operation for the application includes: in response to the detection of the downloading operation of the update package aiming at the application, acquiring the update package corresponding to the current version information; in response to detecting the decompression operation for the application, obtaining a directory file in the update package; and replacing the directory file corresponding to the version information by using the directory file in the update package.
In some embodiments, the above method further comprises: and in response to the completion of the replacement, deleting the update package corresponding to the current version information.
In some embodiments, the above method further comprises: and responding to the determination of consistency, and continuing to run the application.
In some embodiments, the update package corresponding to the current version information is obtained by: determining the number of target areas; acquiring area information of each target area in the at least one target area, wherein the area information includes: the version number of the target area; creating at least one folder corresponding to the at least one target area according to the at least one target area; and creating at least one file corresponding to the area information into a folder corresponding to the area information to obtain the update package of the target area corresponding to the area information.
In some embodiments, in response to that the application detects an upload operation for an update package management database during operation, an upload update package corresponding to the upload operation in the update package management database is acquired, where the update package management database is used to store the update package; determining whether the uploaded update package is an update package of the application; responding to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting the user to update the version; controlling the prompt box to be hidden in response to that no user operation aiming at the prompt box is detected within a predefined time period; and in response to detecting a fourth user operation aiming at the application, locally updating the application by using the uploading updating package.
In a second aspect, some embodiments of the present disclosure provide an apparatus for applying local updates, the apparatus comprising: a first acquisition unit configured to acquire current version information of an application in response to detection of a first user operation for the application; a determining unit configured to acquire locally stored version information of the application, and determine whether the version information is consistent with the current version information; a second obtaining unit configured to obtain a download path corresponding to the current version information in response to determining that the version information is inconsistent; a replacing unit configured to replace the directory file corresponding to the version information based on the download path and the download path in response to detecting a second user operation for the application; and a completion unit configured to determine that the application update is completed in response to detecting a third user operation for the application.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements a method as in any one of the first aspect.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: and comparing the acquired current version information with the local version information, and updating the application according to the comparison result. The corresponding update package can be obtained by utilizing the download path, and then the directory file in the update package is utilized to replace the directory file in the server of the mechanism, so that different mechanisms in the same application can be updated independently, the resource utilization rate is improved, and the user experience is further improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario for a method of applying local updates, in accordance with some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a method for applying local updates according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a method for applying local updates according to the present disclosure;
FIG. 4 is a block diagram of some embodiments of an apparatus for applying local updates according to the present disclosure;
FIG. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a schematic illustration of one application scenario for a method of applying local updates, in accordance with some embodiments of the present disclosure; in the application scenario of fig. 1, the execution subject may be a terminal device (e.g., the computer 101 shown in fig. 1). When the terminal device 101 detects that the user starts the application, it obtains the current version information 103 of the application, where the version information may be a mechanism name and a version number. The current version information 103 is usually version information of the application at the current time, for example, "operation 2.1". The terminal apparatus 101 acquires version information 104 stored by the server of the current institution, for example, "operation 2.0". Determining whether the current version information 103 is consistent with the version information 104, and if not, acquiring a download path 105 of the current version information. According to the download path, the update package corresponding to the current version information can be obtained, and the update package is decompressed to obtain the directory file 107. The directory file 108 corresponding to the version information 104 is replaced with the directory file 107. When the terminal device 101 detects that the user restarts the application or refreshes the application, the latest version of the application is displayed on the terminal device 101.
The execution main body may be hardware or software. When the execution main body is hardware, the execution main body can be implemented as a distributed cluster consisting of a plurality of servers or terminal devices, and can also be implemented as a single server or a single terminal device. When the execution body is embodied as software, it may be implemented as a plurality of software or software modules for providing distributed services, for example, or as a single software or software module. But also a thread or process. And is not particularly limited herein.
With continued reference to FIG. 2, a flow 200 of some embodiments of a method for applying local updates in accordance with the present disclosure is shown. The method for applying local updates comprises the following steps:
step 201, in response to detecting a first user operation for an application, acquiring current version information of the application.
In some embodiments, first, an executing body (for example, the terminal device 101 shown in fig. 1) of the method for applying the local update detects a first user operation for an application, and then may acquire current version information of the application through a wired connection manner or a wireless connection manner. The application can be an application installed on a mobile phone and a computer. Object-oriented applications are generally divided into personal user applications and enterprise-level applications. The first user operation may be an operation of starting an application, or an operation of clicking an update check button by a user. The current version information is generally version information of the application stored in the background server. The version information may be an organization name and a version number, for example, "operation 2.1".
It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In some optional implementations of some embodiments, in response to detecting a first user operation for an application, obtaining current version information of the application includes: in response to detecting a first user operation for an application, the execution subject may acquire region information of the application; the area information may be area information corresponding to an application for which a first user operation for the application is detected. The area information is usually a name of an organization corresponding to the application, for example, "operation". And the execution main body acquires the current version information of the application corresponding to the area information from a background server according to the area information, and takes the current version information as the current version information of the application. As an example, when a user starts an application in an operation department, the execution main body searches the current version information of the application, for example, "operate 2.1", in the background server according to the area information "operate" of the application.
Step 202, obtaining locally stored version information of the application, and determining whether the version information is consistent with the current version information.
In some embodiments, based on the current version information obtained in step 201, the executing entity may further obtain version information stored by the application in the server of the current organization. And comparing the version information with the current version information to determine whether the version information and the current version information are consistent. As an example, the version information may be "operation 2.0", and the current version information may be "operation 2.1", which are not consistent.
Step 203, in response to determining that the version information is inconsistent, obtaining a download path corresponding to the current version information.
In some embodiments, in response to determining that the current version information is inconsistent with the current version information, the execution subject searches a download path corresponding to the current version information in a database of the background server according to the current version information. The download path is usually a storage location of the update package corresponding to the current version information in the background server. The update package is generally all data information including a version corresponding to the current version information.
In some optional implementations of some embodiments, the application continues to run in response to determining the agreement. As an example, when the version information and the current version information are determined to be consistent, the application is continuously run. For example, the version information may be "operation 2.0", and the current version information may be "operation 2.0", which are identical to each other.
And 204, in response to detecting a second user operation for the application, replacing the directory file corresponding to the version information based on the download path.
In some embodiments, the execution subject detects a second user operation for the application, and replaces the directory file corresponding to the version information based on the download path. The second user operation is generally a download operation of the update package corresponding to the download path. The directory file is generally all files stored in the directory. For example, the execution main body may obtain the version information corresponding update package by using the download path, and the execution main body may decompress the update package to replace a directory file corresponding to the version information with a directory file in the update package.
In some optional implementations of some embodiments, in response to the replacement being completed, the update package corresponding to the current version information is deleted. As an example, when the replacement of the directory file is completed, the execution main body deletes the update package.
In response to detecting the third user operation for the application, determining that the application update is complete, step 205.
In some embodiments, the execution subject detects a third user operation with respect to the application and determines that the application update is complete. The third user operation may be a refresh operation or a restart operation. And the application runs the version corresponding to the current version information.
In some optional implementation manners of some embodiments, in response to that the application detects an upload operation for an update package management database in a running process, an upload update package corresponding to the upload operation in the update package management database is acquired, where the update package management database is used to store the update package; when the staff of the department a uses the application, the execution main body detects that the update package management database has an uploading operation, and the execution main body acquires the upload update package corresponding to the uploading operation, for example, the name of the upload update package is "department a 3.3". Determining whether the uploaded update package is an update package of the application; responding to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting the user to update the version; for example, the uploaded update package is determined to be an update package of the application used by the employee of the department a, and the terminal device executing the application used by the employee is controlled by the main body to display a prompt box for presenting prompt information for prompting the user to update the version. The prompt message may be "there is a new version, which can be updated". The prompt box may be a rectangular box containing the prompt information. Controlling the prompt box to be hidden in response to that no user operation aiming at the prompt box is detected within a predefined time period; the predefined time period may be a preset time, for example, 30 seconds. And in response to detecting a fourth user operation aiming at the application, locally updating the application by using the uploading updating package. The fourth user operation may be an operation of closing the application. The execution main body may decompress the upload update packet, thereby implementing an update of the application on the terminal device.
Some embodiments of the present disclosure disclose a method for applying local updates by obtaining current version information and comparing the current version information with local version information, and updating an application according to the comparison result. The local updating of the application is realized, and the user experience is improved.
With continued reference to FIG. 3, a flow 300 of further embodiments of methods for applying local updates according to the present disclosure is shown. The method for applying local updates comprises the following steps:
step 301, in response to detecting a first user operation for an application, obtaining current version information of the application.
Step 302, obtaining locally stored version information of the application, and determining whether the version information is consistent with the current version information.
Step 303, in response to determining that the version information is inconsistent, obtaining a download path corresponding to the current version information.
In some embodiments, the specific implementation and technical effects of steps 301 and 303 can refer to steps 201 and 203 in the embodiments corresponding to fig. 2, which are not described herein again.
Step 304, in response to detecting the installation package downloading operation for the application, obtaining an update package corresponding to the current version information.
In some embodiments, the execution subject of the method for applying local update detects an update package downloading operation for the application, and obtains an update package corresponding to the current version information. The update package downloading operation is generally a downloading operation of the update package corresponding to the download path according to the download path. As an example, the user finds the location of the update package according to the download path obtained through step 303. And downloading the update package to a server of the mechanism for storage.
In some optional implementations of some embodiments, the update package corresponding to the current version information is obtained by: determining the number of target areas; the target areas generally refer to different user areas in the same application. Acquiring area information of each target area in the at least one target area, wherein the area information includes: the version number of the target area; the version numbers are usually named according to rules defined by application developers. For example, a rule may be that the organization code is added with a 4-bit serial number. The above mechanism code may be a 4-bit binary code, e.g., "0100". At least one file corresponding to the area information is created in a folder corresponding to the area information, and the update package of the target area corresponding to the area information is obtained. The at least one file includes at least one of: HTML (HyperText Markup Language) page files, js (interpreted scripting Language, JavaScript) files, css (Cascading Style Sheets) files, image files. As an example, the update package of the mechanism may be obtained by placing the at least one file into a folder and packaging the folder.
Step 305, in response to detecting the decompression operation for the application, obtaining the directory file in the update package.
In some embodiments, the executing entity decompresses the update package obtained in step 304 to obtain the directory file in the update package. The directory is typically the name of a file. The decompression is usually a process of restoring a document, file, or the like compressed by software to a state before compression.
Step 306, replacing the directory file corresponding to the version information with the directory file in the update package.
In some embodiments, the executing entity replaces the same file in the directory of the server of the organization corresponding to the update package with the directory file obtained in step 305. As an example, the wgtses file in the directory file in the server of the above mechanism is removed. When the directory file of the update package comprises: and when the HTML page file, the js file, the css file and the image file are used, the HTML page file in the server of the mechanism is replaced by the HTML page file. The js file in the server of the above organization is replaced with the js file. The css file in the server of the organization is replaced with the css file. And replacing the image file in the server of the mechanism by the image file.
Step 307, in response to detecting the third user operation for the application, determining that the application update is complete.
In some embodiments, the specific implementation of step 307 and the technical effect brought by the implementation may refer to step 205 in those embodiments corresponding to fig. 2, which are not described herein again.
Some embodiments of the present disclosure disclose a method for applying local update, in which a corresponding update package can be obtained by using a download path, a directory file in the update package can be obtained by decompressing the update package, and the directory file in a server of the mechanism is replaced by using the directory file, so that different mechanisms in the same application can be updated independently, and thus resource utilization rate is improved, and user experience is improved.
With further reference to fig. 4, as an implementation of the above-described method for the above-described figures, the present disclosure provides some embodiments of an apparatus for applying local updates, which correspond to those of the method embodiments described above for fig. 2, and which may be applied in particular to various electronic devices.
As shown in FIG. 4, an apparatus 400 for applying local updates of some embodiments includes: a first acquisition unit 401, a determination unit 402, a second acquisition unit 403, a replacement unit 404, and a completion unit 405. The first obtaining unit 401 is configured to, in response to detecting a first user operation for an application, obtain current version information of the application; a determining unit 402 configured to acquire locally stored version information of the application, and determine whether the version information is consistent with the current version information; a second obtaining unit 403, configured to, in response to determining that the versions are inconsistent, obtain a download path corresponding to the current version information; a replacing unit 404 configured to replace the directory file corresponding to the version information based on the download path in response to detecting a second user operation for the application; a completion unit 405 configured to determine that the application update is completed in response to detecting a third user operation for the application.
In some embodiments, the first obtaining unit 401 in the apparatus 400 for applying local updates is further configured to: the method comprises the steps of responding to the detection of a first user operation aiming at an application, and acquiring area information of the application; and acquiring the current version information of the application corresponding to the area information according to the area information, and taking the current version information as the current version information of the application.
In some embodiments, the replacement unit 404 in the apparatus 400 for applying local updates is further configured to: in response to the detection of the downloading operation of the update package aiming at the application, acquiring the update package corresponding to the current version information; in response to detecting the decompression operation for the application, obtaining a directory file in the update package; and replacing the directory file corresponding to the version information by using the directory file in the update package.
In some embodiments, the apparatus 400 for applying local updates further comprises: and the deleting unit is configured to respond to the replacement completion and delete the update package corresponding to the current version information.
In some embodiments, the apparatus 400 for applying local updates further comprises: and the running unit is configured to continue to run the application in response to the determination of consistency.
In some embodiments, the update package corresponding to the current version information in the apparatus 400 for applying local update is obtained by: determining the number of target areas; acquiring area information of each target area in the at least one target area, wherein the area information includes: the version number of the target area; creating at least one folder corresponding to the at least one target area according to the at least one target area; and creating at least one file corresponding to the area information into a folder corresponding to the area information to obtain the update package of the target area corresponding to the area information.
In some embodiments, the means for applying local updates 400 is further configured to: responding to the application in operation, detecting an uploading operation aiming at an update package management database, and acquiring an uploading update package corresponding to the uploading operation in the update package management database, wherein the update package management database is used for storing the update package; determining whether the uploaded update package is an update package of the application; responding to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting the user to update the version; controlling the prompt box to be hidden in response to that no user operation aiming at the prompt box is detected within a predefined time period; and in response to detecting a fourth user operation aiming at the application, locally updating the application by using the uploading updating package.
Some embodiments of the present disclosure disclose an apparatus for applying local update, by obtaining current version information and comparing the current version information with local version information, and updating an application according to a comparison result. The local updating of the application is realized, and the user experience is improved.
Referring now to fig. 5, a block diagram of an electronic device (e.g., the terminal device of fig. 1) 500 suitable for use in implementing some embodiments of the present disclosure is shown. The terminal device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the use range of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; a storage device 508 including, for example, a memory card; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to detecting a first user operation aiming at an application, acquiring current version information of the application; acquiring locally stored version information of the application, and determining whether the version information is consistent with the current version information; in response to the inconsistency, acquiring a download path corresponding to the current version information; in response to detecting a second user operation aiming at the application, replacing the directory file corresponding to the version information based on the download path; in response to detecting a third user operation with respect to the application, determining that the application update is complete.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first obtaining unit, a determining unit, a second obtaining unit, a replacing unit, and a completing unit. Here, the names of these units do not constitute a limitation on the unit itself in some cases, and for example, the first acquisition unit may also be described as a "unit that acquires current version information of an application described above in response to detection of a first user operation for the application".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for applying local updates, comprising:
in response to detecting a first user operation for an application, acquiring current version information of the application;
acquiring locally stored version information of the application, and determining whether the version information is consistent with the current version information;
in response to the inconsistency, acquiring a download path corresponding to the current version information;
in response to detecting a second user operation for the application, replacing the directory file corresponding to the version information based on the download path;
in response to detecting a third user operation with respect to the application, determining that the application update is complete.
2. The method of claim 1, wherein the obtaining current version information of an application in response to detecting a first user operation for the application comprises:
in response to detecting a first user operation for an application, obtaining region information of the application;
and acquiring the current version information of the application corresponding to the area information according to the area information, and taking the current version information as the current version information of the application.
3. The method of claim 1, wherein the replacing, based on the download path, the directory file corresponding to the version information in response to detecting a second user operation for the application comprises:
in response to the detection of the update package downloading operation aiming at the application, acquiring an update package corresponding to the current version information;
in response to detecting a decompression operation for the application, obtaining a directory file in the update package;
and replacing the directory file corresponding to the version information by using the directory file in the update package.
4. The method of claim 1, wherein the method further comprises:
and in response to the completion of the replacement, deleting the update package corresponding to the current version information.
5. The method of claim 1, wherein the method further comprises:
continuing to run the application in response to determining that the application is consistent.
6. The method of claim 1, wherein the update package corresponding to the current version information is obtained by:
determining the number of target areas;
obtaining area information of each target area in the at least one target area, wherein the area information includes: a version number of the target area;
according to the at least one target area, creating at least one folder corresponding to the at least one target area;
and creating at least one file corresponding to the regional information into a folder corresponding to the regional information to obtain the update package of the target region corresponding to the regional information.
7. The method according to one of claims 1-6, wherein the method further comprises:
responding to the application in operation, detecting an uploading operation aiming at an update package management database, and acquiring an uploading update package corresponding to the uploading operation in the update package management database, wherein the update package management database is used for storing the update package;
determining whether the upload update package is an update package for the application;
in response to the determination, controlling the terminal equipment running the application to display a prompt box for prompting a user to update the version;
in response to no user operation for the prompt box being detected within a predefined time period, controlling the prompt box to be hidden;
in response to detecting a fourth user operation for the application, locally updating the application with the upload update package.
8. An apparatus for applying local updates, comprising:
a first acquisition unit configured to acquire current version information of an application in response to detection of a first user operation for the application;
a determining unit configured to acquire version information of the application stored locally, and determine whether the version information is consistent with the current version information;
a second obtaining unit configured to obtain a download path corresponding to the current version information in response to determining that the version information is inconsistent;
a replacing unit configured to replace a directory file corresponding to the version information based on the download path in response to detecting a second user operation for the application;
a completion unit configured to determine that the application update is completed in response to detecting a third user operation for the application.
9. An electronic device/terminal/server comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN201911200266.XA 2019-11-29 2019-11-29 Method, apparatus, electronic device and medium for applying local update Active CN110990038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911200266.XA CN110990038B (en) 2019-11-29 2019-11-29 Method, apparatus, electronic device and medium for applying local update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911200266.XA CN110990038B (en) 2019-11-29 2019-11-29 Method, apparatus, electronic device and medium for applying local update

Publications (2)

Publication Number Publication Date
CN110990038A true CN110990038A (en) 2020-04-10
CN110990038B CN110990038B (en) 2023-08-22

Family

ID=70088369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911200266.XA Active CN110990038B (en) 2019-11-29 2019-11-29 Method, apparatus, electronic device and medium for applying local update

Country Status (1)

Country Link
CN (1) CN110990038B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752582A (en) * 2020-05-25 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Software updating method and device in local area network and electronic equipment
CN113873009A (en) * 2021-08-31 2021-12-31 五八有限公司 Nib file loading method and device, electronic equipment and storage medium
WO2023020333A1 (en) * 2021-08-20 2023-02-23 花瓣云科技有限公司 Application control method and system, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN103902334A (en) * 2014-03-10 2014-07-02 深圳市岚正科技有限公司 Silent updating method and system based on Android system
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method
CN106648787A (en) * 2016-12-28 2017-05-10 平安科技(深圳)有限公司 Resource updating method and terminal
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN109766127A (en) * 2019-01-16 2019-05-17 上海掌门科技有限公司 Method for updating application version information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN103902334A (en) * 2014-03-10 2014-07-02 深圳市岚正科技有限公司 Silent updating method and system based on Android system
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method
CN106648787A (en) * 2016-12-28 2017-05-10 平安科技(深圳)有限公司 Resource updating method and terminal
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN109766127A (en) * 2019-01-16 2019-05-17 上海掌门科技有限公司 Method for updating application version information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752582A (en) * 2020-05-25 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Software updating method and device in local area network and electronic equipment
WO2023020333A1 (en) * 2021-08-20 2023-02-23 花瓣云科技有限公司 Application control method and system, and electronic device
CN113873009A (en) * 2021-08-31 2021-12-31 五八有限公司 Nib file loading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110990038B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN110990038B (en) Method, apparatus, electronic device and medium for applying local update
CN110909521B (en) Online document information synchronous processing method and device and electronic equipment
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN109408481B (en) Log collection rule updating method and device, electronic equipment and readable medium
CN111694629A (en) Information display method and device and electronic equipment
CN114035879A (en) Page theme color changing method and device, electronic equipment and computer readable medium
CN111278085B (en) Method and device for acquiring target network
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN114327453B (en) Page display method, device, equipment and storage medium
CN110619101B (en) Method and apparatus for processing information
CN110888773A (en) Method, device, medium and electronic equipment for obtaining thread identification
CN111787041A (en) Method and apparatus for processing data
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN114860213A (en) Application package generation method, device, equipment and medium
CN111596987B (en) Page display method and device and electronic equipment
CN114610366A (en) Difference package upgrading method and system, intelligent electronic equipment and storage medium
CN110113416B (en) Method and device for displaying information
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN112230986A (en) Project file generation method and device, electronic equipment and computer readable medium
CN112311842A (en) Method and device for information interaction
CN112685075A (en) Gray scale distribution method and device, electronic equipment and computer readable medium
CN111309367A (en) Method, device, medium and electronic equipment for managing service discovery
CN113971195A (en) Data synchronization method, device, electronic equipment and medium
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant