CN110798533A - File downloading method, device and equipment - Google Patents

File downloading method, device and equipment Download PDF

Info

Publication number
CN110798533A
CN110798533A CN201911090040.9A CN201911090040A CN110798533A CN 110798533 A CN110798533 A CN 110798533A CN 201911090040 A CN201911090040 A CN 201911090040A CN 110798533 A CN110798533 A CN 110798533A
Authority
CN
China
Prior art keywords
information
file
downloading
download
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911090040.9A
Other languages
Chinese (zh)
Inventor
刘均
曾庆博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911090040.9A priority Critical patent/CN110798533A/en
Publication of CN110798533A publication Critical patent/CN110798533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a file downloading method, which comprises the following steps: judging whether a file needs to be downloaded according to user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to the server so that the server can verify the validity of the download information according to the download request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. Therefore, the method and the device verify the use position of the terminal equipment, and avoid malicious competition caused by cross-region use of the terminal equipment. In addition, the file downloading device and equipment provided by the application correspond to the method.

Description

File downloading method, device and equipment
Technical Field
The present application relates to the field of application upgrade technologies, and in particular, to a method, an apparatus, and a device for downloading a file.
Background
With the rapid development of computer technology, in order to better meet the requirements of users, the applications installed on the terminal equipment are updated and upgraded more and more quickly. The application upgrading firstly needs to download the configuration file, and then the upgraded application is installed according to the downloaded configuration file. In the prior art, when a terminal device installed with an application downloads a configuration file, the method generally includes the following steps: firstly, the server verifies the legality of a downloading user; then, the server verifies the validity of the file to be downloaded; and if the verification is passed, sending the configuration file to the user terminal to complete the subsequent application upgrading operation.
However, by using the file downloading method in the prior art, the application can be upgraded and normally used no matter the device needing the application upgrade is in any area, which is not beneficial to managing the use area of the application and cannot better meet the use requirement.
Disclosure of Invention
The application aims to provide a file downloading method, a file downloading device and a file downloading device, which can verify the use position of a terminal device and ensure that the terminal device can send downloading request information only in an allowed area to complete the downloading of a file, so that the application upgrading and the normal use are realized, the malicious competition caused by the cross-regional use of the terminal device is avoided, and the use requirements of users are better met.
In order to solve the above technical problem, the present application provides a file downloading method, which is applied to a terminal device, and includes:
judging whether a file needs to be downloaded according to user operation;
if so, acquiring the current position information of the mobile terminal;
judging whether position information identical to the current position information exists in each piece of prestored position information;
if yes, sending download request information to a server so that the server can verify the validity of the download information according to the download request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
Preferably, the method further comprises the following steps:
judging whether update information for updating each position information is received or not;
and if so, updating the position information according to the received updating information.
Preferably, the method further comprises the following steps:
when receiving the download failure information, re-acquiring the current position information of the user and sending request information for acquiring the update information;
the server acquires terminal position information of the terminal equipment specifically according to the download failure information; judging whether position information identical to the terminal position information exists in each piece of prestored position information; if not, it is generated.
In order to solve the above technical problem, the present application provides another file downloading method, which is applied to a server, and includes:
receiving downloading request information sent by terminal equipment;
verifying the legality of the downloading information according to the downloading request information;
and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
Preferably, the method comprises the following steps:
the download information specifically includes download user information and download file information.
In order to solve the above technical problem, the present application provides another file downloading method, including:
the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in each piece of prestored position information; if yes, sending download request information to a server;
the server receives the downloading request information; verifying the legality of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
In order to solve the above technical problem, the present application provides a file downloading apparatus, including:
the first judgment module is used for judging whether the file needs to be downloaded according to the user operation; if so, entering an acquisition module;
the acquisition module is used for acquiring the current position information of the acquisition module;
the second judgment module is used for judging whether position information which is the same as the current position information exists in each piece of prestored position information; if yes, entering a sending module;
the sending module is used for sending downloading request information to a server so that the server can verify the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
Preferably, the method further comprises the following steps:
the updating module is used for judging whether updating information used for updating the position information is received or not; and if so, updating the position information according to the received updating information.
The acquisition module is used for acquiring the current position information of the acquisition module and sending request information for acquiring the update information when receiving the download failure information; the server acquires terminal position information of the terminal equipment specifically according to the download failure information; judging whether position information identical to the terminal position information exists in each piece of prestored position information; if not, it is generated.
In order to solve the above technical problem, the present application provides a file downloading device, including a memory for storing a computer program;
a processor for implementing the steps of the method for downloading a file as described in any one of the above when executing said computer program.
In order to solve the above technical problem, the present application provides another file downloading apparatus, including:
the receiving module is used for receiving the downloading request information sent by the terminal equipment;
the verification module is used for verifying the validity of the downloaded information according to the downloading request information; if the code is legal, entering an acquisition module;
and the acquisition module is used for acquiring the download file corresponding to the download request information and sending the download file to the terminal equipment.
In order to solve the above technical problem, the present application provides another file downloading device, including a memory for storing a computer program;
a processor for implementing the steps of the method for downloading a file as described in any one of the above when executing said computer program.
The file downloading method provided by the application comprises the following steps: the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information to request to acquire the downloading file only in the allowed area. The server verifies the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the file downloading method provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
In addition, the file downloading device and the file downloading equipment provided by the application correspond to the method, and have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a file downloading method applied to a terminal device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a file downloading method applied to a server according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a file downloading method according to an embodiment of the present application;
fig. 4 is a structural diagram of a file downloading device according to an embodiment of the present application;
fig. 5 is a structural diagram of a file downloading device according to an embodiment of the present application;
fig. 6 is a block diagram of another file downloading apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of another file downloading device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method, a device and equipment for downloading a file, which can verify the use position of terminal equipment, and ensure that the terminal equipment can send downloading request information only in an allowed area to complete the downloading of the file, thereby realizing application upgrading and normal use, avoiding malicious competition caused by cross-regional use of the terminal equipment, and better meeting the use requirements of users.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a flowchart of a file downloading method applied to a terminal device according to an embodiment of the present disclosure; as shown in fig. 1, the file downloading method provided by the present application, applied to a terminal device, includes steps S101 to S104:
step S101: judging whether a file needs to be downloaded according to user operation; if so, entering step S102;
step S102: acquiring current position information of the mobile terminal;
the terminal device mentioned in the present application may be a mobile phone, a tablet computer, or other types of electronic devices, and in general, the communication mode between the terminal device and the server is wireless communication, and certainly, wired communication may be adopted, which is not limited in the present application.
In specific implementation, a plurality of device Applications (APPs) are installed in the terminal device, and different applications with different functions of the terminal device can be realized by running different APPs. It should be noted that, the hardware structure of the terminal device and the related content of the APP can refer to the prior art, and are not described in detail in this application.
In a specific implementation, the signal that the user needs to download the file may be a signal generated when the user clicks an "update key" or an "upgrade key", and the specific type is not limited. When a signal of downloading the file is received, the current position information of the user can be correspondingly acquired. It should be noted that the current location information refers to location information of the terminal device that is obtained when the user determines that the file needs to be downloaded, and does not include location information of the terminal device that is detected or stored before. Specifically, the terminal device may acquire the current location information through a Global Positioning System (GPS). Those skilled in the art may also obtain the current location information of the terminal device in other manners according to the actual application situation, and the application is not limited in this application.
Step S103: judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, go to step S104;
step S104: sending download request information to a server so that the server can verify the validity of the download information according to the download request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
In specific implementation, after the current position information of the terminal device is acquired, the current position information is compared with each position information pre-stored in the terminal device, and whether the position information same as the current position information exists in each position information is judged. It should be noted that the pre-stored location information is location information of an area where the terminal device is allowed to be used, and when the location information is the same as the current location information, it is indicated that the current location information is location information of an area where the terminal device is allowed to be used, and then download request information for requesting to acquire a download file may be generated and sent to the server. If the judgment result shows that the same position information does not exist, the current position information is not in the stored position information, and the current use area of the terminal equipment is not the allowed use area, so that the subsequent application upgrading operation is not continued.
The file downloading method provided by the application comprises the following steps: the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information to request to acquire the downloading file only in the allowed area. The server verifies the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the file downloading method provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
The file downloading method provided by the application is applied to the terminal equipment, and further comprises the following steps:
judging whether update information for updating each position information is received or not;
if so, updating the position information according to the received updating information.
In a specific implementation, the terminal device stores the position information of the area allowed to be used by the application. When the position information of the area allowed to be used by the application is added or deleted, the position information stored in the terminal equipment needs to be updated synchronously to ensure that the terminal equipment makes an accurate judgment result. The terminal equipment judges whether update information for updating each position information is received or not; if the location information is updated according to the received update information, the location information is updated according to the received update information. In one embodiment, after confirming that the position information needs to be updated, the server generates update information containing updated position data and sends the update information to the terminal equipment. The server may send the update information online or offline. It is understood that any form of transmission does not affect the implementation of the present scheme. According to the embodiment, the position information stored in the terminal equipment is updated, so that whether the use area applied in the current terminal equipment is an allowable area or not can be accurately judged, and the accuracy and the effectiveness of the judgment result are ensured.
The file downloading method provided by the application is applied to the terminal equipment, and further comprises the following steps:
when receiving the download failure information, re-acquiring the current position information of the user and sending request information for acquiring the update information;
the server acquires terminal position information of the terminal equipment specifically according to the download failure information; judging whether position information identical to the terminal position information exists in each piece of prestored position information; if not, it is generated.
In one embodiment, the server verifies the terminal location information of the terminal device according to the download request information. Specifically, the IP address information of the terminal device is obtained through the received download request information, and the IP address information is analyzed to obtain the terminal location information of the terminal device. The server prestores the position information of an area allowing the terminal equipment to perform file downloading operation, and judges whether the prestored position information has the position information same as the terminal position information; if the terminal position information exists, the terminal position information has the downloading authority, and the terminal equipment is allowed to download the file in the area corresponding to the terminal position information. It is known to those skilled in the art that the location information pre-stored in the server and the location information pre-stored in the terminal device should be consistent. The server may then proceed to verify the downloaded information. It should be noted that, the authentication sequence for the server to authenticate the terminal location information and the download information is not limited, and whether the download information is legal or not may be authenticated first, and then the terminal location information is authenticated. When the position information stored in advance does not have the position information same as the position information of the terminal; the terminal position information does not have the downloading authority, and downloading failure information is sent to the terminal equipment. And only after the download information and the terminal position information are verified, subsequent operation of acquiring the download file corresponding to the download request information and sending the download file to the terminal equipment can be performed. According to the embodiment of the application, the terminal position information of the terminal equipment is verified at the server side, so that the download file is sent to the terminal equipment only when the terminal equipment is used in the allowed area, and the verification accuracy is improved.
Specifically, when receiving the download failure information, the terminal device may re-acquire its current location information, and send request information for acquiring update information to the server, so as to ensure that the stored location information is valid location information, thereby improving accuracy of determination operation when subsequently downloading files.
Fig. 2 is a flowchart of a file downloading method applied to a server according to an embodiment of the present disclosure; as shown in fig. 2, a file downloading method provided in an embodiment of the present application, applied to a server, includes steps S201 to S203:
step S201: receiving downloading request information sent by terminal equipment;
in one embodiment, the downloading information specifically includes downloading user information and downloading file information. The downloading user information specifically comprises an account number of the downloading user, an IP address of the downloading user and authority information of the downloading user. The downloaded file information is specifically file identification information to be downloaded. Those skilled in the art can determine the content specifically included in the downloaded information according to the actual application, and the application is not limited.
Step S202: verifying the legality of the downloading information according to the downloading request information; if the code is legal, the step S203 is entered;
step S203: and acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
In one embodiment, for verifying whether the information of the downloading user is legal, whether the downloading user has the downloading authority or not can be judged, and whether the user is a trusted user or not is judged according to the account number of the downloading user. If the download authority exists and the user is a trusted user, the download user information can be judged to be legal; if the user does not have download rights and/or is not a trusted user, it may be determined that the downloaded user information is not legitimate. For verifying whether the downloaded file information is legal, judging whether the file requested to be downloaded actually exists in the server, and if so, judging that the downloaded file information is legal; if not, the downloaded file information can be judged to be illegal. Those skilled in the art can set specific rules for verifying the validity of the downloaded user information and the downloaded file information according to actual needs, and the present application is not limited thereto.
In specific implementation, after the download information passes the verification, the server acquires a download file corresponding to the requirement in the download request information, and sends the download file to the terminal device, so that the terminal device acquires the download file to perform subsequent application upgrading operation.
The file downloading method provided by the application comprises the following steps: the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information to request to acquire the downloading file only in the allowed area. The server verifies the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the file downloading method provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
Fig. 3 is a flowchart of a file downloading method according to an embodiment of the present application; as shown in fig. 3, the file downloading method provided in the embodiment of the present application includes steps S10-S12:
step S10: the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if so, go to step S11;
step S11: sending download request information to a server;
in one embodiment, when the application is upgraded, the relevant file needs to be downloaded first, and the file downloading is determined to be needed at the moment according to the application upgrading operation performed by the user. The terminal device obtains its current location information, and specifically, the terminal device may obtain the current location information through a Global Positioning System (GPS). Those skilled in the art may also obtain the current location information of the terminal device in other manners according to the actual application situation, and the application is not limited in this application.
In specific implementation, after the current position information of the terminal device is acquired, the current position information is compared with each position information pre-stored in the terminal device, and whether the position information same as the current position information exists in each position information is judged. It should be noted that the pre-stored location information is location information of an area where the terminal device is allowed to be used, and if the location information is the same as the current location information, it is indicated that the current location information is location information of an area where the terminal device is allowed to be used, and then download request information for requesting to acquire a download file may be generated and sent to the server. If the judgment result shows that the same position information does not exist, the current position information is not in the stored position information, and the current use area of the terminal equipment is not the allowed use area, so that the subsequent application upgrading operation is not continued.
Step S12: the server receives downloading request information; verifying the legality of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
The server communicates with the terminal device so as to receive the download request information. In a specific implementation, the server may obtain the download information according to the received download request information. And verifying the legality of the downloading information, if the downloading information is legal, indicating that the downloading information meets the downloading condition set by the server, and finishing the downloading of the file, wherein the server acquires the downloading file corresponding to the downloading request information and sends the downloading file to the terminal equipment. If the download information is illegal, the download information is proved to be in accordance with the download condition set by the server, the follow-up operation is stopped, and a response message of download failure is fed back to the terminal equipment.
The file downloading method provided by the application comprises the following steps: the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information to request to acquire the downloading file only in the allowed area. The server verifies the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the file downloading method provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
The application also provides a file downloading device and a corresponding embodiment of the file downloading equipment. It should be noted that the present application describes the embodiments from two perspectives, one is from the perspective of the functional module, and the other is from the perspective of the hardware.
Fig. 4 is a structural diagram of a file downloading device according to an embodiment of the present application; as shown in fig. 4, an apparatus for downloading a file according to an embodiment of the present application includes:
the first judging module 10 is used for judging whether a file needs to be downloaded according to user operation; if necessary, entering an acquisition module 11;
the acquisition module 11 is configured to acquire current position information of the mobile terminal;
a second judging module 12, configured to judge whether there is location information that is the same as the current location information in each piece of location information stored in advance; if yes, entering a sending module 13;
a sending module 13, configured to send the download request information to the server, so that the server verifies the validity of the download information according to the download request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
In an embodiment, an apparatus for downloading a file provided in an embodiment of the present application further includes:
the updating module is used for judging whether updating information used for updating each position information is received or not; if so, updating the position information according to the received updating information.
The acquisition module is used for acquiring the current position information of the acquisition module and sending request information for acquiring the update information when receiving the download failure information; the server acquires terminal position information of the terminal equipment specifically according to the download failure information; judging whether position information identical to the terminal position information exists in each piece of prestored position information; if not, it is generated.
The file downloading device provided by the application judges whether the file needs to be downloaded according to user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information only in an allowed area so that the server can verify the legality of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the terminal equipment provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
Fig. 5 is a structural diagram of a file downloading device according to an embodiment of the present application; as shown in fig. 5, the file downloading device provided in the embodiment of the present application includes a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for downloading a file applied to a terminal device as described in any one of the above when executing a computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement relevant steps in the downloading method of the file disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like.
In some embodiments, the file downloading device may further include an input/output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the architecture shown in FIG. 5 does not constitute a limitation of a file download device and may include more or fewer components than those shown.
Since the embodiment of the part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the part, which is not repeated here. In some embodiments of the present application, the processor and memory may be connected by a bus or other means.
The file downloading device provided by the application can realize the following method: judging whether a file needs to be downloaded according to user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in all the pre-stored position information or not; if yes, sending download request information to a server; therefore, the current used position of the terminal equipment is verified, and the terminal equipment can send the downloading request information only in an allowed area so that the server can verify the legality of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the terminal equipment provided by the application verifies the use position of the terminal equipment, only allows the file to be downloaded in the area meeting the requirements so as to finish application upgrading and normal use, avoids malicious competition caused by cross-regional use of the terminal equipment, and better meets the use requirements of users.
The application also provides another file downloading device and a corresponding embodiment of file downloading equipment. It should be noted that the present application describes the embodiments from two perspectives, one is from the perspective of the functional module, and the other is from the perspective of the hardware.
Fig. 6 is a block diagram of another file downloading apparatus according to an embodiment of the present application; as shown in fig. 6, the present application provides a file downloading apparatus, including:
a receiving module 30, configured to receive download request information sent by a terminal device;
the verification module 31 is used for verifying the validity of the download information according to the download request information; if the code is legal, entering an acquisition module 32;
and the obtaining module 32 is configured to obtain a download file corresponding to the download request information and send the download file to the terminal device.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
According to the file downloading device provided by the application, the legality of the downloading information is verified according to the downloading request information sent by the terminal equipment after the current position information of the terminal equipment passes verification; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the server provided by the application only allows the file to be downloaded in the area meeting the requirement so as to finish application upgrading and normal use, avoids malicious competition caused by cross-region use of the terminal equipment, and better meets the use requirement of a user.
Fig. 7 is a block diagram of another file downloading device provided in the embodiment of the present application; as shown in fig. 7, the file downloading device provided in the embodiment of the present application includes a memory 41 for storing a computer program;
a processor 42 for implementing the steps of the file downloading method applied to the server as described in any one of the above when executing the computer program.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 41 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor, the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 41 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing the computer program 401, wherein after being loaded and executed by the processor 41, the computer program can implement the relevant steps in the file downloading method disclosed in any of the foregoing embodiments applied to the server. In addition, the resources stored in the memory 40 may also include an operating system 402, data 403, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 402 may include, among other things, Windows, Unix, Linux, and the like.
In some embodiments, the file downloading device may further include an input/output interface 42, a communication interface 43, a power supply 44, and a communication bus 45.
Those skilled in the art will appreciate that the architecture shown in FIG. 7 does not constitute a limitation of a file download device and may include more or fewer components than those shown.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here. In some embodiments of the present application, the processor and memory may be connected by a bus or other means.
The file downloading device provided by the application can realize the following method: verifying the validity of the downloaded information according to the download request information sent by the terminal equipment after the current position information of the terminal equipment passes verification; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment. The operation that the terminal equipment which is legal for downloading information and in the allowed area sends the downloading file is realized, so that the terminal equipment finishes application upgrading and can be normally used. Therefore, the server provided by the application only allows the file to be downloaded in the area meeting the requirement so as to finish application upgrading and normal use, avoids malicious competition caused by cross-region use of the terminal equipment, and better meets the use requirement of a user.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores thereon a computer program which, when executed by a processor, implements the steps described in the above-described method embodiments (which may be a method corresponding to a terminal device side, a method corresponding to a server side, or a method corresponding to a terminal device side and a server side).
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, the device and the equipment for downloading the file provided by the application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A file downloading method is applied to terminal equipment and comprises the following steps:
judging whether a file needs to be downloaded according to user operation;
if so, acquiring the current position information of the mobile terminal;
judging whether position information identical to the current position information exists in each piece of prestored position information;
if yes, sending download request information to a server so that the server can verify the validity of the download information according to the download request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
2. The file downloading method according to claim 1, further comprising:
judging whether update information for updating each position information is received or not;
and if so, updating the position information according to the received updating information.
3. The file downloading method according to claim 2, further comprising:
when receiving the download failure information, re-acquiring the current position information of the user and sending request information for acquiring the update information;
the server acquires terminal position information of the terminal equipment specifically according to the download failure information; judging whether position information identical to the terminal position information exists in each piece of prestored position information; if not, it is generated.
4. A file downloading method is applied to a server and comprises the following steps:
receiving downloading request information sent by terminal equipment;
verifying the legality of the downloading information according to the downloading request information;
and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
5. The file downloading method according to claim 4, comprising:
the download information specifically includes download user information and download file information.
6. A method for downloading a file, comprising:
the terminal equipment judges whether the file needs to be downloaded according to the user operation; if so, acquiring the current position information of the mobile terminal; judging whether position information identical to the current position information exists in each piece of prestored position information; if yes, sending download request information to a server;
the server receives the downloading request information; verifying the legality of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
7. An apparatus for downloading a file, comprising:
the first judgment module is used for judging whether the file needs to be downloaded according to the user operation; if so, entering an acquisition module;
the acquisition module is used for acquiring the current position information of the acquisition module;
the second judgment module is used for judging whether position information which is the same as the current position information exists in each piece of prestored position information; if yes, entering a sending module;
the sending module is used for sending downloading request information to a server so that the server can verify the validity of the downloading information according to the downloading request information; and if the download request information is legal, acquiring a download file corresponding to the download request information and sending the download file to the terminal equipment.
8. A file downloading device, comprising a memory for storing a computer program;
a processor for implementing the steps of the method for downloading a file according to any one of claims 1 to 3 when executing said computer program.
9. An apparatus for downloading a file, comprising:
the receiving module is used for receiving the downloading request information sent by the terminal equipment;
the verification module is used for verifying the validity of the downloaded information according to the downloading request information; if the code is legal, entering an acquisition module;
and the acquisition module is used for acquiring the download file corresponding to the download request information and sending the download file to the terminal equipment.
10. A file downloading device, comprising a memory for storing a computer program;
a processor for implementing the steps of the method for downloading a file according to any of claims 4 to 5 when executing said computer program.
CN201911090040.9A 2019-11-08 2019-11-08 File downloading method, device and equipment Pending CN110798533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911090040.9A CN110798533A (en) 2019-11-08 2019-11-08 File downloading method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911090040.9A CN110798533A (en) 2019-11-08 2019-11-08 File downloading method, device and equipment

