Resource processing method and device, equipment and medium

By downloading and replacing the address of the external network resources on the intranet server, the problem that the intranet server cannot display the external network resources is solved, ensuring the normal display of multimedia data and resource accessibility.

CN119030989APending Publication Date: 2024-11-26RICHFIT INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310597713.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The intranet server cannot display external network resources because it lacks permission to access the external network, resulting in the pictures, videos and other resources contained in the pushed multimedia data that cannot be displayed normally.

Method used

By obtaining the external network address carried by the multimedia data to be pushed by the intranet server, downloading these resources to the intranet server, and generating the intranet address to replace the external network address, so that the intranet server can obtain the external network based on the intranet address when pushing multimedia data. resource.

Benefits of technology

It realizes the normal display of external network resources in multimedia data when pushing in the intranet server, solves the problem that the intranet server cannot display external network resources, and avoids the problem of resource unavailability caused by the invalidity of external network addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030989A_ABST
    Figure CN119030989A_ABST
Patent Text Reader

Abstract

The invention provides a resource processing method and device, equipment and a medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a first address carried by first multimedia data to be pushed by an intranet server, wherein the first address is an extranet address used for downloading resources; downloading resources based on the first address, and storing the downloaded resources in an intranet server; generating a second address based on the storage position of the resource in the intranet server, the second address being an intranet address used for storing the resource; and replacing the first address of the first multimedia data in the intranet server with the second address to obtain second multimedia data, so that the intranet server pushes the second multimedia data. According to the scheme, the extranet resources in the multimedia data can be normally displayed, and the problem that an intranet server cannot display the extranet resources is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource processing method, device, equipment and medium. Background Art

[0002] To facilitate team collaboration, enterprise users can push multimedia data such as articles in the intranet through the enterprise's intranet server so that other enterprise users can share them. In order to improve the display effect of the article, before pushing the article, you can enter the article into a third-party graphic text editor for reformatting. When reformatting, you can insert pictures, videos and other resources into the article, resulting in the reformatted article carrying the external network address for downloading these resources. Since the intranet server does not have the authority to access the external network, when the article is pushed through the intranet server, there will be a problem that the pictures, videos and other resources in the article cannot be displayed. Summary of the invention

[0003] The embodiment of the present application provides a resource processing method, device, equipment and medium, so that the external network resources in the multimedia data can be displayed normally, solving the problem that the internal network server cannot display the external network resources. The technical solution is as follows:

[0004] In one aspect, a resource processing method is provided, the method comprising:

[0005] Acquire a first address carried by first multimedia data to be pushed by an intranet server, wherein the intranet server is a server for pushing multimedia data based on the intranet, and the first address is an external network address for downloading resources;

[0006] Based on the first address, download the resource, and store the downloaded resource in the intranet server;

[0007] Based on the storage location of the resource in the intranet server, generate a second address, where the second address is an intranet address for storing the resource;

[0008] The first address of the first multimedia data in the intranet server is replaced with the second address to obtain second multimedia data, so that the intranet server pushes the second multimedia data.

[0009] In a possible implementation, there are multiple first addresses; and downloading the resource based on the first address includes:

[0010] Based on the multiple first addresses, determining attribute information of multiple resources to be downloaded;

[0011] Determining a downloading order of the plurality of first addresses based on the attribute information of the plurality of resources to be downloaded;

[0012] The resources corresponding to the multiple first addresses are downloaded according to the downloading order of the multiple first addresses.

[0013] In a possible implementation, determining the downloading order of the multiple first addresses based on the attribute information of the multiple resources to be downloaded includes:

[0014] The attribute information includes type information of the resources to be downloaded, and the download order of the multiple first addresses is determined based on the type information of the multiple resources to be downloaded; or,

[0015] The attribute information includes the data volume of the resources to be downloaded, and the downloading order of the multiple first addresses is determined based on the data volume of the multiple resources to be downloaded.

[0016] In a possible implementation, there are multiple first addresses, and the first addresses include type information of corresponding resources; and downloading the resources based on the first addresses, and storing the downloaded resources in the intranet server includes:

[0017] Based on the type information in the multiple first addresses, the multiple first addresses are classified to obtain multiple first address groups, where one first address group corresponds to one type;

