[go: up one dir, main page]

CN113783911B - File downloading method, device, system, equipment and storage medium - Google Patents

File downloading method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN113783911B
CN113783911B CN202010526933.XA CN202010526933A CN113783911B CN 113783911 B CN113783911 B CN 113783911B CN 202010526933 A CN202010526933 A CN 202010526933A CN 113783911 B CN113783911 B CN 113783911B
Authority
CN
China
Prior art keywords
file
server
rendering
download
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010526933.XA
Other languages
Chinese (zh)
Other versions
CN113783911A (en
Inventor
田新超
马子萌
彭琛
黄亚洲
霍海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN202010526933.XA priority Critical patent/CN113783911B/en
Publication of CN113783911A publication Critical patent/CN113783911A/en
Application granted granted Critical
Publication of CN113783911B publication Critical patent/CN113783911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file downloading method, a device, a system, equipment and a storage medium, wherein the file downloading method comprises the following steps: when the remote rendering of the page corresponding to the client website is successful, and after a download instruction of the download target file is detected, obtaining download data corresponding to the download instruction; the download data is sent to a rendering server, so that the rendering server downloads a target file from a target website to a file server according to the download data, and returns to a storage path of the target file in the file server; and receiving the storage path, and downloading the target file in the file server according to the storage path. According to the method and the device, in the process of downloading the file, the rendering server downloads the target file from the target website of the browser with the real tricent kernel, so that the situation that the browser with the non-tricent kernel cannot complete service interaction is avoided, and the success rate of downloading the file by the browser based on the non-tricent kernel is improved.

Description

文件的下载方法、装置、系统、设备及存储介质File downloading method, device, system, equipment and storage medium

技术领域Technical Field

本发明涉及计算机技术领域,尤其涉及一种文件的下载方法、装置、系统、设备及存储介质。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

IE(Internet Explorer)浏览器是基于Wintel架构的闭源浏览器,目前,有些操作系统可选的浏览器只支持Blink内核,且在该操作系统环境下还存在数量巨大的基于Trident内核开发的业务系统,其中一部分还使用了Trident内核下的ActiveX插件来完善业务闭环,ActiveX是Microsoft对于一系列策略性面向对象程序技术和工具的称呼,其中主要的技术是组件对象模型。但是由于该操作系统的技术特点限制,使得该操作系统对应的终端设备无法安装和正常运行Trident内核的IE浏览器,造成很大业务断层。基于IE浏览器Trident内核开发的业务系统,如果未经适配优化,在非Trident内核的浏览器访问时可能会出现页面渲染失败,此时,当该业务系统同时使用IE内核的ActiveX插件来进行业务数据交互时,非Trident内核的浏览器则更无法完成业务交互,如此时要下载文件,也无法下载成功。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.

由此可知,目前基于非Trident内核的浏览器下载文件的成功率低下。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

本发明的主要目的在于提供一种文件的下载方法、装置、系统、设备及存储介质,旨在解决现有的基于非Trident内核的浏览器下载文件的成功率低下的技术问题。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.

为实现上述目的,本发明提供一种文件的下载方法,所述文件的下载方法包括步骤:To achieve the above object, the present invention provides a method for downloading a file, the method comprising the steps of:

当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据;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;

将所述下载数据发送给渲染服务器,以供所述渲染服务器根据所述下载数据从目标网站下载所述目标文件至文件服务器中,并返回所述目标文件在所述文件服务器中的存储路径;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.

可选地,所述当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据的步骤包括: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:

当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据;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.

可选地,所述当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据的步骤之前,还包括: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:

获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染;Obtaining pre-stored configuration data, and determining whether a page corresponding to the client website needs 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.

可选地,所述获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染的步骤之前,还包括:Optionally, 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 step 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.

可选地,所述当侦测到获取配置数据的获取请求后,获取所述获取请求对应的协议包名的步骤之前,还包括: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:

检测当前时间是否为获取配置数据的获取时间;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.

可选地,所述若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染的步骤包括:Optionally, 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;

若检测到所述页面是首次进行远程渲染,则获取所述页面的URL;If it is detected that the page is remotely rendered for the first time, obtaining the URL of the page;

将所述页面的URL发送给渲染调度服务器,以供所述渲染调度服务器返回渲染服务器的连接信息;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.

此外,为实现上述目的,本发明还提供一种文件的下载方法,所述文件的下载方法包括: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:

当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据,并将所述下载数据发送给渲染服务器;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.

可选地,所述当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据的步骤包括: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:

当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据,并将所述上传数据发送给渲染服务器;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 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.

可选地,所述当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据的步骤之前,还包括: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:

所述客户端获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染;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;

若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染。If it is determined that the page requires remote rendering, the rendering server is called to perform remote rendering on the page.

可选地,所述客户端获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染的步骤之前,还包括: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:

当服务端接收到客户端发送的获取配置数据的获取请求后,根据所述获取请求获取配置数据;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.

可选地,所述文件的下载方法还包括:Optionally, the file downloading method further 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.

此外,为实现上述目的,本发明还提供一种文件的下载装置,所述文件的下载装置包括:In addition, to achieve the above-mentioned purpose, the present invention also provides a file downloading device, the file downloading device comprising:

获取模块,用于当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据;The acquisition module is used to acquire the download data corresponding to the download instruction when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the 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.

此外,为实现上述目的,本发明还提供一种文件的下载系统,所述文件的下载系统包括客户端和渲染服务器;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;

所述客户端,用于当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据,并将所述下载数据发送给渲染服务器;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; 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;

所述客户端还用于当接收到所述存储路径后,根据所述存储路径在所述文件服务器中下载所述目标文件。The client is also used to download the target file from the file server according to the storage path after receiving the storage path.

此外,为实现上述目的,本发明还提供一种文件的下载设备,所述文件的下载设备包括存储器、处理器和存储在所述存储器上并可在所述处理器上运行的文件的下载程序,所述文件的下载程序被所述处理器执行时实现如联邦学习服务器对应的文件的下载方法的步骤。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.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有文件的下载程序,所述文件的下载程序被处理器执行时实现如上所述的文件的下载方法的步骤。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.

本发明通过当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,将下载指令对应的下载数据发送给渲染服务器,以供渲染服务器根据下载数据从目标网站下载目标文件至文件服务器中,并返回目标文件在文件服务器中的存储路径,客户端根据存储路径在文件服务器中下载目标文件。实现了在下载文件过程中,通过渲染服务器从真实Trident内核的浏览器的目标网站中下载目标文件,避免非Trident内核的浏览器更无法完成业务交互,提高了基于非Trident内核的浏览器下载文件的下载成功率。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 rendered remotely 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

图1是本发明文件的下载方法第一实施例的流程示意图;FIG1 is a schematic flow chart of a first embodiment of a method for downloading a file according to the present invention;

图2是本发明文件的下载方法第四实施例的流程示意图;FIG2 is a schematic flow chart of a fourth embodiment of a method for downloading files according to the present invention;

图3是本发明文件的下载装置较佳实施例的功能示意图模块图;3 is a functional schematic diagram module diagram of a preferred embodiment of a device for downloading files of the present invention;

图4是本发明实施例方案涉及的硬件运行环境的结构示意图。FIG. 4 is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。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

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。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.

依据本发明提供的一种文件的下载方法,参照图1,图1为本发明文件的下载方法第一实施例的流程示意图。According to a file downloading method provided by the present invention, refer to FIG. 1 , which is a flow chart of a first embodiment of the file downloading method of the present invention.

依据本发明提供的文件的下载方法,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to the file downloading method provided by the present invention, it should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that shown here.

文件的下载方法应用于客户端中,客户端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)等移动终端,以及诸如数字TV、台式计算机等固定终端。文件的下载方法包括: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:

