CN110990038B - Method, apparatus, electronic device and medium for applying local update - Google Patents

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

Info

Publication number
CN110990038B
CN110990038B CN201911200266.XA CN201911200266A CN110990038B CN 110990038 B CN110990038 B CN 110990038B CN 201911200266 A CN201911200266 A CN 201911200266A CN 110990038 B CN110990038 B CN 110990038B
Authority
CN
China
Prior art keywords
application
version information
response
information
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.)
Active
Application number
CN201911200266.XA
Other languages
Chinese (zh)
Other versions
CN110990038A (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

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 the following steps: 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; responding to the inconsistency, and acquiring a downloading 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 for the application, it is determined that the application update is complete. This embodiment improves the user experience.

Description

Method, apparatus, electronic device and medium for applying local update
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, an apparatus, an electronic device, and a medium for applying local updates.
Background
The common application upgrading schemes of the current hybrid application are two kinds of full package upgrading and patch package upgrading, and the upgrading ranges of the two schemes are all users who install the application. Most applications have wide user range and different requirements, and it is expected that the later requirement change of the application will be frequent, and if the requirement change of each unit needs all users to upgrade the application, the use experience of the users will be greatly affected.
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 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; responding to the inconsistency, and acquiring a downloading 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 and based on the download path; in response to detecting a third user operation for the application, it is determined that the application update is complete.
In some embodiments, the obtaining, in response to detecting the first user operation for the application, current version information of the application includes: acquiring the region information of the application in response to detection of a first user operation for the application; and acquiring the current version information of the application corresponding to the region information according to the region information, and taking the current version information as the current version information of the application.
In some embodiments, in response to detecting the second user operation for the application, replacing, based on the download path, the directory file corresponding to the version information based on the download path, includes: in response to detecting an update package downloading operation for the application, acquiring an update package corresponding to the current version information; responding to the detection of decompression operation for the application, and 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 deleting the update package corresponding to the current version information in response to the completion of replacement.
In some embodiments, the above method further comprises: in response to determining agreement, 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 of the at least one target area, wherein the area information comprises: version number of the above-mentioned goal 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, and obtaining the update package of the target area corresponding to the area information.
In some embodiments, in response to the application running, detecting an upload operation for an update package management database, and obtaining an upload update package corresponding to the upload operation in the update package management database, where the update package management database is used for storing the update package; determining whether the upload update package is an update package of the application; in response to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting a user to update the version; controlling the prompt box to be hidden in response to the fact that the user operation for the prompt box is not detected within a predefined time period; and in response to detecting the fourth user operation for the application, locally updating the application by using the uploading update 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 download paths are inconsistent; a replacing unit configured to replace, based on the download path, a directory file corresponding to the version information based on the download path in response to detection of a second user operation for the application; and a completion unit configured to determine that the application update is completed in response to detection of 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 the method as in any of the first aspects.
In a fourth aspect, some embodiments of the present 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 of the first aspects.
One of the above embodiments of the present disclosure has the following advantageous effects: and comparing the 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 files in the update package are utilized to replace the directory files in the servers of the mechanisms, so that the independent update of different mechanisms in the same application is realized, the resource utilization rate is improved, and the user experience is further improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario for a method for applying local updates, according to some embodiments of the present disclosure;
FIG. 2 is a flow chart of some embodiments of a method for applying local updates according to the present disclosure;
FIG. 3 is a flow chart of other embodiments of a method for applying local updates according to the present disclosure;
FIG. 4 is a schematic structural 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 should be understood that the present 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 so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such 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 for applying local updates, according to 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 an application, current version information 103 of the application is acquired, and the version information may be an organization name and a version number. The current version information 103 is typically version information of the application at the current time, for example, "operation 2.1". The terminal device 101 acquires version information 104 stored by the server of the current organization, for example, "operation 2.0". It is determined whether the current version information 103 is identical to the version information 104, and when the current version information is inconsistent with the version information, a download path 105 of the current version information is acquired. According to the download path, an 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 body may be hardware or software. When the execution body is hardware, the execution body may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may 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 example, for providing distributed services, or as a single software or software module. But may also be a thread or process. The present invention is not particularly limited herein.
With continued reference to fig. 2, a flow 200 of some embodiments of a method for applying local updates according to the present disclosure is shown. The method for applying local updates comprises the steps of:
in step 201, in response to detecting the first user operation for the application, current version information of the application is acquired.
In some embodiments, first, an execution body (for example, the terminal device 101 shown in fig. 1) of the method for locally updating an application may acquire current version information of the application through a wired connection or a wireless connection after detecting a first user operation for the application. The application can be an application installed on a mobile phone or a computer. Object-oriented applications are generally classified as personal user applications and enterprise-level applications. The first user operation may be an application starting operation or a user click check update button operation. The current version information is typically version information of the application stored in a background server. The version information described above may be an organization name and version number, for example, "operation 2.1".
It should be noted that the wireless connection may include, but is not limited to, 3G/4G connections, wiFi connections, bluetooth connections, wiMAX connections, zigbee connections, UWB (ultra wideband) connections, and other now known or later developed wireless connection means.
In some optional implementations of some embodiments, in response to detecting a first user operation for an application, obtaining current version information for the application includes: in response to detecting a first user operation for an application, the execution subject may acquire area information of the application; the above-described region information may be region information corresponding to the application in which the first user operation for the application is detected. The area information is typically an organization name corresponding to the application, for example, "operation". The execution body obtains current version information of the application corresponding to the region information from a background server according to the region 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 subject "operates" according to the area information of the application, and searches the background server for the current version information of the application, for example, "operation 2.1".
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, the executing entity may further obtain version information stored by the application on a server of the current institution based on the current version information obtained in step 201. 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 inconsistent.
And step 203, in response to the inconsistent determination, acquiring a download path corresponding to the current version information.
In some embodiments, in response to determining the inconsistency, the executing entity searches a database of the background server for a download path corresponding to the current version information according to the current version information. The download path is usually a storage location in the background server where the update package corresponding to the current version information is located. The update package is generally all data information including the version corresponding to the current version information.
In some alternative implementations of some embodiments, the application continues to run in response to determining that the first and second applications are consistent. As an example, when the version information and the current version information are determined to be identical, the application continues to run. For example, the version information may be "operation 2.0", and the current version information may be "operation 2.0", which are consistent.
And 204, in response to detecting the second user operation for the application, replacing the directory file corresponding to the version information based on the download path.
In some embodiments, the executing body 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 typically a download operation of the update package corresponding to the download path. The above-mentioned directory files are usually all files stored in the directory. For example, the execution body may obtain the version information corresponding update package by using the download path, and the execution body may decompress the update package and may replace the directory file corresponding to the version information with the 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 body deletes the update package.
In response to detecting the third user operation for the application, it is determined that the application update is completed, step 205.
In some embodiments, the executing body detects a third operation for the application, and determines that the update of the application is completed. The third 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 implementations of some embodiments, in response to the application running, detecting an upload operation for an update package management database, and obtaining an upload update package corresponding to the upload operation in the update package management database, where the update package management database is used to store the update package; the staff of the department a uses the application, and at this time, the execution subject detects that the update package management database has an upload operation, and the execution subject obtains an upload update package corresponding to the upload operation, for example, the name of the upload update package is "department a3.3". Determining whether the upload update package is an update package of the application; in response to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting a user to update the version; for example, it is determined that the upload update package is an update package of the application used by the employee of the department a, and the execution subject controls a terminal device of the application used by the employee to display a prompt box for indicating prompt information for prompting the user to perform version update, where the terminal device may be a computer or a mobile phone. The prompt message may be "new version available for update". The prompt box may be a rectangular box containing the prompt information. Controlling the prompt box to be hidden in response to the fact that the user operation for the prompt box is not detected within a predefined time period; the predefined period of time may be a preset time, for example, 30 seconds. And in response to detecting the fourth user operation for the application, locally updating the application by using the uploading update package. The fourth user operation may be an operation to close the application. The execution body may decompress the upload update package, thereby implementing update of the application on the terminal device.
Some embodiments of the present disclosure disclose a method for locally updating an application by acquiring current version information and comparing the current version information with local version information, and updating the application according to the comparison result. Local update of the application is realized, and user experience is improved.
With continued reference to FIG. 3, a flow 300 of further embodiments of a method for applying local updates according to the present disclosure is shown. The method for applying local updates comprises the steps of:
in step 301, in response to detecting the first user operation for the application, current version information of the application is acquired.
Step 302, obtaining locally stored version information of the application, and determining whether the version information is consistent with the current version information.
And step 303, in response to the inconsistent determination, acquiring a download path corresponding to the current version information.
In some embodiments, the specific implementation of steps 301 to 303 and the technical effects thereof may refer to steps 201 to 203 in those embodiments corresponding to fig. 2, which are not described herein.
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, an execution body of the method for locally updating an application detects an update package download operation for the application, and obtains an update package corresponding to the current version information. The update package downloading operation is generally an operation for downloading an 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 of the at least one target area, wherein the area information comprises: version number of the above-mentioned goal area; the version numbers are typically named according to rules defined by the application developer. For example, the rule may be a organization code plus a 4-bit serial number. The above mechanism code may be a 4-bit binary code, e.g., "0100". And creating at least one file corresponding to the region information into a folder corresponding to the region information, and obtaining the update package of the target region corresponding to the region information. The at least one file includes at least one of: HTML (hypertext markup language ) page file, js (transliteration scripting language, javaScript) file, css (cascading style sheet, cascading Style Sheets) file, image file. By way of example, the update package of the mechanism may be obtained by placing the at least one file in a folder and packaging the folder.
In step 305, in response to detecting the decompression operation for the application, the directory file in the update package is obtained.
In some embodiments, the execution body decompresses the update package acquired in step 304 to obtain the directory file in the update package. The above-mentioned directory is typically the name of the file. The decompression is usually performed by restoring a document, a file, or the like compressed by software to the state before compression.
And 306, replacing the directory file corresponding to the version information by using the directory file in the update package.
In some embodiments, the executing entity replaces the same file as the directory in the server of the mechanism corresponding to the update package with the directory file obtained in step 305. By way of example, the wgtRes file in the directory file in the server of the organization described above is removed. When the directory file of the update package includes: when the HTML page file, js file, css file and image file are used, the HTML page file is replaced with the HTML page file in the server of the above mechanism. The js file is replaced with the js file in the server of the mechanism. The css file is replaced with the css file in the server of the above-described organization. The image file is replaced with the image file in the server of the above-described organization.
In step 307, in response to detecting the third user operation for the application, it is determined that the application update is completed.
In some embodiments, the specific implementation of step 307 and the technical effects thereof may refer to step 205 in those embodiments corresponding to fig. 2, which are not described herein.
Some embodiments of the disclosure disclose a method for local update of an application, which can obtain a corresponding update package by using a download path, obtain a directory file in the update package by decompressing the update package, and replace the directory file in a server of the mechanism by using the directory file, thereby realizing independent update of different mechanisms in the same application, improving resource utilization rate and further improving user experience.
With further reference to fig. 4, as an implementation of the method described above for the various figures, the present disclosure provides some embodiments of an apparatus for applying local updates, which apparatus embodiments correspond to those described above for fig. 2, which apparatus is particularly applicable in a variety of 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. Wherein the first obtaining unit 401 is configured to obtain, in response to detecting a first user operation for an application, 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 obtain a download path corresponding to the current version information in response to determining that the download paths are inconsistent; 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: acquiring the region information of the application in response to detection of a first user operation for the application; and acquiring the current version information of the application corresponding to the region information according to the region 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 detecting an update package downloading operation for the application, acquiring an update package corresponding to the current version information; responding to the detection of decompression operation for the application, and 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 delete the update package corresponding to the current version information in response to the completion of replacement.
In some embodiments, the apparatus 400 for applying local updates further comprises: and an operation unit configured to continue to operate the application in response to the determination of coincidence.
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 of the at least one target area, wherein the area information comprises: version number of the above-mentioned goal 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, and obtaining the update package of the target area corresponding to the area information.
In some embodiments, the means 400 for applying local updates is further configured to: responding to the operation of the application, detecting an uploading operation aiming at an updating packet management database, and acquiring an uploading updating packet corresponding to the uploading operation in the updating packet management database, wherein the updating packet management database is used for storing the updating packet; determining whether the upload update package is an update package of the application; in response to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting a user to update the version; controlling the prompt box to be hidden in response to the fact that the user operation for the prompt box is not detected within a predefined time period; and in response to detecting the fourth user operation for the application, locally updating the application by using the uploading update package.
Some embodiments of the present disclosure disclose an apparatus for locally updating an application by acquiring current version information and comparing the current version information with local version information, and updating the application according to the comparison result. Local update of the application is realized, and user experience is improved.
Referring now to fig. 5, a schematic 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. Terminal devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The terminal device shown in fig. 5 is only one example and should not impose any limitation on the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to 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 required 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 via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device 508 including, for example, a memory card or the like; and communication means 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 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 5 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts 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 shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communications device 509, or from the storage device 508, or from the ROM 502. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, 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 communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 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; responding to the inconsistency, and acquiring a downloading 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 for the application, it is determined that the application update is complete.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first acquisition unit, a determination unit, a second acquisition unit, a replacement unit, and a completion unit. 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 the current version information of the application in response to detection of the first user operation for the application".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being 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 technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (8)

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;
responding to the inconsistency, and acquiring a downloading 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 for the application, determining that an application update is complete;
wherein the obtaining, in response to detecting the first user operation for the application, current version information of the application includes:
in response to detecting a first user operation for an application, acquiring area information of the application, wherein the area information is a mechanism name corresponding to the application;
acquiring current version information of the application corresponding to the region information according to the region information, and taking the current version information as the current version information of the application;
the replacing, based on the download path, the directory file corresponding to the version information in response to detecting the second user operation for the application includes:
in response to detecting an update package downloading operation for the application, acquiring an update package corresponding to the current version information;
the update package corresponding to the current version information is obtained through the following steps:
determining the number of target areas, wherein the target areas refer to different user ranges in the same application;
acquiring area information of each target area in the at least one target area, wherein the area information comprises: 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, and obtaining the update package of the target area corresponding to the area information.
2. The method of claim 1, wherein the replacing the directory file corresponding to the version information based on the download path in response to detecting the second user operation for the application further comprises:
responsive 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.
3. The method of claim 1, wherein the method further comprises:
and deleting the update package corresponding to the current version information in response to the completion of replacement.
4. The method of claim 1, wherein the method further comprises:
in response to determining agreement, continuing to run the application.
5. The method according to one of claims 1-4, wherein the method further comprises:
in response to the application running, detecting an uploading operation aiming at an updating packet management database, and acquiring an uploading updating packet corresponding to the uploading operation in the updating packet management database, wherein the updating packet management database is used for storing the updating packet;
determining whether the upload update package is an update package of the application;
in response to the determination, controlling the terminal equipment running the application to display a prompt box for representing prompt information for prompting a user to update the version;
controlling the prompt box to be hidden in response to the fact that the user operation for the prompt box is not detected within a predefined time period;
in response to detecting a fourth user operation for the application, the application is locally updated with the upload update package.
6. 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 locally stored 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 download paths are inconsistent;
a replacement unit configured to replace a directory file corresponding to the version information based on the download path in response to detection of a second user operation for the application;
a completion unit configured to determine that an application update is completed in response to detecting a third user operation for the application;
wherein the first acquisition unit is further configured to: in response to detecting a first user operation for an application, acquiring area information of the application, wherein the area information is a mechanism name corresponding to the application; acquiring current version information of the application corresponding to the region information according to the region information, and taking the current version information as the current version information of the application;
the replacement unit is further configured to: in response to detecting an update package downloading operation for the application, acquiring an update package corresponding to the current version information; the update package corresponding to the current version information is obtained through the following steps: determining the number of target areas, wherein the target areas refer to different user ranges in the same application; acquiring area information of each target area in the at least one target area, wherein the area information comprises: 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, and obtaining the update package of the target area corresponding to the area information.
7. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-5.
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 CN110990038A (en) 2020-04-10
CN110990038B true 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)

Families Citing this family (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
CN115708062A (en) * 2021-08-20 2023-02-21 花瓣云科技有限公司 Application control method and system and electronic equipment
CN113873009A (en) * 2021-08-31 2021-12-31 五八有限公司 Nib file loading method and device, electronic equipment and storage medium

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

Also Published As

Publication number Publication date
CN110990038A (en) 2020-04-10

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
CN112214408B (en) Dependency conflict detection method, dependency conflict detection device, electronic equipment and computer readable medium
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111694629A (en) Information display method and device and electronic equipment
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN110888773B (en) Method, device, medium and electronic equipment for acquiring thread identification
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN110619101B (en) Method and apparatus for processing information
CN116679930A (en) Front-end project construction method and device, electronic equipment and storage medium
CN114327453B (en) Page display method, device, equipment and storage medium
CN114860213A (en) Application package generation method, device, equipment and medium
CN111596987B (en) Page display method and device and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111625326B (en) Task pipeline execution method and device and electronic equipment
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
CN111309367A (en) Method, device, medium and electronic equipment for managing service discovery
CN112311842A (en) Method and device for information interaction
CN111241852A (en) File translation method, device, terminal and storage medium

Legal Events

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