[0018] For the multiple first address groups, corresponding resources are downloaded based on the first addresses included in the first address groups, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group.

[0019] In a possible implementation manner, downloading the resource based on the first address includes:

[0020] Based on the first address, determining a first bandwidth status of a corresponding external network server;

[0021] Determine a second bandwidth state of the current device;

[0022] Determining a download duration of the resource based on the first bandwidth status and the second bandwidth status;

[0023] When the downloading duration does not exceed the first duration, the resource is downloaded.

[0024] In a possible implementation manner, downloading the resource based on the first address includes:

[0025] Based on the first address, determining the data volume of the resource;

[0026] During the process of downloading the resource, monitoring the flow consumed in downloading the resource;

[0027] When the traffic consumed for downloading the resource exceeds the traffic corresponding to the data volume, downloading of the resource is stopped and the downloaded resource is deleted.

[0028] In a possible implementation, the intranet server includes a plurality of sub-servers; and storing the downloaded resource in the intranet server includes:

[0029] Store the downloaded resources on the intranet server.

[0030] In a possible implementation, the method further includes:

[0031] Generate a synchronization directory through any sub-server, wherein the synchronization directory is used to indicate the resources downloaded by the sub-server based on the external network address;

[0032] The synchronization directory is sent to other sub-servers among the multiple sub-servers except the sub-server, so that the other sub-servers verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and synchronize the resources when any resource indicated by the synchronization directory is missing locally.

[0033] In another aspect, a resource processing device is provided, the device comprising:

[0034] An acquisition module, used for acquiring a first address carried by first multimedia data to be pushed by an intranet server, wherein the intranet server is a server based on the intranet to push multimedia data, and the first address is an external network address for downloading resources;

[0035] A download module, configured to download the resource based on the first address, and store the downloaded resource in the intranet server;

[0036] A generating module, configured to generate a second address based on a storage location of the resource in the intranet server, wherein the second address is an intranet address for storing the resource;

[0037] A replacement module is used to replace the first address of the first multimedia data in the intranet server with the second address to obtain second multimedia data, so that the intranet server pushes the second multimedia data.

[0038] In a possible implementation, the first address is multiple; the download module includes:

[0039] A first determining unit, configured to determine attribute information of multiple resources to be downloaded based on multiple first addresses;

[0040] A second determining unit, configured to determine a downloading order of the plurality of first addresses based on the attribute information of the plurality of resources to be downloaded;

[0041] The downloading unit is used to download the resources corresponding to the multiple first addresses according to the downloading order of the multiple first addresses.

[0042] In a possible implementation, the attribute information includes type information of the resources to be downloaded, and the second determining unit is configured to determine a downloading order of the multiple first addresses based on the type information of the multiple resources to be downloaded; or,

[0043] The attribute information includes the data volume of the resources to be downloaded, and the second determining unit is used to determine the downloading order of the multiple first addresses based on the data volume of the multiple resources to be downloaded.

[0044] In one possible implementation, there are multiple first addresses, and the first addresses include type information of corresponding resources; the download module is used to classify the multiple first addresses based on the type information in the multiple first addresses to obtain multiple first address groups, and one first address group corresponds to one type; for the multiple first address groups, based on the first address included in the first address group, the corresponding resources are downloaded, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group.

[0045] In a possible implementation, the download module is used to determine a first bandwidth status of a corresponding external network server based on the first address; determine a second bandwidth status of a current device; determine a download duration of the resource based on the first bandwidth status and the second bandwidth status; and download the resource if the download duration does not exceed the first duration.

[0046] In one possible implementation, the download module is used to determine the data volume of the resource based on the first address; during the process of downloading the resource, monitor the traffic consumed by downloading the resource; when the traffic consumed by downloading the resource exceeds the traffic corresponding to the data volume, stop downloading the resource and delete the downloaded resource.

[0047] In a possible implementation, the intranet server includes multiple sub-servers; and the download module is used to store the downloaded resources in the multiple sub-servers.

[0048] In a possible implementation manner, the device further includes:

[0049] A generation module, used to generate a synchronization directory through any sub-server, wherein the synchronization directory is used to indicate resources downloaded by the sub-server based on an external network address;