步骤S11,当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据。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.

当客户端确定其网站对应的页面远程渲染成功后,客户端检测是否侦测到下载目标文件的下载指令,其中,该下载指令可为客户端用户根据需要在客户端中触发的,也可以是其它终端设备发送给客户端的。本实施例中的客户端安装有浏览器,该网站是浏览器对应业务系统的网站,每个网站都存在对应的页面。当客户端侦测到下载指令后,客户端获取下载指令对应的下载数据,其中,下载数据包括但不限于目标文件的名称、标识(ID)、大小和指令标识,通过指令标识即可确定当前对应的指令是下载指令,还是上传指令,或者是其它指令,本实施例不限制指令标识的表现形式。若客户端未侦测到下载目标文件的下载指令,客户端则继续检测是否侦测到下载目标文件的下载指令。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.

步骤S13,将所述下载数据发送给渲染服务器,以供所述渲染服务器根据所述下载数据从目标网站下载所述目标文件至文件服务器中,并返回所述目标文件在所述文件服务器中的存储路径。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.

当客户端获取到下载数据后,客户端将下载数据发送给渲染服务器。需要说明的是,该渲染服务器就是为客户端网站对应页面进行远程渲染的服务器。当渲染服务器接收到下载数据后,渲染服务器根据下载数据从目标网站中下载目标文件。需要说明的是,渲染服务器根据下载数据即可知道所需要获取的文件具体是那个文件。目标网站为真实存储该目标文件的网站。当渲染服务器从目标网站中得到目标文件后,渲染服务器将目标文件存储至文件服务器中,并获取目标文件在文件服务器中的存储路径,将该存储路径发给客户端。可以理解的是,文件服务器为存储数据的服务器。进一步地,渲染服务器也可以将下载数据发送给目标网站,目标网站在接收到下载数据后,目标网站根据该下载数据确定需要下载的目标文件,并将目标文件发送给文件服务器中。当文件服务器接收到目标文件后,存储该目标文件,并将该目标文件的存储路径发送给渲染服务器。当渲染服务器接收到存储路径后,将存储路径发送给客户端。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.

步骤S15,接收所述存储路径,并根据所述存储路径在所述文件服务器中下载所述目标文件。Step S15, receiving the storage path, and downloading the target file in the file server according to the storage path.

当客户端接收到渲染服务器发送的存储路径后,客户端根据存储路径在文件服务器中下载目标文件,即将目标文件下载至客户端本地。需要说明的是,本实施例中客户端网站为非Trident内核的浏览器网站,而目标网站为Trident内核的浏览器网站。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.

本实施例通过当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,将下载指令对应的下载数据发送给渲染服务器,以供渲染服务器根据下载数据从目标网站下载目标文件至文件服务器中,并返回目标文件在文件服务器中的存储路径,客户端根据存储路径在文件服务器中下载目标文件。实现了在下载文件过程中,通过渲染服务器从真实Trident内核的浏览器的目标网站中下载目标文件,避免非Trident内核的浏览器更无法完成业务交互,提高了基于非Trident内核的浏览器下载文件的下载成功率。This embodiment, when the page corresponding to the client website is successfully remotely rendered 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 browser based on the non-Trident kernel to download the file.

需要说明的是,当客户端需要访问基于IE内核的业务系统时,通过本实施例中页面渲染方法能够解决无法正常访问页面的问题,提高业务系统的运行运营完整性;个体用户无需选择Wintel架构的操作系统环境,即可正常访问具备IE内核特性的业务应用网站。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.

进一步地,提出文件的下载方法第二实施例。所述文件的下载方法第二实施例与所述文件的下载方法第一实施例的区别在于,步骤S11包括: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:

步骤a,当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据。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.

当客户端网站对应的页面远程渲染成功后,客户端检测是否侦测到上传目标文件的上传指令。其中,该上传指令可为客户端用户根据需要在客户端中触发的,也可以是其它终端设备发送给客户端的。当客户端侦测到上传指令后,客户端获取上传指令对应的上传数据,其中,上传数据包括但不限于目标文件的名称、标识(ID)、大小和指令标识。若客户端未侦测到下载目标文件的上传指令,客户端则继续检测是否侦测到上传目标文件的上传指令。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.

步骤b,将所述上传数据发送给渲染服务器,以供所述渲染服务器根据所述上传数据在文件服务器获取所述目标文件的存储路径,将所述存储路径发送给目标网站,其中,当所述目标网站接收到所述存储路径后,根据所述存储路径从所述文件服务器中获取目标文件。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 when the target website receives the storage path, it obtains the target file from the file server according to the storage path.

客户端在侦测到上传目标文件的上传指令后,客户端将目标文件发送给文件服务器。当文件服务器接收到目标文件后,会存储该目标文件。当客户端将目标文件发送给文件服务器后,客户端会将上传数据发送给渲染服务器。渲染服务器在接收到上传数据后,渲染服务器根据上传数据在文件服务器中获取目标文件的存储路径,将存储路径发送给目标网站。当目标网站接收到存储路径后,目标网站根据存储路径从文件服务器中获取目标文件,然后存储该目标文件,以成功将目标文件上传至目标网站。进一步地,渲染服务器也可以将上传数据一起发送给目标网站,目标网站根据上传数据和存储路径在文件服务器中获取目标文件。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.

当目标网站成功存储目标文件后,目标网站会生成目标文件上传成功的通知消息,并将该通知消息发送给渲染服务器。当渲染服务器接收到该通知消息后,渲染服务器将该通知消息发送给客户端。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.

步骤c,若接收到所述渲染服务器返回的所述目标文件上传成功的通知消息,且侦测到下载所述目标文件的下载指令,则获取所述下载指令对应的下载数据。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.

当客户端接收到渲染服务器返回的目标文件上传成功的通知消息后,客户端检测是否侦测到下载目标文件的下载指令。若客户端侦测到下载目标文件的下载指令,客户端则获取下载指令对应的下载数据。进一步地,若客户端未侦测到下载目标文件的下载指令,客户端可继续检测是否侦测到下载指令和/或检测是否侦测到其它操作指令。进一步地,当目标网站未能成功存储目标文件,即目标文件上传失败时,目标网站也会发送目标文件上传失败的失败消息给渲染服务器,由渲染服务器将该失败消息发送给客户端。当客户端接收到该失败消息后,由客户端决定是否重新上传该目标文件。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.