Publications (1)

Publication Number Publication Date
CN110798533A true CN110798533A (en) 2020-02-14

Family

ID=69443775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911090040.9A Pending CN110798533A (en) 2019-11-08 2019-11-08 File downloading method, device and equipment

Country Status (1)

Country Link
CN (1) CN110798533A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104955680A (en) * 2013-01-31 2015-09-30 株式会社自动网络技术研究所 Access limiting device, on-board communication system, and communication limiting method
US20160036963A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. Mobile device and method of executing application based on particular zone
CN106453448A (en) * 2015-08-06 2017-02-22 北京奇虎科技有限公司 Method for downloading target file and device thereof
CN107124474A (en) * 2017-06-29 2017-09-01 维沃移动通信有限公司 A kind of wallpaper method for down loading, method for pushing, mobile terminal and server
CN109495561A (en) * 2018-11-07 2019-03-19 Oppo广东移动通信有限公司 Application program method for down loading, device, terminal and storage medium
CN110191822A (en) * 2016-12-20 2019-08-30 株式会社自动网络技术研究所 Vehicle-mounted updating device, more new system and mobile communication device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104955680A (en) * 2013-01-31 2015-09-30 株式会社自动网络技术研究所 Access limiting device, on-board communication system, and communication limiting method
US20160036963A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. Mobile device and method of executing application based on particular zone
CN106453448A (en) * 2015-08-06 2017-02-22 北京奇虎科技有限公司 Method for downloading target file and device thereof
CN110191822A (en) * 2016-12-20 2019-08-30 株式会社自动网络技术研究所 Vehicle-mounted updating device, more new system and mobile communication device
CN107124474A (en) * 2017-06-29 2017-09-01 维沃移动通信有限公司 A kind of wallpaper method for down loading, method for pushing, mobile terminal and server
CN109495561A (en) * 2018-11-07 2019-03-19 Oppo广东移动通信有限公司 Application program method for down loading, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107615292B (en) System and method for managing installation of application packages requiring high risk permission access
CN108900559B (en) Login certificate management method and device, computer equipment and storage medium
CN107395614B (en) Single sign-on method and system
CN108418787B (en) Method for acquiring enterprise resource planning data, terminal device and medium
CN108460273B (en) Application management method of terminal, application server and terminal
CN110324344B (en) Account information authentication method and device
US10360396B2 (en) Token-based control of software installation and operation
CN104751049A (en) Application program installing method and mobile terminal
US11681513B2 (en) Controlled scope of authentication key for software update
CN111310233A (en) Application interface display method, device, equipment and storage medium
CN108197469B (en) Method and device for verifying application program, storage medium and electronic equipment
CN110619208A (en) User authentication method, server, user equipment and system
CN109818972B (en) Information security management method and device for industrial control system and electronic equipment
CN109858235B (en) Portable equipment and password obtaining method and device thereof
CN114329358A (en) Application signature method and system, transaction terminal and service platform
CN114880011A (en) OTA (over the air) upgrading method and device, electronic equipment and readable storage medium
CN111176685A (en) Upgrading method and device
CN113541966A (en) Authority management method, device, electronic equipment and storage medium
CN110581863B (en) Single sign-on method, device, equipment and medium for cloud platform
US9846790B2 (en) Method for changing an operating mode of a mobile device
CN107995214B (en) Website login method and related equipment
CN110798533A (en) File downloading method, device and equipment
CN107977564B (en) Transaction authentication processing method, authentication server, terminal and transaction equipment
CN115185551A (en) Application program installation method, device, system and storage medium
JP7445017B2 (en) Mobile application forgery/alteration detection method using user identifier and signature collection, computer program, computer readable recording medium, and computer device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200214

RJ01 Rejection of invention patent application after publication