[0050] The sending module is also used to send the synchronization directory to other sub-servers among the multiple sub-servers except the sub-server, so that the other sub-servers can verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and synchronize the resources when any resource indicated by the synchronization directory is missing locally.

[0051] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the resource processing method as described in any of the above implementations.

[0052] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the resource processing method as described in any of the above implementations.

[0053] On the other hand, a computer program product is provided, the computer program product comprising at least one program code, the at least one program code being loaded and executed by a processor to implement the resource processing method as described in any of the above implementations.

[0054] The beneficial effects of the technical solution provided by the embodiments of the present application include at least:

[0055] An embodiment of the present application provides a resource processing method, which downloads the external network resources required for multimedia data to an intranet server in advance, determines the intranet address of the external network resource, and replaces the external network address of the external network resource with the intranet address, so that when the intranet server pushes multimedia data, it can obtain the external network resource based on the intranet address, so that the external network resources in the multimedia data can be displayed normally, which solves the problem that the intranet server cannot display the external network resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0058] Figure 2 is a flow chart of a resource processing method provided by an embodiment of the present application;

[0059] Figure 3 is a flow chart of a resource processing method provided by an embodiment of the present application;

[0060] Figure 4 is a structural diagram of a resource processing device provided in an embodiment of the present application;

[0061] Figure 5 is a structural diagram of a resource processing device provided in an embodiment of the present application;

[0062] Figure 6 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0063] Figure 7 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0065] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0066] The resource processing method provided in the embodiment of the present application is performed by a computer device. In some embodiments, the computer device may be a server, which may be a server, or a server cluster composed of several servers, or a cloud computing service center. Of course, the server may also include other functional servers to provide more comprehensive and diversified services. In some embodiments, the computer device may be an electronic device, which may be a computer, a mobile phone, a tablet computer, etc. The embodiment of the present application does not limit the electronic device.

[0067] The resource processing method provided in the embodiment of the present application can be applied to the scenario of synchronizing remote resources of multimedia data to be pushed in the PHP (PHP: Hypertext Preprocessor) intranet. Among them, PHP is an open source general-purpose computer scripting language, which is particularly suitable for network development and can be embedded in HTML (Hyper Text Markup Language). The syntax of PHP draws on the characteristics of popular computer languages ​​such as C, Java and Perl, and is easy for general programmers to learn. The main goal of PHP is to allow network developers to quickly write dynamic pages, but PHP is also used in many other fields.

[0068] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes a first terminal 101 , a second terminal 102 , a first server 103 , a second server 104 and a third server 105 .

[0069] Among them, the first terminal 101 is a terminal for publishing multimedia data such as articles. The first server 103 is an intranet server for pushing multimedia data such as articles published by the first terminal 101 to the second terminal 102. The multimedia data such as articles published by the first terminal 101 may carry external network resources, and the second server 104 is a server for storing the external network resources. The third server 105 has established a communication connection with the first server 103 and has external network access rights. It can download external network resources from the second server 104 and store the downloaded external network resources in the first server 103.

[0070] Figure 2 is a flow chart of a resource processing method provided in an embodiment of the present application. The present application embodiment is illustrated by taking a computer device as an example. Figure 2 , the method comprising:

[0071] 201. A computer device obtains a first address carried by first multimedia data to be pushed by an intranet server. The intranet server is a server that pushes multimedia data based on an intranet. The first address is an external network address for downloading resources.

[0072] 202. The computer device downloads resources based on the first address and stores the downloaded resources in an intranet server.

[0073] 203. The computer device generates a second address based on the storage location of the resource in the intranet server, where the second address is an intranet address for storing the resource.

[0074] 204. The computer device replaces the first address of the first multimedia data in the intranet server with the second address to obtain the second multimedia data, so that the intranet server pushes the second multimedia data.

[0075] The resource processing method provided in the embodiment of the present application downloads the external network resources required for the multimedia data to the intranet server in advance, determines the intranet address of the external network resource, and replaces the external network address of the external network resource with the intranet address, so that when the intranet server pushes the multimedia data, it can obtain the external network resource based on the intranet address, so that the external network resources in the multimedia data can be displayed normally, thereby solving the problem that the intranet server cannot display the external network resources.