本实施例通过当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,将上传指令对应的上传数据发送给渲染服务器,以供渲染服务器根据上传数据在文件服务器中获取目标文件的存储路径发送给目标网站,使目标网站可以根据存储路径获取目标文件进行存储,以将目标文件上传至目标网站中。实现了在上传文件过程中,通过渲染服务器从真实Trident内核的浏览器的目标网站中上传目标文件,避免非Trident内核的浏览器更无法完成业务交互,提高了基于非Trident内核的浏览器上传文件的上传成功率。This embodiment, when the page corresponding to the client website is successfully remotely rendered 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.

进一步地,提出文件的下载方法第三实施例。所述文件的下载方法第三实施例与所述文件的下载方法第一和/或第二实施例的区别在于,所述文件的下载方法还包括: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:

步骤d,获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染。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.

客户端获取预先存储的配置数据,并根据该配置数据确定客户端网站对应的页面是否需要远程渲染。配置数据至包括但不限于URL、内核版本、JS(JavaScript)引擎版本、渲染调度服务配置数据、是否包含ActiveX插件、是否需要上传和下载文件、是否需要打印功能、以及渲染调度服务。其中,内核版本为客户端中浏览器的版本,渲染调服务配置数据包括渲染服务器IP(Internet Protocol,网际互连协议)地址、渲染服务器端口和无连接释放渲染服务器时间等。在本实施例,内核可为Trident内核,也可为其它内核。内核版本和JS引擎版本都有对应的版本号,ActiveX插件和打印功能都存在对应的需求标识,如当ActiveX插件对应的需求标识为“1”时,则表明含有ActiveX插件;当ActiveX插件对应的需求标识为“0”时,表明没有含有ActiveX插件。当打印功能对应的需求标识为“11”时,表明需要打印功能;当打印功能对应的需求标识为“00”时,表明不需要打印功能。在本实施例中,不限制需求标识的表现形式,不同配置数据对应的需要标识可以相同,也可以不相同。The client obtains the pre-stored configuration data, and determines whether the page corresponding to the client website needs remote rendering according to the configuration data. The configuration data includes but is not limited to 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 a 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.

需要说明的是,网站对应的每一网页都存在对应的URL(Uniform ResourceLocator,统一资源定位符),在本实施例中,将网页的URL记为第一URL。在上传目标文件或者下载目标文件过程中,客户端网站对应的页面远程渲染成功是上传目标文件对应页面或者下载目标文件对应的页面远程渲染成功。当客户端获取到预存的配置数据后,客户端获取配置数据中的URL,将从配置数据中获取的URL记为第二URL。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.

当客户端得到第一URL和第二URL后,客户端若确定第一URL和第二URL相同,且第二URL存在对应的渲染调度服务,即配置数据中存在渲染调度服务,客户端则确定需要网站对应的页面进行远程渲染;客户端若确定第一URL和第二URL不相同,和/或第一URL未存在对应的渲染调度服务,客户端则确定不需要对网站对应的页面进行远程渲染。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.

步骤e,若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染。Step e: if it is determined that the page needs remote rendering, calling the rendering server to perform remote rendering on the page.

若客户端确定页面需要远程渲染,客户端则调用渲染服务器,以通过渲染服务器对页面进行远程渲染。进一步地,若客户端确定页面不需要远程渲染,客户端则对页面进行本地渲染。需要说明的是,渲染过程其实就是通过定制的浏览器和设定好的Trident内核版本、JS引擎版本等配置,去对应的网页,之后将网页渲染的过程数据进行封装,通过持久连接返回给客户端,再做图像处理的过程,以使客户端所接收的访问请求对应的响应数据显示在客户端中。在页面渲染成功后,客户端建立相应数据交互和数据显示通道达到正常访问的效果,即可以正常执行访问请求。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.

需要说明的是,当页面远程渲染成功后,客户端可以开始基于IE浏览器的Trident内核真实访问目标网站,并返回相关页面数据,并通过与浏览器客户端之间的长连接通讯以Mpeg(Moving Picture Experts Group,动态图像专家组)视频流形式返回实时图像(即以视频流形式返回页面数据),再以Canvas技术绘制到浏览器客户端的显示界面中。进一步地,页面数据也可以是Mpeg-1格式,Mpeg-1格式是使用JS-Mpeg改造实现的,Mpeg采用关键帧和差别帧压缩技术,此时,渲染服务器在得到首张全图传输后,后面的界面变动使用差别帧叠加展示,以极大减少传输数据,提高客户端和渲染服务器之间数据传输的传输效率。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.

进一步地,步骤e包括:Further, step e comprises:

步骤e2,若确定所述页面需要远程渲染,则检测所述页面是否首次进行远程渲染。Step e2: if it is determined that the page needs remote rendering, then detecting whether the page is remotely rendered for the first time.

步骤e4,若检测到所述页面是首次进行远程渲染,则获取所述页面的URL。Step e4: if it is detected that the page is remotely rendered for the first time, the URL of the page is obtained.

若客户端确定需要对页面进行远程渲染,客户端则检测该页面是否首次进行远程渲染。具体地,客户端可检测该页面是否存在对应的渲染服务器。若确定该页面存在对应的渲染服务器,客户端则确定该页面不是首次进行远程渲染;若确定该页面未存在对应的渲染服务器,客户端则确定该页面是首次进行远程渲染。若客户端检测到该页面是首次进行远程渲染,客户端则获取该页面的URL。可以理解的是,该页面的URL就是第一URL。当客户端中存储该页面URL与渲染服务器连接信息之间的对应关系时,表明该页面存在对应的渲染服务器。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.

步骤e6,将所述页面的URL发送给渲染调度服务器,以供所述渲染调度服务器返回渲染服务器的连接信息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.

步骤e8,根据所述连接信息建立所述客户端与渲染服务器之间的通信连接,以调用所述渲染服务器对所述页面进行远程渲染。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.

当客户端获取到该页面的URL后,客户端将页面的URL发送给渲染调度服务器。需要说明的是,渲染调度服务器对应着至少一个渲染服务器,本实施例中的渲染服务器是一个集群,由渲染调度服务器进行管理。渲染调服服务器通过页面的URL即可确定是那个页面需要远程渲染。当渲染调度服务器接收到页面的URL后,渲染调度服务器确定对页面进行远程渲染的渲染服务器,并获取该渲染服务器的连接信息,将连接信息发送给客户端。其中,连接信息包括但不限于渲染服务器的连接地址和连接渲染服务器的连接方式,在本实施例中,用户可根据具体需要而设置连接方式对应的通信协议,如可以采用公有或者私有的通信协议。客户端在获取到连接信息后,客户端根据连接信息确定渲染服务器的连接地址和连接渲染服务器的连接方式,并根据连接地址确定具体需要连接的渲染服务器,然后以所确定的连接方式连接根据连接地址确定的渲染服务器,建立与渲染服务器之间的通信连接,以调用渲染服务器对页面进行远程渲染。本实施例中的连接方式长连接,优选是Websocket长连接。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.

