WO2019201040A1 - File update management method and system and terminal apparatus - Google Patents
File update management method and system and terminal apparatus Download PDFInfo
- Publication number
- WO2019201040A1 WO2019201040A1 PCT/CN2019/078171 CN2019078171W WO2019201040A1 WO 2019201040 A1 WO2019201040 A1 WO 2019201040A1 CN 2019078171 W CN2019078171 W CN 2019078171W WO 2019201040 A1 WO2019201040 A1 WO 2019201040A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- update
- update file
- download address
- download
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Definitions
- the present invention belongs to the field of communications technologies, and in particular, to a method, system, and terminal device for managing an update file.
- the embodiment of the present invention provides a method, a system, and a terminal device for identifying and managing an update file, so as to solve the problem in the prior art that when multiple terminals simultaneously download the same update file, they need to download from the server. It is very easy to have network congestion and slow download speed.
- a first aspect of the embodiments of the present invention provides a method for managing an update file, including:
- the update file is sent to the target end.
- a second aspect of the embodiments of the present invention provides a system for managing an update file, including:
- the update request receiving module is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
- the download address obtaining module is configured to obtain an update file download address according to the update request.
- the update file detection module is configured to detect whether an update file corresponding to the update file download address exists locally.
- an update file sending module configured to send the update file to the target end if the update file exists.
- a third aspect of an embodiment of the present invention provides a terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps of the method as described above are implemented.
- a fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described above.
- the embodiment of the present invention has the beneficial effects that: the embodiment receives the update request sent by the requesting end, the update request includes the information of the target end, obtains the update file download address according to the update request, and detects whether the update file exists locally.
- the update file corresponding to the download address if there is an update file, the update file is sent to the target end.
- the terminal device receives the update request of the requesting end, and if it detects that the update file corresponding to the update request exists locally, the update file is sent to the target end, and the terminal device does not need to update the update request every time after receiving the update request.
- the file is downloaded, which improves the download speed of the file and ensures the stability of the network.
- FIG. 1 is a schematic flowchart of an implementation of a method for managing an update file according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a specific implementation process of step S103 in FIG. 1 according to an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a system for managing an update file according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an update file detecting module according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
- FIG. 1 is a flowchart showing an implementation process of a method for managing an update file according to an embodiment of the present invention, and the process is as follows:
- step S101 an update request sent by the requesting end is received, and the update request includes information of the target end.
- the terminal device may receive an update request of the requesting end, for example, the terminal device is a router or a teacher machine.
- the update request sent by the requesting end is received, and the requesting end performs wireless or wired communication with the terminal device.
- the information of the target end is actually the identifier of the target end, and may be the Internet protocol address of the target end (Internet) Protocol Address, IP) or the MAC address of the target (Media Access Control, hardware address).
- the operating system of the requesting end and the target end is an iOS system (iPhone Operation System, Apple's mobile operating system).
- step S101 before step S101,
- the authentication failure information is sent to the requesting end. If the authentication result of the preset preset number of times is the authentication failure, the alarm information is sent to the third-party terminal associated with the terminal device.
- the authentication information includes an account number and a password.
- the authentication failure information is used to indicate that the requesting end continues to send the authentication information.
- the alarm information includes information of the requesting end of the authentication failure and the authentication failure information.
- the alarm information is used to instruct the third party terminal to query whether the requesting end is in the preset allowed download list and query the authentication information corresponding to the requesting end.
- the information of the requesting end includes the IP address and/or the MAC address of the requesting end.
- the requesting end is a terminal device in a department with a relatively high confidentiality requirement
- the terminal device in the research institution needs to perform authentication on the requesting end requesting to download the update file, if the identity verification succeeds
- the requester can perform the subsequent steps of downloading the update file to update the application.
- the authentication failure information is sent to the requesting end, and the authentication failure information may be the reason for the verification failure, for example, the password is incorrect.
- the requesting end receives the authentication failure information, Continue to send the authentication information to the terminal device to enable the terminal device to continue to perform identity verification. If the number of times the identity verification fails exceeds the preset number of times, the terminal device sends an alarm message to the third-party terminal associated with the terminal device, and the third-party terminal After receiving the alarm information, the device queries whether the requesting end is in the preset allowable download list according to the information of the requesting end. If the requesting end is in the preset allowed downloading list, the device queries the authentication information corresponding to the requesting end, and the correct authentication information is obtained. Sended to the corresponding requesting end, the requesting end resends the authentication information to the terminal device.
- the preset number of times is 2, and the requesting end A sends the authentication information to the terminal device, and the terminal device verifies the authentication information to generate a verification result.
- the verification result is that the authentication fails
- the request is sent.
- the authentication information is sent to the requesting end A, and the user corresponding to the requesting end A re-enters the authentication information, and the requesting end A sends the new authentication information to the terminal device, and the terminal device verifies the authentication information, generates a verification result, and performs verification.
- the terminal device sends an alarm message to the third-party terminal, and the third-party terminal queries whether the requesting end A is in the preset allowed download list according to the alarm information, and if the requesting end A is in the preset allowed downloading list, Sending the correct authentication information corresponding to the requesting end A, the requesting end A sends the correct authentication information to the terminal device, and the terminal device authenticates the correct authentication information, and generates a verification result of the successful authentication, if the requesting end A If the preset is not allowed to be downloaded, the requester A is considered to be an illegal user. Generating prohibiting download instruction to the terminal device, the terminal apparatus prohibits disabled according to the download instruction request terminal A download updates.
- the requesting end before the update request is sent by the requesting end, the requesting end needs to be authenticated to avoid the situation that the highly confidential update file is downloaded by the illegal terminal, and the security of downloading the updated file is improved.
- step S102 an update file download address is acquired according to the update request.
- the update request includes an attribute list file download request
- the update file download address includes an application installation package download address
- step S102 includes:
- the update file includes an application installation package and a resource file
- the application installation package may be an IPA (iPhone Application, Apple Application File Format) installation package.
- the IPA installation package needs to be downloaded first. After the IPA installation package is downloaded and installed, when the user opens the application, the request to download the resource file is started.
- the resource files can be pictures, JS (JavaScript) static resource files and CSS (Cascading Style Sheets) static resource files, sequence frame resource files, DAE files and SCN files, and the like.
- the property list (PList) file download request may be the attribute list file download address, and when the requesting end selects to update an application online, the content list file needs to be downloaded through the URL containing the plist character, and the code is called.
- This website downloads the application's property list file, and detects the code included in the property list file by calling the code detection tool to get the application installation package download address through the application.
- the installation package download address can be downloaded from the application installation package.
- the application installation package download address ends with .ipa, for example, http://myserver.com/Apps.ipa.
- the attribute list file is a file for storing serialized objects. It is usually used to store user settings in iOS development, and can also be used to store data that is often used in programs without frequent changes. Is an XML (Extensible Markup Language) file.
- the update request may be the attribute list file download request information, and the attribute list file download request information includes the download required.
- the attribute list file name after receiving the attribute list file download request information, the terminal device automatically searches for the corresponding attribute list file download address according to the attribute list file name, so that the request end does not need to perform the search attribute list file download address, and can directly send the attribute.
- the downloading request information of the list file is sent to the terminal device, and the terminal device obtains the downloading address of the attribute list file according to the attribute list file name, so as to avoid the situation that each requesting end needs to first search for the downloading address of the attribute list file, thereby improving the downloading address of the entire attribute list file. effectiveness.
- the local device may be a local hard disk.
- the local is preferably a local cache.
- the update request further includes a resource file download request
- the update file download address further includes a resource file download address
- step S102 further includes:
- the corresponding resource file download address is obtained according to the resource file download request.
- the resource file download request is automatically sent to the terminal device, so that the terminal device downloads the resource file that needs to be downloaded, and the resource file download request may directly include the resource file download. address.
- step S103 it is detected whether there is an update file corresponding to the update file download address locally.
- step S104 if there is an update file, the update file is sent to the target end.
- the requesting end and the target end may be the same or different, and the number of the target end is not limited, and may be one or multiple.
- the update file requested by the requesting end exists locally, the update file is sent to at least one target end, and the target end is the terminal device corresponding to the information of the target end.
- the terminal device can send the update file to the target end that needs to perform the application update according to the information of the target end, without requesting the update file to the terminal device one by one, and the update is improved.
- the efficiency of obtaining documents by including the information of the target end in the update request, the terminal device can send the update file to the target end that needs to perform the application update according to the information of the target end, without requesting the update file to the terminal device one by one, and the update is improved. The efficiency of obtaining documents.
- the requesting end is A
- the target end is B and C
- the terminal device receives the update request sent by A, and sends the corresponding update file to B and C according to the update request.
- the transmission frequency of the update file is recorded, and if the transmission frequency is greater than the preset frequency, the download information is sent to the associated terminal.
- the sending frequency is the number of times the file is sent in the first preset time. For example, if the terminal device sends the A file 30 times to the target end within one month, the number of times of sending is 30.
- the associated terminal does not receive the update file in the first preset time, and accesses the Internet through the terminal device. For example, in the first preset time, the terminal device does not send the A file to the B terminal. And the terminal device controls the B terminal to access the Internet, and the B terminal is the terminal associated with the terminal device.
- the download information is used to indicate whether the associated terminal selects whether to download the update file.
- the sending frequency of the C file is 20, the preset frequency is 21, and the sending frequency of the C file is greater than the preset frequency
- the downloading information is sent to the associated terminal a and terminal b, when the terminal a and the terminal
- the user corresponding to the terminal a and the terminal b selects whether to download the update file, and if the terminal a selects the update, the terminal selects the update information to the terminal device, and the terminal device sends the update file to the terminal a, if the terminal b If no update is selected, the transmission does not update the information to the terminal device, and the terminal device does not send the update file to the terminal b.
- the corresponding update file is downloaded according to the update file download address, and the downloaded update file is saved locally and sent to the target end.
- the corresponding update file is downloaded according to the update file download address, and the downloaded update file is saved locally and sent to the target end.
- the update file is only stored in the local cache, so only the local cache is required to find out if the update file exists.
- the name of the file that is prohibited from being downloaded sent by the terminal device is acquired, and the name of the file that is prohibited from being downloaded is added to the preset forbidden download list.
- the terminal device when a file name is added to the preset forbidden download list, the terminal device no longer downloads the file, and the file is no longer sent to the target end, thereby realizing the remote control terminal device.
- a file name is A. Obtain the name of the file that is prohibited from being downloaded by the terminal. If the name of the file that is forbidden to download contains A, the value added by A is prohibited in the download list. If it is stored locally. If there is file A, it is forbidden to send file A to the target end. If the local type does not store file A, file A is no longer downloaded.
- the latest version of the update file is obtained, the latest version of the update file is saved to the local preset directory, and the historical version of the update file in the preset directory is deleted.
- the default directory name is the application ID (Bundle Identifie, Bundle ID), and the Bundle ID is the unique identifier of the application.
- the application and the Bundle ID are uniquely related. When the application is newly created, the Bundle is created. The ID cannot be modified.
- the update file is a version.
- the latest version of the update file is automatically downloaded or the update file sent by the terminal device is received, and the latest version is obtained.
- the update file is saved to the local preset directory, and the latest version of the update file is used as the update file of the current version, and the update file of the historical version in the preset directory is deleted, thereby completing the local update of the update file, and automatically deleting the redundant file.
- the file saves storage space and improves the effective utilization of resources.
- the latest version of the update file sent by the third-party terminal is received, the latest version of the update file is saved to the local preset directory, and the historical version of the update file in the preset directory is deleted, so as to implement the update file actively. Update to avoid the situation where the information is lagging due to network caching and the latest version of the update file cannot be obtained.
- the terminal device receives the update request of the requesting end, and if it detects that the update file corresponding to the update request exists locally, sends the update file to the target end, and the terminal device does not need to receive the update request every time.
- the update file is downloaded to avoid the situation that when multiple terminals download the same update file at the same time, the network device is blocked from being downloaded from the server, and the terminal device only needs to perform one download, thereby achieving multiple distributions and improving.
- the download speed of files and the efficiency of file distribution ensure the stability of the network, reduce the bandwidth consumption, and improve the utilization of network resources.
- step S103 in the embodiment corresponding to FIG. 1 specifically includes:
- step 201 a check value of the update file is obtained.
- the check value may be MD5 (Message Digest) Algorithm 5, message digest algorithm fifth edition) value.
- the number of update files is not limited.
- MD5 encryption is required for each update file to obtain the corresponding MD5 value, and the corresponding backup is updated with the MD5 value.
- the file is named, the new update file is obtained, and then the new update file is uploaded to the specified server. Since each MD5 value is unique, the check value of the update file is the name of the update file, and the name is unique. Therefore, when the update file is uploaded, the update file is repeatedly sent due to the same name of the update file, which ensures the integrity of the update file, and effectively avoids the repeated upload or repeated download of the update file due to the same name of the sub-update file. Waste of network resources.
- the original name of an update file is 11, and the name of the backup update file is also 11, and the update file is MD5 encrypted. If the MD5 value is aa, the name of the backup update file is replaced with The corresponding MD5 value changes to aa, and the name of the new update file is aa, and the new update file is uploaded to the specified server.
- the name of the update file corresponding to the update file download address is searched for in the preset lookup table, that is, the check value of the file is updated.
- the preset comparison table is a comparison table of the pre-established update file download address and the name of the update file.
- the preset comparison table is saved locally, and preferably, in order to reduce the occupation of the cache, the preset comparison table is saved on the local hard disk.
- step S202 it is detected whether the check value of the file existing locally is the same as the check value of the update file.
- the check value of whether the file exists locally is the same as the check value of the update file, that is, whether the name of the file exists locally is the same as the name of the update file, so as to determine whether the update file exists locally.
- step S203 if the check value of the existing file is the same as the check value of the update file, it is determined that the update file exists locally.
- step S204 if the check value of the non-existent file is the same as the check value of the update file, it is determined that the update file does not exist locally.
- the check value of the locally stored file is the same as the check value of the update file, it is determined that the update file is stored locally, and if the check value of the locally stored file is different from the update file, Then it is determined that there is no update file requested by the requester locally, and the download is required from the server.
- a file deletion instruction input by a user at an external terminal associated with the terminal device is received, and the corresponding file is deleted to implement remote management of the file.
- FIG. 3 shows a system 100 for managing an update file provided by an embodiment of the present invention, for performing the method steps in the embodiment corresponding to FIG. 1, which includes:
- the update request receiving module 110 is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
- the download address obtaining module 120 is configured to obtain an update file download address according to the update request.
- the update file detection module 130 is configured to detect whether an update file corresponding to the update file download address exists locally.
- the update file sending module 140 is configured to send the update file to the target end if the update file exists.
- system 100 for managing an update file further includes:
- An update file downloading module configured to download the corresponding update file according to the update file download address if the update file does not exist
- An update file processing module is configured to save the downloaded update file to the local and send to the target end.
- the update request includes an attribute list file download request
- the update file download address includes an application installation package download address
- the download address obtaining module 120 includes:
- the first file download address obtaining unit is configured to obtain an attribute list file download address according to the attribute list file download request.
- the determining unit is configured to detect whether the attribute list file corresponding to the download address of the attribute list file exists locally.
- the first installation package download address obtaining unit is configured to parse the attribute list file if the attribute list file exists, and obtain a corresponding application installation package download address.
- the second installation package download address obtaining unit if the attribute list file does not exist, download the corresponding attribute list file according to the attribute list file download address, and parse the downloaded attribute list file to obtain the corresponding application installation package download address.
- the update request further includes a resource file download request
- the update file download address further includes a resource file download address
- the download address obtaining module 120 includes:
- the resource file download address obtaining module is configured to obtain a corresponding resource file download address according to the resource file download request.
- system 100 for managing an update file further includes:
- An update file acquisition module for obtaining an update file of the latest version
- an update file storage module configured to save the latest version of the update file to a local preset directory, and delete the historical version of the update file in the preset directory.
- system 100 for managing an update file further includes:
- the downloading of the name adding module is prohibited, and the name of the file that is prohibited from being downloaded is added to the preset prohibited downloading list.
- the update file detection module 130 in the embodiment corresponding to FIG. 4 specifically includes:
- the check value obtaining unit 131 is configured to obtain a check value of the update file.
- the check value detecting unit 132 is configured to detect whether the check value of the file existing locally is the same as the check value of the update file;
- the first processing unit 133 is configured to determine that the update file exists locally if the check value of the file exists and the check value of the update file is the same;
- the second processing unit 134 is configured to determine that the update file does not exist locally if the check value of the non-existent file is the same as the check value of the update file.
- system 100 for managing update files further includes other functional modules/units for implementing the method steps in the various embodiments of Embodiment 1.
- FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
- the terminal device 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and operable on the processor 50.
- the processor 50 when executing the computer program 52, implements the steps of the various embodiments as described in embodiment 1, such as steps S101 through S104 shown in FIG.
- the processor 50 executes the computer program 52, the functions of the modules/units in the various system embodiments as described in Embodiment 2 are implemented, such as the functions of the modules 110 to 140 shown in FIG.
- the computer program 52 can be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to complete this invention.
- the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 52 in the terminal device 5.
- the computer program 52 can be divided into an update request receiving module, a download address obtaining module, an update file detecting module, and an update file transmitting module.
- the specific functions of each module are as follows:
- the update request receiving module is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
- the download address obtaining module is configured to obtain an update file download address according to the update request.
- the update file detection module is configured to detect whether an update file corresponding to the update file download address exists locally.
- the update file sending module is configured to send the update file to the target end if an update file exists.
- the terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device 5 may include, but is not limited to, a processor 50 and a memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 5, does not constitute a limitation of the terminal device 5, may include more or less components than the illustrated, or combine some components, or different components.
- the terminal device may further include an input/output device, a network access device, a bus, and the like.
- the so-called processor 50 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5.
- the memory 51 may also be an external storage device of the terminal device 5, for example, a plug-in hard disk equipped on the terminal device 5, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on.
- the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device.
- the memory 51 is used to store the computer program and other programs and data required by the terminal device.
- the memory 51 can also be used to temporarily store data that has been output or is about to be output.
- the embodiment of the present invention further provides a computer readable storage medium storing a computer program.
- the steps in the embodiments as described in Embodiment 1 are implemented, for example, Steps S101 to S104 shown in Fig. 1.
- the computer program is executed by the processor to implement the functions of the modules/units in the various system embodiments as described in Embodiment 2, such as the functions of the modules 110 to 140 shown in FIG.
- the computer program can be stored in a computer readable storage medium, which, when executed by a processor, can implement the steps of the various method embodiments described above.
- the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
- the computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
- the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
- modules or units in the system of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
- the disclosed apparatus/terminal device and method may be implemented in other manners.
- the device/terminal device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division.
- there may be another division manner for example, multiple units.
- components may be combined or integrated into another system, or some features may be omitted or not performed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
本发明属于通信技术领域,尤其涉及一种管理更新文件的方法、系统及终端设备。The present invention belongs to the field of communications technologies, and in particular, to a method, system, and terminal device for managing an update file.
随着通信技术的发展,终端(例如,电脑)的数量越来越多,应用程序(例如,微信)的种类也越来越多。With the development of communication technologies, the number of terminals (for example, computers) is increasing, and the types of applications (for example, WeChat) are also increasing.
现有技术中,当终端中的应用程序需要进行在线更新时,终端需从服务器中下载该应用程序进行更新所需的更新文件,当多台终端同时下载同一更新文件时,均需从服务器中进行下载,极易出现网络阻塞,下载速度缓慢的问题。In the prior art, when an application in the terminal needs to perform an online update, the terminal needs to download an update file required for the application to update from the server, and when multiple terminals simultaneously download the same update file, the terminal needs to be from the server. Downloading, it is very easy to have network congestion, slow download speed.
有鉴于此,本发明实施例提供了一种识管理更新文件的方法、系统及终端设备,以解决现有技术中存在当多台终端同时下载同一更新文件时,均需从服务器中进行下载,极易出现网络阻塞,下载速度缓慢的问题。In view of the above, the embodiment of the present invention provides a method, a system, and a terminal device for identifying and managing an update file, so as to solve the problem in the prior art that when multiple terminals simultaneously download the same update file, they need to download from the server. It is very easy to have network congestion and slow download speed.
本发明实施例的第一方面提供了一种管理更新文件的方法,包括:A first aspect of the embodiments of the present invention provides a method for managing an update file, including:
接收请求端发送的更新请求,所述更新请求包括目标端的信息。Receiving an update request sent by the requesting end, where the update request includes information of the target end.
根据所述更新请求获取更新文件下载地址。Obtain an update file download address according to the update request.
检测本地是否存在所述更新文件下载地址对应的更新文件。It is detected whether the update file corresponding to the update file download address exists locally.
若存在所述更新文件,则将所述更新文件发送至目标端。If the update file exists, the update file is sent to the target end.
本发明实施例的第二方面提供了一种管理更新文件的系统,包括:A second aspect of the embodiments of the present invention provides a system for managing an update file, including:
更新请求接收模块,用于接收请求端发送的更新请求,所述更新请求包括目标端的信息。The update request receiving module is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
下载地址获取模块,用于根据所述更新请求获取更新文件下载地址。The download address obtaining module is configured to obtain an update file download address according to the update request.
更新文件检测模块,用于检测本地是否存在所述更新文件下载地址对应的更新文件。The update file detection module is configured to detect whether an update file corresponding to the update file download address exists locally.
更新文件发送模块,用于若存在所述更新文件,则将所述更新文件发送至目标端。And an update file sending module, configured to send the update file to the target end if the update file exists.
本发明实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述方法的步骤。A third aspect of an embodiment of the present invention provides a terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps of the method as described above are implemented.
本发明实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上所述方法的步骤。A fourth aspect of an embodiment of the present invention provides a computer readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described above.
本发明实施例与现有技术相比存在的有益效果是:本实施例通过接收请求端发送的更新请求,更新请求包括目标端的信息,根据更新请求获取更新文件下载地址,检测本地是否存在更新文件下载地址对应的更新文件,若存在更新文件,则将更新文件发送至目标端。本实施例通过终端设备接收请求端的更新请求,若检测到本地存在与更新请求对应的更新文件,便将更新文件发送至目标端,终端设备无需每次接收到该更新请求后,都对该更新文件进行下载,提高了文件的下载速度,保证了网络的稳定性。Compared with the prior art, the embodiment of the present invention has the beneficial effects that: the embodiment receives the update request sent by the requesting end, the update request includes the information of the target end, obtains the update file download address according to the update request, and detects whether the update file exists locally. The update file corresponding to the download address, if there is an update file, the update file is sent to the target end. In this embodiment, the terminal device receives the update request of the requesting end, and if it detects that the update file corresponding to the update request exists locally, the update file is sent to the target end, and the terminal device does not need to update the update request every time after receiving the update request. The file is downloaded, which improves the download speed of the file and ensures the stability of the network.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本发明一个实施例提供的管理更新文件的方法的实现流程示意图;1 is a schematic flowchart of an implementation of a method for managing an update file according to an embodiment of the present invention;
图2是本发明一个实施例提供的图1中步骤S103的具体实现流程示意图;2 is a schematic diagram of a specific implementation process of step S103 in FIG. 1 according to an embodiment of the present invention;
图3是本发明一个实施例提供的管理更新文件的系统的结构示意图;3 is a schematic structural diagram of a system for managing an update file according to an embodiment of the present invention;
图4是本发明一个实施例提供的更新文件检测模块的具体结构示意图;4 is a schematic structural diagram of an update file detecting module according to an embodiment of the present invention;
图5是本发明一个实施例提供的终端设备的示意图。FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solution described in the present invention, the following description will be made by way of specific embodiments.
实施例Example 11 ::
图1示出了本发明的一个实施例提供的管理更新文件的方法的实现流程,其过程详述如下:FIG. 1 is a flowchart showing an implementation process of a method for managing an update file according to an embodiment of the present invention, and the process is as follows:
在步骤S101中,接收请求端发送的更新请求,更新请求包括目标端的信息。In step S101, an update request sent by the requesting end is received, and the update request includes information of the target end.
在本实施例中,终端设备可以接收请求端的更新请求,例如,终端设备为路由器或者教师机。In this embodiment, the terminal device may receive an update request of the requesting end, for example, the terminal device is a router or a teacher machine.
在本实施例中,接收请求端发送的更新请求,请求端与终端设备进行无线或有线通信。In this embodiment, the update request sent by the requesting end is received, and the requesting end performs wireless or wired communication with the terminal device.
在本实施例中,目标端的信息实际为目标端的标识,可以为目标端的互联网协议地址(Internet Protocol Address,IP)或者为目标端的MAC地址(Media Access Control,硬件地址)。In this embodiment, the information of the target end is actually the identifier of the target end, and may be the Internet protocol address of the target end (Internet) Protocol Address, IP) or the MAC address of the target (Media Access Control, hardware address).
优选地,请求端和目标端的操作系统为iOS系统(iPhone Operation System,苹果公司的移动操作系统)。Preferably, the operating system of the requesting end and the target end is an iOS system (iPhone Operation System, Apple's mobile operating system).
在一个实施例中,步骤S101之前包括:In an embodiment, before step S101,
1)接收请求端发送的身份验证信息,并根据验证信息对请求端进行身份验证,生成验证结果。1) receiving the authentication information sent by the requesting end, and authenticating the requesting end according to the verification information, and generating a verification result.
2)若验证结果为身份验证成功,则接收请求端发送的更新请求。2) If the verification result is that the authentication is successful, the update request sent by the requesting end is received.
3)若验证结果为身份验证失败,则发送身份验证失败信息至请求端,若连续预设次数的身份验证结果均为身份验证失败,则发送报警信息至与终端设备相关联的第三方终端。3) If the verification result is that the authentication fails, the authentication failure information is sent to the requesting end. If the authentication result of the preset preset number of times is the authentication failure, the alarm information is sent to the third-party terminal associated with the terminal device.
其中,身份验证信息包括帐号和密码。The authentication information includes an account number and a password.
其中,身份验证失败信息用于指示请求端继续发送身份验证信息。The authentication failure information is used to indicate that the requesting end continues to send the authentication information.
其中,报警信息包括身份验证失败的请求端的信息和身份验证失败信息。报警信息用于指示第三方终端查询请求端是否在预设允许下载名单中以及查询请求端对应的身份验证信息。The alarm information includes information of the requesting end of the authentication failure and the authentication failure information. The alarm information is used to instruct the third party terminal to query whether the requesting end is in the preset allowed download list and query the authentication information corresponding to the requesting end.
其中,请求端的信息包括请求端的IP地址和/或MAC地址。The information of the requesting end includes the IP address and/or the MAC address of the requesting end.
在本实施例中,当请求端为对保密性要求比较高的部门中的终端设备时,例如,研究机构中的终端设备,需要对请求下载更新文件的请求端进行身份验证,若身份验证成功,则请求端可以进行后续下载更新文件的步骤,对应用程序进行更新。In this embodiment, when the requesting end is a terminal device in a department with a relatively high confidentiality requirement, for example, the terminal device in the research institution needs to perform authentication on the requesting end requesting to download the update file, if the identity verification succeeds The requester can perform the subsequent steps of downloading the update file to update the application.
在本实施例中,若验证结果为身份验证失败,则发送身份验证失败信息至请求端,身份验证失败信息可以为验证失败原因,例如,密码错误,当请求端接收到身份验证失败信息后,继续发送身份验证信息至终端设备以使终端设备继续进行身份验证,若身份验证失败的次数超过了预设次数,则终端设备发送报警信息至与终端设备相关联的第三方终端,当第三方终端设备接收报警信息后,根据请求端的信息查询请求端是否在预设允许下载名单中,若请求端在预设允许下载名单中,则查询请求端对应的身份验证信息,并将正确的身份验证信息发送至对应的请求端,请求端将身份验证信息重新发送至终端设备。In this embodiment, if the verification result is that the authentication fails, the authentication failure information is sent to the requesting end, and the authentication failure information may be the reason for the verification failure, for example, the password is incorrect. When the requesting end receives the authentication failure information, Continue to send the authentication information to the terminal device to enable the terminal device to continue to perform identity verification. If the number of times the identity verification fails exceeds the preset number of times, the terminal device sends an alarm message to the third-party terminal associated with the terminal device, and the third-party terminal After receiving the alarm information, the device queries whether the requesting end is in the preset allowable download list according to the information of the requesting end. If the requesting end is in the preset allowed downloading list, the device queries the authentication information corresponding to the requesting end, and the correct authentication information is obtained. Sended to the corresponding requesting end, the requesting end resends the authentication information to the terminal device.
以一个具体应用场景为例,预设次数为2,请求端A发送身份验证信息至终端设备,终端设备对该身份验证信息进行验证,生成验证结果,当验证结果为身份验证失败时,则发送身份验证信息至请求端A,请求端A对应的用户重新输入身份验证信息,请求端A将新的身份验证信息发送至终端设备,终端设备对该身份验证信息进行验证,生成验证结果,当验证结果为身份验证失败时,终端设备发送报警信息至第三方终端,第三方终端根据报警信息,查询请求端A是否在预设允许下载名单中,若请求端A在预设允许下载名单中,则发送请求端A对应的正确的身份验证信息,请求端A将正确的身份验证信息发送至终端设备,终端设备对正确的身份验证信息进行身份验证,生成身份验证成功的验证结果,若请求端A不在预设允许下载名单中,则认为请求端A为非法用户终端,生成禁止下载指令至终端设备,终端设备根据禁止下载指令禁止请求端A下载更新文件。Taking a specific application scenario as an example, the preset number of times is 2, and the requesting end A sends the authentication information to the terminal device, and the terminal device verifies the authentication information to generate a verification result. When the verification result is that the authentication fails, the request is sent. The authentication information is sent to the requesting end A, and the user corresponding to the requesting end A re-enters the authentication information, and the requesting end A sends the new authentication information to the terminal device, and the terminal device verifies the authentication information, generates a verification result, and performs verification. The result is that when the authentication fails, the terminal device sends an alarm message to the third-party terminal, and the third-party terminal queries whether the requesting end A is in the preset allowed download list according to the alarm information, and if the requesting end A is in the preset allowed downloading list, Sending the correct authentication information corresponding to the requesting end A, the requesting end A sends the correct authentication information to the terminal device, and the terminal device authenticates the correct authentication information, and generates a verification result of the successful authentication, if the requesting end A If the preset is not allowed to be downloaded, the requester A is considered to be an illegal user. Generating prohibiting download instruction to the terminal device, the terminal apparatus prohibits disabled according to the download instruction request terminal A download updates.
在本实施例中,通过在请求端发送更新请求前,需要对请求端进行身份验证,避免出现保密性高的更新文件被非法终端下载的情况,提高了下载更新文件的安全性。In this embodiment, before the update request is sent by the requesting end, the requesting end needs to be authenticated to avoid the situation that the highly confidential update file is downloaded by the illegal terminal, and the security of downloading the updated file is improved.
在步骤S102中,根据更新请求获取更新文件下载地址。In step S102, an update file download address is acquired according to the update request.
在本发明的一个实施例中,更新请求包括属性列表文件下载请求,更新文件下载地址包括应用程序安装包下载地址。In one embodiment of the invention, the update request includes an attribute list file download request, and the update file download address includes an application installation package download address.
在本发明的一个实施例中,步骤S102包括:In an embodiment of the invention, step S102 includes:
1)根据属性列表文件下载请求获取属性列表文件下载地址。1) Obtain the attribute list file download address according to the attribute list file download request.
2)检测本地是否存在属性列表文件下载地址对应的属性列表文件。2) Detect whether there is an attribute list file corresponding to the download address of the attribute list file locally.
3)若存在属性列表文件,则解析属性列表文件,得到对应的应用程序安装包下载地址。3) If there is an attribute list file, parse the attribute list file to obtain the corresponding application installation package download address.
4)若不存在属性列表文件,则根据属性列表文件下载地址下载对应的属性列表文件,并解析下载的属性列表文件,得到对应的应用程序安装包下载地址。4) If the attribute list file does not exist, download the corresponding attribute list file according to the attribute list file download address, and parse the downloaded attribute list file to obtain the corresponding application installation package download address.
在本实施例中,更新文件包括应用程序安装包和资源文件,应用程序安装包可以为IPA(iPhone Application,苹果应用程序文件格式)安装包。In this embodiment, the update file includes an application installation package and a resource file, and the application installation package may be an IPA (iPhone Application, Apple Application File Format) installation package.
在本实施例中,当请求端更新应用程序时,需要先下载IPA安装包,当IPA安装包下载并安装完成后,当用户打开该应用程序,开始请求下载资源文件。其中资源文件可以为图片、JS(JavaScript)静态资源文件和CSS(Cascading Style Sheets,层叠样式表)静态资源文件、序列帧资源文件、DAE文件和SCN文件等等。In this embodiment, when the requesting end updates the application, the IPA installation package needs to be downloaded first. After the IPA installation package is downloaded and installed, when the user opens the application, the request to download the resource file is started. The resource files can be pictures, JS (JavaScript) static resource files and CSS (Cascading Style Sheets) static resource files, sequence frame resource files, DAE files and SCN files, and the like.
在本实施例中,属性列表(Property List,PList)文件下载请求可以为属性列表文件下载地址,请求端选择在线更新某个应用程序时,需要通过包含plist字符的网址下载属性列表文件,调用代码检测工具解析属性列表文件,得到应用程序安装包下载地址,例如,当请求端想要在线更新应用程序时,请求端通itms-services://?action=download-manifest&url=https://dn-ipa-ideamake.qbox.me/plists/__2681693444.plist这个网址,下载该应用程序的属性列表文件,通过调用代码检测工具检测属性列表文件的包含的代码,得到应用程序安装包下载地址,通过应用程序安装包下载地址可以下载应用程序安装包。其中,应用程序安装包下载地址最后是以.ipa结束的,例如http://myserver.com/Apps.ipa。In this embodiment, the property list (PList) file download request may be the attribute list file download address, and when the requesting end selects to update an application online, the content list file needs to be downloaded through the URL containing the plist character, and the code is called. The detection tool parses the attribute list file to obtain the application installation package download address. For example, when the requester wants to update the application online, the request terminal passes itms-services://?action=download-manifest&url=https://dn- Ipa-ideamake.qbox.me/plists/__2681693444.plist This website downloads the application's property list file, and detects the code included in the property list file by calling the code detection tool to get the application installation package download address through the application. The installation package download address can be downloaded from the application installation package. The application installation package download address ends with .ipa, for example, http://myserver.com/Apps.ipa.
其中,属性列表文件是一种用来存储串行化后的对象的文件,在iOS开发中通常用来存储用户设置,还可以用于存储程序中经常用到而不经常改动的数据,实质上为一个XML(Extensible Markup Language,可扩展标记语言)文件。Among them, the attribute list file is a file for storing serialized objects. It is usually used to store user settings in iOS development, and can also be used to store data that is often used in programs without frequent changes. Is an XML (Extensible Markup Language) file.
优选地,当请求端的数量较多时,大于预设数量时,为了节省请求端发送属性列表文件下载请求的时间,更新请求可以为属性列表文件下载请求信息,属性列表文件下载请求信息包括需要下载的属性列表文件名称,终端设备接收到属性列表文件下载请求信息后,自动根据属性列表文件名称进行上网查找对应的属性列表文件下载地址,从而请求端无需进行查找属性列表文件下载地址,可以直接发送属性列表文件下载请求信息至终端设备,终端设备根据属性列表文件名称获取属性列表文件下载地址,避免出现每台请求端需要先自行查找属性列表文件下载地址的情况,提高了整体属性列表文件下载地址获取效率。Preferably, when the number of the requesting ends is greater than the preset number, in order to save the time for the requesting end to send the attribute list file download request, the update request may be the attribute list file download request information, and the attribute list file download request information includes the download required. The attribute list file name, after receiving the attribute list file download request information, the terminal device automatically searches for the corresponding attribute list file download address according to the attribute list file name, so that the request end does not need to perform the search attribute list file download address, and can directly send the attribute. The downloading request information of the list file is sent to the terminal device, and the terminal device obtains the downloading address of the attribute list file according to the attribute list file name, so as to avoid the situation that each requesting end needs to first search for the downloading address of the attribute list file, thereby improving the downloading address of the entire attribute list file. effectiveness.
在一个实施例中,本地可以为本地硬盘,为了提高数据交互的速度,本地优选为本地缓存。In one embodiment, the local device may be a local hard disk. To improve the speed of data interaction, the local is preferably a local cache.
在本发明的一个实施例中,更新请求还包括资源文件下载请求,更新文件下载地址还包括资源文件下载地址。In an embodiment of the invention, the update request further includes a resource file download request, and the update file download address further includes a resource file download address.
在本发明的一个实施例中,步骤S102还包括:In an embodiment of the present invention, step S102 further includes:
根据资源文件下载请求获取对应的资源文件下载地址。The corresponding resource file download address is obtained according to the resource file download request.
在本实施例中,当下载的应用程序安装包文件安装成功后,便自动发送资源文件下载请求至终端设备,以使终端设备下载需要下载的资源文件,资源文件下载请求可以直接包括资源文件下载地址。In this embodiment, after the downloaded application installation package file is successfully installed, the resource file download request is automatically sent to the terminal device, so that the terminal device downloads the resource file that needs to be downloaded, and the resource file download request may directly include the resource file download. address.
在步骤S103中,检测本地是否存在更新文件下载地址对应的更新文件。In step S103, it is detected whether there is an update file corresponding to the update file download address locally.
在本实施例中,检测本地是否存在应用程序安装包下载地址对应的应用程序安装包或资源文件下载地址对应的资源文件。In this embodiment, it is detected whether there is a resource file corresponding to the application installation package or the resource file download address corresponding to the download address of the application installation package.
在步骤S104中,若存在更新文件,则将更新文件发送至目标端。In step S104, if there is an update file, the update file is sent to the target end.
在本实施例中,请求端和目标端可以相同,也可以不同,目标端的数量不做限制,可以为一个,也可以为多个。In this embodiment, the requesting end and the target end may be the same or different, and the number of the target end is not limited, and may be one or multiple.
在本实施例中,若本地存在请求端请求的更新文件,则将更新文件发送至至少一个目标端,目标端为目标端的信息对应的终端设备。In this embodiment, if the update file requested by the requesting end exists locally, the update file is sent to at least one target end, and the target end is the terminal device corresponding to the information of the target end.
在本实施例中,通过使更新请求中包含目标端的信息,终端设备可以根据目标端的信息将更新文件发送至需要进行应用程序更新的目标端,无需一一向终端设备请求更新文件,提高了更新文件的获取效率。In this embodiment, by including the information of the target end in the update request, the terminal device can send the update file to the target end that needs to perform the application update according to the information of the target end, without requesting the update file to the terminal device one by one, and the update is improved. The efficiency of obtaining documents.
以一个具体用于场景为例,请求端为A,目标端为B和C,终端设备接收A发送的更新请求,并根据更新请求将对应的更新文件发送至B和C。Taking a specific scenario as an example, the requesting end is A, the target end is B and C, and the terminal device receives the update request sent by A, and sends the corresponding update file to B and C according to the update request.
在一个实施例中,记录更新文件的发送频次,若发送频次大于预设频次,则发送下载信息至相关联的终端。In one embodiment, the transmission frequency of the update file is recorded, and if the transmission frequency is greater than the preset frequency, the download information is sent to the associated terminal.
其中,发送频次是在第一预设时间内,更新文件的发送次数,例如,在1个月内,终端设备发送30次A文件至目标端,则发送次数为30。The sending frequency is the number of times the file is sent in the first preset time. For example, if the terminal device sends the A file 30 times to the target end within one month, the number of times of sending is 30.
其中,相关联的终端是指在第一预设时间内没有接收过该更新文件,且通过终端设备进行上网,例如,在第一预设时间内,终端设备没有发送过A文件至B终端,且终端设备控制B终端进行上网,B终端为与终端设备相关联的终端。The associated terminal does not receive the update file in the first preset time, and accesses the Internet through the terminal device. For example, in the first preset time, the terminal device does not send the A file to the B terminal. And the terminal device controls the B terminal to access the Internet, and the B terminal is the terminal associated with the terminal device.
其中,下载信息用于指示相关联的终端选择是否下载该更新文件。The download information is used to indicate whether the associated terminal selects whether to download the update file.
以一个应用场景为例,C文件的发送频次为20,预设频次为21,C文件的发送频次大于预设频次,则发送下载信息至相关联的终端a和终端b,当终端a和终端b接收到下载信息后,终端a和终端b对应的用户选择是否下载该更新文件,若终端a选择更新,则发送选择更新信息至终端设备,终端设备将该更新文件发送至终端a,若终端b选择不更新,则发送选择不更新信息至终端设备,终端设备不发送该更新文件至终端b。Taking an application scenario as an example, the sending frequency of the C file is 20, the preset frequency is 21, and the sending frequency of the C file is greater than the preset frequency, then the downloading information is sent to the associated terminal a and terminal b, when the terminal a and the terminal After receiving the download information, the user corresponding to the terminal a and the terminal b selects whether to download the update file, and if the terminal a selects the update, the terminal selects the update information to the terminal device, and the terminal device sends the update file to the terminal a, if the terminal b If no update is selected, the transmission does not update the information to the terminal device, and the terminal device does not send the update file to the terminal b.
在本实施例中,通过记录更新文件的发送频次,根据判断发送频次是否大于预设次数,从而判断该更新文件是否为用户所需的文件,自动发送下载信息至终端,根据终端的选择是否发送发送该更新文件,实现了更新文件的自动推荐,提高了用户的体验度。In this embodiment, by recording the frequency of sending the update file, determining whether the transmission frequency is greater than the preset number of times, thereby determining whether the update file is a file required by the user, automatically sending the download information to the terminal, and whether to send according to the terminal selection. Sending the update file enables automatic recommendation of the update file, which improves the user experience.
在本发明的一个实施例中,若不存在更新文件,则根据更新文件下载地址下载对应的更新文件,将下载的更新文件保存至本地,并发送至目标端。In an embodiment of the present invention, if there is no update file, the corresponding update file is downloaded according to the update file download address, and the downloaded update file is saved locally and sent to the target end.
在本实施例中,若本地不存在请求端请求的更新文件,则根据更新文件下载地址下载对应的更新文件,并将下载的更新文件保存至本地,且发送到目标端。In this embodiment, if there is no update file requested by the requesting end, the corresponding update file is downloaded according to the update file download address, and the downloaded update file is saved locally and sent to the target end.
优选地,更新文件仅存储于本地缓存,因此,仅需在本地缓存中查找是否存在该更新文件。Preferably, the update file is only stored in the local cache, so only the local cache is required to find out if the update file exists.
在本发明的一个实施例中,获取终端设备发送的禁止下载的文件名称,将所述禁止下载的文件名称添加至预设禁止下载名单。In an embodiment of the present invention, the name of the file that is prohibited from being downloaded sent by the terminal device is acquired, and the name of the file that is prohibited from being downloaded is added to the preset forbidden download list.
在本实施例中,当一个文件名称被添加至预设禁止下载名单时,终端设备不再下载该文件,也不再将该文件发送至目标端,从而实现了远程控制终端设备。In this embodiment, when a file name is added to the preset forbidden download list, the terminal device no longer downloads the file, and the file is no longer sent to the target end, thereby realizing the remote control terminal device.
以一个具体应用场景为例,一个文件名称为A,获取终端发送的禁止下载的文件名称,发现禁止下载的文件名称中包含A,则将A添加值预设禁止下载名单中,若本地中存储有文件A,则禁止发送文件A至目标端,若本地种没有存储有文件A,则不再下载文件A。Take a specific application scenario as an example. A file name is A. Obtain the name of the file that is prohibited from being downloaded by the terminal. If the name of the file that is forbidden to download contains A, the value added by A is prohibited in the download list. If it is stored locally. If there is file A, it is forbidden to send file A to the target end. If the local type does not store file A, file A is no longer downloaded.
在本发明的一个实施例中,获取最新版本的更新文件,将最新版本的更新文件保存至本地预设目录中,并删除预设目录中的历史版本的更新文件。In an embodiment of the present invention, the latest version of the update file is obtained, the latest version of the update file is saved to the local preset directory, and the historical version of the update file in the preset directory is deleted.
其中,预设目录的名称为应用程序标识(Bundle Identifie,Bundle ID),Bundle ID是应用程序唯一的标识,应用程序与Bundle ID是唯一对应的关系,当应用程序新建成功后,Bundle ID便不能进行修改。The default directory name is the application ID (Bundle Identifie, Bundle ID), and the Bundle ID is the unique identifier of the application. The application and the Bundle ID are uniquely related. When the application is newly created, the Bundle is created. The ID cannot be modified.
在本实施例中,更新文件是分版本的,当检测到本地中的更新文件的当前版本与最新版本不同,则自动下载最新版本的更新文件或接收终端设备发送的更新文件,并将最新版本的更新文件保存至本地预设目录中,将最新版本的更新文件作为当前版本的更新文件,删除预设目录中的历史版本的更新文件,从而完成了更新文件的本地更新,并通过自动删除多余文件,节约了存储空间,提高了资源的有效利用率。In this embodiment, the update file is a version. When it is detected that the current version of the update file in the local is different from the latest version, the latest version of the update file is automatically downloaded or the update file sent by the terminal device is received, and the latest version is obtained. The update file is saved to the local preset directory, and the latest version of the update file is used as the update file of the current version, and the update file of the historical version in the preset directory is deleted, thereby completing the local update of the update file, and automatically deleting the redundant file. The file saves storage space and improves the effective utilization of resources.
以一个具体应用场景为例,某一个更新文件的当前版本为V1.0,最新版本为V2.0,则判断更新文件的当前版本并非最新版本,下载最新版本的更新文件至预设目录中,并删除预设目标中的版本号为V1.0的历史版本的更新文件,从而节约了存储空间。Take a specific application scenario as an example. If the current version of an update file is V1.0 and the latest version is V2.0, determine that the current version of the update file is not the latest version, and download the latest version of the update file to the default directory. The update file of the historical version with the version number V1.0 in the preset target is deleted, thereby saving storage space.
在一个实施例中,接收第三方终端发送的最新版本的更新文件,将最新版本的更新文件保存至本地预设目录中,并删除预设目录中的历史版本的更新文件,实现更新文件的主动更新,避免出现因网络缓存而导致信息滞后,无法获取到最新版本的更新文件的情况。In an embodiment, the latest version of the update file sent by the third-party terminal is received, the latest version of the update file is saved to the local preset directory, and the historical version of the update file in the preset directory is deleted, so as to implement the update file actively. Update to avoid the situation where the information is lagging due to network caching and the latest version of the update file cannot be obtained.
在本实施例中,通过终端设备接收请求端的更新请求,若检测到本地存在与更新请求对应的更新文件,便将更新文件发送至目标端,终端设备无需每次接收到该更新请求后,都对该更新文件进行下载,避免出现当多台终端同时下载同一更新文件时,均需从服务器中进行下载导致网络阻塞的情况,终端设备仅需进行一次下载,便可实现多次分发,提高了文件的下载速度以及文件的分发效率,保证了网络的稳定性,减少对带宽的占用,提高了网络资源的利用率。In this embodiment, the terminal device receives the update request of the requesting end, and if it detects that the update file corresponding to the update request exists locally, sends the update file to the target end, and the terminal device does not need to receive the update request every time. The update file is downloaded to avoid the situation that when multiple terminals download the same update file at the same time, the network device is blocked from being downloaded from the server, and the terminal device only needs to perform one download, thereby achieving multiple distributions and improving. The download speed of files and the efficiency of file distribution ensure the stability of the network, reduce the bandwidth consumption, and improve the utilization of network resources.
如图2所示,在本发明的一个实施例中,图1所对应的实施例中步骤S103具体包括:As shown in FIG. 2, in an embodiment of the present invention, step S103 in the embodiment corresponding to FIG. 1 specifically includes:
在步骤201中,获取更新文件的校验值。In step 201, a check value of the update file is obtained.
在本实施例中,校验值可以为MD5(Message Digest Algorithm 5,消息摘要算法第五版)值。In this embodiment, the check value may be MD5 (Message Digest) Algorithm 5, message digest algorithm fifth edition) value.
在一个实施例中,更新文件的数量不做限定,当研发人员上传更新文件至指定服务器时,需要对每个更新文件进行MD5加密,得到对应的MD5值,并以MD5值对对应的备份更新文件进行命名,得到新的更新文件,然后将新的更新文件上传到指定服务器中,由于每个MD5值时唯一的,因此,更新文件的校验值即为更新文件的名称,且名称唯一,从而避免出现在上传更新文件时,由于更新文件名称相同而导致重复发送更新文件的情况,保证了更新文件的完整性,同时有效避免由于子更新文件名称相同,重复上传或重复下载更新文件造成的网络资源的浪费。In an embodiment, the number of update files is not limited. When the developer uploads the update file to the specified server, MD5 encryption is required for each update file to obtain the corresponding MD5 value, and the corresponding backup is updated with the MD5 value. The file is named, the new update file is obtained, and then the new update file is uploaded to the specified server. Since each MD5 value is unique, the check value of the update file is the name of the update file, and the name is unique. Therefore, when the update file is uploaded, the update file is repeatedly sent due to the same name of the update file, which ensures the integrity of the update file, and effectively avoids the repeated upload or repeated download of the update file due to the same name of the sub-update file. Waste of network resources.
以一个具体应用场景为例,一个更新文件原本的名称为11,备份的更新文件名称也为11,对该更新文件进行MD5加密,得到MD5值为aa,则该备份的更新文件的名称替换为对应的MD5值,变为aa,得到新的更新文件的名称是aa,将新的更新文件上传到指定服务器中。Take a specific application scenario as an example. The original name of an update file is 11, and the name of the backup update file is also 11, and the update file is MD5 encrypted. If the MD5 value is aa, the name of the backup update file is replaced with The corresponding MD5 value changes to aa, and the name of the new update file is aa, and the new update file is uploaded to the specified server.
在本实施例中,根据在预设对照表中查找更新文件下载地址对应的更新文件的名称,即更新文件的校验值。In this embodiment, the name of the update file corresponding to the update file download address is searched for in the preset lookup table, that is, the check value of the file is updated.
其中,预设对照表为预先建立的更新文件下载地址与更新文件的名称的对照表,当终端设备第一次下载更新文件时,便将更新文件下载地址与更新文件的名称对应关系记录下载,并保存在对照表中。The preset comparison table is a comparison table of the pre-established update file download address and the name of the update file. When the terminal device downloads the update file for the first time, the correspondence between the update file download address and the name of the update file is recorded and downloaded. And saved in the comparison table.
在本实施例中,预设对照表中保存在本地,优选地,为了减少对缓存的占用,将预设对照表保存在本地硬盘。In this embodiment, the preset comparison table is saved locally, and preferably, in order to reduce the occupation of the cache, the preset comparison table is saved on the local hard disk.
在步骤S202中,检测本地是否存在文件的校验值与更新文件的校验值相同。In step S202, it is detected whether the check value of the file existing locally is the same as the check value of the update file.
在本实施例中,检测本地是否存在文件的校验值与更新文件的校验值相同,即,检测本地是否存在文件的名称与更新文件的名称相同,从而判断出本地是否存在该更新文件。In this embodiment, the check value of whether the file exists locally is the same as the check value of the update file, that is, whether the name of the file exists locally is the same as the name of the update file, so as to determine whether the update file exists locally.
在步骤S203中,若存在文件的校验值与更新文件的校验值相同,则确定本地存在更新文件。In step S203, if the check value of the existing file is the same as the check value of the update file, it is determined that the update file exists locally.
在步骤S204中,若不存在文件的校验值与更新文件的校验值相同,则确定本地不存在更新文件。In step S204, if the check value of the non-existent file is the same as the check value of the update file, it is determined that the update file does not exist locally.
在本实施例中,若存在本地存储的文件的校验值与更新文件的校验值相同,则确定本地存储有更新文件,反之,若本地存储的文件的校验值都与更新文件不同,则确定本地不存在请求端请求的更新文件,需要从服务器进行下载。In this embodiment, if the check value of the locally stored file is the same as the check value of the update file, it is determined that the update file is stored locally, and if the check value of the locally stored file is different from the update file, Then it is determined that there is no update file requested by the requester locally, and the download is required from the server.
在一个实施例中,接收用户在与终端设备相关联的外部终端输入的文件删除指令,对相应的文件进行删除,实现文件的远程管理。In one embodiment, a file deletion instruction input by a user at an external terminal associated with the terminal device is received, and the corresponding file is deleted to implement remote management of the file.
在本实施例中,通过在本地检测是否存在文件的校验值与更新文件的校验值相同,从而有效地确定了本地是否存在该更新文件,并且由于校验值是唯一的,避免出现文件名称相同的情况,从而有效避免传输文件错误的情况的出现,提高了文件传输的准确度以及传输效率。In this embodiment, by locally detecting whether the check value of the file exists is the same as the check value of the update file, it is effectively determined whether the update file exists locally, and since the check value is unique, the file is avoided. The case of the same name, thereby effectively avoiding the occurrence of transmission file errors, improving the accuracy of file transmission and transmission efficiency.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be construed as limiting the implementation of the embodiments of the present invention.
实施例Example 22 ::
图3示出了本发明的一个实施例提供的管理更新文件的系统100,用于执行图1所对应的实施例中的方法步骤,其包括:FIG. 3 shows a system 100 for managing an update file provided by an embodiment of the present invention, for performing the method steps in the embodiment corresponding to FIG. 1, which includes:
更新请求接收模块110,用于接收请求端发送的更新请求,更新请求包括目标端的信息。The update request receiving module 110 is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
下载地址获取模块120,用于根据更新请求获取更新文件下载地址。The download address obtaining module 120 is configured to obtain an update file download address according to the update request.
更新文件检测模块130,用于检测本地是否存在更新文件下载地址对应的更新文件。The update file detection module 130 is configured to detect whether an update file corresponding to the update file download address exists locally.
更新文件发送模块140,用于若存在更新文件,则将更新文件发送至目标端。The update file sending module 140 is configured to send the update file to the target end if the update file exists.
在本发明的一个实施例中,所述管理更新文件的系统100还包括:In an embodiment of the present invention, the system 100 for managing an update file further includes:
更新文件下载模块,用于若不存在所述更新文件,则根据所述更新文件下载地址下载对应的更新文件;An update file downloading module, configured to download the corresponding update file according to the update file download address if the update file does not exist;
更新文件处理模块,用于将下载的更新文件保存至本地,并发送至所述目标端。An update file processing module is configured to save the downloaded update file to the local and send to the target end.
在本发明的一个实施例中,更新请求包括属性列表文件下载请求,更新文件下载地址包括应用程序安装包下载地址。In one embodiment of the invention, the update request includes an attribute list file download request, and the update file download address includes an application installation package download address.
在本发明的一个实施例中,下载地址获取模块120包括:In an embodiment of the present invention, the download address obtaining module 120 includes:
第一文件下载地址获取单元,用于根据属性列表文件下载请求获取属性列表文件下载地址。The first file download address obtaining unit is configured to obtain an attribute list file download address according to the attribute list file download request.
判断单元,用于检测本地是否存在属性列表文件下载地址对应的属性列表文件。The determining unit is configured to detect whether the attribute list file corresponding to the download address of the attribute list file exists locally.
第一安装包下载地址获取单元,用于若存在属性列表文件,则解析属性列表文件,得到对应的应用程序安装包下载地址。The first installation package download address obtaining unit is configured to parse the attribute list file if the attribute list file exists, and obtain a corresponding application installation package download address.
第二安装包下载地址获取单元,若不存在属性列表文件,则根据属性列表文件下载地址下载对应的属性列表文件,并解析下载的属性列表文件,得到对应的应用程序安装包下载地址。The second installation package download address obtaining unit, if the attribute list file does not exist, download the corresponding attribute list file according to the attribute list file download address, and parse the downloaded attribute list file to obtain the corresponding application installation package download address.
在本发明的一个实施例中,更新请求还包括资源文件下载请求,更新文件下载地址还包括资源文件下载地址。In an embodiment of the invention, the update request further includes a resource file download request, and the update file download address further includes a resource file download address.
在本发明的一个实施例中,下载地址获取模块120包括:In an embodiment of the present invention, the download address obtaining module 120 includes:
资源文件下载地址获取模块,用于根据资源文件下载请求获取对应的资源文件下载地址。The resource file download address obtaining module is configured to obtain a corresponding resource file download address according to the resource file download request.
在本发明的一个实施例中,所述管理更新文件的系统100还包括:In an embodiment of the present invention, the system 100 for managing an update file further includes:
更新文件获取模块,用于获取最新版本的更新文件;An update file acquisition module for obtaining an update file of the latest version;
更新文件存储模块,用于将所述最新版本的更新文件保存至本地预设目录中,并删除所述预设目录中的历史版本的更新文件。And an update file storage module, configured to save the latest version of the update file to a local preset directory, and delete the historical version of the update file in the preset directory.
在本发明的一个实施例中,所述管理更新文件的系统100还包括:In an embodiment of the present invention, the system 100 for managing an update file further includes:
禁止下载名称获取模块,用于获取终端设备发送的禁止下载的文件名称。It is forbidden to download the name obtaining module, which is used to obtain the name of the file that is prohibited from being downloaded by the terminal device.
禁止下载名称添加模块,用于将所述禁止下载的文件名称添加至预设禁止下载名单。The downloading of the name adding module is prohibited, and the name of the file that is prohibited from being downloaded is added to the preset prohibited downloading list.
如图4所示,在本发明的一个实施例中,图4所对应的实施例中更新文件检测模块130具体包括:As shown in FIG. 4, in an embodiment of the present invention, the update file detection module 130 in the embodiment corresponding to FIG. 4 specifically includes:
校验值获取单元131,用于获取更新文件的校验值;The check value obtaining unit 131 is configured to obtain a check value of the update file.
校验值检测单元132,用于检测本地是否存在文件的校验值与更新文件的校验值相同;The check value detecting unit 132 is configured to detect whether the check value of the file existing locally is the same as the check value of the update file;
第一处理单元133,用于若存在文件的校验值与更新文件的校验值相同,则确定本地存在更新文件;The first processing unit 133 is configured to determine that the update file exists locally if the check value of the file exists and the check value of the update file is the same;
第二处理单元134,用于若不存在文件的校验值与更新文件的校验值相同,则确定本地不存在更新文件。The second processing unit 134 is configured to determine that the update file does not exist locally if the check value of the non-existent file is the same as the check value of the update file.
在一个实施例中,管理更新文件的系统100还包括其他功能模块/单元,用于实现实施例1中各实施例中的方法步骤。In one embodiment, the system 100 for managing update files further includes other functional modules/units for implementing the method steps in the various embodiments of Embodiment 1.
实施例Example 33 ::
图5是本发明一实施例提供的终端设备的示意图。如图5所示,该实施例的终端设备5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52。所述处理器50执行所述计算机程序52时实现如实施例1中所述的各实施例的步骤,例如图1所示的步骤S101至步骤S104。或者,所述处理器50执行所述计算机程序52时实现如实施例2中所述的各系统实施例中的各模块/单元的功能,例如图3所示模块110至140的功能。FIG. 5 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 5, the terminal device 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and operable on the processor 50. The processor 50, when executing the computer program 52, implements the steps of the various embodiments as described in embodiment 1, such as steps S101 through S104 shown in FIG. Alternatively, when the processor 50 executes the computer program 52, the functions of the modules/units in the various system embodiments as described in Embodiment 2 are implemented, such as the functions of the modules 110 to 140 shown in FIG.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述终端设备5中的执行过程。例如,所述计算机程序52可以被分割成更新请求接收模块、下载地址获取模块、更新文件检测模块和更新文件发送模块。各模块具体功能如下:Illustratively, the computer program 52 can be partitioned into one or more modules/units that are stored in the memory 51 and executed by the processor 50 to complete this invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 52 in the terminal device 5. For example, the computer program 52 can be divided into an update request receiving module, a download address obtaining module, an update file detecting module, and an update file transmitting module. The specific functions of each module are as follows:
更新请求接收模块,用于接收请求端发送的更新请求,更新请求包括目标端的信息。The update request receiving module is configured to receive an update request sent by the requesting end, where the update request includes information of the target end.
下载地址获取模块,用于根据更新请求获取更新文件下载地址。The download address obtaining module is configured to obtain an update file download address according to the update request.
更新文件检测模块,用于检测本地是否存在更新文件下载地址对应的更新文件。The update file detection module is configured to detect whether an update file corresponding to the update file download address exists locally.
更新文件发送模块,用于若存在更新文件,则将更新文件发送至目标端。The update file sending module is configured to send the update file to the target end if an update file exists.
所述终端设备5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备5可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是终端设备5的示例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device 5 may include, but is not limited to, a processor 50 and a memory 51. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 5, does not constitute a limitation of the terminal device 5, may include more or less components than the illustrated, or combine some components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器51可以是所述终端设备5的内部存储单元,例如终端设备5的硬盘或内存。所述存储器51也可以是所述终端设备5的外部存储设备,例如所述终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器51还可以既包括所述终端设备5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, for example, a plug-in hard disk equipped on the terminal device 5, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on. Further, the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal device. The memory 51 can also be used to temporarily store data that has been output or is about to be output.
实施例Example 44 ::
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如实施例1中所述的各实施例中的步骤,例如图1所示的步骤S101至步骤S104。或者,所述计算机程序被处理器执行时实现如实施例2中所述的各系统实施例中的各模块/单元的功能,例如图3所示的模块110至140的功能。The embodiment of the present invention further provides a computer readable storage medium storing a computer program. When the computer program is executed by the processor, the steps in the embodiments as described in Embodiment 1 are implemented, for example, Steps S101 to S104 shown in Fig. 1. Alternatively, the computer program is executed by the processor to implement the functions of the modules/units in the various system embodiments as described in Embodiment 2, such as the functions of the modules 110 to 140 shown in FIG.
所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The computer program can be stored in a computer readable storage medium, which, when executed by a processor, can implement the steps of the various method embodiments described above. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media It does not include electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in a certain embodiment can be referred to the related descriptions of other embodiments.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例系统中的模块或单元可以根据实际需要进行合并、划分和删减。The modules or units in the system of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the device/terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810337932.3 | 2018-04-16 | ||
| CN201810337932.3A CN109391673B (en) | 2018-04-16 | 2018-04-16 | Method, system and terminal equipment for managing update file |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019201040A1 true WO2019201040A1 (en) | 2019-10-24 |
Family
ID=65417428
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/078171 Ceased WO2019201040A1 (en) | 2018-04-16 | 2019-03-14 | File update management method and system and terminal apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109391673B (en) |
| WO (1) | WO2019201040A1 (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112799955A (en) * | 2021-02-08 | 2021-05-14 | 腾讯科技(深圳)有限公司 | Model change detection method and device, storage medium and electronic equipment |
| CN113010187A (en) * | 2021-02-07 | 2021-06-22 | 上海硬通网络科技有限公司 | Application installation method and device and electronic equipment |
| CN114258525A (en) * | 2019-10-29 | 2022-03-29 | 深圳市欢太科技有限公司 | Data updating method and device, terminal equipment and computer readable storage medium |
| CN115086172A (en) * | 2022-07-25 | 2022-09-20 | 广东壹公里数智科技有限公司 | Data gateway plug-in updating method and device, electronic equipment and storage medium |
| CN116303470A (en) * | 2023-03-31 | 2023-06-23 | 联想(北京)有限公司 | A recording method, terminal, and storage medium |
| CN116340421A (en) * | 2023-02-20 | 2023-06-27 | 深圳市鸿合创新信息技术有限责任公司 | Course data synchronization method, device, electronic equipment and storage medium |
| CN118394438A (en) * | 2024-04-30 | 2024-07-26 | 福建星网视易信息系统有限公司 | Multi-terminal interface synchronization method and system |
| CN118822468A (en) * | 2024-09-10 | 2024-10-22 | 恒实建设管理股份有限公司 | Project data information management method and system |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109391673B (en) * | 2018-04-16 | 2021-01-05 | 深圳思为科技有限公司 | Method, system and terminal equipment for managing update file |
| CN110780887B (en) * | 2019-09-23 | 2024-06-21 | 连尚(新昌)网络科技有限公司 | A method and device for providing application installation package |
| CN113127859B (en) * | 2019-12-30 | 2024-04-12 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for detecting files to be detected |
| CN113542391A (en) * | 2021-07-12 | 2021-10-22 | 一飞(海南)科技有限公司 | Method, system and medium for downloading and filtering same files of formation airplane waypoint files |
| CN115348254B (en) * | 2022-07-21 | 2023-05-30 | 昆仑数智科技有限责任公司 | File packing and downloading method and device, electronic equipment and storage medium |
| CN116302003A (en) * | 2023-04-24 | 2023-06-23 | 山东浪潮科学研究院有限公司 | A method, device, equipment and storage medium for accelerating online reconfiguration of cores |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7710899B1 (en) * | 2005-08-16 | 2010-05-04 | Cisco Technology, Inc. | System and method for speeding border gateway protocol graceful restart |
| CN103139279A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | File access method and system |
| CN105099758A (en) * | 2015-06-12 | 2015-11-25 | 小米科技有限责任公司 | Methods and devices for transmitting update data package |
| CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
| CN109391673A (en) * | 2018-04-16 | 2019-02-26 | 深圳思为科技有限公司 | A kind of method, system and the terminal device of management update file |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080162922A1 (en) * | 2006-12-27 | 2008-07-03 | Swartz Troy A | Fragmenting security encapsulated ethernet frames |
| CN101997707B (en) * | 2009-08-11 | 2014-04-16 | Tcl集团股份有限公司 | System and method for upgrading intelligent terminals in batches |
| CN101860853A (en) * | 2010-06-09 | 2010-10-13 | 中兴通讯股份有限公司 | Software upgrade method and device |
| CN102438026B (en) * | 2012-01-12 | 2014-05-07 | 冶金自动化研究设计院 | Industrial control network security protection method and system |
| CN103546576B (en) * | 2013-10-31 | 2017-08-11 | 中安消技术有限公司 | A kind of embedded device remote automatic upgrading method and system |
| CN104750506B (en) * | 2013-12-30 | 2018-04-17 | 海尔集团公司 | A kind of intelligent appliance wifi module software automatic updating method |
| CN103841379B (en) * | 2014-03-17 | 2017-02-15 | 济南鲁瑞智能技术有限公司 | Intelligent identification visual monitoring system and method based on Internet of Things |
| CN104038498A (en) * | 2014-06-13 | 2014-09-10 | 大同煤矿集团有限责任公司 | File synchronization updating method and device |
| CN107305496A (en) * | 2016-04-20 | 2017-10-31 | 深圳市信锐网科技术有限公司 | Application APP method for down loading and Wireless Communication Equipment |
| CN106533807B (en) * | 2016-12-27 | 2019-09-03 | 福建星网视易信息系统有限公司 | A kind of method and system of remote upgrade terminal device |
-
2018
- 2018-04-16 CN CN201810337932.3A patent/CN109391673B/en active Active
-
2019
- 2019-03-14 WO PCT/CN2019/078171 patent/WO2019201040A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7710899B1 (en) * | 2005-08-16 | 2010-05-04 | Cisco Technology, Inc. | System and method for speeding border gateway protocol graceful restart |
| CN103139279A (en) * | 2011-12-05 | 2013-06-05 | 阿里巴巴集团控股有限公司 | File access method and system |
| CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
| CN105099758A (en) * | 2015-06-12 | 2015-11-25 | 小米科技有限责任公司 | Methods and devices for transmitting update data package |
| CN109391673A (en) * | 2018-04-16 | 2019-02-26 | 深圳思为科技有限公司 | A kind of method, system and the terminal device of management update file |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114258525A (en) * | 2019-10-29 | 2022-03-29 | 深圳市欢太科技有限公司 | Data updating method and device, terminal equipment and computer readable storage medium |
| CN113010187A (en) * | 2021-02-07 | 2021-06-22 | 上海硬通网络科技有限公司 | Application installation method and device and electronic equipment |
| CN113010187B (en) * | 2021-02-07 | 2024-04-05 | 上海硬通网络科技有限公司 | Application installation method and device and electronic equipment |
| CN112799955A (en) * | 2021-02-08 | 2021-05-14 | 腾讯科技(深圳)有限公司 | Model change detection method and device, storage medium and electronic equipment |
| CN112799955B (en) * | 2021-02-08 | 2023-09-26 | 腾讯科技(深圳)有限公司 | Method and device for detecting model change, storage medium and electronic equipment |
| CN115086172A (en) * | 2022-07-25 | 2022-09-20 | 广东壹公里数智科技有限公司 | Data gateway plug-in updating method and device, electronic equipment and storage medium |
| CN115086172B (en) * | 2022-07-25 | 2022-11-15 | 广东壹公里数智科技有限公司 | Data gateway plug-in updating method and device, electronic equipment and storage medium |
| CN116340421A (en) * | 2023-02-20 | 2023-06-27 | 深圳市鸿合创新信息技术有限责任公司 | Course data synchronization method, device, electronic equipment and storage medium |
| CN116303470A (en) * | 2023-03-31 | 2023-06-23 | 联想(北京)有限公司 | A recording method, terminal, and storage medium |
| CN118394438A (en) * | 2024-04-30 | 2024-07-26 | 福建星网视易信息系统有限公司 | Multi-terminal interface synchronization method and system |
| CN118822468A (en) * | 2024-09-10 | 2024-10-22 | 恒实建设管理股份有限公司 | Project data information management method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109391673B (en) | 2021-01-05 |
| CN109391673A (en) | 2019-02-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019201040A1 (en) | File update management method and system and terminal apparatus | |
| US11405363B2 (en) | File upload control for client-side applications in proxy solutions | |
| KR102087478B1 (en) | Method and apparatus of downloading and installing a client | |
| WO2019201039A1 (en) | Method and system for updating application and application server | |
| WO2017129016A1 (en) | Resource access method, apparatus and system | |
| CN112214519A (en) | Data query method, device, equipment and readable medium | |
| CN106161336A (en) | A kind of information updating method, Apparatus and system | |
| US11063922B2 (en) | Virtual content repository | |
| KR102147026B1 (en) | Application download method and device | |
| CN111177703B (en) | Method and device for determining data integrity of operating system | |
| CN110019104A (en) | File resource exchanges method, file resource server and document exchange system | |
| RU2491623C1 (en) | System and method of verifying trusted files | |
| US9942267B1 (en) | Endpoint segregation to prevent scripting attacks | |
| US11449372B1 (en) | System for enforcing use of schemas and interfaces | |
| CN111064675A (en) | Access flow control method, device, network equipment and storage medium | |
| CN113765876B (en) | Access methods and devices for report processing software | |
| CN112953719A (en) | Token authentication method and device | |
| CN111988262A (en) | Authentication method, device and server, storage medium | |
| US20200401561A1 (en) | Method, device, and computer program product for managing data object | |
| CN111723369A (en) | A file management method, device and medium of an FTP server | |
| CN111538566A (en) | Image file processing method, device, system, electronic device and storage medium | |
| WO2020224108A1 (en) | Url interception and conversion method, device, and computer apparatus | |
| US10044728B1 (en) | Endpoint segregation to prevent scripting attacks | |
| CN109657481B (en) | Data management method and device | |
| CN106851648B (en) | Method, device and system for sharing access information of wireless access point |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19788825 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20/01/2021) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19788825 Country of ref document: EP Kind code of ref document: A1 |