[0076] In a possible implementation, there are multiple first addresses; and based on the first addresses, downloading resources includes:

[0077] Based on the multiple first addresses, determining attribute information of multiple resources to be downloaded;

[0078] Determining a downloading order of the plurality of first addresses based on attribute information of the plurality of resources to be downloaded;

[0079] Download resources corresponding to the multiple first addresses according to the download order of the multiple first addresses.

[0080] In a possible implementation, determining the download order of multiple first addresses based on the attribute information of multiple resources to be downloaded includes:

[0081] The attribute information includes type information of the resource to be downloaded, and based on the type information of the plurality of resources to be downloaded, the download order of the plurality of first addresses is determined;

[0082] The attribute information includes the data volume of the resources to be downloaded, and the downloading order of the multiple first addresses is determined based on the data volume of the multiple resources to be downloaded.

[0083] In a possible implementation, there are multiple first addresses, and the first addresses include type information of corresponding resources; based on the first addresses, downloading resources, and storing the downloaded resources in an intranet server includes:

[0084] Based on the type information in the multiple first addresses, the multiple first addresses are classified to obtain multiple first address groups, where one first address group corresponds to one type;

[0085] For multiple first address groups, corresponding resources are downloaded based on the first addresses included in the first address groups, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group.

[0086] In a possible implementation, downloading a resource based on the first address includes:

[0087] Based on the first address, determining a first bandwidth status of a corresponding external network server;

[0088] Determine a second bandwidth state of the current device;

[0089] Determining a download duration of the resource based on the first bandwidth status and the second bandwidth status;

[0090] When the downloading time does not exceed the first time, the resource is downloaded.

[0091] In a possible implementation, downloading a resource based on the first address includes:

[0092] Based on the first address, determining a data volume of the resource;

[0093] During the resource download process, monitor the traffic consumed by the download resource;

[0094] When the traffic consumed by downloading resources exceeds the traffic corresponding to the data volume, the downloading of resources is stopped and the downloaded resources are deleted.

[0095] In a possible implementation, the intranet server includes multiple sub-servers, and the steps of obtaining the first address, downloading the resource, generating the second address, and replacing the first address with the second address are performed by any sub-server, and the method further includes:

[0096] The resource is sent to other sub-servers except the sub-server among the multiple sub-servers through the sub-server, so that the resource is backed up in the other sub-servers.

[0097] In a possible implementation, the method further includes:

[0098] Generate a synchronization directory through the sub-server, which is used to instruct the sub-server to download resources based on the external network address;

[0099] The synchronization directory is sent to other sub-servers except the sub-server among the multiple sub-servers, so that the other sub-servers can verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and download the resources when any resource indicated by the synchronization directory is missing locally.

[0100] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0101] Figure 3 is a flowchart of a resource processing method provided in an embodiment of the present application. The embodiment of the present application is illustrated by taking a computer device as an example. Figure 3 , the method comprising:

[0102] 301. An intranet server receives a multimedia data push request, where the multimedia data push request carries first multimedia data to be pushed, and the first multimedia data carries a first address, which is an external network address for downloading resources.

[0103] The intranet server is a server that provides services based on the intranet, and the intranet server does not have the authority to access the external network server. In the embodiment of the present application, the intranet server has the function of pushing multimedia data, so the user can send a multimedia data push request to the intranet server through a terminal connected to the intranet, and the multimedia data push request carries the multimedia data to be pushed to instruct the intranet server to push the multimedia data.

[0104] If there is an external network address for downloading resources in the multimedia data, then since the intranet server does not have the authority to access the external network, this results in the intranet server being unable to read the corresponding resources based on the external network address when pushing the multimedia data, and thus being unable to display the resources. In order to enable the resources to be displayed normally, the user can download the resources to the terminal and then manually store the resources in the intranet server. However, this method requires manual synchronization of each external network resource, which is time-consuming and laborious. Therefore, an embodiment of the present application provides an automatic synchronization method, in which the intranet server sends the first address to the computer device, and the computer device downloads the corresponding resources. It should be noted that the computer device in the embodiment of the present application has established a communication connection with the intranet server, and has external network access rights, and can download the corresponding resources based on the external network address.