具体地,当渲染调度服务器接收到页面的URL后,渲染调度服务器确定处于空闲状态的渲染服务器,并将处于空闲状态的渲染服务器确定为对页面进行渲染的渲染服务器。具体地,渲染调度服务器可根据负载均衡策略确定资源利用率小于预设值的渲染服务器为对页面进行渲染的的渲染服务器。在本实施例中,不限制预设值的大小。当渲染调度服务器确定至少存在两个资源利用率小于预设值的渲染服务器,渲染调度服务器根据负载均衡策略可随机选择一个资源利用率小于预设值的渲染服务器确定为对页面进行渲染的渲染服务器,或者选择资源利用率最小的染服务器确定为对页面进行渲染的渲染服务器。Specifically, when the rendering scheduling server receives the URL of the page, the rendering scheduling server determines the rendering server in an idle state, and determines the rendering server in an idle state as the rendering server for rendering the page. Specifically, the rendering scheduling server can determine the rendering server whose resource utilization is less than the preset value as the rendering server for rendering the page according to the load balancing strategy. 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 for rendering the page, or select the rendering server with the smallest resource utilization to determine it as the rendering server for rendering the page.

进一步地,若客户端检测到该页面不是首次进行远程渲染,即客户端之前就对该页面进行过远程渲染,客户端中存储有对该页面进行远程渲染时,对应渲染服务器的连接信息。在客户端中,渲染服务器的连接信息是和页面的URL关联存储的,因此客户端通过页面的URL即可获取对应的连接信息,根据该连接信息建立与渲染服务器之间的通信连接。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.

本实施例在页面渲染过程中,调用渲染服务器对网页进行远程渲染,使非Trident内核的浏览器的网页可以进行远程渲染,避免由于页面渲染失败导致非Trident内核的浏览器则更无法完成业务交互,从而提高了非Trident内核的浏览器业务交互的成功率,即提高了业务数据交互成功率。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.

进一步地,所述文件的下载方法还包括:Furthermore, the file downloading method further includes:

步骤f,当侦测到获取配置数据的获取请求后,获取所述获取请求对应的协议包名。Step f: when a request for acquiring configuration data is detected, a protocol package name corresponding to the request is acquired.

步骤g,根据所述协议包名确定服务端对应的域名,通过所述域名将所述获取请求发送给所述服务端,以供所述服务端返回与所述获取请求对应的配置数据。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.

当客户端侦测到获取配置数据的获取请求后,客户端获取该获取请求对应的协议包名,需要说明的是,通过该协议包可以确定客户端和服务端之间的通信协议。该获取请求可以是客户端用户根据需要触发的,或者由客户端定时触发的。当客户端获取到协议包名后,客户端获取协议包名中的域名,并将所获取的域名确定为服务端对应的域名,通过该域名与服务端建立连接关系。当客户端与服务端建立连接关系后,客户端将获取请求发送给服务端,以通过获取请求在服务端中获取配置数据。可以理解的是,域名是协议包名的一部分。当服务端接收的获取请求后,服务端会根据获取请求返回与获取请求对应的配置数据给客户端。在获取请求中,携带有所需要获取配置数据对应的URL,服务端通过该URL即可确定需要返回给客户端的配置数据。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 acquired is carried, and the server can determine the configuration data to be returned to the client through the URL.

步骤h,接收所述服务端返回的配置数据,并存储所述配置数据。Step h: receiving the configuration data returned by the server and storing the configuration data.

当客户端接收到服务端发送的配置数据后,客户端存储该配置数据,具体地,客户端可以JSON(JavaScript Object Notation,JS对象简谱)格式存储配置数据。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.

进一步地,所述文件的下载方法还包括:Furthermore, the file downloading method further includes:

步骤i,检测当前时间是否为获取配置数据的获取时间。Step i: Detect whether the current time is the acquisition time for acquiring configuration data.

步骤j,若检测到当前时间为获取配置数据的获取时间,则触发获取请求。Step j: If it is detected that the current time is the acquisition time for acquiring configuration data, an acquisition request is triggered.

客户端定时或者实时检测当前时间是否为配置数据对应的获取时间,在本实施例中,客户端会定时从服务端中获取配置数据,该定时对应的时长可根据具体需要而设置,本实施例对定时对应的时长不做具体限制。具体地,客户端记录上一次从服务端中获取配置数据的历史获取时间,并计算历史获取时间与当前时间之间的时间差,若该时间差等于或者大于定时对应的时长,客户端则可确定当前时间为配置数据对应的获取时间;若该时间差小于定时对应的时长,客户端则确定当前时间不是配置数据对应的获取时间。若客户端检测到当前时间为配置数据对应的获取时间,客户端则自动触发获取配置数据的获取请求;若客户端检测到当前时间不是配置数据对应的获取时间,客户端则继续检测当前时间是否为配置数据对应的获取时间。可以理解的是,在本实施例中,客户端会定时轮询服务端的接口,以获取最新的配置数据。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.

本实施例中的客户端定时从服务端获取配置数据,以根据定时获取的配置数据确定页面是否需要远程渲染,从而提高了客户端中页面渲染的成功率。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.

进一步地,提出文件的下载方法第四实施例。参照图2,所述文件的下载方法还包括:Furthermore, a fourth embodiment of a method for downloading a file is proposed. Referring to FIG. 2 , the method for downloading a file further includes:

步骤S42,当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据,并将所述下载数据发送给渲染服务器。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.

步骤S44,所述渲染服务器接收所述下载数据,并根据所述下载数据从目标网站下载所述目标文件。Step S44: the rendering server receives the download data, and downloads the target file from the target website according to the download data.

步骤S46,将所述目标文件存储至文件服务器中,并获取所述目标文件在所述文件服务器中的存储路径,将所述存储路径发送给所述客户端。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.

步骤S48,当所述客户端接收到所述存储路径后,根据所述存储路径在所述文件服务器中下载所述目标文件。Step S48: After receiving the storage path, the client downloads the target file from the file server according to the storage path.

当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取下载指令对应的下载数据,并将下载数据发送的渲染服务器。渲染服务器接收客户端发送的下载数据,根据下载数据从目标网站下载目标文件,并目标文件存储至文件服务器中,获取目标文件在文件服务器中的存储路径,并将存储路径发送给客户端。当客户端接收到存储路径后,客户端根据存储路径在文件服务器中下载目标文件。When the page corresponding to the client website is remotely rendered successfully 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.

需要说明的是,步骤S42、步骤S44、步骤S46和步骤S48的具体实施过程已在第一实施例中详细阐述,在此不再重复赘述。It should be noted that the specific implementation process of step S42, step S44, step S46 and step S48 has been described in detail in the first embodiment and will not be repeated here.

