File downloading method, device, system, equipment and storage medium
Through the cooperation between the client and the rendering server, the problem of low file download success rate for non-Trident kernel browsers is solved, file downloads from the Trident kernel browser target website are realized, and the operational integrity and download success rate of the business system are improved.
Patent Information
- Application Number
- CN202010526933.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Browsers based on non-Trident kernel have a low success rate in downloading files and cannot access pages and complete business interactions normally.
Through the cooperation between the client website and the rendering server, the download instructions are obtained and the data is sent to the rendering server. The rendering server downloads the file from the target website and returns the storage path. The client downloads the file in the file server according to the path, realizing browsing from the Trident kernel. The server downloads the file from the target website.
It improves the success rate of downloading files for non-Trident core browsers, avoids business interaction interruptions caused by page rendering failures, and ensures normal access and operation of business systems based on IE core features.
Smart Images

Figure CN113783911B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, system, equipment and storage medium for downloading a file. Background Art
[0002] IE (Internet Explorer) is a closed-source browser based on Wintel architecture. Currently, some operating systems only support Blink kernel. In addition, there are a large number of business systems developed based on Trident kernel in this operating system environment, some of which use ActiveX plug-ins under Trident kernel to improve the business closed loop. ActiveX is Microsoft's name for a series of strategic object-oriented programming technologies and tools, among which the main technology is the component object model. However, due to the technical characteristics of this operating system, the terminal devices corresponding to this operating system cannot install and run the IE browser with Trident kernel normally, causing a great business fault. If the business system developed based on the Trident kernel of IE browser is not adapted and optimized, the page rendering may fail when accessed by a browser other than Trident kernel. At this time, when the business system also uses the ActiveX plug-in of IE kernel to interact with business data, the browser other than Trident kernel cannot complete the business interaction. If you want to download files at this time, you cannot download them successfully.
[0003] It can be seen that the current success rate of downloading files by browsers based on non-Trident kernels is low. Summary of the invention
[0004] The main purpose of the present invention is to provide a file downloading method, device, system, equipment and storage medium, aiming to solve the technical problem of low success rate of file downloading by existing browsers based on non-Trident kernel.
[0005] To achieve the above object, the present invention provides a method for downloading a file, the method comprising the steps of:
[0006] When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained;
[0007] Sending the download data to a rendering server, so that the rendering server downloads the target file from the target website to the file server according to the download data, and returns the storage path of the target file in the file server;
[0008] The storage path is received, and the target file is downloaded from the file server according to the storage path.
[0009] Optionally, when the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, the step of obtaining download data corresponding to the download instruction includes:
[0010] When the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained;
[0011] Sending the uploaded data to a rendering server, so that the rendering server obtains a storage path of the target file from a file server according to the uploaded data, and sends the storage path to a target website, wherein after the target website receives the storage path, it obtains the target file from the file server according to the storage path;
[0012] If a notification message indicating that the target file has been successfully uploaded is received from the rendering server and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained.
[0013] Optionally, when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, before the step of obtaining the download data corresponding to the download instruction, the step further includes:
[0014] Obtaining pre-stored configuration data, and determining whether a page corresponding to the client website requires remote rendering according to the configuration data;
[0015] If it is determined that the page requires remote rendering, the rendering server is called to perform remote rendering on the page.
[0016] Optionally, before the step of obtaining the pre-stored configuration data and determining whether the page corresponding to the client website needs remote rendering according to the configuration data, the step further includes:
[0017] When a request for obtaining configuration data is detected, a protocol package name corresponding to the request is obtained;
[0018] Determine a domain name corresponding to the server according to the protocol package name, and send the acquisition request to the server through the domain name, so that the server returns configuration data corresponding to the acquisition request;
[0019] Receive the configuration data returned by the server and store the configuration data.
[0020] Optionally, after detecting an acquisition request for acquiring configuration data, before the step of acquiring a protocol package name corresponding to the acquisition request, the method further includes:
[0021] Check whether the current time is the time to obtain the configuration data;
[0022] If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.
[0023] Optionally, if it is determined that the page needs remote rendering, the step of calling the rendering server to remotely render the page includes:
[0024] If it is determined that the page needs remote rendering, detecting whether the page is remotely rendered for the first time;
[0025] If it is detected that the page is remotely rendered for the first time, obtaining the URL of the page;
[0026] Sending the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server;
[0027] A communication connection is established between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.
[0028] In addition, to achieve the above object, the present invention also provides a method for downloading a file, the method for downloading a file comprising:
[0029] When the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained and the download data is sent to the rendering server;
[0030] The rendering server receives the download data, and downloads the target file from the target website according to the download data;
[0031] The target file is stored in a file server, and a storage path of the target file in the file server is obtained, and the storage path is sent to the client;
[0032] After receiving the storage path, the client downloads the target file from the file server according to the storage path.
[0033] Optionally, when the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, the step of obtaining download data corresponding to the download instruction includes:
[0034] When the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained and the upload data is sent to the rendering server;
[0035] The rendering server receives the uploaded data, obtains the storage path of the target file from the file server according to the uploaded data, and sends the storage path to the target website;
[0036] After the target website receives the storage path, it obtains the target file from the file server according to the storage path, stores the target file, generates a notification message indicating that the target file has been successfully uploaded, and sends the notification message to the client through the rendering server;
[0037] If the client receives the notification message sent by the rendering server and detects a download instruction for downloading a target file, the client obtains download data corresponding to the download instruction.
[0038] Optionally, when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, before the step of obtaining the download data corresponding to the download instruction, the step further includes:
[0039] The client obtains pre-stored configuration data, and determines whether a page corresponding to the client website needs remote rendering according to the configuration data;
[0040] If it is determined that the page requires remote rendering, the rendering server is called to perform remote rendering on the page.
[0041] Optionally, before the step of the client acquiring pre-stored configuration data and determining whether the page corresponding to the client website needs remote rendering according to the configuration data, the method further includes:
[0042] When the server receives the configuration data acquisition request sent by the client, the server acquires the configuration data according to the acquisition request;
[0043] The configuration data is sent to the client.
[0044] Optionally, the file downloading method further includes:
[0045] If the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also provides a file downloading device, the file downloading device comprising:
[0047] The acquisition module is used to acquire the download data corresponding to the download instruction when the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected;
[0048] A sending module, used for sending the download data to a rendering server, so that the rendering server can download the target file from the target website to the file server according to the download data, and return the storage path of the target file in the file server;
[0049] A receiving module, used for receiving the storage path;
[0050] A download module is used to download the target file from the file server according to the storage path.
[0051] In addition, to achieve the above-mentioned purpose, the present invention also provides a file downloading system, the file downloading system comprising a client and a rendering server;
[0052] The client is used to obtain download data corresponding to the download instruction and send the download data to the rendering server when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected;
[0053] The rendering server is used to receive the download data, and download the target file from the target website according to the download data; store the target file in the file server, obtain the storage path of the target file in the file server, and send the storage path to the client;
[0054] The client is also used to download the target file from the file server according to the storage path after receiving the storage path.
[0055] In addition, to achieve the above-mentioned purpose, the present invention also provides a file downloading device, which includes a memory, a processor, and a file downloading program stored in the memory and executable on the processor, and when the file downloading program is executed by the processor, the steps of a file downloading method corresponding to a federated learning server are implemented.
[0056] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a file downloading program is stored, and when the file downloading program is executed by a processor, the steps of the file downloading method as described above are implemented.
[0057] The present invention sends download data corresponding to the download instruction to the rendering server when the page corresponding to the client website is successfully remotely rendered and a download instruction to download the target file is detected, so that the rendering server can download the target file from the target website to the file server according to the download data, and returns the storage path of the target file in the file server, and the client downloads the target file in the file server according to the storage path. In the process of downloading files, the rendering server downloads the target file from the target website of the browser of the real Trident kernel, avoids the browser of the non-Trident kernel from being unable to complete the business interaction, and improves the download success rate of the browser based on the non-Trident kernel to download the file. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flowchart of a first embodiment of a method for downloading a file of the present invention;
[0059] Figure 2 is a flowchart of a fourth embodiment of a method for downloading a file according to the present invention;
[0060] Figure 3 It is a functional schematic diagram module diagram of a preferred embodiment of the file downloading device of the present invention;
[0061] Figure 4 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.
[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0063] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0064] According to a method for downloading a file provided by the present invention, referring to Figure 1 , Figure 1 FIG. 1 is a flow chart of a first embodiment of a method for downloading a file according to the present invention.
[0065] According to the file downloading method provided by the present invention, it should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0066] The file download method is applied to the client, which may include mobile terminals such as mobile phones, tablet computers, laptops, PDAs, and fixed terminals such as digital TVs and desktop computers. The file download method includes:
[0067] Step S11, when the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained.
[0068] When the client determines that the page corresponding to its website is successfully rendered remotely, the client detects whether a download instruction for downloading the target file is detected, wherein the download instruction can be triggered in the client by the client user as needed, or can be sent to the client by other terminal devices. The client in this embodiment is installed with a browser, and the website is the website of the business system corresponding to the browser, and each website has a corresponding page. When the client detects the download instruction, the client obtains the download data corresponding to the download instruction, wherein the download data includes but is not limited to the name, identifier (ID), size and instruction identifier of the target file. The instruction identifier can be used to determine whether the current corresponding instruction is a download instruction, an upload instruction, or other instructions. This embodiment does not limit the form of the instruction identifier. If the client does not detect the download instruction for downloading the target file, the client continues to detect whether the download instruction for downloading the target file is detected.
[0069] Step S13, sending the download data to the rendering server, so that the rendering server downloads the target file from the target website to the file server according to the download data, and returns the storage path of the target file in the file server.
[0070] After the client obtains the download data, the client sends the download data to the rendering server. It should be noted that the rendering server is a server that performs remote rendering for the corresponding page of the client website. After the rendering server receives the download data, the rendering server downloads the target file from the target website according to the download data. It should be noted that the rendering server can know which file is needed to be obtained according to the download data. The target website is a website that actually stores the target file. After the rendering server obtains the target file from the target website, the rendering server stores the target file in the file server, obtains the storage path of the target file in the file server, and sends the storage path to the client. It can be understood that the file server is a server that stores data. Further, the rendering server can also send the download data to the target website. After the target website receives the download data, the target website determines the target file to be downloaded according to the download data, and sends the target file to the file server. After the file server receives the target file, it stores the target file and sends the storage path of the target file to the rendering server. After the rendering server receives the storage path, it sends the storage path to the client.
[0071] Step S15, receiving the storage path, and downloading the target file in the file server according to the storage path.
[0072] When the client receives the storage path sent by the rendering server, the client downloads the target file from the file server according to the storage path, that is, downloads the target file to the client locally. It should be noted that in this embodiment, the client website is a browser website of a non-Trident kernel, and the target website is a browser website of a Trident kernel.
[0073] This embodiment, when the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, sends the download data corresponding to the download instruction to the rendering server, so that the rendering server can download the target file from the target website to the file server according to the download data, and returns the storage path of the target file in the file server, and the client downloads the target file in the file server according to the storage path. In the process of downloading files, the rendering server downloads the target file from the target website of the browser of the real Trident kernel, avoids the browser of the non-Trident kernel from being unable to complete the business interaction, and improves the download success rate of the download file based on the browser of the non-Trident kernel.
[0074] It should be noted that when the client needs to access a business system based on the IE kernel, the page rendering method in this embodiment can solve the problem of being unable to access the page normally, thereby improving the operational integrity of the business system; individual users do not need to select a Wintel architecture operating system environment to normally access business application websites with IE kernel features.
[0075] Furthermore, a second embodiment of a method for downloading a file is proposed. The difference between the second embodiment of the method for downloading a file and the first embodiment of the method for downloading a file is that step S11 includes:
[0076] Step a: when the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained.
[0077] When the page corresponding to the client website is successfully remotely rendered, the client detects whether an upload instruction to upload the target file is detected. The upload instruction can be triggered in the client by the client user as needed, or it can be sent to the client by other terminal devices. When the client detects the upload instruction, the client obtains the upload data corresponding to the upload instruction, wherein the upload data includes but is not limited to the name, identifier (ID), size and instruction identifier of the target file. If the client does not detect the upload instruction to download the target file, the client continues to detect whether an upload instruction to upload the target file is detected.
[0078] Step b, sending the uploaded data to the rendering server, so that the rendering server obtains the storage path of the target file in the file server according to the uploaded data, and sends the storage path to the target website, wherein after the target website receives the storage path, it obtains the target file from the file server according to the storage path.
[0079] After the client detects the upload instruction to upload the target file, the client sends the target file to the file server. When the file server receives the target file, it stores the target file. After the client sends the target file to the file server, the client sends the upload data to the rendering server. After the rendering server receives the upload data, the rendering server obtains the storage path of the target file in the file server according to the upload data, and sends the storage path to the target website. When the target website receives the storage path, the target website obtains the target file from the file server according to the storage path, and then stores the target file to successfully upload the target file to the target website. Furthermore, the rendering server can also send the upload data together to the target website, and the target website obtains the target file in the file server according to the upload data and the storage path.
[0080] When the target website successfully stores the target file, the target website generates a notification message indicating that the target file has been successfully uploaded, and sends the notification message to the rendering server. When the rendering server receives the notification message, the rendering server sends the notification message to the client.
[0081] Step c: if a notification message indicating that the target file has been successfully uploaded is received from the rendering server and a download instruction for downloading the target file is detected, then download data corresponding to the download instruction is obtained.
[0082] After the client receives the notification message returned by the rendering server indicating that the target file has been successfully uploaded, the client detects whether a download instruction to download the target file has been detected. If the client detects a download instruction to download the target file, the client obtains the download data corresponding to the download instruction. Further, if the client does not detect a download instruction to download the target file, the client may continue to detect whether a download instruction has been detected and / or detect whether other operation instructions have been detected. Further, when the target website fails to successfully store the target file, that is, when the upload of the target file fails, the target website will also send a failure message indicating that the upload of the target file has failed to the rendering server, and the rendering server will send the failure message to the client. After the client receives the failure message, it is up to the client to decide whether to re-upload the target file.
[0083] This embodiment, when the page corresponding to the client website is remotely rendered successfully and the upload instruction for uploading the target file is detected, sends the upload data corresponding to the upload instruction to the rendering server, so that the rendering server can obtain the storage path of the target file in the file server according to the upload data and send it to the target website, so that the target website can obtain the target file according to the storage path for storage, so as to upload the target file to the target website. In the process of uploading files, the rendering server uploads the target file from the target website of the browser of the real Trident kernel, avoids the browser of the non-Trident kernel from being unable to complete the business interaction, and improves the upload success rate of the file uploaded by the browser based on the non-Trident kernel.
[0084] Furthermore, a third embodiment of a method for downloading a file is proposed. The third embodiment of the method for downloading a file is different from the first and / or second embodiments of the method for downloading a file in that the method for downloading a file further includes:
[0085] Step d: obtaining pre-stored configuration data, and determining whether the page corresponding to the client website needs remote rendering according to the configuration data.
[0086] The client obtains the pre-stored configuration data, and determines whether the page corresponding to the client website needs remote rendering based on the configuration data. The configuration data includes but is not limited to the URL, kernel version, JS (JavaScript) engine version, rendering scheduling service configuration data, whether ActiveX plug-in is included, whether to upload and download files, whether printing function is required, and rendering scheduling service. Among them, the kernel version is the version of the browser in the client, and the rendering scheduling service configuration data includes the rendering server IP (Internet Protocol) address, rendering server port and connectionless release rendering server time, etc. In this embodiment, the kernel can be the Trident kernel or other kernels. The kernel version and the JS engine version have corresponding version numbers, and the ActiveX plug-in and the printing function have corresponding requirement identifiers. For example, when the requirement identifier corresponding to the ActiveX plug-in is "1", it indicates that the ActiveX plug-in is included; when the requirement identifier corresponding to the ActiveX plug-in is "0", it indicates that the ActiveX plug-in is not included. When the requirement identifier corresponding to the printing function is "11", it indicates that the printing function is required; when the requirement identifier corresponding to the printing function is "00", it indicates that the printing function is not required. In this embodiment, the expression form of the requirement identifier is not limited, and the requirement identifiers corresponding to different configuration data may be the same or different.
[0087] It should be noted that each web page corresponding to the website has a corresponding URL (Uniform Resource Locator). In this embodiment, the URL of the web page is recorded as the first URL. In the process of uploading the target file or downloading the target file, the remote rendering of the page corresponding to the client website is successful. When the client obtains the pre-stored configuration data, the client obtains the URL in the configuration data, and the URL obtained from the configuration data is recorded as the second URL.
[0088] After the client obtains the first URL and the second URL, if the client determines that the first URL and the second URL are the same, and there is a corresponding rendering scheduling service for the second URL, that is, there is a rendering scheduling service in the configuration data, the client determines that the page corresponding to the website needs to be remotely rendered; if the client determines that the first URL and the second URL are not the same, and / or there is no corresponding rendering scheduling service for the first URL, the client determines that there is no need to remotely render the page corresponding to the website.
[0089] Step e: If it is determined that the page needs remote rendering, the rendering server is called to perform remote rendering on the page.
[0090] If the client determines that the page needs to be rendered remotely, the client calls the rendering server to remotely render the page through the rendering server. Further, if the client determines that the page does not need to be rendered remotely, the client renders the page locally. It should be noted that the rendering process is actually to go to the corresponding web page through a customized browser and the set Trident kernel version, JS engine version and other configurations, and then encapsulate the web page rendering process data, return it to the client through a persistent connection, and then perform image processing so that the response data corresponding to the access request received by the client is displayed in the client. After the page is rendered successfully, the client establishes the corresponding data interaction and data display channel to achieve the effect of normal access, that is, the access request can be executed normally.
[0091] It should be noted that when the page is successfully rendered remotely, the client can start to actually access the target website based on the Trident kernel of the IE browser, and return relevant page data, and return real-time images in the form of Mpeg (Moving Picture Experts Group) video streams (i.e., return page data in the form of video streams) through long connection communication with the browser client, and then draw it into the display interface of the browser client using Canvas technology. Furthermore, the page data can also be in Mpeg-1 format, which is implemented by using JS-Mpeg transformation. Mpeg uses key frame and differential frame compression technology. At this time, after the rendering server obtains the first full image transmission, the subsequent interface changes are displayed using differential frames to overlay, so as to greatly reduce the transmission data and improve the transmission efficiency of data transmission between the client and the rendering server.
[0092] Further, step e comprises:
[0093] Step e2: if it is determined that the page needs remote rendering, then detecting whether the page is remotely rendered for the first time.
[0094] Step e4: if it is detected that the page is remotely rendered for the first time, the URL of the page is obtained.
[0095] If the client determines that the page needs to be remotely rendered, the client detects whether the page is remotely rendered for the first time. Specifically, the client can detect whether there is a corresponding rendering server for the page. If it is determined that there is a corresponding rendering server for the page, the client determines that this is not the first time the page is remotely rendered; if it is determined that there is no corresponding rendering server for the page, the client determines that this is the first time the page is remotely rendered. If the client detects that this is the first time the page is remotely rendered, the client obtains the URL of the page. It can be understood that the URL of the page is the first URL. When the correspondence between the URL of the page and the rendering server connection information is stored in the client, it indicates that there is a corresponding rendering server for the page.
[0096] Step e6: Send the URL of the page to the rendering scheduling server, so that the rendering scheduling server returns the connection information of the rendering server.
[0097] Step e8: establishing a communication connection between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.
[0098] After the client obtains the URL of the page, the client sends the URL of the page to the rendering scheduling server. It should be noted that the rendering scheduling server corresponds to at least one rendering server. The rendering server in this embodiment is a cluster and is managed by the rendering scheduling server. The rendering scheduling server can determine which page needs remote rendering through the URL of the page. After the rendering scheduling server receives the URL of the page, the rendering scheduling server determines the rendering server that performs remote rendering on the page, obtains the connection information of the rendering server, and sends the connection information to the client. Among them, the connection information includes but is not limited to the connection address of the rendering server and the connection method for connecting to the rendering server. In this embodiment, the user can set the communication protocol corresponding to the connection method according to specific needs, such as a public or private communication protocol. After the client obtains the connection information, the client determines the connection address of the rendering server and the connection method for connecting to the rendering server according to the connection information, and determines the specific rendering server to be connected according to the connection address, and then connects to the rendering server determined according to the connection address in the determined connection method, establishes a communication connection with the rendering server, and calls the rendering server to perform remote rendering on the page. The connection method in this embodiment is a long connection, preferably a Websocket long connection.
[0099] Specifically, when the rendering scheduling server receives the URL of the page, the rendering scheduling server determines a rendering server that is in an idle state, and determines the rendering server that is in an idle state as the rendering server that renders the page. Specifically, the rendering scheduling server can determine, based on the load balancing strategy, a rendering server whose resource utilization is less than a preset value as the rendering server that renders the page. In this embodiment, the size of the preset value is not limited. When the rendering scheduling server determines that there are at least two rendering servers whose resource utilization is less than the preset value, the rendering scheduling server can randomly select a rendering server whose resource utilization is less than the preset value according to the load balancing strategy to determine it as the rendering server that renders the page, or select a rendering server with the smallest resource utilization to determine it as the rendering server that renders the page.
[0100] Furthermore, if the client detects that this is not the first time that the page is remotely rendered, that is, the client has remotely rendered the page before, the client stores the connection information of the corresponding rendering server when the page is remotely rendered. In the client, the connection information of the rendering server is stored in association with the URL of the page, so the client can obtain the corresponding connection information through the URL of the page and establish a communication connection with the rendering server according to the connection information.
[0101] During the page rendering process, this embodiment calls the rendering server to remotely render the web page, so that the web page of the non-Trident kernel browser can be remotely rendered, avoiding the non-Trident kernel browser from being unable to complete business interaction due to page rendering failure, thereby improving the success rate of business interaction of the non-Trident kernel browser, that is, improving the success rate of business data interaction.
[0102] Furthermore, the file downloading method further includes:
[0103] Step f: when a request for acquiring configuration data is detected, a protocol package name corresponding to the request is acquired.
[0104] Step g: determining the domain name corresponding to the server according to the protocol package name, and sending the acquisition request to the server through the domain name, so that the server returns the configuration data corresponding to the acquisition request.
[0105] When the client detects the acquisition request for obtaining configuration data, the client obtains the protocol package name corresponding to the acquisition request. It should be noted that the communication protocol between the client and the server can be determined through the protocol package. The acquisition request can be triggered by the client user as needed, or triggered by the client at a fixed time. After the client obtains the protocol package name, the client obtains the domain name in the protocol package name, and determines the acquired domain name as the domain name corresponding to the server, and establishes a connection relationship with the server through the domain name. After the client establishes a connection relationship with the server, the client sends the acquisition request to the server to obtain the configuration data in the server through the acquisition request. It can be understood that the domain name is part of the protocol package name. After the server receives the acquisition request, the server will return the configuration data corresponding to the acquisition request to the client according to the acquisition request. In the acquisition request, the URL corresponding to the configuration data to be obtained is carried, and the server can determine the configuration data to be returned to the client through the URL.
[0106] Step h: receiving the configuration data returned by the server and storing the configuration data.
[0107] After the client receives the configuration data sent by the server, the client stores the configuration data. Specifically, the client may store the configuration data in JSON (JavaScript Object Notation) format.
[0108] Furthermore, the file downloading method further includes:
[0109] Step i: Detect whether the current time is the acquisition time for acquiring configuration data.
[0110] Step j: If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.
[0111] The client detects whether the current time is the acquisition time corresponding to the configuration data at a fixed time or in real time. In this embodiment, the client will obtain the configuration data from the server at a fixed time. The duration corresponding to the fixed time can be set according to specific needs. This embodiment does not impose specific restrictions on the duration corresponding to the fixed time. Specifically, the client records the historical acquisition time of the configuration data obtained from the server last time, and calculates the time difference between the historical acquisition time and the current time. If the time difference is equal to or greater than the duration corresponding to the fixed time, the client can determine that the current time is the acquisition time corresponding to the configuration data; if the time difference is less than the duration corresponding to the fixed time, the client determines that the current time is not the acquisition time corresponding to the configuration data. If the client detects that the current time is the acquisition time corresponding to the configuration data, the client automatically triggers the acquisition request for obtaining the configuration data; if the client detects that the current time is not the acquisition time corresponding to the configuration data, the client continues to detect whether the current time is the acquisition time corresponding to the configuration data. It can be understood that in this embodiment, the client will periodically poll the interface of the server to obtain the latest configuration data.
[0112] The client in this embodiment periodically obtains configuration data from the server to determine whether the page needs remote rendering according to the periodically obtained configuration data, thereby improving the success rate of page rendering in the client.
[0113] Furthermore, a fourth embodiment of a method for downloading a file is proposed. Figure 2 , the file downloading method further includes:
[0114] Step S42, when the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained and the download data is sent to the rendering server.
[0115] Step S44: the rendering server receives the download data, and downloads the target file from the target website according to the download data.
[0116] Step S46: store the target file in the file server, obtain the storage path of the target file in the file server, and send the storage path to the client.
[0117] Step S48: After receiving the storage path, the client downloads the target file from the file server according to the storage path.
[0118] When the page corresponding to the client website is successfully rendered remotely and the download instruction for downloading the target file is detected, the download data corresponding to the download instruction is obtained and the download data is sent to the rendering server. The rendering server receives the download data sent by the client, downloads the target file from the target website according to the download data, stores the target file in the file server, obtains the storage path of the target file in the file server, and sends the storage path to the client. After the client receives the storage path, the client downloads the target file in the file server according to the storage path.
[0119] It should be noted that the specific implementation process of step S42, step S44, step S46 and step S48 has been explained in detail in the first embodiment and will not be repeated here.
[0120] This embodiment, when the page corresponding to the client website is successfully remotely rendered and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is sent to the rendering server, and the rendering server sends the upload data and the target file obtained from the file server to the target website, so as to upload the target file to the target website according to the upload data. If the client receives a notification message of successful upload of the target file returned by the rendering server and detects a download instruction for downloading the target file, the download data corresponding to the download instruction is obtained. In the process of uploading files, the target file is uploaded from the target website of the browser of the real Trident kernel through the rendering server, so as to avoid the browser of the non-Trident kernel from being unable to complete the business interaction, and improve the upload success rate of the uploaded files based on the browser of the non-Trident kernel.
[0121] Furthermore, the file downloading method further includes:
[0122] Step m: when the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained and the upload data is sent to the rendering server.
[0123] Step n: the rendering server receives the uploaded data, obtains the storage path of the target file from the file server according to the uploaded data, and sends the storage path to the target website.
[0124] Step o, when the target website receives the storage path, it obtains the target file from the file server according to the storage path, stores the target file, generates a notification message indicating that the target file has been successfully uploaded, and sends the notification message to the client through the rendering server.
[0125] Step p: if the client receives the notification message sent by the rendering server and detects a download instruction for downloading a target file, then the client obtains download data corresponding to the download instruction.
[0126] When the page corresponding to the client website is successfully rendered remotely and an upload instruction to upload the target file is detected, the client obtains the upload data corresponding to the upload instruction and sends the upload data to the rendering server. The rendering server receives the upload data and obtains the storage path of the target file from the file server based on the upload data, and sends the storage path to the target website. When the target website receives the storage path, it obtains the target file from the file server based on the storage path, stores the target file, generates a notification message that the target file has been successfully uploaded, and sends the notification message to the client through the rendering server. If the client receives the notification message sent by the rendering server and detects a download instruction to download the target file, it obtains the download data corresponding to the download instruction.
[0127] It should be noted that the specific implementation process of step m, step n, step o and step p has been described in detail in the second embodiment and will not be repeated here.
[0128] This embodiment, when the page corresponding to the client website is remotely rendered successfully and the upload instruction for uploading the target file is detected, sends the upload data corresponding to the upload instruction to the rendering server, so that the rendering server can obtain the storage path of the target file in the file server according to the upload data and send it to the target website, so that the target website can obtain the target file according to the storage path for storage, so as to upload the target file to the target website. In the process of uploading files, the rendering server uploads the target file from the target website of the browser of the real Trident kernel, avoids the browser of the non-Trident kernel from being unable to complete the business interaction, and improves the upload success rate of the file uploaded by the browser based on the non-Trident kernel.
[0129] Furthermore, a fifth embodiment of a method for downloading a file is proposed. The fifth embodiment of the method for downloading a file differs from the fourth embodiment of the method for downloading a file in that the method for downloading a file further comprises:
[0130] In step q, the client obtains pre-stored configuration data, and determines whether a page corresponding to the client website needs remote rendering according to the configuration data.
[0131] Step w: if it is determined that the page needs remote rendering, calling the rendering server to perform remote rendering on the page.
[0132] The client obtains the pre-stored configuration data, and determines whether the page corresponding to its website needs remote rendering according to the configuration data. If it is determined that the page corresponding to the website needs remote rendering, the rendering server is called to perform remote rendering on the page. It should be noted that the specific implementation process of step q and step w has been described in detail in the third embodiment, and will not be repeated here.
[0133] Furthermore, the file downloading method further includes:
[0134] Step y: after receiving the acquisition request for acquiring configuration data sent by the client, the server acquires the configuration data according to the acquisition request.
[0135] Step t: sending the configuration data to the client.
[0136] When the server receives the acquisition request for obtaining configuration data sent by the client, the server obtains the configuration data according to the acquisition request and sends the obtained configuration data to the client. It should be noted that the acquisition request carries the URL corresponding to the configuration data to be obtained, and the server can know which configuration data to send to the client according to the URL in the acquisition request.
[0137] When the server detects the setting instruction for setting the configuration data, the server sets the configuration data according to the setting instruction, wherein the setting instruction is triggered by the server user according to specific needs. After the server sets the configuration data according to the setting instruction, the server obtains the second URL in the configuration data, determines the second URL as the index value of the configuration data, and determines other data in the configuration data except the second URL as key values, such as determining the Trident kernel version, JS engine version, rendering scheduling service configuration data, whether ActiveX plug-in is included, whether to upload and download files, whether printing function is required, and rendering scheduling service as key values. After the server determines the index value and key value, the server establishes a mapping relationship corresponding to the configuration data according to the index value and key value, and stores the mapping relationship in a pre-set database and redis cache to store the configuration data. It can be understood that the configuration data in this embodiment is stored in the form of a mapping relationship. In this embodiment, the preset database can be a mysql database or other databases. The setting instruction is triggered by the server user according to specific needs.
[0138] Further, after the server sets the configuration data according to the setting instruction, the server obtains the second URL in the configuration data, determines the second URL as the index value of the configuration data, and determines the other data in the configuration data except the second URL as the key value, such as the kernel version, JS engine version, rendering scheduling service configuration data, whether ActiveX plug-in is included, whether to upload and download files, whether printing function is required, and rendering scheduling service as the key value. After the server determines the index value and the key value, the server establishes a mapping relationship corresponding to the configuration data according to the index value and the key value, and stores the mapping relationship in a pre-set database and redis cache to store the configuration data. It can be understood that the configuration data in this embodiment is stored in the form of a mapping relationship. In this embodiment, the preset database can be a mysql database or other databases. Further, after the server obtains the configuration data, the server will store the configuration data in the redis cache in the format of a JSON array.
[0139] It should be noted that when the client needs to obtain configuration data, the server obtains the configuration data from the redis cache and sends it to the client. There is no need to obtain the configuration data from the preset database and send it to the client. Since the efficiency of obtaining configuration data from the redis cache is higher than that from the preset database, the efficiency of sending configuration data by the server is improved, and the efficiency of obtaining configuration data by the client is improved.
[0140] Furthermore, the file downloading method further includes:
[0141] Step r: if the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.
[0142] When the server detects a change instruction to change the configuration data, the server changes the configuration data according to the update instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction. The add instruction can be to add new configuration data to the configuration data. If there is no printing function in the configuration data, the server can add the printing function to the configuration data according to the add instruction. The modify instruction is to modify the original configuration data of the server, such as the server modifies the rendering scheduling service configuration data in the configuration data according to the modify instruction. The delete instruction is to delete the data in the configuration data, such as the server deletes the printing function in the configuration data according to the delete instruction. When there is no update range in the configuration data, it indicates that the web page does not have a printing function. Further, when the server changes the configuration data, the server will store the changed configuration data in the preset database and redis cache. Further, when the server obtains the changed configuration data, the server can also directly send the changed configuration data to the client.
[0143] This embodiment updates the configuration data by changing the instruction, thereby avoiding the configuration data from being unchanged, and can update the configuration data regularly to ensure that the client can obtain the latest configuration data, thereby further improving the success rate of client web page rendering.
[0144] In addition, a file download device is provided, referring to Figure 3 , the file downloading device comprises:
[0145] The acquisition module 10 is used to acquire the download data corresponding to the download instruction when the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected;
[0146] A sending module 30, configured to send the download data to a rendering server, so that the rendering server can download the target file from the target website to the file server according to the download data, and return the storage path of the target file in the file server;
[0147] A receiving module 50, configured to receive the storage path;
[0148] The download module 70 is used to download the target file from the file server according to the storage path.
[0149] Furthermore, the acquisition module 10 includes:
[0150] A first acquisition unit is used to acquire upload data corresponding to the upload instruction when the remote rendering of the page corresponding to the client website is successful and an upload instruction for uploading the target file is detected;
[0151] A first sending unit is configured to send the uploaded data to a rendering server, so that the rendering server obtains a storage path of the target file from a file server according to the uploaded data, and sends the storage path to a target website, wherein after the target website receives the storage path, it obtains the target file from the file server according to the storage path;
[0152] The first acquisition unit is further configured to, if a notification message indicating that the target file has been successfully uploaded is received from the rendering server and a download instruction for downloading the target file is detected, acquire download data corresponding to the download instruction.
[0153] Furthermore, the acquisition module 10 is also used to acquire pre-stored configuration data;
[0154] The file downloading device also includes:
[0155] A determination module, used to determine whether a page corresponding to the client website needs remote rendering according to the configuration data;
[0156] The calling module is used to call the rendering server to perform remote rendering on the page if it is determined that the page needs remote rendering.
[0157] Furthermore, the acquisition module 10 is also used to acquire the protocol package name corresponding to the acquisition request after detecting the acquisition request for acquiring configuration data;
[0158] The determination module is also used to determine the domain name corresponding to the server according to the protocol package name;
[0159] The sending module is further used to send the acquisition request to the server through the domain name, so that the server returns the configuration data corresponding to the acquisition request;
[0160] The receiving module is also used to receive the configuration data returned by the server;
[0161] The file downloading device also includes:
[0162] A storage module is used to store the configuration data.
[0163] Furthermore, the file downloading device also includes:
[0164] A detection module, used to detect whether the current time is the acquisition time for acquiring configuration data;
[0165] The trigger module is used to trigger an acquisition request if it is detected that the current time is an acquisition time for acquiring configuration data.
[0166] Furthermore, the calling module includes:
[0167] A detection unit, configured to detect whether the page is remotely rendered for the first time if it is determined that the page needs remote rendering;
[0168] A second acquisition unit is used to acquire the URL of the page if it is detected that the page is remotely rendered for the first time;
[0169] A second sending unit, configured to send the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server;
[0170] An establishing unit is used to establish a communication connection between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.
[0171] The specific implementation of the file downloading device according to the present invention is basically the same as the steps in the first and second embodiments of the file downloading method described above, and will not be described in detail herein.
[0172] In addition, a file downloading system is provided, the file downloading system comprising a client and a rendering server;
[0173] The client is used to obtain download data corresponding to the download instruction and send the download data to the rendering server when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected;
[0174] The rendering server is used to receive the download data, and download the target file from the target website according to the download data; store the target file in the file server, obtain the storage path of the target file in the file server, and send the storage path to the client;
[0175] The client is also used to download the target file from the file server according to the storage path after receiving the storage path.
[0176] Furthermore, the file downloading system also includes a target website;
[0177] The client is also used to obtain upload data corresponding to the upload instruction and send the upload data to the rendering server when the page corresponding to the client website is successfully remotely rendered and an upload instruction for uploading the target file is detected;
[0178] The rendering server is further configured to receive the uploaded data, obtain the storage path of the target file sent by the file server, obtain the target file from the file server according to the storage path, and send the uploaded data and the target file to a target website;
[0179] The target website is used to store the target file according to the uploaded data, and return a notification message of successful upload of the target file to the rendering server;
[0180] The client is further configured to, if receiving the notification message sent by the rendering server and detecting a download instruction for downloading a target file, obtain download data corresponding to the download instruction.
[0181] Furthermore, the client is also used to obtain pre-stored configuration data, and determine whether the page corresponding to the client website needs remote rendering based on the configuration data; if it is determined that the page needs remote rendering, the rendering server is called to remotely render the page.
[0182] Furthermore, the file downloading system also includes a server;
[0183] The server is used to, after receiving a request for obtaining configuration data sent by a client, obtain configuration data according to the request; and send the configuration data to the client.
[0184] Furthermore, the server is also used to change the configuration data according to the change instruction if a change instruction for changing the configuration data is detected, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.
[0185] The specific implementation of the file downloading system according to the present invention is substantially the same as the steps in the third embodiment of the file downloading method described above, and will not be described in detail herein.
[0186] In addition, a file download device is also provided. Figure 4 As shown, Figure 4 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.
[0187] It should be noted that Figure 4 That is, it can be a schematic diagram of the structure of the hardware operating environment of the file downloading device. According to the embodiment of the present invention, the file downloading device can be a terminal device such as a PC, a portable computer, etc.
[0188] like Figure 4As shown, the download device of the file may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0189] Those skilled in the art will understand that Figure 4 The file downloading device structure shown in the figure does not constitute a limitation on the file downloading device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0190] like Figure 4 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a file download program. The operating system is a program that manages and controls the hardware and software resources of the file download device, and supports the operation of the file download program and other software or programs.
[0191] exist Figure 4 In the file downloading device shown, the user interface 1003 is mainly used to connect to the server and communicate data with the server and the rendering server, such as obtaining plug-in configuration data from the server; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the file downloading program stored in the memory 1005, and execute the steps of the file downloading method as described above.
[0192] The specific implementation of the file downloading device according to the present invention is basically the same as the above-mentioned file downloading method embodiments, and will not be described in detail here.
[0193] In addition, according to an embodiment of the present invention, a computer-readable storage medium is provided, on which a file downloading program is stored. When the file downloading program is executed by a processor, the steps of the file downloading method described above are implemented.
[0194] The specific implementation of the computer-readable storage medium according to the present invention is basically the same as the various embodiments of the above-mentioned file downloading method, and will not be repeated here.
[0195] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0196] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0198] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for downloading a file, It is characterized in that The method for downloading the file comprises the following steps: When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained; Sending the download data to a rendering server, so that the rendering server downloads the target file from the target website to the file server according to the download data, and returns the storage path of the target file in the file server; The storage path is received, and the target file is downloaded from the file server according to the storage path.
2. The method for downloading a file according to claim 1, It is characterized in that When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, the step of obtaining the download data corresponding to the download instruction includes: When the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained; Sending the uploaded data to a rendering server, so that the rendering server obtains a storage path of the target file from a file server according to the uploaded data, and sends the storage path to a target website, wherein after the target website receives the storage path, it obtains the target file from the file server according to the storage path; If a notification message indicating that the target file has been successfully uploaded is received from the rendering server and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained.
3. The method for downloading a file according to claim 1 or 2, It is characterized in that When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, before the step of obtaining the download data corresponding to the download instruction, the step further includes: Obtaining pre-stored configuration data, and determining whether a page corresponding to the client website requires remote rendering according to the configuration data; If it is determined that the page requires remote rendering, the rendering server is called to perform remote rendering on the page.
4. The method for downloading a file as claimed in claim 3, It is characterized in that Before the step of obtaining the pre-stored configuration data and determining whether the page corresponding to the client website needs remote rendering according to the configuration data, the method further includes: When a request for obtaining configuration data is detected, a protocol package name corresponding to the request is obtained; Determine a domain name corresponding to the server according to the protocol package name, and send the acquisition request to the server through the domain name, so that the server returns configuration data corresponding to the acquisition request; Receive the configuration data returned by the server and store the configuration data.
5. The method for downloading a file as claimed in claim 4, It is characterized in that The step of obtaining pre-stored configuration data and determining whether the page corresponding to the client website needs remote rendering according to the configuration data includes: After obtaining the pre-stored configuration data, obtaining the URL in the configuration data, and recording the URL obtained from the configuration data as the second URL; If the first URL is the same as the second URL, and a corresponding rendering scheduling service exists for the second URL, then determining to remotely render the page corresponding to the access request; wherein each web page corresponding to the client website has a corresponding URL, and the URL of the web page is recorded as the first URL; If the first URL is different from the second URL, and / or there is no corresponding rendering scheduling service for the second URL, it is determined not to remotely render the page corresponding to the access request.
6. The method for downloading a file according to claim 4, It is characterized in that After detecting a request for acquiring configuration data, before the step of acquiring a protocol package name corresponding to the acquisition request, the method further includes: Check whether the current time is the time to obtain the configuration data; If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.
7. The method for downloading a file according to claim 6, It is characterized in that The step of detecting whether the current time is the acquisition time for acquiring configuration data comprises: Record the historical acquisition time of the last configuration data obtained from the server, and calculate the time difference between the historical acquisition time and the current time; If the time difference is equal to or greater than the duration corresponding to the timing, determining the current time as the acquisition time corresponding to the configuration data; If the time difference is less than the duration corresponding to the timing, it is determined that the current time is not the acquisition time corresponding to the configuration data; If it is detected that the current time is the acquisition time corresponding to the configuration data, an acquisition request for acquiring the configuration data is automatically triggered, and the acquisition request is sent to the server, so that the server returns the configuration data according to the acquisition request; If the client detects that the current time is not the acquisition time corresponding to the configuration data, the client continues to detect whether the current time is the acquisition time corresponding to the configuration data.
8. The method for downloading a file as claimed in claim 3, It is characterized in that If it is determined that the page needs remote rendering, the step of calling the rendering server to remotely render the page includes: If it is determined that the page needs remote rendering, detecting whether the page is remotely rendered for the first time; If it is detected that the page is remotely rendered for the first time, obtaining the URL of the page; Sending the URL of the page to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server; A communication connection is established between the client and the rendering server according to the connection information, so as to call the rendering server to remotely render the page.
9. The method for downloading a file as claimed in claim 8, It is characterized in that If it is determined that the page needs remote rendering, the step of detecting whether the page is remotely rendered for the first time includes: Detect whether there is a corresponding rendering server for the page; If it is determined that there is a corresponding rendering server for the page, it is determined that this is not the first time that the page is remotely rendered; If it is determined that there is no corresponding rendering server for the page, it is determined that the page is remotely rendered for the first time; If it is detected that the page corresponding to the access request is remotely rendered for the first time, the URL of the page is obtained.
10. The method for downloading a file according to claim 8, It is characterized in that After the step of sending the URL of the page to the rendering scheduling server, the file downloading method further includes: When it is determined that there are at least two rendering servers whose resource utilization is less than a preset value, a rendering server whose resource utilization is less than the preset value is arbitrarily selected according to the load balancing strategy to be determined as the rendering server for rendering the page.
11. A method for downloading a file, It is characterized in that The method for downloading the file includes: When the page corresponding to the client website is remotely rendered successfully and a download instruction for downloading the target file is detected, download data corresponding to the download instruction is obtained and the download data is sent to the rendering server; The rendering server receives the download data, and downloads the target file from the target website according to the download data; The target file is stored in a file server, and a storage path of the target file in the file server is obtained, and the storage path is sent to the client; After receiving the storage path, the client downloads the target file from the file server according to the storage path.
12. The method for downloading a file according to claim 11, It is characterized in that When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, the step of obtaining the download data corresponding to the download instruction includes: When the page corresponding to the client website is remotely rendered successfully and an upload instruction for uploading the target file is detected, the upload data corresponding to the upload instruction is obtained and the upload data is sent to the rendering server; The rendering server receives the uploaded data, obtains the storage path of the target file from the file server according to the uploaded data, and sends the storage path to the target website; After the target website receives the storage path, it obtains the target file from the file server according to the storage path, stores the target file, generates a notification message indicating that the target file has been successfully uploaded, and sends the notification message to the client through the rendering server; If the client receives the notification message sent by the rendering server and detects a download instruction for downloading a target file, the client obtains download data corresponding to the download instruction.
13. The method for downloading a file according to claim 11, It is characterized in that When the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected, before the step of obtaining the download data corresponding to the download instruction, the step further includes: Obtaining pre-stored configuration data, and determining whether a page corresponding to the client website requires remote rendering according to the configuration data; If it is determined that the page requires remote rendering, the rendering server is called to perform remote rendering on the page.
14. The method for downloading a file according to claim 13, It is characterized in that Before the step of obtaining pre-stored configuration data and determining whether the page corresponding to the client website needs remote rendering according to the configuration data, the method further includes: When the server receives the configuration data acquisition request sent by the client, the server acquires the configuration data according to the acquisition request; The configuration data is sent to the client.
15. The method for downloading a file according to claim 14, It is characterized in that When the server receives the acquisition request for acquiring configuration data sent by the client, the step of acquiring configuration data according to the acquisition request includes: Acquire a second URL in the configuration data, determine the second URL as an index value of the configuration data, and determine other data in the configuration data except the second URL as a key value; After the server determines the index value and the key value, it establishes a mapping relationship corresponding to the configuration data according to the index value and the key value, and stores the mapping relationship in a pre-set database and redis cache to store the configuration data.
16. The method for downloading a file according to any one of claims 11 to 15, It is characterized in that The method for downloading the file also includes: If the server detects a change instruction for changing the configuration data, the server changes the configuration data according to the change instruction, wherein the change instruction includes at least one of the following instructions: an add instruction, a modify instruction, and a delete instruction.
17. A device for downloading files, It is characterized in that The file downloading device comprises: The acquisition module is used to acquire the download data corresponding to the download instruction when the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected; A sending module, used for sending the download data to a rendering server, so that the rendering server can download the target file from the target website to the file server according to the download data, and return the storage path of the target file in the file server; A receiving module, used for receiving the storage path; A download module is used to download the target file from the file server according to the storage path.
18. A file downloading system, It is characterized in that The file downloading system includes a client and a rendering server; The client is used to obtain download data corresponding to the download instruction and send the download data to the rendering server when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected; The rendering server is used to receive the download data and download the target file from the target website according to the download data; The target file is stored in a file server, and a storage path of the target file in the file server is obtained, and the storage path is sent to the client; The client is also used to download the target file from the file server according to the storage path after receiving the storage path.
19. A file downloading device, It is characterized in that The file downloading device comprises a memory, a processor and a file downloading program stored in the memory and executable on the processor. When the file downloading program is executed by the processor, the steps of the file downloading method as claimed in any one of claims 1 to 10 are implemented.
20. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a file downloading program, and when the file downloading program is executed by a processor, the steps of the file downloading method according to any one of claims 1 to 10 are implemented.