[0105] 302. The intranet server sends a first address carried by first multimedia data to be pushed to a computer device.

[0106] In some embodiments, the intranet server and the computer device establish a wired connection, and the intranet server sends the first address carried by the first multimedia data to be pushed to the computer device through the wired connection. In other embodiments, the intranet server and the computer device establish a wireless connection, and the intranet server sends the first address carried by the first multimedia data to be pushed to the computer device through the wireless connection.

[0107] The first address carried by the first multimedia data is an external network address carried by the first multimedia data for downloading resources. Therefore, the first address can be one or more, and the embodiment of the present application does not limit this.

[0108] 303. The computer device downloads resources based on the first address and stores the downloaded resources in the intranet server.

[0109] It should be noted that the embodiment of the present application is only illustrative of an example in which a computer device stores the downloaded resources in an intranet server after downloading the resources, and the intranet server obtains the resources from the local computer each time it pushes the first multimedia data. In another embodiment, the intranet server does not store the resources after receiving the resources. Instead, each time the intranet server pushes the first multimedia data, it instructs the computer device to download the corresponding resources based on the first address carried by the first multimedia data, and the computer device transmits the downloaded resources to the intranet server, so that the intranet server pushes the first multimedia data based on the resources.

[0110] In a possible implementation, there are multiple first addresses, and the computer device may download the resources corresponding to the multiple first addresses in parallel, or may download the resources corresponding to the multiple first addresses in sequence.

[0111] In some embodiments, the computer device downloads the resources corresponding to the multiple first addresses in sequence, and determines the sequence of the resources to be downloaded based on the attribute information of the resources to be downloaded. Optionally, the computer device downloads the resources based on the first address, including: determining the attribute information of the multiple resources to be downloaded based on the multiple first addresses; determining the download sequence of the multiple first addresses based on the attribute information of the multiple resources to be downloaded; and downloading the resources corresponding to the multiple first addresses according to the download sequence of the multiple first addresses.

[0112] The attribute information of the resource to be downloaded may be any attribute information such as the type information and data volume of the resource to be downloaded. The embodiment of the present application does not limit the attribute information.

[0113] Optionally, the attribute information includes type information of the resources to be downloaded, and based on the attribute information of the multiple resources to be downloaded, determining the download order of the multiple first addresses includes: determining the download order of the multiple first addresses based on the type information of the multiple resources to be downloaded. Optionally, different types correspond to different download priorities. For example, the picture type corresponds to the first priority, the audio type corresponds to the second priority, and the video type corresponds to the third priority. When the type information of the multiple resources to be downloaded includes the picture type and the video type, the picture type resources are downloaded first, and then the video type resources are downloaded.

[0114] Optionally, the attribute information includes the data volume of the resource to be downloaded, and the downloading order of the multiple first addresses is determined based on the attribute information of the multiple resources to be downloaded, including: determining the downloading order of the multiple first addresses based on the data volume of the multiple resources to be downloaded.

[0115] The data volume of the resource to be downloaded is positively correlated with the downloading order, that is, the resource with large data volume is downloaded first. Alternatively, the data volume of the resource to be downloaded is negatively correlated with the downloading order, that is, the resource with small data volume is downloaded first.

[0116] In a possible implementation, the resources to be downloaded can be downloaded and stored in categories. In some embodiments, there are multiple first addresses, and the first addresses include type information of the corresponding resources; based on the first addresses, the resources are downloaded, and the downloaded resources are stored in the intranet server, including: based on the type information in the multiple first addresses, the multiple first addresses are classified to obtain multiple first address groups, and one first address group corresponds to one type; for multiple first address groups, based on the first addresses included in the first address group, the corresponding resources are downloaded, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group. Optionally, the multiple first address groups are downloaded in sequence. Optionally, the multiple first address groups are downloaded in parallel.

[0117] For example, multiple first address groups are downloaded in parallel, and within each first address group, the download order is determined according to the data volume of the resources to be downloaded, and the resources are downloaded in sequence.