本实施例通过当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,将上传指令对应的上传数据发送给渲染服务器,渲染服务器将上传数据和从文件服务器中获取的目标文件发送给目标网站,以根据上传数据将目标文件上传至目标网站,若客户端接收到渲染服务器返回的目标文件上传成功的通知消息,且侦测到下载所述目标文件的下载指令,则获取下载指令对应的下载数据。实现了在上传文件过程中,通过渲染服务器从真实Trident内核的浏览器的目标网站中上传目标文件,避免非Trident内核的浏览器更无法完成业务交互,提高了基于非Trident内核的浏览器上传文件的上传成功率。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.

进一步地,所述文件的下载方法还包括:Furthermore, the file downloading method further includes:

步骤m,当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据,并将所述上传数据发送给渲染服务器。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.

步骤n,所述渲染服务器接收所述上传数据,并根据所述上传数据在文件服务器获取所述目标文件的存储路径,将所述存储路径发送给目标网站。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.

步骤o,当所述目标网站接收到所述存储路径后,根据所述存储路径从所述文件服务器中获取目标文件,并存储所述目标文件,生成所述目标文件上传成功的通知消息,通过所述渲染服务器将所述通知消息发送给所述客户端。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.

步骤p,若所述客户端接收到所述渲染服务器发送的所述通知消息,且侦测到下载目标文件的下载指令,则获取所述下载指令对应的下载数据。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.

当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,客户端获取上传指令对应的上传数据,并将上传数据发送给渲染服务器。渲染服务器接收上传数据,并根据上传数据在文件服务器获取目标文件的存储路径,将存储路径发送给目标网站。当目标网站接收到存储路径后,根据存储路径从文件服务器中获取目标文件,并存储目标文件,生成目标文件上传成功的通知消息,通过渲染服务器将通知消息发送给客户端。若客户端接收到渲染服务器发送的通知消息,且侦测到下载目标文件的下载指令,则获取下载指令对应的下载数据。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.

需要说明的是,步骤m、步骤n、步骤o和步骤p的具体实施过程已在第二实施例中详细阐述,在此不再重复赘述。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.

本实施例通过当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,将上传指令对应的上传数据发送给渲染服务器,以供渲染服务器根据上传数据在文件服务器中获取目标文件的存储路径发送给目标网站,使目标网站可以根据存储路径获取目标文件进行存储,以将目标文件上传至目标网站中。实现了在上传文件过程中,通过渲染服务器从真实Trident内核的浏览器的目标网站中上传目标文件,避免非Trident内核的浏览器更无法完成业务交互,提高了基于非Trident内核的浏览器上传文件的上传成功率。This embodiment, when the page corresponding to the client website is successfully remotely rendered 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.

进一步地,提出文件的下载方法第五实施例。所述文件的下载方法第五实施例与所述文件的下载方法第四实施例的区别在于,所述文件的下载方法还包括: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:

步骤q,所述客户端获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染。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.

步骤w,若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染。Step w: if it is determined that the page needs remote rendering, calling the rendering server to perform remote rendering on the page.

客户端获取预先存储的配置数据,并根据该配置数据确定其网站对应的页面是否需要远程渲染,若确定网站对应的页面需要远程渲染,则调用渲染服务器对该页面进行远程渲染。需要说明的是,步骤q和步骤w的具体实施例过程已在第三实施例中详细说明,在此不再重复赘述。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.

进一步地,所述文件的下载方法还包括:Furthermore, the file downloading method further includes:

步骤y,当服务端接收到客户端发送的获取配置数据的获取请求后,根据所述获取请求获取配置数据。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.

步骤t,将所述配置数据发送给所述客户端。Step t: sending the configuration data to the client.

当服务端接收到客户端发送的获取配置数据的获取请求,服务端根据获取请求获取配置数据,将所获取的配置数据发送给客户端。需要说明的是,在获取请求中,携带有所需要获取配置数据对应的URL,服务端根据获取请求中的URL即可知道要将那个配置数据发送给客户端。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.

当服务端侦测到设置配置数据的设置指令后,服务端根据该设置指令设置配置数据,其中,设置指令为服务端用户根据具体需要而触发的。当服务端根据设置指令设置配置数据后,服务端获取配置数据中的第二URL,将第二URL确定为配置数据的索引值,并将配置数据中除第二URL外的其它数据确定为键值,如将Trident内核版本、JS引擎版本、渲染调度服务配置数据、是否包含ActiveX插件、是否需要上传和下载文件、是否需要打印功能、以及渲染调度服务确定为键值。当服务端确定索引值和键值后,服务端根据索引值和键值建立配置数据对应的映射关系,并将该映射关系存储至预先设置好的数据库和redis缓存中,以存储配置数据。可以理解的是,本实施例中的配置数据是以映射关系的形式存储的。在本实施例中,预设数据库可为mysql数据库,也可为其他数据库。设置指令为服务端用户根据具体需要而触发的。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.

进一步地,当服务端根据设置指令设置配置数据后,服务端获取配置数据中的第二URL,将第二URL确定为配置数据的索引值,并将配置数据中除第二URL外的其它数据确定为键值,如将内核版本、JS引擎版本、渲染调度服务配置数据、是否包含ActiveX插件、是否需要上传和下载文件、是否需要打印功能、以及渲染调度服务确定为键值。当服务端确定索引值和键值后,服务端根据索引值和键值建立配置数据对应的映射关系,并将该映射关系存储至预先设置好的数据库和redis缓存中,以存储配置数据。可以理解的是,本实施例中的配置数据是以映射关系的形式存储的。在本实施例中,预设数据库可为mysql数据库,也可为其他数据库。进一步地,当服务端得到配置数据后,服务端会将配置数据以JSON数组的格式存储到redis缓存中。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.

需要说明的是,当客户端需要获取配置数据时,服务端从redis缓存中获取配置数据发送给客户端,不需要在预设数据库中获取配置数据发送给客户端,由于在redis缓存中获取配置数据的效率要比在预设数据库中获取配置数据要高,从而提高了服务端发送配置数据的发送效率,提高了客户端获取配置数据的获取效率。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.

进一步地,所述文件的下载方法还包括:Furthermore, the file downloading method further includes:

步骤r,若所述服务端侦测到更改所述配置数据的更改指令后,根据所述更改指令更改所述配置数据,其中,所述更改指令至少包括以下一种指令:添加指令、修改指令和删除指令。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.

当服务端侦测到更改配置数据的更改指令后,服务端根据该更新指令更改配置数据,其中,更改指令至少包括以下一种指令:添加指令、修改指令、和删除指令。添加指令可为在配置数据中添加新的配置数据,如若配置数据中原来没有打印功能,服务端可根据添加指令在配置数据中添加打印功能。修改指令是修改服务端原有的配置数据,如服务端根据修改指令修改配置数据中的渲染调度服务配置数据。删除指令是删除配置数据中的数据,如服务端根据删除指令删除配置数据中的打印功能,当配置数据中没有更新范围时,表明该网页不存在打印功能。进一步地,当服务端更改配置数据后,服务端会将更改后的配置数据存储至预设数据库和redis缓存中。进一步地,当服务端得到更改后的配置数据后,服务端也可直接将更改后的配置数据发送给客户端。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.

