CN112286592A - Resource data loading method and device, storage medium and computer equipment - Google Patents

Resource data loading method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN112286592A
CN112286592A CN202011179396.2A CN202011179396A CN112286592A CN 112286592 A CN112286592 A CN 112286592A CN 202011179396 A CN202011179396 A CN 202011179396A CN 112286592 A CN112286592 A CN 112286592A
Authority
CN
China
Prior art keywords
loading
data
resource
url
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011179396.2A
Other languages
Chinese (zh)
Inventor
杨宇奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011179396.2A priority Critical patent/CN112286592A/en
Publication of CN112286592A publication Critical patent/CN112286592A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention discloses a resource data loading method and device, a storage medium and computer equipment, relates to the technical field of communication, and mainly aims to solve the problem that the existing H5 webpage data loading cannot meet the requirement of a complex interaction scene. The method comprises the following steps: receiving a URL (uniform resource locator) resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; requesting loading of the resource data based on the URL address. The method is mainly used for loading the resource data.

Description

Resource data loading method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for loading resource data, a storage medium, and a computer device.
Background
With the rapid development of multimedia technology, more and more users perform network communication based on multi-user conference, conversation and other modes, and especially live broadcast services become hot spot modes selected by most suppliers. In order to push recommended information to a user in the live broadcast process, jumping of the H5 page is generally controlled by combining with the APP, for example, the jumping is recorded and displayed in the APP through the native and H5 pages of the client.
At present, page loading is directly performed through long link connection between a client and a server, the client only loads pages simply, and when H5 page loading is performed, the jump of the pages is completely controlled by H5 based on websocket link established by the server, but when the demand of the client H5 page is large or for a complex interactive scene of service between the client and the server, the server directly adds URL to perform the jump by H5, so that the efficiency of data transmission is greatly influenced, and the accurate control demand of the page jump in the complex scene cannot be met.
Disclosure of Invention
In view of this, the present invention provides a resource data loading method and apparatus, a storage medium, and a computer device, and mainly aims to solve the problem that the existing H5 webpage data loading cannot meet the requirement of a complex interaction scenario.
According to an aspect of the present invention, there is provided a method for loading resource data, including:
receiving a URL (uniform resource locator) resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission;
when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library;
requesting loading of the resource data based on the URL address.
Further, before the receiving the URL repository sent by the server, the method further includes:
determining preset loading node information to be subjected to resource data loading, and acquiring loading demand information of the preset loading node information;
and sending a long link configuration request carrying the preset loading node information and the loading demand information to the server, so that the server establishes a long link between the server and the current client according to the preset loading node information and the loading demand information, and configures a URL resource library matched with the long link.
Further, the method further comprises:
receiving a loading instruction sent by the server, wherein the loading instruction carries a trigger event matched with the preset loading node information, and the trigger event at least comprises a voice trigger event, a text trigger event and a button trigger event;
the preset loading node information for detecting the triggering resource data comprises:
receiving at least one of recorded voice information, character information and button information, and analyzing the at least one of the voice information, the character information and the button information;
and when at least one of the voice information matched with the voice trigger event, the text information matched with the text trigger event and the button information matched with the button trigger event is analyzed, determining to trigger the preset loading node information.
Further, the resource data is web page data, and the requesting the loading of the resource data based on the URL address includes:
and starting a web browser to acquire the URL address, loading web data from the server side through the URL address, and outputting the web data based on the web browser.
Further, the outputting the web page data based on the web browser comprises:
if the webpage data contains video stream data, loading and outputting feature picture data which are uniquely matched with the video stream data; when a loading instruction of the video stream data is received, sending a loading request of the video stream data to the server, wherein the feature image data is uniquely matched picture data generated by extracting picture features of different video stream data in the webpage data by the server; and/or the presence of a gas in the gas,
if the webpage data contains audio stream data, loading and outputting the characteristic character data which is uniquely matched with the audio stream data; when a loading instruction of the audio stream data is received, sending a loading request of the audio stream data to the server, wherein the characteristic text data is the only matched text data generated by extracting text characteristics of different audio stream data in the webpage data by the server.
Further, the method further comprises:
when a resource data adding and updating instruction is detected in the data transmission process based on the long chain link, calling a standby thread configured in advance in the long chain link;
acquiring preset loading node information and loading demand information of resource data to be added and updated through the standby thread, and sending the information to the server, so that the server updates the URL resource library according to the preset loading node information and the loading demand information of the resource data to be added and updated;
and receiving the updated URL resource library by using the standby thread for updating, and storing the updated URL resource library in a preset cache.
Furthermore, the URL resource library stores a URL address matched with the flow information of the preset loading node information.
According to another aspect of the present invention, there is provided a resource data loading apparatus, including:
the receiving module is used for receiving a URL (uniform resource locator) library sent by a server, wherein the URL library is matched with a long link to be subjected to data transmission;
the searching module is used for searching a URL address matched with preset loading node information based on the URL resource library when the preset loading node information of triggering resource data is detected in the long-chain access-based data transmission process;
and the loading module is used for requesting the loading of the resource data based on the URL address.
Further, the apparatus further comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for determining preset loading node information to be subjected to resource data loading and acquiring loading demand information of the preset loading node information;
and the sending module is used for sending a long link configuration request carrying the preset loading node information and the loading demand information to the server, so that the server establishes a long link between the server and the current client according to the preset loading node information and the loading demand information, and configures a URL resource library matched with the long link.
Further, the receiving module is further configured to receive a loading instruction sent by the server, where the loading instruction carries a trigger event matching the preset loading node information, and the trigger event at least includes a voice trigger event, a text trigger event, and a button trigger event;
the searching module comprises:
the analysis unit is used for receiving at least one of the input voice information, the input text information and the input button information and analyzing at least one of the voice information, the input text information and the input button information;
and the determining unit is used for determining to trigger the preset loading node information when at least one of the voice information matched with the voice trigger event, the text information matched with the text trigger event and the button information matched with the button trigger event is analyzed.
Further, the resource data is web page data,
the loading module is specifically configured to start a web browser to obtain the URL address, load web data from the server through the URL address, and output the web data based on the web browser.
Further, the loading module is specifically configured to load and output feature picture data uniquely matched with the video stream data if the webpage data includes the video stream data; when a loading instruction of the video stream data is received, sending a loading request of the video stream data to the server, wherein the feature image data is uniquely matched picture data generated by extracting picture features of different video stream data in the webpage data by the server; and/or the presence of a gas in the gas,
the loading module is specifically configured to load and output feature text data uniquely matched with the audio stream data if the webpage data includes the audio stream data; when a loading instruction of the audio stream data is received, sending a loading request of the audio stream data to the server, wherein the characteristic text data is the only matched text data generated by extracting text characteristics of different audio stream data in the webpage data by the server.
Further, the apparatus further comprises: a calling module and an updating module,
the calling module is used for calling a standby thread configured in advance in the long link when a resource data adding and updating instruction is detected in the long link-based data transmission process;
the sending module is used for obtaining preset loading node information and loading demand information of resource data to be added and updated through the standby thread and sending the preset loading node information and the loading demand information to the server so that the server updates the URL resource library according to the preset loading node information and the loading demand information of the resource data to be added and updated;
and the updating module is used for receiving the updated URL resource library by using the standby thread to update and storing the updated URL resource library in a preset cache.
Furthermore, the URL resource library stores a URL address matched with the flow information of the preset loading node information.
According to another aspect of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the executable instruction causes a processor to perform an operation corresponding to the above method for loading resource data.
According to still another aspect of the present invention, there is provided a computer apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the loading method of the resource data.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a loading method and a loading device of resource data, a storage medium and computer equipment, compared with the prior art, the embodiment of the invention receives a URL resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; the resource data are requested to be loaded based on the URL address, when the client triggers preset loading node information, the resource data are automatically loaded through the URL ground piles configured in the server, the requirements of complex service interaction scenes and large demand in the data transmission process are met, the URL address can be configured in a self-adaptive mode, the requirement of accurate control over page skipping in complex scenes is met, and therefore the data transmission efficiency and the loading speed of the resource data are improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. In the drawings:
fig. 1 shows a flowchart of a method for loading resource data according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another resource data loading method according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a resource data loading apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for loading resource data according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a method for loading resource data, as shown in fig. 1, the method includes:
101. and receiving the URL resource library sent by the server.
The URL repository is matched with a long link to be subjected to data transmission, that is, the long link to be subjected to data transmission corresponds to only one configured URL repository, a URL address matched with the flow information of the preset loading node information is stored in the URL repository, the preset loading node is a node capable of performing resource data loading and configured in advance in the data transmission process, and specifically, the preset loading node may include a time node, a service trigger node, and the like, which is not specifically limited in the embodiment of the present invention. The URL address is a load address for loading resource data embedded in a long link, and one or more URL addresses stored in the URL resource library may be used. In addition, the URL resource library is configured in the server side, and at least one URL address capable of loading resource data is configured when long-chain connection with the current client side is established, so that the current client side loads the resource data through the URL address. Specifically, the embodiment of the present invention is not limited specifically to a case where the flow information is used to represent a sequence or a step for triggering each preset load node, so that the current client executes triggering of each preset load node information according to a preset flow.
It should be noted that, as a current execution end performing data transmission with a server, before performing data transmission, a URL repository sent by the server is received, and one URL repository corresponds to one long link, so that a client as the current execution end performs data transmission with the server through the long link.
102. And when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library.
In the embodiment of the invention, after the client serving as the current execution end establishes data transmission with the server through the long link, whether the loading node information of the resource data is triggered is detected in real time so as to determine whether to execute the loading of the resource data. For example, when the preset loading node information is the time node 13 point, whether the time node 13 point is triggered is detected in real time according to time timing. In addition, since the URL address matching the flow information of the preset loading node information is stored in the URL repository, when the matching of the preset loading node information is detected, the URL address matching the preset loading node is searched based on the URL repository, for example, the URL address matching the time node 13 point is searched, which is not limited in the embodiment of the present invention.
103. Requesting loading of the resource data based on the URL address.
For the embodiment of the invention, the URL address is searched from the URL resource library to automatically request the loading of the resource data to the server, so that the high efficiency of the loading of the resource data is improved, and the process of automatically loading the resource data is realized.
It should be noted that different resource data may be loaded in different manners, where the resource data includes but is not limited to contents such as a web page, an email, a program, and the like, for example, if the resource data is a small video, a video window may be started to load the video data, and if the resource data is an email, a mailbox may be started to load the email, which is not specifically limited in the embodiment of the present invention.
Compared with the prior art, the embodiment of the invention provides a resource data loading method, and the method comprises the steps of receiving a URL resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; the resource data are requested to be loaded based on the URL address, when the client triggers preset loading node information, the resource data are automatically loaded through the URL ground piles configured in the server, the requirements of complex service interaction scenes and large demand in the data transmission process are met, the URL address can be configured in a self-adaptive mode, the requirement of accurate control over page skipping in complex scenes is met, and therefore the data transmission efficiency and the loading speed of the resource data are improved.
An embodiment of the present invention provides another method for loading resource data, as shown in fig. 2, the method includes:
201. determining preset loading node information to be subjected to resource data loading, and acquiring loading demand information of the preset loading node information.
For the embodiment of the invention, in order to enable the server side to accurately configure the URL resource library, the client side serving as the current execution side determines the preset node information of the resource data to be loaded and acquires the loading demand information of the preset loading node information. The preset loading node is a node capable of loading resource data, which is configured in advance in the data transmission process, and specifically may include a time node, a service trigger node, and the like, for example, 3 service nodes, a service node 1, a service node 2, and a service node 3, and the loading demand information is content triggering the preset loading service node, such as adding contact information, adding a bank card, completing personal information, and the like, which is not limited in the embodiment of the present invention.
It should be noted that, in order to meet the requirement that different forms of content can be loaded in the data transmission process, the resource data is preferably web page data, so that the content to be loaded can be presented in different forms in one web page, for example, text, video, audio, and the like can be presented in the web page, and the embodiment of the present invention is not particularly limited.
202. And sending a long link configuration request carrying the preset loading node information and the loading requirement information to the server.
For the embodiment of the invention, after determining the threshold value loading node information and the loading requirement information, the client serving as the current execution end sends the preset loading node information and the loading requirement information to the server, so that the server establishes the long chain connection between the server and the current client according to the preset loading node information and the loading requirement information, and configures the URL resource library matched with the long chain connection, thereby enabling the current client to automatically identify whether the preset loading node information is reached or not in the data transmission process, loading the resource information, greatly improving the data transmission efficiency, and meeting the control requirement of page jump in a complex scene.
It should be noted that, after receiving the preset loading node information and the loading demand information, the server establishes a data transmission long link with the current client, and configures a URL resource library corresponding to the long link, that is, in the process of data transmission according to the long link, the server can load the web page data through the URL address in the URL resource library, where the number of URL addresses in the URL resource library matches the number of the preset loading node information, and the resource data loaded by the URL address matches the loading demand information, thereby satisfying the effective and adaptive loading of the resource data. For example, the preset loading node information is 001 → 002 → 003 respectively, the configured URL addresses are addcontact.
203. And receiving the URL resource library sent by the server.
204. And when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library.
Further, for further limitation and explanation, before step 204, the embodiment of the present invention further includes: and receiving a loading instruction sent by the server, wherein the loading instruction carries a trigger event matched with the preset loading node information.
In the embodiment of the invention, in order to ensure that the client determines whether to trigger the preset loading node information under the diversified operation of the user, the server pre-configures the trigger event matched with the preset loading node information so as to ensure that the user can trigger the preset loading node information according to different trigger modes in the data transmission process and realize the loading of the resource information. The trigger event at least includes a voice trigger event, a text trigger event, and a button trigger event, for example, it may be determined that the preset loading node information trigger is detected by detecting whether a voice message "open link" of the voice trigger event occurs, which is not specifically limited in the embodiment of the present invention.
Correspondingly, in the embodiment of the present invention, the detecting the preset loading node information of the triggered resource data includes: receiving at least one of recorded voice information, character information and button information, and analyzing the at least one of the voice information, the character information and the button information; and when at least one of the voice information matched with the voice trigger event, the text information matched with the text trigger event and the button information matched with the button trigger event is analyzed, determining to trigger the preset loading node information.
Specifically, a user inputs contents needing data transmission in a mode of voice, characters, key pressing and the like, wherein the contents comprise a section of voice, a section of characters, a plurality of times of key pressing and the like, then the inputted voice information, character information and button information are analyzed, and when the inputted voice information, character information and button information are analyzed to be matched with a voice trigger event, a character trigger event and a button trigger event, preset loading node information is determined to be triggered. The voice information matching voice triggering event is only required to be that specific voice content in the voice information matches the voice triggering event, for example, a segment of voice is recorded in "link up below us", and the voice triggering event is "link up", and if the voice triggering event exists in the voice information, it is determined to trigger the preset loading node information a, which is not specifically limited in the embodiment of the present invention.
205. And starting a web browser to acquire the URL address, loading web data from the server side through the URL address, and outputting the web data based on the web browser.
For the embodiment of the present invention, in order to meet the output of the web page data so as to quickly meet the visual requirement of the user on the web page, after the URL address is obtained, the web browser in the current client is started, and the web page data is requested to be loaded in the web browser through the URL address and output, so that the user jumps to the web browser from the data transmission process to browse, for example, a browser capable of presenting an H5 web page, which is not specifically limited in the embodiment of the present invention.
Specifically, for further limitation and description, the outputting the web page data based on the web browser includes: if the webpage data contains video stream data, loading and outputting feature picture data which are uniquely matched with the video stream data; when a loading instruction of the video stream data is received, sending a loading request of the video stream data to the server; and/or loading and outputting the characteristic character data which is uniquely matched with the audio stream data if the webpage data contains the audio stream data; and when a loading instruction of the audio stream data is received, sending a loading request of the audio stream data to the server.
In the embodiment of the invention, in order to meet the display of different webpage data and avoid loading unnecessary data, whether the webpage data contain video stream data and audio stream data is judged when the webpage data are displayed, so that the direct loading of the video stream data and the audio stream data which consume a large amount of transmission resources is suspended. Specifically, if the webpage data contains video stream data, feature picture data uniquely matched with the video stream data is loaded, the feature picture data is uniquely matched picture data generated by extracting picture features of different video stream data in the webpage data by the server and is output, and after a loading instruction of the video stream data of a user is received, a loading request of the video stream data is sent to the server so as to load all the video stream data. And when the webpage data contains voice stream data, loading characteristic character data which are uniquely matched with the audio stream data, wherein the characteristic character data are uniquely matched character data generated by extracting character characteristics of different audio stream data in the webpage data by the server, outputting the character data, and after receiving a loading instruction of the voice stream data of a user, sending a loading request of the voice stream data to the server to load all the voice stream data.
Further, in order to meet the loading requirement of the user on the resource data in the data transmission process in real time and realize the flexibility and diversity of resource data loading, the embodiment of the invention further comprises: when a resource data adding and updating instruction is detected in the data transmission process based on the long chain link, calling a standby thread configured in advance in the long chain link; acquiring preset loading node information and loading demand information of resource data to be added and updated through the standby thread, and sending the preset loading node information and the loading demand information to the server; and receiving the updated URL resource library by using the standby thread for updating, and storing the updated URL resource library in a preset cache.
Specifically, in the data transmission process based on the long link, a user can request to add resource data and update the resource data at any time, and therefore when a resource data addition and update instruction is detected, a standby thread configured in advance in the long link is called, and the standby thread is a thread dedicated to adding or updating the resource data. And acquiring preset loading node information and loading demand information of resource data to be added and updated through a standby thread, and sending the information to a server, so that the server updates the URL resource library according to the preset loading node information and the loading demand information of the resource data to be added and updated. And after the server loads the node information and the loading demand information according to the threshold values of the added and updated resource data and adds and updates the URL resource library, the current client receives the updated URL resource library and stores the URL resource library in a preset cache so as to detect the trigger event in the output transmission process at any time.
Compared with the prior art, the embodiment of the invention provides another resource data loading method, and the URL resource library sent by the receiving server is matched with the long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; the resource data are requested to be loaded based on the URL address, when the client triggers preset loading node information, the resource data are automatically loaded through the URL ground piles configured in the server, the requirements of complex service interaction scenes and large demand in the data transmission process are met, the URL address can be configured in a self-adaptive mode, the requirement of accurate control over page skipping in complex scenes is met, and therefore the data transmission efficiency and the loading speed of the resource data are improved.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a device for loading resource data, and as shown in fig. 3, the device includes:
the receiving module 31 is configured to receive a URL resource library sent by a server, where the URL resource library is matched with a long link to be subjected to data transmission;
the searching module 32 is configured to search, based on the URL repository, a URL address matching preset loading node information when preset loading node information of triggering resource data is detected in the long-chain access-based data transmission process;
a loading module 33, configured to request loading of the resource data based on the URL address.
Compared with the prior art, the embodiment of the invention provides a loading device of resource data, and the embodiment of the invention receives a URL resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; the resource data are requested to be loaded based on the URL address, when the client triggers preset loading node information, the resource data are automatically loaded through the URL ground piles configured in the server, the requirements of complex service interaction scenes and large demand in the data transmission process are met, the URL address can be configured in a self-adaptive mode, the requirement of accurate control over page skipping in complex scenes is met, and therefore the data transmission efficiency and the loading speed of the resource data are improved.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides another resource data loading apparatus, as shown in fig. 4, where the apparatus includes:
the receiving module 41 is configured to receive a URL resource library sent by a server, where the URL resource library is matched with a long link to be subjected to data transmission;
the searching module 42 is configured to search, based on the URL repository, a URL address matching preset loading node information when preset loading node information of triggering resource data is detected in the long-chain access-based data transmission process;
a loading module 43, configured to request loading of the resource data based on the URL address.
Further, the apparatus further comprises:
an obtaining module 44, configured to determine preset loading node information to be subjected to resource data loading, and obtain loading requirement information of the preset loading node information;
a sending module 45, configured to send a long link configuration request carrying the preset loading node information and the loading requirement information to the server, so that the server establishes a long link between the server and a current client according to the preset loading node information and the loading requirement information, and configures an URL repository matching the long link.
Further, the receiving module 41 is further configured to receive a loading instruction sent by the server, where the loading instruction carries a trigger event matching the preset loading node information, and the trigger event at least includes a voice trigger event, a text trigger event, and a button trigger event;
the lookup module 42 includes:
an analyzing unit 4201, configured to receive at least one of entered voice information, text information, and button information, and analyze at least one of the voice information, the text information, and the button information;
a determining unit 4202, configured to determine to trigger the preset load node information when at least one of the voice information matching the voice trigger event, the text information matching the text trigger event, and the button information matching the button trigger event is analyzed.
Further, the resource data is web page data,
the loading module 43 is specifically configured to start a web browser to obtain the URL address, load web data from the server through the URL address, and output the web data based on the web browser.
Further, the loading module is specifically configured to load and output feature picture data uniquely matched with the video stream data if the webpage data includes the video stream data; when a loading instruction of the video stream data is received, sending a loading request of the video stream data to the server, wherein the feature image data is uniquely matched picture data generated by extracting picture features of different video stream data in the webpage data by the server; and/or the presence of a gas in the gas,
the loading module is specifically configured to load and output feature text data uniquely matched with the audio stream data if the webpage data includes the audio stream data; when a loading instruction of the audio stream data is received, sending a loading request of the audio stream data to the server, wherein the characteristic text data is the only matched text data generated by extracting text characteristics of different audio stream data in the webpage data by the server.
Further, the apparatus further comprises: a retrieval module 46, an update module 47,
the invoking module 46 is configured to invoke a standby thread preconfigured in the long link when a resource data adding and updating instruction is detected in the long link-based data transmission process;
the sending module 45 is configured to obtain preset loading node information and loading demand information of resource data to be added and updated through the standby thread, and send the preset loading node information and loading demand information to the server, so that the server updates the URL resource library according to the preset loading node information and loading demand information of the resource data to be added and updated;
and the updating module 47 is configured to receive the updated URL repository for updating by using the standby thread, and store the updated URL repository in a preset cache.
Furthermore, the URL resource library stores a URL address matched with the flow information of the preset loading node information.
Compared with the prior art, the embodiment of the invention provides another resource data loading device, and the URL resource library sent by the receiving server is matched with the long link to be subjected to data transmission; when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library; the resource data are requested to be loaded based on the URL address, when the client triggers preset loading node information, the resource data are automatically loaded through the URL ground piles configured in the server, the requirements of complex service interaction scenes and large demand in the data transmission process are met, the URL address can be configured in a self-adaptive mode, the requirement of accurate control over page skipping in complex scenes is met, and therefore the data transmission efficiency and the loading speed of the resource data are improved.
According to an embodiment of the present invention, a storage medium is provided, where the storage medium stores at least one executable instruction, and the computer executable instruction can execute the method for loading resource data in any of the above method embodiments.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computer device.
As shown in fig. 5, the computer apparatus may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above embodiment of the resource data loading method.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computer device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
receiving a URL (uniform resource locator) resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission;
when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library;
requesting loading of the resource data based on the URL address.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for loading resource data is characterized by comprising the following steps:
receiving a URL (uniform resource locator) resource library sent by a server, wherein the URL resource library is matched with a long link to be subjected to data transmission;
when preset loading node information of triggering resource data is detected in the data transmission process based on the long chain access, searching a URL address matched with the preset loading node information based on the URL resource library;
requesting loading of the resource data based on the URL address.
2. The method according to claim 1, wherein before receiving the URL repository sent by the server, the method further comprises:
determining preset loading node information to be subjected to resource data loading, and acquiring loading demand information of the preset loading node information;
and sending a long link configuration request carrying the preset loading node information and the loading demand information to the server, so that the server establishes a long link between the server and the current client according to the preset loading node information and the loading demand information, and configures a URL resource library matched with the long link.
3. The method of claim 2, further comprising:
receiving a loading instruction sent by the server, wherein the loading instruction carries a trigger event matched with the preset loading node information, and the trigger event at least comprises a voice trigger event, a text trigger event and a button trigger event;
the preset loading node information for detecting the triggering resource data comprises:
receiving at least one of recorded voice information, character information and button information, and analyzing the at least one of the voice information, the character information and the button information;
and when at least one of the voice information matched with the voice trigger event, the text information matched with the text trigger event and the button information matched with the button trigger event is analyzed, determining to trigger the preset loading node information.
4. The method of claim 3, wherein the resource data is web page data, and wherein requesting the loading of the resource data based on the URL address comprises:
and starting a web browser to acquire the URL address, loading web data from the server side through the URL address, and outputting the web data based on the web browser.
5. The method of claim 4, wherein outputting the web page data based on the web browser comprises:
if the webpage data contains video stream data, loading and outputting feature picture data which are uniquely matched with the video stream data; when a loading instruction of the video stream data is received, sending a loading request of the video stream data to the server, wherein the feature image data is uniquely matched picture data generated by extracting picture features of different video stream data in the webpage data by the server; and/or the presence of a gas in the gas,
if the webpage data contains audio stream data, loading and outputting the characteristic character data which is uniquely matched with the audio stream data; when a loading instruction of the audio stream data is received, sending a loading request of the audio stream data to the server, wherein the characteristic text data is the only matched text data generated by extracting text characteristics of different audio stream data in the webpage data by the server.
6. The method of claim 1, further comprising:
when a resource data adding and updating instruction is detected in the data transmission process based on the long chain link, calling a standby thread configured in advance in the long chain link;
acquiring preset loading node information and loading demand information of resource data to be added and updated through the standby thread, and sending the information to the server, so that the server updates the URL resource library according to the preset loading node information and the loading demand information of the resource data to be added and updated;
and receiving the updated URL resource library by using the standby thread for updating, and storing the updated URL resource library in a preset cache.
7. The method according to any one of claims 1 to 6, wherein the URL resource library stores URL addresses matching with the flow information of the preset loading node information.
8. An apparatus for loading resource data, comprising:
the receiving module is used for receiving a URL (uniform resource locator) library sent by a server, wherein the URL library is matched with a long link to be subjected to data transmission;
the searching module is used for searching a URL address matched with preset loading node information based on the URL resource library when the preset loading node information of triggering resource data is detected in the long-chain access-based data transmission process;
and the loading module is used for requesting the loading of the resource data based on the URL address.
9. A storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute operations corresponding to the loading method of resource data according to any one of claims 1 to 7.
10. A computer device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the loading method of the resource data according to any one of claims 1-7.
CN202011179396.2A 2020-10-29 2020-10-29 Resource data loading method and device, storage medium and computer equipment Pending CN112286592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011179396.2A CN112286592A (en) 2020-10-29 2020-10-29 Resource data loading method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011179396.2A CN112286592A (en) 2020-10-29 2020-10-29 Resource data loading method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN112286592A true CN112286592A (en) 2021-01-29