[0118] In a possible implementation, in order to ensure the smoothness of the download, a download condition can be set, and the download is performed when the download condition is met. In some embodiments, downloading a resource based on a first address includes: determining a first bandwidth state of a corresponding external network server based on the first address; determining a second bandwidth state of a current device; determining a download duration of the resource based on the first bandwidth state and the second bandwidth state; and downloading the resource when the download duration does not exceed the first duration. In this way, the resource is prevented from being downloaded for a long time, which occupies computer device resources.

[0119] In a possible implementation, the download of resources can also be monitored. Based on the first address, downloading resources includes: determining the data volume of the resources based on the first address; in the process of downloading resources, monitoring the flow consumed by downloading resources; when the flow consumed by downloading resources exceeds the flow corresponding to the data volume, stopping downloading resources and deleting the downloaded resources. In this way, downloading Trojan programs from external network servers can be avoided, ensuring the security of internal network servers.

[0120] 304. The intranet server generates a second address based on the storage location of the resource, where the second address is an intranet address for storing the resource.

[0121] In some embodiments, the second address is the storage address of the resource in the intranet server. In some embodiments, the second address is a CDN (Content Delivery Network) link address.

[0122] 305. The intranet server replaces the first address of the first multimedia data with the second address to obtain the second multimedia data, so that the intranet server pushes the second multimedia data.

[0123] After the first address of the multimedia data in the intranet server is replaced with the second address, the intranet server can obtain resources locally based on the second address when pushing the multimedia data, without having to obtain resources from the external network through a computer device. In addition, storing resources in the intranet server can also avoid the problem of resources being unavailable due to invalid external network addresses.

[0124] It should be noted that the embodiment of the present application is only illustrative of the intranet server as a whole, and in another embodiment, the intranet server includes multiple sub-servers, and any sub-server may receive the multimedia data push request carrying the first multimedia data to be pushed; the computer device stores the downloaded resources in the intranet server, including: the computer device stores the downloaded resources in multiple sub-servers, which can be regarded as backing up the downloaded resources in each sub-server. In some embodiments, the first multimedia data and the external network resources corresponding to the first multimedia data are respectively stored in multiple sub-servers, then each sub-server can replace the first address in the first multimedia data with the second address of the local storage of the external network resource, and each sub-server subsequently pushes the first multimedia data based on the locally stored external network resources.

[0125] In order to ensure that each sub-server stores the corresponding external network resources, synchronization can be performed between multiple sub-servers. In a possible implementation, the resource processing method further includes: generating a synchronization directory through any sub-server, the synchronization directory is used to indicate the resources downloaded by the sub-server based on the external network address, and sending the synchronization directory to other sub-servers other than the sub-server among the multiple sub-servers, so that the other sub-servers can verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and synchronize any resource indicated by the synchronization directory when it is missing locally.

[0126] Optionally, the synchronization directory includes a resource identifier of the resource to be synchronized, which may be a resource serial number, a resource name, etc., and the embodiment of the present application does not limit the resource identifier. Optionally, the synchronization directory is generated based on the multimedia data push request, that is, the sub-server that generates the synchronization directory is the sub-server that receives the multimedia data push request.

[0127] Optionally, the sub-server not only generates a synchronization directory, but also generates a verification code, and sends the synchronization directory and the verification code together to other sub-servers. The verification code is used to indicate the timeliness of the synchronization directory. If the verification code received by any other sub-server indicates that the synchronization directory has lost its timeliness, then the sub-server will no longer synchronize based on the synchronization directory.

[0128] The resource processing method provided in the embodiment of the present application downloads the external network resources required by the multimedia data to the intranet server in advance, determines the intranet address of the external network resources, and replaces the external network address of the external network resources with the intranet address, so that when the intranet server pushes the multimedia data, it can obtain the external network resources based on the intranet address, so that the external network resources in the multimedia data can be displayed normally, solving the problem that the intranet server cannot display the external network resources. In addition, storing the resources in the intranet server can also avoid the problem that the resources cannot be obtained due to the invalidation of the external network address.

[0129] Figure 4 is a schematic diagram of a resource processing device provided in an embodiment of the present application. Figure 4 As shown, the device comprises:

[0130] An acquisition module 401 is used to acquire a first address carried by first multimedia data to be pushed by an intranet server, where the intranet server is a server that pushes multimedia data based on the intranet, and the first address is an external network address for downloading resources;