本实施例通过更改指令更新配置数据,避免了配置数据一成不变,从而能定时更新配置数据,以保证客户端能够获取到最新的配置数据,从而进一步提高了客户端网页渲染的成功率。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.

此外,还提供一种文件的下载装置,参照图3,所述文件的下载装置包括:In addition, a file downloading device is also provided. Referring to FIG. 3 , the file downloading device includes:

获取模块10,用于当客户端网站对应的页面远程渲染成功,且侦测到下载目标文件的下载指令后,获取所述下载指令对应的下载数据;The acquisition module 10 is used to acquire the download data corresponding to the download instruction when the page corresponding to the client website is successfully remotely rendered and a download instruction for downloading the target file is detected;

发送模块30,用于将所述下载数据发送给渲染服务器,以供所述渲染服务器根据所述下载数据从目标网站下载所述目标文件至文件服务器中,并返回所述目标文件在所述文件服务器中的存储路径;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;

接收模块50,用于接收所述存储路径;A receiving module 50, configured to receive the storage path;

下载模块70,用于根据所述存储路径在所述文件服务器中下载所述目标文件。The download module 70 is used to download the target file from the file server according to the storage path.

进一步地,所述获取模块10包括:Furthermore, the acquisition module 10 includes:

第一获取单元,用于当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据;A first acquisition unit is used to acquire upload data corresponding to the upload instruction when the page corresponding to the client website is successfully remotely rendered and an upload instruction for uploading the target file is detected;

第一发送单元,用于将所述上传数据发送给渲染服务器,以供所述渲染服务器根据所述上传数据在文件服务器获取所述目标文件的存储路径,将所述存储路径发送给目标网站,其中,当所述目标网站接收到所述存储路径后,根据所述存储路径从所述文件服务器中获取目标文件;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;

所述第一获取单元还用于若接收到所述渲染服务器返回的所述目标文件上传成功的通知消息,且侦测到下载所述目标文件的下载指令,则获取所述下载指令对应的下载数据。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.

进一步地,所述获取模块10还用于获取预存的配置数据;Furthermore, the acquisition module 10 is also used to acquire pre-stored configuration data;

所述文件的下载装置还包括:The file downloading device also includes:

确定模块,用于根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染;A determination module, used to determine whether a page corresponding to the client website needs remote rendering according to the configuration data;

调用模块,用于若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染。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.

进一步地,所述获取模块10还用于当侦测到获取配置数据的获取请求后,获取所述获取请求对应的协议包名;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;

所述确定模块还用于根据所述协议包名确定服务端对应的域名;The determination module is also used to determine the domain name corresponding to the server according to the protocol package name;

所述发送模块还用于通过所述域名将所述获取请求发送给所述服务端,以供所述服务端返回与所述获取请求对应的配置数据;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;

所述接收模块还用于接收所述服务端返回的配置数据;The receiving module is also used to receive the configuration data returned by the server;

所述文件的下载装置还包括:The file downloading device also includes:

存储模块,用于存储所述配置数据。A storage module is used to store the configuration data.

进一步地,所述文件的下载装置还包括:Furthermore, the file downloading device also includes:

检测模块,用于检测当前时间是否为获取配置数据的获取时间;A detection module, used to detect whether the current time is the acquisition time for acquiring configuration data;

触发模块,用于若检测到当前时间为获取配置数据的获取时间,则触发获取请求。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.

进一步地,所述调用模块包括:Furthermore, the calling module includes:

检测单元,用于若确定所述页面需要远程渲染,则检测所述页面是否首次进行远程渲染;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;

第二获取单元,用于若检测到所述页面是首次进行远程渲染,则获取所述页面的URL;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;

第二发送单元,用于将所述页面的URL发送给渲染调度服务器,以供所述渲染调度服务器返回渲染服务器的连接信息;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;

建立单元,用于根据所述连接信息建立所述客户端与渲染服务器之间的通信连接,以调用所述渲染服务器对所述页面进行远程渲染。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.

依据本发明的文件的下载装置具体实施方式与上述文件的下载方法第一和第二实施例中的各步骤基本相同,在此不再赘述。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.

此外,还提供一种文件的下载系统,所述文件的下载系统包括客户端和渲染服务器;In addition, a file downloading system is provided, the file downloading system comprising 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; 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;

所述客户端还用于当接收到所述存储路径后,根据所述存储路径在所述文件服务器中下载所述目标文件。The client is also used to download the target file from the file server according to the storage path after receiving the storage path.

进一步地,所述文件的下载系统还包括目标网站;Furthermore, the file downloading system also includes a target website;

所述客户端还用于当客户端网站对应的页面远程渲染成功,且侦测到上传目标文件的上传指令后,获取所述上传指令对应的上传数据,并将所述上传数据发送给渲染服务器;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;

所述渲染服务器还用于接收所述上传数据,并获取文件服务器发送的所述目标文件的存储路径,根据所述存储路径在所述文件服务器中获取所述目标文件,将所述上传数据和所述目标文件发送给目标网站;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;

所述目标网站,用于根据所述上传数据存储所述目标文件,并返回所述目标文件上传成功的通知消息给所述渲染服务器;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;

所述客户端还用于若接收到所述渲染服务器发送的所述通知消息,且侦测到下载目标文件的下载指令,则获取所述下载指令对应的下载数据。The client is further configured to obtain download data corresponding to the download instruction if the client receives the notification message sent by the rendering server and detects a download instruction for downloading a target file.

进一步地,所述客户端还用于获取预存的配置数据,并根据所述配置数据确定所述客户端网站对应的页面是否需要远程渲染;若确定所述页面需要远程渲染,则调用所述渲染服务器对所述页面进行远程渲染。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.

进一步地,所述文件的下载系统还包括服务端;Furthermore, the file downloading system also includes a server;

所述服务端,用于当接收到客户端发送的获取配置数据的获取请求后,根据所述获取请求获取配置数据;将所述配置数据发送给所述客户端。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.

进一步地,所述服务端还用于若侦测到更改所述配置数据的更改指令后,根据所述更改指令更改所述配置数据,其中,所述更改指令至少包括以下一种指令:添加指令、修改指令和删除指令。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.

依据本发明的文件的下载系统具体实施方式与上述文件的下载方法第三实施例中的各步骤基本相同,在此不再赘述。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.

此外,还提供一种文件的下载设备。如图4所示,图4是本发明实施例方案涉及的硬件运行环境的结构示意图。In addition, a file downloading device is also provided. As shown in FIG4 , FIG4 is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.

