CN112003893A - Resource downloading method and device - Google Patents

Resource downloading method and device Download PDF

Info

Publication number
CN112003893A
CN112003893A CN202010700001.2A CN202010700001A CN112003893A CN 112003893 A CN112003893 A CN 112003893A CN 202010700001 A CN202010700001 A CN 202010700001A CN 112003893 A CN112003893 A CN 112003893A
Authority
CN
China
Prior art keywords
resource
data
client
identification information
soft connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010700001.2A
Other languages
Chinese (zh)
Other versions
CN112003893B (en
Inventor
冯世浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010700001.2A priority Critical patent/CN112003893B/en
Publication of CN112003893A publication Critical patent/CN112003893A/en
Application granted granted Critical
Publication of CN112003893B publication Critical patent/CN112003893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present disclosure relates to a resource downloading method, device, electronic device and storage medium, wherein the method comprises: acquiring and sending download request information of a target resource to a server side; receiving a resource list returned by the server according to the downloading request information, wherein the resource list comprises at least one resource identification information; inquiring whether the client has data corresponding to the resource identification information; if the client has data corresponding to the resource identification information, a first soft connection with the data is established at a first association position of the target resource, and the first soft connection represents a corresponding relation between the first association position and the data. According to the method and the device, when the data required by the target resource exists in the client, the required data does not need to be downloaded from the server, the existing data can be obtained from the client locally in a soft connection establishment mode, repeated downloading of the data required by the target resource is avoided, the occupation amount of a storage space is reduced, and the network bandwidth is saved.

Description

Resource downloading method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a resource downloading method and apparatus, an electronic device, and a storage medium.
Background
At present, the number of applications on a computer is increasing, and each application may provide multiple functions. Many of the functions require multiple functional blocks to be implemented separately or in concert. Each functional module needs to download the respective required resources from the server side to realize the corresponding function.
In the related art, one functional module may require multiple resources to implement corresponding functions, and different functional modules may require the same shared resources. Often, these shared resources have a large amount of data, such as fonts. If each functional module downloads the shared resource when downloading the required resource from the server, the shared resource is repeatedly downloaded, and the redundant shared resource occupies more storage space, which wastes network bandwidth.
Disclosure of Invention
The disclosure provides a resource downloading method, a resource downloading device, an electronic device and a storage medium, which are used for at least solving the problems of more occupied storage space and network bandwidth waste caused by repeated downloading of shared resources in related technologies. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a resource downloading method is provided, which is applied to a client, and the method includes: acquiring and sending download request information of a target resource to a server side; receiving a resource list returned by the server according to the downloading request information, wherein the resource list comprises at least one resource identification information; inquiring whether the client has data corresponding to the resource identification information; if the client has data corresponding to the resource identification information, establishing a first soft connection between the client and the data at a first association position of the target resource, wherein the first soft connection represents a corresponding relation between the first association position and the data.
Optionally, the first flexible connection is configured to: reading the data at the first association location upon triggering the first soft connection at the first association location.
Optionally, the querying whether the client has data corresponding to the resource identification information includes: and inquiring whether the client has data corresponding to the resource identification information in a database file pre-created in the client.
Optionally, the resource list further includes at least one resource path information; if the client has data corresponding to the resource identification information, establishing a first soft connection with the data at a first associated position of the target resource, including: if the client has data corresponding to the resource identification information, when the resource path information corresponding to the data indicates that the storage location corresponding to the data is located in the first associated location, establishing a first soft connection between the client and the data at the first associated location.
Optionally, after the querying whether the client has data corresponding to the resource identification information, the method includes: if the client does not have data corresponding to the resource identification information, sending acquisition request information of the data to the server; receiving the data returned by the server according to the acquisition request information, and storing the data to a second associated position of the target resource; and establishing a second soft connection between the target resource and the data stored at the second association position at the first association position, and storing the corresponding relation between the second soft connection and the second association position in the database file.
Optionally, before the obtaining and sending the download request information of the target resource to the server, the method further includes: inquiring whether the target resource exists in the client side in the database file; and under the condition that the target resource does not exist in the client, executing the operation of sending the downloading request information to the server.
Optionally, the resource list further includes at least one resource type information and at least one resource data amount.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource downloading apparatus applied to a client, the apparatus including: the request module is configured to acquire and send download request information of the target resource to the server side; a receiving module configured to receive a resource list returned by the server according to the download request information, where the resource list includes at least one resource identification information; the query module is configured to query whether the client has data corresponding to the resource identification information; the establishing module is configured to establish a first soft connection with the data at a first association position of the target resource if the client has the data corresponding to the resource identification information, wherein the first soft connection represents a corresponding relation between the first association position and the data.
Optionally, the first flexible connection is configured to: reading the data at the first association location upon triggering the first soft connection at the first association location.
Optionally, the query module is configured to query, in a database file created in advance in the client, whether data corresponding to the resource identification information exists in the client.
Optionally, the resource list further includes at least one resource path information; the establishing module is configured to establish a first soft connection with the data at the first associated position when the resource path information corresponding to the data indicates that the storage position corresponding to the data is located in the first associated position if the client has the data corresponding to the resource identification information.
Optionally, the request module is further configured to, after the query module queries whether the client has data corresponding to the resource identification information, send, to the server, request information for acquiring the data if the client does not have the data corresponding to the resource identification information; the device comprises: the storage module is configured to receive the data returned by the server according to the acquisition request information and store the data to a second relevant position of the target resource; the establishing module is further configured to establish a second soft connection between the first association position of the target resource and the data stored at the second association position, and to save a corresponding relationship between the second soft connection and the second association position in the database file.
Optionally, the query module is further configured to query, in the database file, whether the target resource exists in the client before the request module obtains and sends the download request information of the target resource to the server; the request module is configured to send the download request information to the server side under the condition that the target resource does not exist in the client side.
Optionally, the resource list further includes at least one resource type information and at least one resource data amount.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the resource downloading method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the resource downloading method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising readable program code executable by a processor of an electronic device to perform the resource downloading method of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the resource downloading scheme provided by the embodiment of the disclosure, after the downloading request information of the target resource is acquired and sent to the server, the resource list returned by the server according to the downloading request information is received, and the resource list comprises at least one resource identification information. And querying whether data corresponding to the resource identification information exists in the client or not, if so, establishing a first soft connection between the data corresponding to the resource identification information and existing in the client at a first association position of the target resource, wherein the first soft connection can represent the correspondence between the first association position and the existing data.
When downloading the target resource, the embodiment of the disclosure sends the downloading request information to the server, and queries whether the client has corresponding data locally according to the resource identification information in the resource list returned by the server, and if so, establishes a first soft connection with the existing data at a first associated position of the target resource. When the data required by the target resource exists in the client, the server does not need to download the required data, and the existing data can be obtained from the client locally in a soft connection establishment mode, so that the data required by the target resource is prevented from being downloaded repeatedly, the occupation amount of a storage space is reduced, and the network bandwidth is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a resource download method according to an example embodiment.
Fig. 2 is a block diagram illustrating a resource downloading apparatus according to an example embodiment.
FIG. 3 is a block diagram illustrating a resource downloading electronic device, according to an example embodiment.
FIG. 4 is a block diagram illustrating another resource downloading electronic device, according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a resource downloading method according to an exemplary embodiment, where the method specifically includes the following steps, as shown in fig. 1.
In step S11, the download request information of the target resource is obtained and sent to the server.
In the embodiment of the disclosure, a user can select a target resource on a client, and in response to the selection operation of the user on the target resource, download request information for the target resource is generated. The download request information may include a unique identifier of the target resource, for example, a character string for uniquely representing the target resource. In addition, the download request information may further include an identity of the user, a device identifier of the client, and the like, and the embodiment of the disclosure does not specifically limit the content, the format, and the like in the download request information.
In step S12, the resource list returned by the server according to the download request information is received.
In the embodiment of the present disclosure, after receiving the download request information, the server does not directly issue the target resource corresponding to the download request information to the client, but returns the resource list of the target resource to the client. The resource list includes at least one resource identification information of at least one data required by the target resource.
At the server side, data required by each target resource may be maintained by a background administrator, and in practical application, the background administrator may configure a corresponding resource list for each target resource.
In step S13, it is queried whether the client has data corresponding to the resource identification information, and if the client has data corresponding to the resource identification information, step S14 is executed; if the client does not have data corresponding to the resource identification information, step S15 is executed.
In the embodiment of the present disclosure, after receiving the resource list, the client locally searches whether data corresponding to the resource identification information in the resource list exists. In practical application, whether data corresponding to the resource identification information exists locally at the client can be inquired in a database file pre-created in the client. The database file may be created locally at the client in advance, and the database file may have stored in advance resource identification information of each data that exists locally at the client. If the resource identification information included in the resource list exists in the database file, step S14 is executed. If the resource identification information included in the resource list does not exist in the database file, step S15 is executed.
In step S14, a first soft connection is established with the data at a first associated location of the target resource.
In embodiments of the present disclosure, a soft connection is also referred to as a Symbolic Link (Symbolic Link), and the role of the soft connection is to establish a Link at another location for a certain file/data. In practical application, the first soft connection represents a corresponding relationship between the first associated position and the data, that is, a link is established at the first associated position for the data. A first soft connection may be triggered at a first association location to read data present at the client at the first association location.
The data required by the target resource is not of one type, and not every type of data requires a first soft connection to be established with the data at the first associated location. Therefore, when the data corresponding to the resource identification information exists in the database file, it is further necessary to determine whether the storage location of the data corresponding to the resource identification information is located at the first relevant location. At this time, at least one resource path information included in the resource list needs to be used. And when the resource path information of the data corresponding to the resource identification information indicates that the storage position of the data is located in the first association position, establishing a first soft connection at the first association position. And when the resource path information of the data corresponding to the resource identification information indicates that the storage position of the data is beyond the first association position, not establishing the first soft connection at the first association position.
In step S15, the obtaining request information of the data is sent to the server, the data returned by the server according to the obtaining request information is received, and the received data is stored in the second relevant position of the target resource. And establishing a second soft connection between the target resource and the data stored at the second association position at the first association position, and storing the corresponding relation between the second soft connection and the second association position in a database file.
In the embodiment of the present disclosure, if the client does not locally have data corresponding to the resource identification information, specifically, if there is no part of or all of the data corresponding to the resource identification information, the client may send the request information for acquiring the data to the server. The acquisition request information may include resource identification information of part of data or all of data that does not exist locally at the client. And the server returns data to the client according to the resource identification information in the acquisition request information. And the client receives the data returned by the server and stores the data to a preset position, namely a second associated position of the target resource. Also, a second soft connection is established at the first association location with data at the second association location. Meanwhile, the corresponding relation between the second soft connection and the second associated position is stored in the database file, so that only the second soft connection is deleted when the target resource is deleted in the following process, and the data stored in the second associated position is not deleted.
In an exemplary embodiment of the present disclosure, before the step S11, it may be further queried in the database file whether the target resource exists locally at the client, and specifically, it may be queried in the data file whether a unique identifier of the target resource exists. If the unique identifier of the target resource exists in the database file, which indicates that the target resource exists locally at the client, the storage location of the target resource can be further inquired in the database file, and the target resource is read at the storage location of the target resource. If the unique identifier of the target resource does not exist in the database file, which indicates that the target resource does not locally exist in the client, step S11 is executed.
Based on the above description about the embodiment of the resource downloading method, a downloading scheme of magic expression is introduced below. The downloading scheme can be applied to the client, and in practical application, the downloading scheme can be applied to an application program in the client. After the application program is started for the first time, a folder "resource" for storing the magic emoticons is created locally at the client, and a database file "resource.db" for storing relevant information is newly created in the folder "resource". The data required for the magic expression "magic _ 1" may be stored in one data packet, which may be a compressed data packet. The server may decompress the compressed data packet to obtain a plurality of data, and calculate resource identification information of each data, such as an md5 value, and a resource data amount of each resource. And the data packet of the magic expression 'magic _ 1', other dependent shared resources and the like are manually configured to generate a resource list of the magic expression 'magic _ 1'. The resource list may contain related information of each data, for example, the related information may contain resource identification information, resource path information, resource type information, resource data amount, and the like. The embodiment of the present disclosure does not specifically limit the content, format, and the like of the related information of each resource included in the resource list.
When the user selects the magic expression "magic _ 1" in the application program of the client, the application program can respond to the selection operation of the user, inquire whether data required by the magic expression "magic _ 1" exists locally in the database file "resource.db", and if the data required by the magic expression "magic _ 1" exists locally in the client, the data required by the magic expression "magic _ 1" can be directly read. And if the client does not locally have the data required by the magic expression 'magic _ 1', generating and sending download request information to the server.
The server returns a resource list of magic expression "magic _ 1" to the application program of the client, and the resource list is shown in the following table:
numbering Resource path information Resource identification information Resource type information Amount of resource data
1 ./pic1.png xxxxxxx Picture frame 200KB
2 ./video.mp4 yyyyyyy Video 1.4MB
3 ./dir/font.ttf zzzzzzz Character font 400KB
4 /resource/data/data1 bbbbbbb Sharing numberAccording to 20MB
5 /resource/data/data2 dddddd Sharing data 2MB
Where data numbered 1, 2, and 3 are located within folder "magic _ 1" under folder "resource". Db can inquire whether the database file "resource" has the same data as the resource identification information numbered 1, 2 and 3, and if so, establish the corresponding first soft connection under the folder "magic _ 1".
The data numbered 4 and 5 are shared data, and are located in the folder "data" under the folder "resource". The application program can inquire whether the database file 'resource.db' has data which is the same as the resource identification information numbered 4 and 5, and if so, the application program can directly read the corresponding data in the folder 'data' without establishing the corresponding first soft connection.
If any one or more of the data numbered 1, 2, 3, 4 and 5 do not exist locally at the client, the acquisition request information of the non-existing data can be sent to the server. In practical application, get command may be used to send obtaining request information, where the obtaining request information includes resource identification information of non-existent data, and if multiple data do not exist in the client, the resource identification information of multiple non-existent data may be added to the obtaining request information, and a piece of obtaining request information may be sent to the server.
And the server side issues corresponding data to the application program according to the acquisition request information. The application program can store the data sent by the server side in the folder "realfile" under the folder "resource". A second soft connection is then established within the folder "magic _ 1" that represents a correspondence of the folder "magic _ 1" to the data within the folder "realfile".
If the user additionally selects the magic expression "magic _ 2", and the magic expression "magic _ 2" shares the same data "video. mp 4" as the magic expression "magic _ 1". Mp4, whether the data "video. mp 4" already exists in the client or is being downloaded, there is no need to repeat the downloading of the data "video. mp 4".
According to the resource downloading scheme provided by the embodiment of the disclosure, after the downloading request information of the target resource is acquired and sent to the server, the resource list returned by the server according to the downloading request information is received, and the resource list comprises at least one resource identification information. And querying whether data corresponding to the resource identification information exists in the client or not, if so, establishing a first soft connection between the data corresponding to the resource identification information and existing in the client at a first association position of the target resource, wherein the first soft connection can represent the correspondence between the first association position and the existing data.
When downloading the target resource, the embodiment of the disclosure sends the downloading request information to the server, and queries whether the client has corresponding data locally according to the resource identification information in the resource list returned by the server, and if so, establishes a first soft connection with the existing data at a first associated position of the target resource. When the data required by the target resource exists in the client, the server does not need to download the required data, and the existing data can be obtained from the client locally in a soft connection establishment mode, so that the data required by the target resource is prevented from being downloaded repeatedly, the occupation amount of a storage space is reduced, and the network bandwidth is saved.
The embodiment of the disclosure can uniformly manage a plurality of target resources, firstly judge whether corresponding data exists locally at a client by means of a resource list, a database file and the like, and read the existing data through soft connection under the condition that the corresponding data exists; and downloading the corresponding data from the server side under the condition that the corresponding data does not exist. And the downloaded data is stored to the designated position instead of the position of the target resource, and the downloaded data is read through the soft connection, so that the problem that the downloaded data is deleted together under the condition of deleting the target resource, which causes the follow-up possibility of re-downloading is solved.
Fig. 2 is a block diagram illustrating a resource downloading apparatus according to an example embodiment. The device can be applied to a client, and particularly comprises the following modules.
The request module 21 is configured to acquire and send download request information of the target resource to the server;
a receiving module 22, configured to receive a resource list returned by the server according to the download request information, where the resource list includes at least one resource identification information;
a query module 23 configured to query whether the client has data corresponding to the resource identification information;
the establishing module 24 is configured to, if there exists data corresponding to the resource identification information in the client, establish a first soft connection with the data at a first association position of the target resource, where the first soft connection represents a correspondence between the first association position and the data.
In an exemplary embodiment of the disclosure, the first flexible connection is configured to:
reading the data at the first association location upon triggering the first soft connection at the first association location.
In an exemplary embodiment of the disclosure, the query module 23 is configured to query whether data corresponding to the resource identification information exists in a database file created in advance in the client.
In an exemplary embodiment of the present disclosure, the resource list further contains at least one resource path information;
the establishing module 24 is configured to, if there is data corresponding to the resource identification information at the client, establish a first soft connection with the data at the first associated location when the resource path information corresponding to the data indicates that the storage location corresponding to the data is located in the first associated location.
In an exemplary embodiment of the present disclosure, the requesting module 21 is further configured to, after the querying module 23 queries whether the client has data corresponding to the resource identification information, send, to the server, acquisition request information of the data if the client does not have the data corresponding to the resource identification information;
the device comprises:
the storage module is configured to receive the data returned by the server according to the acquisition request information and store the data to a second relevant position of the target resource;
the establishing module 24 is further configured to establish a second soft connection between the data stored at the second association location and the first association location of the target resource, and save a corresponding relationship between the second soft connection and the second association location in the database file.
In an exemplary embodiment of the present disclosure, the query module 23 is further configured to query the database file to determine whether the target resource exists at the client before the request module 21 obtains and sends the download request information of the target resource to the server;
the request module 21 is configured to send the download request information to the server side when the target resource does not exist at the client side.
In an exemplary embodiment of the present disclosure, the resource list further includes at least one resource type information and at least one resource data amount.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 3 is a block diagram illustrating a resource downloading electronic device 300, according to an example embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, electronic device 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the electronic device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the resource download method described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phonebook data, messages, images, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 306 provides power to the various components of the electronic device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 300.
The multimedia component 308 comprises a screen providing an output interface between the electronic device 300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for electronic device 300. For example, sensor assembly 314 may detect an open/closed state of electronic device 300, the relative positioning of components, such as a display and keypad of electronic device 300, sensor assembly 314 may also detect a change in the position of electronic device 300 or a component of electronic device 300, the presence or absence of user contact with electronic device 300, the orientation or acceleration/deceleration of electronic device 300, and a change in the temperature of electronic device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the electronic device 300 to perform the resource download method described above is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises readable program code executable by the processor 320 of the electronic device 300 to perform the above-described resource download method. Alternatively, the program code may be stored in a storage medium of the electronic device 300, which may be a non-transitory computer-readable storage medium, for example, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
FIG. 4 is a block diagram illustrating another resource downloading electronic device 400, according to an example embodiment. For example, the electronic device 400 may be provided as a server. Referring to fig. 4, electronic device 400 includes a processing component 422 that further includes one or more processors, and memory resources, represented by memory 432, for storing instructions, such as applications, that are executable by processing component 422. The application programs stored in memory 432 may include one or more modules that each correspond to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the resource download method described above.
Electronic device 400 may also include a power component 426 configured to perform power management of electronic device 400, a wired or wireless network interface 450 configured to connect electronic device 400 to a network, and an input output (I/O) interface 458. The electronic device 400 may operate based on an operating system stored in the memory 432, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A resource downloading method is applied to a client side, and comprises the following steps:
acquiring and sending download request information of a target resource to a server side;
receiving a resource list returned by the server according to the downloading request information, wherein the resource list comprises at least one resource identification information;
inquiring whether the client has data corresponding to the resource identification information;
if the client has data corresponding to the resource identification information, establishing a first soft connection between the client and the data at a first association position of the target resource, wherein the first soft connection represents a corresponding relation between the first association position and the data.
2. The method of claim 1, wherein the first soft connection is configured to:
reading the data at the first association location upon triggering the first soft connection at the first association location.
3. The method of claim 1, wherein the querying whether the client has data corresponding to the resource identification information comprises:
and inquiring whether the client has data corresponding to the resource identification information in a database file pre-created in the client.
4. The method of claim 1, wherein the resource list further comprises at least one resource path information;
if the client has data corresponding to the resource identification information, establishing a first soft connection with the data at a first associated position of the target resource, including:
if the client has data corresponding to the resource identification information, when the resource path information corresponding to the data indicates that the storage location corresponding to the data is located in the first associated location, establishing a first soft connection between the client and the data at the first associated location.
5. The method according to claim 3, wherein after the querying whether the client has data corresponding to the resource identification information, the method comprises:
if the client does not have data corresponding to the resource identification information, sending acquisition request information of the data to the server;
receiving the data returned by the server according to the acquisition request information, and storing the data to a second associated position of the target resource;
and establishing a second soft connection between the target resource and the data stored at the second association position at the first association position, and storing the corresponding relation between the second soft connection and the second association position in the database file.
6. The method according to claim 3, wherein before the obtaining and sending the download request information of the target resource to the server, the method further comprises:
inquiring whether the target resource exists in the client side in the database file;
and under the condition that the target resource does not exist in the client, executing the operation of sending the downloading request information to the server.
7. The method according to any of claims 1 to 6, wherein the resource list further comprises at least one resource type information and at least one resource data volume.
8. A resource downloading apparatus, applied to a client, the apparatus comprising:
the request module is configured to acquire and send download request information of the target resource to the server side;
a receiving module configured to receive a resource list returned by the server according to the download request information, where the resource list includes at least one resource identification information;
the query module is configured to query whether the client has data corresponding to the resource identification information;
the establishing module is configured to establish a first soft connection with the data at a first association position of the target resource if the client has the data corresponding to the resource identification information, wherein the first soft connection represents a corresponding relation between the first association position and the data.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the resource download method of any one of claims 1 to 7.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the resource download method of any of claims 1 to 7.
CN202010700001.2A 2020-07-17 2020-07-17 Resource downloading method and device Active CN112003893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010700001.2A CN112003893B (en) 2020-07-17 2020-07-17 Resource downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010700001.2A CN112003893B (en) 2020-07-17 2020-07-17 Resource downloading method and device

Publications (2)

Publication Number Publication Date
CN112003893A true CN112003893A (en) 2020-11-27
CN112003893B CN112003893B (en) 2023-07-25

Family

ID=73466496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010700001.2A Active CN112003893B (en) 2020-07-17 2020-07-17 Resource downloading method and device

Country Status (1)

Country Link
CN (1) CN112003893B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463127A (en) * 2020-12-08 2021-03-09 微医云(杭州)控股有限公司 File processing method, device, equipment and storage medium
CN112615911A (en) * 2020-12-10 2021-04-06 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN112631621A (en) * 2020-12-29 2021-04-09 微医云(杭州)控股有限公司 Dependency package management method, device, server and storage medium
CN112988663A (en) * 2021-03-11 2021-06-18 维沃移动通信有限公司 File storage method and electronic equipment
CN113873009A (en) * 2021-08-31 2021-12-31 五八有限公司 Nib file loading method and device, electronic equipment and storage medium
CN114666319A (en) * 2022-03-02 2022-06-24 北京百度网讯科技有限公司 Data downloading method and device, electronic equipment and readable storage medium
CN115277687A (en) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141414A (en) * 2007-09-26 2008-03-12 腾讯科技(深圳)有限公司 Method, system and instant communication client terminal of implementing feedback of advertisement grade
CN104954468A (en) * 2015-06-18 2015-09-30 小米科技有限责任公司 Resource allocation method and resource allocation device
CN106487781A (en) * 2016-09-13 2017-03-08 腾讯科技(深圳)有限公司 Based on live resource data processing method, device and system
CN107317723A (en) * 2017-05-27 2017-11-03 北京金山安全软件有限公司 Data processing method and server
CN107766430A (en) * 2017-09-18 2018-03-06 北京春鸿科技有限公司 A kind of file search method and system
CN111225248A (en) * 2018-11-26 2020-06-02 中国电信股份有限公司 On-demand content management method and content distribution network on-demand server
CN111274512A (en) * 2020-01-16 2020-06-12 深圳市元征科技股份有限公司 Page loading method, device and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141414A (en) * 2007-09-26 2008-03-12 腾讯科技(深圳)有限公司 Method, system and instant communication client terminal of implementing feedback of advertisement grade
CN104954468A (en) * 2015-06-18 2015-09-30 小米科技有限责任公司 Resource allocation method and resource allocation device
CN106487781A (en) * 2016-09-13 2017-03-08 腾讯科技(深圳)有限公司 Based on live resource data processing method, device and system
CN107317723A (en) * 2017-05-27 2017-11-03 北京金山安全软件有限公司 Data processing method and server
CN107766430A (en) * 2017-09-18 2018-03-06 北京春鸿科技有限公司 A kind of file search method and system
CN111225248A (en) * 2018-11-26 2020-06-02 中国电信股份有限公司 On-demand content management method and content distribution network on-demand server
CN111274512A (en) * 2020-01-16 2020-06-12 深圳市元征科技股份有限公司 Page loading method, device and medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463127A (en) * 2020-12-08 2021-03-09 微医云(杭州)控股有限公司 File processing method, device, equipment and storage medium
CN112615911A (en) * 2020-12-10 2021-04-06 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN112615911B (en) * 2020-12-10 2023-06-16 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN112631621A (en) * 2020-12-29 2021-04-09 微医云(杭州)控股有限公司 Dependency package management method, device, server and storage medium
CN112988663A (en) * 2021-03-11 2021-06-18 维沃移动通信有限公司 File storage method and electronic equipment
CN115277687A (en) * 2021-04-30 2022-11-01 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device, and storage medium
CN115277687B (en) * 2021-04-30 2024-02-23 北京小米移动软件有限公司 Resource data acquisition method, resource data acquisition device and storage medium
CN113873009A (en) * 2021-08-31 2021-12-31 五八有限公司 Nib file loading method and device, electronic equipment and storage medium
CN114666319A (en) * 2022-03-02 2022-06-24 北京百度网讯科技有限公司 Data downloading method and device, electronic equipment and readable storage medium
CN114666319B (en) * 2022-03-02 2024-03-22 北京百度网讯科技有限公司 Data downloading method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112003893B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN112003893B (en) Resource downloading method and device
CN108123855B (en) Terminal control method and device
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN105554064A (en) Method and device for setting head portrait
CN107463372B (en) Data-driven page updating method and device
CN113596175A (en) Scene synchronization method, terminal, server and system
CN106708967B (en) Page display method and device
US20160006787A1 (en) Methods and devices for visiting a webpage
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN111695064A (en) Embedded point loading method and device
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN106354532B (en) Application account information processing method and device
CN106658412B (en) Positioning method and device
CN106027735B (en) Method and device for integrating communication numbers
CN115086295A (en) File transmission method, file transmission device, server and storage medium
CN110457084B (en) Loading method and device
CN114239531A (en) Template recommendation method and device, electronic equipment and storage medium
CN111241134B (en) Data processing method and device
CN107257384B (en) Service state monitoring method and device
CN108509641B (en) File backup method, device, server and system
CN114489706A (en) Upgrading method, device and storage medium
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN113934452B (en) Data processing method and device, electronic equipment and storage medium
CN108153839B (en) File processing method and 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
GR01 Patent grant
GR01 Patent grant