[0131] A download module 402, configured to download resources based on the first address and store the downloaded resources in an intranet server;

[0132] A generating module 403, configured to generate a second address based on a storage location of the resource in the intranet server, where the second address is an intranet address for storing the resource;

[0133] The replacement module 404 is used to replace the first address of the first multimedia data in the intranet server with the second address to obtain the second multimedia data, so that the intranet server pushes the second multimedia data.

[0134] like Figure 5 As shown, in a possible implementation, the first address is multiple; the download module 402 includes:

[0135] A first determining unit 4021, configured to determine attribute information of multiple resources to be downloaded based on multiple first addresses;

[0136] A second determining unit 4022, configured to determine a downloading order of the plurality of first addresses based on attribute information of the plurality of resources to be downloaded;

[0137] The downloading unit 4023 is used to download resources corresponding to the multiple first addresses according to the downloading order of the multiple first addresses.

[0138] In a possible implementation, the attribute information includes type information of the resource to be downloaded, and the second determining unit 4022 is configured to determine the downloading order of the multiple first addresses based on the type information of the multiple resources to be downloaded; or,

[0139] The attribute information includes the data volume of the resource to be downloaded. The second determining unit 4022 is used to determine the downloading order of the multiple first addresses based on the data volume of the multiple resources to be downloaded.

[0140] In one possible implementation, there are multiple first addresses, and the first addresses include type information of corresponding resources; the download module 402 is used to classify the multiple first addresses based on the type information in the multiple first addresses to obtain multiple first address groups, and one first address group corresponds to one type; for multiple first address groups, based on the first addresses included in the first address group, the corresponding resources are downloaded, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group.

[0141] In a possible implementation, the download module 402 is used to determine a first bandwidth status of a corresponding external network server based on a first address; determine a second bandwidth status of a current device; determine a download duration of a resource based on the first bandwidth status and the second bandwidth status; and download the resource when the download duration does not exceed the first duration.

[0142] In one possible implementation, the download module 402 is used to determine the data volume of the resource based on the first address; during the process of downloading the resource, monitor the traffic consumed by downloading the resource; when the traffic consumed by downloading the resource exceeds the traffic corresponding to the data volume, stop downloading the resource and delete the downloaded resource.

[0143] In a possible implementation, the intranet server includes multiple sub-servers; the download module 402 is used to store the downloaded resources in the multiple sub-servers.

[0144] In a possible implementation, the device further includes:

[0145] A generating module 403 is used to generate a synchronization directory through any sub-server, where the synchronization directory is used to indicate the resources downloaded by the sub-server based on the external network address;

[0146] The sending module 405 is also used to send the synchronization directory to other sub-servers except the sub-server among the multiple sub-servers, so that other sub-servers can verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and synchronize the resources when any resource indicated by the synchronization directory is missing locally.

[0147] It should be noted that: the resource processing device provided in the above embodiment only uses the division of the above functional modules as an example when processing resources. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the resource processing device provided in the above embodiment and the resource processing method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0148] Figure 6 The terminal 600 includes a processor 601 and a memory 602 .

[0149] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0150] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one program code, which is used to be executed by the processor 601 to implement the resource processing method provided in the method embodiment of the present application.

[0151] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera 606, an audio circuit 607, a positioning component 608 and a power supply 609.

[0152] The peripheral device interface 603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0153] The display screen 605 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to collect touch signals on the surface or above the surface of the display screen 605. The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 605 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 605 can be one, and the front panel of the terminal 600 is set; in other embodiments, the display screen 605 can be at least two, which are respectively set on different surfaces of the terminal 600 or are folded; in some other embodiments, the display screen 605 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 600. Even, the display screen 605 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 605 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0154] The power supply 609 is used to power various components in the terminal 600. The power supply 609 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 609 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0155] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the terminal 600, and the terminal 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0156] Figure 7 7 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein the memory 702 stores at least one program code, and the at least one program code is loaded and executed by the processor 701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.

[0157] The server 700 is used to execute the steps executed by the server in the above method embodiment.