需要说明的是,图4即可为文件的下载设备的硬件运行环境的结构示意图。依据本发明实施例文件的下载设备可以是PC,便携计算机等终端设备。It should be noted that Fig. 4 is 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.

如图4所示,该文件的下载设备可以包括:处理器1001,例如CPU,存储器1005,用户接口1003,网络接口1004,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in Figure 4, 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.

本领域技术人员可以理解,图4中示出的文件的下载设备结构并不构成对文件的下载设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the file downloading device structure shown in FIG. 4 does not limit the file downloading device and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

如图4所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及文件的下载程序。其中,操作系统是管理和控制文件的下载设备硬件和软件资源的程序,支持文件的下载程序以及其它软件或程序的运行。As shown in Fig. 4, 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.

在图4所示的文件的下载设备中,用户接口1003主要用于连接服务端,与服务端和渲染服务器等进行数据通信,如从服务端中获取插件配置数据;网络接口1004主要用于后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的文件的下载程序,并执行如上所述的文件的下载方法的步骤。In the file downloading device shown in Figure 4, 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.

依据本发明的文件的下载设备的具体实施方式与上述文件的下载方法各实施例基本相同,在此不再赘述。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.

此外,依据本发明的实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有文件的下载程序,所述文件的下载程序被处理器执行时实现如上所述的文件的下载方法的步骤。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.

依据本发明的计算机可读存储介质的具体实施方式与上述文件的下载方法各实施例基本相同,在此不再赘述。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.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。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.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。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.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。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, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。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 (20)

1. A method for downloading a file, the method comprising the steps of:
when the remote rendering of the page corresponding to the client website is successful, and after a download instruction of a download target file is detected, obtaining download data corresponding to the download instruction;
the downloaded data is sent to a rendering server, so that the rendering server downloads the target file from a target website to a file server according to the downloaded data, and returns a storage path of the target file in the file server;
and receiving the storage path, and downloading the target file in the file server according to the storage path.
2. The method for downloading the file according to claim 1, wherein the step of obtaining the download data corresponding to the download instruction after the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected comprises:
When the remote rendering of a page corresponding to a client website is successful, and an uploading instruction of an uploading target file is detected, uploading data corresponding to the uploading instruction is obtained;
The uploading data is sent to a rendering server, so that the rendering server obtains a storage path of the target file in a file server according to the uploading data, and the storage path is sent to a target website, wherein when the target website receives the storage path, the target file is obtained from the file server according to the storage path;
and if a notification message that the uploading of the target file is successful is received and a downloading instruction for downloading the target file is detected, the downloading data corresponding to the downloading instruction is acquired.
3. The method for downloading a file according to claim 1 or 2, wherein, before the step of obtaining the download data corresponding to the download instruction after the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected, the method further comprises:
acquiring pre-stored configuration data, and determining whether a page corresponding to the client website needs remote rendering or not according to the configuration data;
and if the page is determined to need remote rendering, calling the rendering server to remotely render the page.
4. The method for downloading files as claimed in claim 3, wherein 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 comprises:
When an acquisition request for acquiring configuration data is detected, acquiring a protocol packet name corresponding to the acquisition request;
Determining a domain name corresponding to a server according to the protocol packet name, and sending the acquisition request to the server through the domain name so that the server returns configuration data corresponding to the acquisition request;
And receiving the configuration data returned by the server and storing the configuration data.
5. The method for downloading files as in claim 4, wherein said steps of obtaining pre-stored configuration data and determining whether a page corresponding to said client site requires remote rendering according to said configuration data comprise:
after pre-stored configuration data is acquired, acquiring a URL in the configuration data, and marking the URL acquired from the configuration data as a second URL;
If the first URL is the same as the second URL and the second URL has the corresponding rendering scheduling service, determining to remotely render the page corresponding to the access request; each webpage corresponding to the client website has a corresponding URL, and the URL of the webpage is recorded as a first URL;
And if the first URL is different from the second URL and/or the second URL does not have the corresponding rendering scheduling service, determining that the page corresponding to the access request is not subjected to remote rendering.
6. The method for downloading a file as claimed in claim 4, wherein after detecting the acquisition request for acquiring the configuration data, before the step of acquiring the protocol packet name corresponding to the acquisition request, the method further comprises:
Detecting whether the current time is the acquisition time for acquiring the configuration data;
And triggering an acquisition request if the current time is detected to be the acquisition time for acquiring the configuration data.
7. The file downloading method as claimed in claim 6, wherein the step of detecting whether the current time is an acquisition time for acquiring the configuration data comprises:
Recording the historical acquisition time of acquiring configuration data from a server, and calculating the time difference between the historical acquisition time and the current time;
if the time difference is equal to or greater than the time length corresponding to the timing, determining the current time as the acquisition time corresponding to the configuration data;
If the time difference is smaller than the time length corresponding to the timing, determining that the current time is not the acquisition time corresponding to the configuration data;
if the current time is detected to be the acquisition time corresponding to the configuration data, automatically triggering an acquisition request for acquiring the configuration data, and sending the acquisition request to a server for the server to return 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, wherein the step of calling the rendering server to remotely render the page if it is determined that the page requires remote rendering comprises:
If the page is determined to need remote rendering, detecting whether the page is subjected to remote rendering for the first time;
if the page is detected to be remotely rendered for the first time, acquiring the URL of the page;
The URL of the page is sent to a rendering scheduling server, so that the rendering scheduling server returns connection information of the rendering server;
and establishing 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.
9. The method for downloading a file as claimed in claim 8, wherein if it is determined that the page requires remote rendering, the step of detecting whether the page is remotely rendered for the first time comprises:
detecting whether the page has a corresponding rendering server or not;
if the page is determined to have the corresponding rendering server, determining that the page is not subjected to remote rendering for the first time;
if the page is determined to not have a corresponding rendering server, determining that the page is remotely rendered for the first time;
If the page corresponding to the access request is detected to be remotely rendered for the first time, the URL of the page is obtained.
10. The method of downloading a file according to claim 8, wherein after the step of transmitting the URL of the page to the rendering schedule server, the method of downloading a file further comprises:
When at least two rendering servers with the resource utilization rate smaller than the preset value exist, a rendering server with the resource utilization rate smaller than the preset value is selected at will according to the load balancing strategy, and the rendering server is determined to be the rendering server for rendering the page.
11. The file downloading method is characterized by comprising the following steps:
When remote rendering of a page corresponding to a client website is successful, after a download instruction of a download target file is detected, obtaining download data corresponding to the download instruction, and sending the download data to a rendering server;
The rendering server receives the download data and downloads the target file from a target website according to the download data;
Storing the target file into a file server, acquiring a storage path of the target file in the file server, and transmitting the storage path to the client;
And after the client receives the storage path, downloading the target file in the file server according to the storage path.
12. The method for downloading files as claimed in claim 11, wherein said step of obtaining the download data corresponding to the download instruction after the remote rendering of the page corresponding to the client site is successful and the download instruction of the download target file is detected comprises:
when remote rendering of a page corresponding to a client website is successful, after an uploading instruction of an uploading target file is detected, uploading data corresponding to the uploading instruction is obtained, and the uploading data is sent to a rendering server;
The rendering server receives the uploading data, acquires a storage path of the target file from a file server according to the uploading data, and sends the storage path to a target website;
When the target website receives the storage path, acquiring a target file from the file server according to the storage path, storing the target file, generating a notification message that the target file is successfully uploaded, and sending the notification message to the client through the rendering server;
And if the client receives the notification message sent by the rendering server and detects a downloading instruction of the downloading target file, acquiring downloading data corresponding to the downloading instruction.
13. The method for downloading files as claimed in claim 11, wherein, before the step of obtaining the download data corresponding to the download instruction after the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected, the method further comprises:
acquiring pre-stored configuration data, and determining whether a page corresponding to the client website needs remote rendering or not according to the configuration data;
and if the page is determined to need remote rendering, calling the rendering server to remotely render the page.
14. The method for downloading files as recited in claim 13, wherein the steps of obtaining pre-stored configuration data and determining whether the page corresponding to the client website requires remote rendering according to the configuration data further comprise:
after receiving an acquisition request for acquiring configuration data sent by a client, a server acquires the configuration data according to the acquisition request;
and sending the configuration data to the client.
15. The method for downloading files as claimed in claim 14, wherein said step of obtaining configuration data according to said obtaining request after said server receives the obtaining request for obtaining configuration data sent by the client comprises:
Acquiring a second URL in the configuration data, determining the second URL as an index value of the configuration data, and determining other data except the second URL in the configuration data as a key value;
after the server determines the index value and the key value, a mapping relation corresponding to the configuration data is established according to the index value and the key value, and the mapping relation is stored in a preset database and redis cache to store the configuration data.
16. A method of downloading a file as claimed in any one of claims 11 to 15, wherein the method of downloading a file further comprises:
If the server detects a change instruction for changing the configuration data, changing the configuration data according to the change instruction, wherein the change instruction at least comprises one of the following instructions: add instructions, modify instructions, and delete instructions.
17. A file downloading device, wherein the file downloading device comprises:
The acquisition module is used for acquiring download data corresponding to a download target file after the remote rendering of a page corresponding to a client website is successful and the download instruction of the download target file is detected;
The sending module is used for sending the download data to a rendering server so that the rendering server can download the target file from a target website to a file server according to the download data and return a storage path of the target file in the file server;
A receiving module, configured to receive the storage path;
and the downloading module is used for downloading the target file in the file server according to the storage path.
18. The file downloading system is characterized by comprising a client and a rendering server;
The client is used for acquiring the download data corresponding to the download instruction after the remote rendering of the page corresponding to the client website is successful and the download instruction of the download target file is detected, and sending the download data to the rendering server;
The rendering server is used for receiving the download data and downloading the target file from a target website according to the download data; storing the target file into a file server, acquiring a storage path of the target file in the file server, and transmitting the storage path to the client;
And the client is also used for downloading the target file in the file server according to the storage path after receiving the storage path.
19. A file downloading device, characterized in that the file downloading device comprises a memory, a processor and a file downloading program stored on the memory and executable on the processor, which file downloading program, when executed by the processor, implements the steps of the file downloading method according to any one of claims 1 to 10.
20. A computer-readable storage medium, wherein a download program of a file is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the file download method according to any one of claims 1 to 10.
CN202010526933.XA 2020-06-10 2020-06-10 File downloading method, device, system, equipment and storage medium Active CN113783911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010526933.XA CN113783911B (en) 2020-06-10 2020-06-10 File downloading method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010526933.XA CN113783911B (en) 2020-06-10 2020-06-10 File downloading method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113783911A CN113783911A (en) 2021-12-10
CN113783911B true CN113783911B (en) 2024-09-20