Family

ID=74374145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011179396.2A Pending CN112286592A (en) 2020-10-29 2020-10-29 Resource data loading method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112286592A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699674A (en) * 2013-12-31 2014-04-02 优视科技有限公司 Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
US20140115539A1 (en) * 2012-10-18 2014-04-24 Yahoo! Inc. Customized shortcuts for resource browsing method and apparatus
CN104572843A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Page loading method and device
CN105488095A (en) * 2015-09-30 2016-04-13 小米科技有限责任公司 Search result access method, apparatus and system
CN105677688A (en) * 2014-11-21 2016-06-15 博雅网络游戏开发(深圳)有限公司 Page data loading method and system
US20160241674A1 (en) * 2015-02-13 2016-08-18 Xiaomi Inc. Method and device of filtering address
CN105939370A (en) * 2015-09-15 2016-09-14 杭州迪普科技有限公司 Method and device for updating URL library
WO2017107568A1 (en) * 2015-12-21 2017-06-29 北京大学 Cloud-side cooperation-based method for optimizing resource loading at mobile browser
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN110430188A (en) * 2019-08-02 2019-11-08 武汉思普崚技术有限公司 A kind of quick url filtering method and device
CN110727890A (en) * 2019-08-22 2020-01-24 中国平安财产保险股份有限公司 Page loading method and device, computer equipment and storage medium
CN111258680A (en) * 2020-01-21 2020-06-09 腾讯科技(深圳)有限公司 Resource loading method and device, storage medium and electronic device
CN111625743A (en) * 2020-05-21 2020-09-04 广州华多网络科技有限公司 Resource loading method and device and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140115539A1 (en) * 2012-10-18 2014-04-24 Yahoo! Inc. Customized shortcuts for resource browsing method and apparatus
CN103699674A (en) * 2013-12-31 2014-04-02 优视科技有限公司 Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN105677688A (en) * 2014-11-21 2016-06-15 博雅网络游戏开发(深圳)有限公司 Page data loading method and system
CN104572843A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Page loading method and device
US20160241674A1 (en) * 2015-02-13 2016-08-18 Xiaomi Inc. Method and device of filtering address
CN105939370A (en) * 2015-09-15 2016-09-14 杭州迪普科技有限公司 Method and device for updating URL library
CN105488095A (en) * 2015-09-30 2016-04-13 小米科技有限责任公司 Search result access method, apparatus and system
WO2017107568A1 (en) * 2015-12-21 2017-06-29 北京大学 Cloud-side cooperation-based method for optimizing resource loading at mobile browser
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN110430188A (en) * 2019-08-02 2019-11-08 武汉思普崚技术有限公司 A kind of quick url filtering method and device
CN110727890A (en) * 2019-08-22 2020-01-24 中国平安财产保险股份有限公司 Page loading method and device, computer equipment and storage medium
CN111258680A (en) * 2020-01-21 2020-06-09 腾讯科技(深圳)有限公司 Resource loading method and device, storage medium and electronic device
CN111625743A (en) * 2020-05-21 2020-09-04 广州华多网络科技有限公司 Resource loading method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN107622135B (en) Method and apparatus for displaying information
US8112548B2 (en) Method for providing a clip for viewing at a remote device
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN105871690B (en) Method and device for realizing instant messaging
US20100064018A1 (en) Method and Apparatus for Processing Instant Messaging Information
CN105989083B (en) Method and device for switching access environment
US10664516B2 (en) Search system, method and apparatus
CN105897888B (en) Client connection method and system
CN107276842B (en) Interface test method and device and electronic equipment
CN105991398A (en) Instant message IM chatting records storage method and apparatus
US20180107686A1 (en) Search method and apparatus
CA3061623C (en) File sending in instant messaging applications
CN112115396A (en) Webpage rendering method, device, equipment and storage medium
CN110826002A (en) Information sharing method and device, terminal and storage medium
CN106534280B (en) Data sharing method and device
CN111177623A (en) Information processing method and device
EP3896940A1 (en) Resource description file processing, and page resource obtaining method and device
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN107943921B (en) Page sharing information generation method and device, computer equipment and storage medium
US9306884B2 (en) Computer-based method and system for processing a file request in response to a message received from a user mobile device
CN111200650B (en) Data transmission method, device, system, equipment and medium
CN111767109A (en) H5 page display method and device based on terminal application and readable storage medium
CN108959393B (en) Dynamic picture processing method, device and storage medium
CN110928547A (en) Public file extraction method, device, terminal 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