[0158] An embodiment of the present application further provides a computer-readable storage medium, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the resource processing method as described in any of the above implementations.

[0159] An embodiment of the present application further provides a computer program product, which includes at least one program code, and the at least one program code is loaded and executed by a processor to implement the resource processing method as described in any of the above implementations.

[0160] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

[0161] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A resource processing method, It is characterized in that The method comprises: Acquire a first address carried by first multimedia data to be pushed by an intranet server, wherein the intranet server is a server for pushing multimedia data based on the intranet, and the first address is an external network address for downloading resources; Based on the first address, download the resource, and store the downloaded resource in the intranet server; Based on the storage location of the resource in the intranet server, generate a second address, where the second address is an intranet address for storing the resource; The first address of the first multimedia data in the intranet server is replaced with the second address to obtain second multimedia data, so that the intranet server pushes the second multimedia data.

2. The method according to claim 1, It is characterized in that The first address is multiple; and downloading the resource based on the first address includes: Based on the multiple first addresses, determining attribute information of multiple resources to be downloaded; Determining a downloading order of the plurality of first addresses based on the attribute information of the plurality of resources to be downloaded; The resources corresponding to the multiple first addresses are downloaded according to the downloading order of the multiple first addresses.

3. The method according to claim 2, It is characterized in that The step of determining the downloading order of the plurality of first addresses based on the attribute information of the plurality of resources to be downloaded comprises: The attribute information includes type information of the resources to be downloaded, and the download order of the multiple first addresses is determined based on the type information of the multiple resources to be downloaded; or, The attribute information includes the data volume of the resources to be downloaded, and the downloading order of the multiple first addresses is determined based on the data volume of the multiple resources to be downloaded.

4. The method according to claim 1, It is characterized in that There are multiple first addresses, and the first addresses include type information of corresponding resources; and based on the first addresses, downloading the resources and storing the downloaded resources in the intranet server includes: Based on the type information in the multiple first addresses, the multiple first addresses are classified to obtain multiple first address groups, where one first address group corresponds to one type; For the multiple first address groups, corresponding resources are downloaded based on the first addresses included in the first address groups, and the downloaded resources are stored in a folder in the intranet server that matches the type corresponding to the first address group.

5. The method according to claim 1, It is characterized in that The downloading the resource based on the first address includes: Based on the first address, determining a first bandwidth status of a corresponding external network server; Determine a second bandwidth state of the current device; Determining a download duration of the resource based on the first bandwidth status and the second bandwidth status; When the downloading duration does not exceed the first duration, the resource is downloaded.

6. The method according to claim 1, It is characterized in that The downloading the resource based on the first address includes: Based on the first address, determining the data volume of the resource; During the process of downloading the resource, monitoring the flow consumed in downloading the resource; When the traffic consumed for downloading the resource exceeds the traffic corresponding to the data volume, downloading of the resource is stopped and the downloaded resource is deleted.

7. The method according to claim 1, It is characterized in that The intranet server includes a plurality of sub-servers; storing the downloaded resources in the intranet server includes: The downloaded resources are stored in the multiple sub-servers.

8. The method according to claim 7, It is characterized in that The method further comprises: Generate a synchronization directory through any sub-server, wherein the synchronization directory is used to indicate the resources downloaded by the sub-server based on the external network address; The synchronization directory is sent to other sub-servers among the multiple sub-servers except the sub-server, so that the other sub-servers verify whether the resources indicated by the synchronization directory are stored locally based on the synchronization directory, and synchronize the resources when any resource indicated by the synchronization directory is missing locally.

9. A resource processing device, It is characterized in that The device comprises: An acquisition module, used for acquiring a first address carried by first multimedia data to be pushed by an intranet server, wherein the intranet server is a server based on the intranet to push multimedia data, and the first address is an external network address for downloading resources; A download module, configured to download the resource based on the first address, and store the downloaded resource in the intranet server; A generating module, configured to generate a second address based on a storage location of the resource in the intranet server, wherein the second address is an intranet address for storing the resource; A replacement module is used to replace the first address of the first multimedia data in the intranet server with the second address to obtain second multimedia data, so that the intranet server pushes the second multimedia data.

10. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the resource processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the resource processing method according to any one of claims 1 to 8.