Family

ID=78835003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010526933.XA Active CN113783911B (en) 2020-06-10 2020-06-10 File downloading method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113783911B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120201023A (en) * 2025-05-26 2025-06-24 国家超级计算天津中心 A file transmission method and device for remote desktop access based on BS architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8868637B2 (en) * 2009-09-02 2014-10-21 Facebook, Inc. Page rendering for dynamic web pages
US20150161277A1 (en) * 2011-03-14 2015-06-11 Browsium, Inc. Methods and systems for one browser version to use a rendering engine of another browser version for displaying information
CN102185923A (en) * 2011-05-16 2011-09-14 广州市动景计算机科技有限公司 Webpage browsing method for mobile communication equipment terminal
US8700691B2 (en) * 2011-12-05 2014-04-15 Microsoft Corporation Minimal download and simulated page navigation features
CN105095220B (en) * 2014-04-24 2019-05-03 华为技术有限公司 A browser implementation method, terminal and virtualized proxy device
US10447759B2 (en) * 2016-05-27 2019-10-15 Microsoft Technology Licensing, Llc Web page accelerations for web application hosted in native mobile application
CN106126693B (en) * 2016-06-29 2020-02-11 微梦创科网络科技(中国)有限公司 Method and device for sending related data of webpage
CN108073350B (en) * 2016-11-10 2020-11-24 成都云创互联信息技术有限公司 Object storage system and method for cloud rendering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942277A (en) * 2014-03-31 2014-07-23 北京奇虎科技有限公司 Method and device for downloading file in browsers and browsers
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser

Also Published As

Publication number Publication date
CN113783911A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
EP2075714B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN112559927A (en) Webpage loading method and device
CN110730208A (en) Local device calling method and device, storage medium and device
CN111212156B (en) A kind of network connection method and device
US11882154B2 (en) Template representation of security resources
CN110263001A (en) File management method, device, system, equipment and computer readable storage medium
CN104601534A (en) Method and system for processing CDN system images
WO2013013556A1 (en) Data reporting method and device
CN106713395A (en) Data downloading method and apparatus
JP2010061542A (en) Communication terminal, communication method, signal processor, signal processing method and communication system
JP2015141473A (en) Server system, method for controlling server system, and program
CN104486397A (en) Method for carrying out data transmission in browser, client and mobile terminal
CN106933623B (en) Operation method, device and system of installation-free application
CN113783911B (en) File downloading method, device, system, equipment and storage medium
CN113779446A (en) Response method, apparatus, system, device and storage medium for access request
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN111475761A (en) Client, server and content sharing control method
CN110928547A (en) Public file extraction method, device, terminal and storage medium
JP5898132B2 (en) Advertisement selection device, advertisement processing system, advertisement selection method, and program
CN113779445A (en) Page rendering method, device, system, equipment and storage medium
CN104462223B (en) A kind of Web browser method and device based on peer-to-peer network pattern
CN113778349B (en) Page printing method, device, system, equipment and storage medium
CN103793459A (en) Webpage opening method and webpage opening device
CN114500484A (en) Page rendering method, apparatus, electronic device and readable medium
CN113626188A (en) Task pushing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant