WO2023045694A1 - 数据传输方法、装置、可读介质及电子设备 - Google Patents

数据传输方法、装置、可读介质及电子设备 Download PDF

Info

Publication number
WO2023045694A1
WO2023045694A1 PCT/CN2022/114874 CN2022114874W WO2023045694A1 WO 2023045694 A1 WO2023045694 A1 WO 2023045694A1 CN 2022114874 W CN2022114874 W CN 2022114874W WO 2023045694 A1 WO2023045694 A1 WO 2023045694A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
applet
data
data transmission
terminal
Prior art date
Application number
PCT/CN2022/114874
Other languages
English (en)
French (fr)
Inventor
薛端阳
乔奕轩
Original Assignee
北京火山引擎科技有限公司
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 北京火山引擎科技有限公司 filed Critical 北京火山引擎科技有限公司
Publication of WO2023045694A1 publication Critical patent/WO2023045694A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a data transmission method, device, readable medium, and electronic equipment.
  • the purpose of the present disclosure is to provide a data transmission method, device, readable medium and electronic equipment.
  • the present disclosure provides a data transmission method applied to a proxy server, the method comprising:
  • the first context information is used to characterize the first association relationship between the first SDK module and the applet end ;
  • the data transmission between the applet terminal and the webpage terminal is performed through the data transmission channel.
  • the present disclosure provides a data transmission method, which is applied to a small program end, the small program end includes a first SDK module, and the method includes:
  • first context information of the applet terminal through the first SDK module, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • Data transmission is performed with the web page through the data transmission channel.
  • the present disclosure provides a data transmission method applied to a web page, the web page includes a second SDK module, and the method includes:
  • Data transmission is performed with the applet terminal through the data transmission channel.
  • the present disclosure provides a data transmission device, which is applied to a proxy server, and the device includes:
  • the first receiving module is configured to receive the first context information sent by the first SDK module of the applet terminal, and the first context information is used to represent the first association relationship between the first SDK module and the applet terminal;
  • the second receiving module is used to receive the second context information sent by the second SDK module on the web page, and the second context information is used to represent the second association relationship between the second SDK module and the web page;
  • a channel establishment module configured to establish a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information;
  • a data transmission module configured to perform data transmission between the applet terminal and the webpage terminal through the data transmission channel.
  • the present disclosure provides a data transmission device, which is applied to a small program terminal, the small program terminal includes a first SDK module, and the device includes:
  • a first acquiring module configured to acquire first context information of the applet terminal through the first SDK module, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the first sending module is configured to send the first context information to a proxy server, so that the proxy server can establish the applet terminal and the Data transmission channels between web pages;
  • the first transmission module is configured to perform data transmission with the web page through the data transmission channel.
  • the present disclosure provides a data transmission device, which is applied to a web page, where the web page includes a second SDK module, and the device includes:
  • a second acquiring module configured to acquire second context information of the webpage through the second SDK module, the second context information being used to represent a second association relationship between the second SDK module and the webpage;
  • the third sending module is configured to send the second context information to the proxy server, so that the proxy server establishes the relationship between the webpage terminal and the Data transmission channel between applets;
  • the third transmission module is configured to perform data transmission with the applet terminal through the data transmission channel.
  • the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
  • the present disclosure provides an electronic device, including:
  • a processing device configured to execute the computer program in the storage device to implement the steps of the method described in the first aspect, the second aspect or the third aspect above.
  • the above technical solution provides a data transmission method.
  • the proxy server receives the first context information and the second context information sent by the first SDK module.
  • the second context information sent by the SDK module according to the first context information and the second context information, establishes a data transmission channel between the applet end and the web page end, and implements the applet end through the data transmission channel.
  • the data transmission between the webpage and the webpage can effectively realize the resource sharing between the applet and the webpage, and achieve the effect of directly displaying the content of the webpage on the applet, which can effectively reduce the content of the webpage on the small
  • the difficulty of refactoring on the program system platform can improve the efficiency of refactoring and reduce the cost of refactoring.
  • FIG. 1 is a flowchart of a data transmission method shown in an exemplary embodiment of the present disclosure
  • Fig. 2 is a schematic diagram of a data transmission method shown in an exemplary embodiment of the present disclosure
  • Fig. 3 is a flowchart of a data transmission method shown in another exemplary embodiment of the present disclosure.
  • Fig. 4 is a flowchart of a data transmission method shown in another exemplary embodiment of the present disclosure.
  • Fig. 5 is a flow chart of a data transmission method shown in another exemplary embodiment of the present disclosure.
  • Fig. 6 is a block diagram of a data transmission device shown in an exemplary embodiment of the present disclosure.
  • Fig. 7 is a block diagram of a data transmission device shown in another exemplary embodiment of the present disclosure.
  • Fig. 8 is a block diagram of a data transmission device shown in another exemplary embodiment of the present disclosure.
  • Fig. 9 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • the disclosure can be applied to the process of generating applet content based on webpage content, for example, based on existing H5web products on the applet platform.
  • content reconstruction when transforming and reconstructing existing H5Web products to the applet system platform, it is usually based on the code compilation method, that is, aligning various applet APIs (Application Programming Interface, The difference between the application program interface), and then use a common js runtime to smooth out the compatibility with H5Web, or provide a general js runtime framework (framework) directly based on the pure runtime underlying APIMock method, To achieve compatibility with H5Web.
  • code compilation method that is, aligning various applet APIs (Application Programming Interface, The difference between the application program interface)
  • a common js runtime to smooth out the compatibility with H5Web
  • provide a general js runtime framework (framework) directly based on the pure runtime underlying APIMock method To achieve compatibility with H5Web.
  • the present disclosure provides a data transmission method, device, readable medium and electronic equipment.
  • the first SDK module is set on the applet end
  • the second SDK module is set on the web page end.
  • the proxy server By receiving the first context information sent by the first SDK module and the second context information sent by the second SDK module, according to the first context information and the second context information, establish data between the applet end and the web page end Transmission channel, through the data transmission channel, the data transmission between the applet end and the web page end can be realized, so that the resource sharing between the applet end and the web page end can be effectively realized, and the content of the web page end can be directly displayed on the
  • the effect of the small program side can effectively reduce the difficulty of refactoring the content of the web page on the small program platform, which is conducive to improving the efficiency of reconstruction and reducing the cost of reconstruction.
  • Fig. 1 is a flow chart of a data transmission method shown in an exemplary embodiment of the present disclosure; referring to Fig. 1, the method is applied to a proxy server and may include the following steps:
  • Step 101 receiving the first context information sent by the first SDK module of the applet terminal.
  • the first context information is used to characterize the first association relationship between the first SDK module and the applet terminal
  • the first SDK module is the first software development kit preset in the applet terminal
  • the first software The development toolkit includes a toolkit for obtaining the first context information of the applet terminal, for example, it may be loaded during startup, or may be a related program pre-installed before startup.
  • the first context information may include the first data identification information of the applet where the first SDK module is located, the context variable information of the current running process of the applet, the available interface information of the applet, and the first context Information such as the originating function and docking function of the information, since it can be determined according to the originating function of the first context information that the first SDK module comes from the applet end, the first context information can represent the connection between the first SDK module and the applet The first association of the terminal.
  • Step 102 receiving second context information sent by the second SDK module on the web page.
  • the second context information is used to characterize the second association relationship between the second SDK module and the web page
  • the second SDK module includes a preset second software development kit
  • the second software development kit includes a A toolkit for obtaining the second context information of the web page.
  • the second SDK module can be loaded to the webpage, and the content of the webpage can be loaded by the Webview (screen rendering) control of the applet, so as to be displayed on the applet.
  • the second context information may include the second data identification information of the webpage where the second SDK module is located, the context variable information of the current running process of the webpage, the available interface information of the webpage, and the initiation function and docking function of the second context information, etc. information, since it can be determined according to the initiation function of the second context information that the second SDK module comes from the webpage, the second context information can represent the second association relationship between the second SDK module and the webpage.
  • Step 103 establishing a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information.
  • the first data identification information in the first context information and the second data identification information in the second context information may be acquired; if the first data identification information is consistent with the second data identification information , acquire the first available interface information in the first context information, and the second available interface information in the second context information; establish the first available interface information and the second available interface information according to the first available interface information and the second available interface information The object association relationship between the second available interface information, so as to form a data transmission pipeline including the object association relationship.
  • both the first data identification information and the second data identification information are identification information of the content provided by the content provider, the first data identification information is the same as the second data identification information, and can represent the first data identification information
  • An SDK module and the second SDK module are applets and webpages from the same content, and if the first data identification information is consistent with the second data identification information, the applet in the first context information can
  • the available interface information (i.e. the first available interface information) of the terminal and the available interface information (i.e. the second available interface information) of the web page in the second context information establish a target association relationship, wherein the target association relationship can be a function registry, thus Form a data transmission channel including the target association relationship (for example, the function registry).
  • the function registry may be in the form of a Windows-like registry, specifying the interfaces used by each function, and the order of interface calls.
  • the form of the registration form is relatively common in the prior art, and the present disclosure will not repeat it here.
  • Step 104 perform data transmission between the applet terminal and the webpage terminal through the data transmission channel.
  • the proxy server can receive the first encrypted data sent by the first SDK module of the applet, and determine the first target interface of the web page from the second available interface information according to the target association; through the The first target interface sends the first encrypted data to the webpage, so that the second SDK module on the webpage decrypts the first encrypted data to obtain the first transmission data corresponding to the first encrypted data.
  • the proxy server may also receive the second encrypted data sent by the second SDK module on the web page; determine the second target interface of the applet from the information of the first available interface according to the target association; through the second The target interface sends the second encrypted data to the applet end, so that the first SDK module of the applet end decrypts the second encrypted data to obtain the second encrypted data corresponding to the second transmission data.
  • the applet and the webpage can pass encryption and decryption keys to each other through the proxy server, so that the applet and the webpage can decrypt the encrypted data sent by each other, that is, the webpage can decrypt For the first encrypted data sent by the applet, the applet can decrypt the second encrypted data sent by the web page, thereby improving the security of data transmission while ensuring the validity of data transmission.
  • the method may further include: receiving the first heartbeat signal sent by the applet end and the second heartbeat signal sent by the webpage end; when it is determined that the first heartbeat signal or the second heartbeat signal is not received , sending a prompt message that the data transmission channel is interrupted to the applet terminal and the webpage terminal, so that the first SDK module of the applet terminal responds to receiving the prompt message, and if the first instruction to transmit data to the webpage terminal is received , the first instruction includes the third transmission data, generates the first hash information corresponding to the third transmission data, obtains the first URL information of the web page, and adds the first hash information to the first URL information to obtain generating second URL information, obtaining the first hash information in the second URL information when the web page intercepts the second URL information, and determining the third transmission data according to the first hash information; and Make the second SDK module on the web page respond to receiving the prompt information, if a second instruction to transmit data to the applet is received, the second instruction includes fourth transmission data, and generate the fourth transmission data, and
  • the proxy server determines that the first heartbeat signal is received, it is determined that the connection between the applet end and the proxy server is normal; If the connection between the web page and the proxy server is normal, if the connection between the applet and the web page and the proxy server is normal, make sure that the data transmission channel is not interrupted, and then confirm that the applet If the connection with the proxy server is abnormal or the connection between the web page and the proxy server is abnormal, it is determined that the data transmission channel is interrupted.
  • FIG. 2 is a schematic diagram of a data transmission method shown in an exemplary embodiment of the present disclosure.
  • the applet when it is determined that the data channel formed by the proxy server proxy is abnormal (that is, the applet end receives a proxy In the case of the data transmission channel interruption message sent by the server proxy), if the applet side wants to transmit data to the H5 webpage side, the applet can obtain the URL of the H5 webpage (that is, the first URL information) through its own webview , and generate the first hash information according to the data to be transmitted (ie the third transmission data) to be transmitted to the web page, and generate a new new URL (ie the second URL) according to the first URL information and the first hash information URL information, for example, the first URL information can be spliced with the first hash information to form the second URL information), the applet can open the second URL information through a new webview, and the first URL information on the H5 web page
  • the second SDK module will intercept the params information of the URL passed
  • the H5 web page can call the API wx.navigateTo interface of jsbridgeSDK in the applet to control the applet to open the current URL of the H5 web page (that is, the third URL information), and obtain the hash value corresponding to the data to be transmitted (that is, the second hash information), according to the current URL and the hash value to generate the target URL (for example, the current URL and the hash value can be concatenated to form the target URL, that is, to form the fourth URL information), the applet side loads a new webview, through the The new webview opens the target URL (the fourth website information, for example, can read the target URL through the Page.
  • the hash value is obtained, and the hash value is analyzed to obtain the data to be transmitted (that is, the fourth transmission data) to be transmitted
  • the above technical solution provides a data transmission method, which is applied to a proxy server.
  • the proxy server receives the data sent by the first SDK module.
  • the first context information and the second context information sent by the second SDK module according to the first context information and the second context information, establish a data transmission channel between the applet end and the web page end, through the data transmission channel.
  • the way to realize the data transmission between the applet and the webpage, so as to effectively realize the resource sharing between the applet and the webpage achieve the effect of directly displaying the content of the webpage on the applet, and effectively reduce the
  • the difficulty of refactoring content on the web page on the mini program platform is conducive to improving the efficiency of refactoring and reducing the cost of refactoring.
  • Fig. 3 is a flowchart of a data transmission method shown in another exemplary embodiment of the present disclosure; referring to Fig. 3, the data transmission method is applied to a small program end, the small program end includes a first SDK module, and the method may include The following steps:
  • Step 301 obtain the first context information of the applet terminal through the first SDK module.
  • the first context information is used to characterize the first association relationship between the first SDK module and the applet terminal;
  • the first SDK module includes a preset software development toolkit for obtaining the first context information of the applet terminal.
  • the first context information may include the first data identification information of the applet where the first SDK module is located, the context variable information of the current running process of the applet, the available interface information of the applet, and the first context Information such as the originating function and docking function of the information, wherein, since it can be determined according to the originating function of the first context information that the first SDK module comes from the applet terminal, the first context information can represent the relationship between the first SDK module and the The first association relationship of the applet.
  • Step 302 Send the first context information to the proxy server, so that the proxy server can establish a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information sent by the webpage terminal .
  • the proxy server receives the first context information sent by the first SDK module at the applet end and the second context information sent by the second SDK module at the web page end, the first data identification information and the second data identification information If they are consistent, acquire the first available interface information in the first context information, and the second available interface information in the second context information; establish a link between the first available interface information and the second available interface information
  • the target relationship is to form a data transmission channel including the target relationship, and the target relationship can be a function registration list.
  • Step 303 performing data transmission with the web page through the data transmission channel.
  • the first encrypted data corresponding to the transmission data can be sent to the proxy server through the first SDK module, and the proxy server can Determine the first target interface corresponding to the first encrypted data from the second available interface information, and send the first encrypted data to the webpage through the first target interface, so that the second SDK module on the webpage
  • the first transmission data corresponding to the first encrypted data is obtained.
  • the key may be sent to the webpage, or the key for encryption and decryption may be pre-agreed, and the pre-agreed key is stored on the proxy server, Then the proxy server distributes the key to the applet terminal and the webpage terminal.
  • the encryption method may be any encryption method in the prior art, which is not limited in the present disclosure.
  • the first SDK module when the first SDK module receives the second encrypted data sent by the proxy server, it can decrypt the second encrypted data with the received key to obtain the second encrypted data corresponding to the second encrypted data. transmit data, so as to realize the receiving process of the data sent by the webpage by the applet through the data transmission channel.
  • the method may further include: sending a first heartbeat signal to the proxy server, so that the proxy server determines whether the data transmission channel is interrupted according to the first heartbeat signal, and if it is determined that the data channel is interrupted, , and send a prompt message that the data transmission channel is interrupted to the applet.
  • the method further includes: in the case of receiving the prompt information sent by the proxy server that the data transmission tunnel is interrupted, if a first instruction for transmitting data to the web page is received, the first instruction includes the third transmission data , generate the first hash information corresponding to the third transmission data, obtain the first URL information on the web page, add the first hash information to the first URL information to generate the second URL information, and intercept on the web page
  • the second website information is obtained, the first hash information in the second website information is obtained, and the third transmission data is determined according to the first hash information.
  • the embodiment that the proxy server determines whether the data transmission channel is interrupted according to the first heartbeat signal may be: when the proxy server determines that the first heartbeat signal is received, determine the connection between the applet terminal and the proxy server The connection is normal. When the proxy server determines that the second heartbeat signal sent by the webpage is received, it is determined that the connection between the webpage and the proxy server is normal. After determining the connection between the applet and the webpage and the proxy server If both are normal, it is determined that the data transmission channel is not interrupted. When it is determined that the connection between the applet terminal and the proxy server is abnormal or the connection between the web page and the proxy server is abnormal, determine that the data transmission channel is not interrupted. Road interrupted. In the case of an unstable data transmission channel, the process of transferring the data to be transmitted through the hash information may refer to the specific process of the embodiment shown in FIG. 2 above, which will not be repeated here.
  • the first context information is sent to the proxy server, so that the proxy server can establish the applet according to the first context information and the second context information sent by the web page
  • the data transmission channel between the terminal and the web page, through which data transmission is performed with the web page, can effectively realize the resource sharing between the applet terminal and the web page, and directly transfer the web page
  • the effect of content display on the Mini Program side can effectively reduce the difficulty of refactoring content on the web side on the Mini Program platform, improve reconstruction efficiency, and reduce reconstruction costs;
  • the data to be transmitted generates hash information, and the generated hash information is added to the URL of the content on the web page to form new URL information, and then the process of loading the URL information on the web page through the Webview control in the applet is intercepted to the
  • the hash information in the new URL information is analyzed to obtain the data to be transmitted, which can ensure the reliability of data transmission when the data transmission channel is unstable.
  • Fig. 4 is a flow chart of a data transmission method shown in another exemplary embodiment of the present disclosure; referring to Fig. 4, the data transmission method is applied to a webpage, and the webpage includes a second SDK module, and the method may include the following step:
  • Step 401 obtain the second context information of the web page through the second SDK module.
  • the second context information is used to characterize the second association relationship between the second SDK module and the web page;
  • the second SDK module is a preset second software development kit, and the second software development kit includes a A toolkit for obtaining the second context information of the web page.
  • Step 402 Send the second context information to the proxy server, so that the proxy server can establish a data transmission link between the webpage terminal and the applet terminal according to the second context information and the first context information sent by the applet terminal. road.
  • the proxy server establishes a data transmission channel between the web page and the applet according to the second context information and the first context information sent by the applet, as shown in step 103 in FIG. 1 above. Specific implementation manners, the present disclosure will not be repeated here.
  • Step 403 perform data transmission with the applet through the data transmission channel.
  • the second encrypted data sent by the second SDK module on the web page can be sent to the proxy server, so that after receiving the second encrypted data sent by the second SDK module on the web page, the proxy server can use the target association relationship from The second target interface of the applet is determined in the first available interface information; the second encrypted data is sent to the applet through the second target interface, so that the first SDK module of the applet encrypts the second After the data is decrypted, the second encrypted data corresponds to the second transmission data, so that the web page sends data to the applet through the data transmission channel.
  • the key before sending the second encrypted data to the applet, the key can be sent to the applet first, or the key for encryption and decryption can be pre-agreed, and the pre-agreed key can be stored in the On the proxy server, the proxy server then distributes the key to the applet and the web page.
  • the encryption method can be any encryption method in the prior art, which is not limited in this disclosure.
  • the second SDK module when the second SDK module receives the first encrypted data sent by the proxy server, it can decrypt the first encrypted data with the received key to obtain the first encrypted data corresponding to the first encrypted data.
  • the data is transmitted, so as to realize the receiving process of the data sent by the applet by the webpage through the data transmission channel.
  • the method also includes:
  • the prompt message of channel interruption
  • the method further includes: in the case of receiving the prompt information sent by the proxy server that the data transmission channel is interrupted, if receiving a second instruction for transmitting data to the applet end, the second instruction includes the first 4. Transmission data, generate the second hash information corresponding to the fourth transmission data, control the preset interface on the applet side to obtain the third website address information on the webpage side, and add the second hash information to the third website address information, so as to The fourth website information is generated, when the applet end loads the fourth website information, the second hash information in the fourth website information is obtained, and the fourth transmission data is determined according to the second hash information.
  • the embodiment of the proxy server determining whether the data transmission channel is interrupted according to the second heartbeat signal may be: when the proxy server determines that the first heartbeat signal is received, determine that the applet terminal is connected to the The connection of the proxy server is normal. When the proxy server determines that the second heartbeat signal sent by the webpage is received, it is determined that the connection between the webpage and the proxy server is normal. If the connections between the two are normal, it is determined that the data transmission channel is not interrupted. The data transmission channel is interrupted. In the case of an unstable data transmission channel, the process of transferring the data to be transmitted through the hash information may refer to the specific process of the embodiment shown in FIG. 2 above, which will not be repeated here.
  • the second context information is sent to the proxy server, so that the proxy server can build the applet according to the second context information and the first context information sent by the applet terminal
  • the data transmission channel between the terminal and the web page, through which data transmission is performed with the web page, can effectively realize the resource sharing between the applet terminal and the web page, and directly transfer the web page
  • the effect of content display on the applet side can effectively reduce the difficulty of reconstructing the content on the web page on the applet platform, improve the efficiency of reconstruction, and reduce the cost of reconstruction;
  • Fig. 5 is a flowchart of a data transmission method shown in another exemplary embodiment of the present disclosure; referring to Fig. 5, the method may include the following steps:
  • step 501 the applet acquires first context information of the applet through the first SDK module.
  • the first context information is used to characterize the first association relationship between the first SDK module and the applet terminal;
  • the first SDK module is a software development kit preset in the applet terminal, for example, it may be a startup process , or pre-installed related programs before startup.
  • step 301 in FIG. 3 For the specific implementation manner in this step, reference may be made to the content shown in step 301 in FIG. 3 above, and the present disclosure will not repeat it here.
  • Step 502 the webpage acquires the second context information of the webpage through the second SDK module.
  • the second SDK module is a software development kit preset in the webpage, and the second context information is used to represent a second association relationship between the second SDK module and the webpage.
  • step 401 in FIG. 4 The specific implementation manner in this step can be described above and shown in step 401 in FIG. 4 , and the present disclosure will not repeat it here.
  • Step 503 In response to receiving the first context information sent by the first SDK module at the applet end and the second context information sent by the second SDK module at the web page end, the proxy server establishes the context information according to the first context information and the second context information.
  • step 101 For the specific implementation manner in this step, reference may be made to the content shown in step 101 to step 103 in FIG. 1 , and details will not be repeated here in the present disclosure.
  • Step 504 the applet terminal sends a first heartbeat signal to the proxy server, and the webpage terminal sends a second heartbeat signal to the proxy server.
  • Step 505 the proxy server determines whether the first heartbeat signal sent by the applet terminal and the second heartbeat signal sent by the web page terminal are received.
  • step 506 if it is determined that the first heartbeat signal and the second heartbeat signal are received, perform step 506; if it is determined that the first heartbeat signal or the second heartbeat signal is not received, perform step 507.
  • Step 506 the proxy server performs data transmission between the applet terminal and the webpage terminal through the data transmission channel.
  • step 104 For the specific implementation manner in this step, reference may be made to the specific implementation manner shown in step 104 in FIG. 1 above, and details will not be repeated here in the present disclosure.
  • Step 507 sending a prompt message that the data transmission channel is interrupted to the applet terminal and the web page terminal.
  • the prompt information is used to indicate that the data transmission channel is interrupted.
  • Step 508 In response to receiving the prompt message, the first SDK module on the applet end generates a corresponding the first hash information of the web page, obtain the first URL information of the webpage, add the first hash information to the first URL information to generate the second URL information, and when the webpage intercepts the second URL information, Obtain the first hash information in the second URL information, and determine the third transmission data according to the first hash information.
  • the applet terminal when it is determined that the data tunnel formed by the proxy server proxy is abnormal (that is, the prompt message that the data transmission tunnel is interrupted is received from the proxy server proxy), if the applet terminal wants to give When the H5 web page transmits data, the applet can obtain the URL of the H5 web page (ie, the first URL information) through its own webview, and generate the first hash according to the data to be transmitted (ie, the third transmission data) to be transmitted to the web page.
  • the URL of the H5 web page ie, the first URL information
  • the applet can obtain the URL of the H5 web page (ie, the first URL information) through its own webview, and generate the first hash according to the data to be transmitted (ie, the third transmission data) to be transmitted to the web page.
  • the applet can open the second URL information through a new webview, and the second SDK module on the H5 web page will intercept and pass it when the new page corresponding to the second URL information on the applet is loaded
  • the params information of the URL so as to read the third transmission data, after reading the third transmission data, the third transmission data can be processed by registering a corresponding callback function in the function list.
  • Step 509 the second SDK module on the web page responds to receiving the prompt information, if a second instruction to transmit data to the applet is received, the second instruction includes the fourth transmission data, and generates the fourth transmission data.
  • the second instruction includes the fourth transmission data, and generates the fourth transmission data.
  • Transfer the second hash information corresponding to the data control the preset interface on the applet side to obtain the third URL information on the web page, and add the second hash information to the third URL information to generate fourth URL information.
  • the program terminal loads the fourth website information, it obtains the second hash information in the fourth website information, and determines the fourth transmission data according to the second hash information.
  • the H5 webpage in the case of determining that the data tunnel formed by the proxy server proxy is abnormal (that is, receiving the prompt message of the interruption of the data transmission tunnel sent by the proxy server proxy), if the H5 webpage wants to give When the applet sends data, the H5 webpage can call the API wx.navigateTo interface of jsbridgeSDK in the applet to control the applet to open the current URL of the H5 webpage (that is, the third URL information), and obtain the hash corresponding to the data to be transmitted Value (that is, the second hash information), according to the current URL and the hash value to generate the target URL (for example, the current URL and the hash value can be spliced to form the target URL, that is, the fourth URL information), and the applet side loads A new webview, open the target URL through the new webview (the fourth website information, for example, can read the target URL through the Page.onload callback mode), so that the first SDK module on the applet end can The function obtains the hash value
  • the above technical solution provides a data transmission method.
  • the proxy server receives the first context information and the second SDK module sent by the first SDK module.
  • the second context information sent by the SDK module according to the first context information and the second context information, establishes a data transmission channel between the applet end and the web page end, and realizes the applet end and the web page through the data transmission channel.
  • the data transmission between the webpages can effectively realize the resource sharing between the applet and the webpage, achieve the effect of directly displaying the content of the webpage on the applet, and effectively reduce the content of the webpage on the applet platform.
  • the difficulty of reconstruction is conducive to improving reconstruction efficiency and reducing reconstruction costs; moreover, when the data transmission channel is unstable, hash information can be generated from the data to be transmitted, and the generated hash information can be added to On the URL of the content on the web page, new URL information is formed, and the hash information is identified during the process of obtaining the new URL information, and then the hash information is parsed to obtain the data to be transmitted , which can ensure the reliability of data transmission when the data transmission channel is unstable.
  • Fig. 6 is a block diagram of a data transmission device shown in an exemplary embodiment of the present disclosure; as shown in Fig. 6, the data transmission device, applied to a proxy server, may include:
  • the first receiving module 601 is configured to receive first context information sent by the first SDK module of the applet terminal, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the second receiving module 602 is configured to receive second context information sent by the second SDK module on the webpage, where the second context information is used to represent a second association relationship between the second SDK module and the webpage;
  • a channel establishment module 603, configured to establish a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information;
  • the data transmission module 604 is configured to perform data transmission between the applet terminal and the webpage terminal through the data transmission channel.
  • the proxy server receives the first context information sent by the first SDK module and the second context information sent by the second SDK module.
  • Context information based on the first context information and the second context information, establishes a data transmission channel between the applet terminal and the webpage terminal, and realizes data transmission between the applet terminal and the webpage terminal through the data transmission channel , so that the resource sharing between the applet and the webpage can be effectively realized, and the effect of directly displaying the content of the webpage on the applet can be achieved, which can effectively reduce the difficulty of reconstructing the content of the webpage on the applet platform. It is beneficial to improve the reconstruction efficiency and reduce the reconstruction cost.
  • the duct building module 603 is configured to:
  • first data identification information is consistent with the second data identification information, acquire the first available interface information in the first context information and the second available interface information in the second context information;
  • a target association relationship between the first available interface information and the second available interface information is established according to the first available interface information and the second available interface information, so as to form a data transmission pipeline including the target association relationship.
  • the data transmission module 604 is configured to:
  • the data transmission module 604 is configured to:
  • the second encrypted data is sent to the applet terminal through the second target interface, so that the first SDK module of the applet terminal decrypts the second encrypted data to obtain the second encrypted data corresponding to the second transmission data.
  • the device also includes:
  • the third receiving module 605 is configured to receive the first heartbeat signal sent by the applet terminal and the second heartbeat signal sent by the webpage terminal;
  • the determining module 606 is configured to send a prompt message of interruption of the data transmission channel to the applet terminal and the webpage terminal when it is determined that the first heartbeat signal or the second heartbeat signal is not received, so that the applet terminal
  • the first SDK module In response to receiving the prompt information, the first SDK module generates first hash information corresponding to the third transmission data if it receives a first instruction to transmit data to the webpage, the first instruction includes third transmission data, Obtain the first URL information on the web page, add the first hash information to the first URL information to generate second URL information, and obtain the second URL information when the web page intercepts the second URL information The first hash information, and determine the third transmission data according to the first hash information; and make the second SDK module on the web page respond to receiving the prompt information, if receiving the data transmission to the applet end
  • the second instruction includes the fourth transmission data, generates the second hash information corresponding to the fourth transmission data, controls the preset interface on the applet end to obtain the third URL information on the web page end,
  • the above technical solution can generate hash information for the data to be transmitted when the data transmission channel is unstable, and add the generated hash information to the URL of the content on the webpage, thereby forming new URL information, Then, through the process of loading the URL information of the web page through the Webview control in the applet, the hash information in the new URL information is intercepted, and the hash information is analyzed to obtain the data to be transmitted, which can ensure that the data transmission channel is smooth. Under stable conditions, the reliability of data transmission.
  • Fig. 7 is a block diagram of a data transmission device shown in another exemplary embodiment of the present disclosure; referring to Fig. 7, the data transmission device is applied to a small program end, and the small program end includes a first SDK module, and the device may include:
  • the first acquiring module 701 is configured to acquire first context information of the applet terminal through the first SDK module, and the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the first sending module 702 is configured to send the first context information to the proxy server, so that the proxy server can establish a connection between the applet and the web page according to the first context information and the second context information sent by the web page. data transmission channel;
  • the first transmission module 703 is configured to perform data transmission with the web page through the data transmission channel.
  • the first context information is sent to the proxy server, so that the proxy server can establish the applet according to the first context information and the second context information sent by the web page
  • the data transmission channel between the terminal and the web page, through which data transmission is performed with the web page, can effectively realize the resource sharing between the applet terminal and the web page, and directly transfer the web page
  • the effect of content display on the mini program side can effectively reduce the difficulty of refactoring web content on the mini program platform, improve reconstruction efficiency, and reduce reconstruction costs.
  • the device may also include:
  • the second sending module 704 is configured to send a first heartbeat signal to the proxy server, so that the proxy server determines whether the data transmission channel is interrupted according to the first heartbeat signal, and if it is determined that the data channel is interrupted, Send a prompt message that the data transmission channel is interrupted to the applet.
  • the device may also include:
  • the second transmission module 705 is configured to receive a first instruction to transmit data to the web page when receiving the prompt information sent by the proxy server that the data transmission channel is interrupted, and the first instruction includes the third transmission data, generate the first hash information corresponding to the third transmission data, obtain the first URL information on the web page, add the first hash information to the first URL information to generate the second URL information, and obtain the second URL information on the web page
  • the second website information is intercepted, the first hash information in the second website information is obtained, and the third transmission data is determined according to the first hash information.
  • the above technical solution can generate hash information for the data to be transmitted when the data transmission channel is unstable, and add the generated hash information to the URL of the content on the webpage, thereby forming new URL information, Then, through the process of loading the URL information of the web page through the Webview control in the applet, the hash information in the new URL information is intercepted, and the hash information is analyzed to obtain the data to be transmitted, which can ensure that the data transmission channel is smooth. Under stable conditions, the reliability of data transmission.
  • Fig. 8 is a block diagram of a data transmission device shown in another exemplary embodiment of the present disclosure; referring to Fig. 8, the data transmission device is applied to a web page, and the web page includes a second SDK module, and the device may include:
  • the second obtaining module 801 is used to obtain the second context information of the webpage through the second SDK module, and the second context information is used to represent the second association relationship between the second SDK module and the webpage;
  • the third sending module 802 is configured to send the second context information to the proxy server, so that the proxy server can establish a relationship between the webpage terminal and the applet terminal according to the second context information and the first context information sent by the applet terminal.
  • the third transmission module 803 is configured to perform data transmission with the applet through the data transmission channel.
  • the second context information is sent to the proxy server, so that the proxy server can build the applet according to the second context information and the first context information sent by the applet terminal
  • the data transmission channel between the terminal and the web page, through which data transmission is performed with the web page, can effectively realize the resource sharing between the applet terminal and the web page, and directly transfer the web page
  • the effect of content display on the mini program side can effectively reduce the difficulty of refactoring web content on the mini program platform, improve reconstruction efficiency, and reduce reconstruction costs.
  • the device also includes:
  • the fourth sending module 804 is configured to send a second heartbeat signal to the proxy server, so that the proxy server determines whether the data transmission channel is interrupted according to the second heartbeat signal, and if it is determined that the data channel is interrupted, A prompt message that the data transmission channel is interrupted is sent to the web page.
  • the device also includes:
  • the fourth transmission module 805 is configured to receive the prompt information sent by the proxy server that the data transmission channel is interrupted, and if the second instruction to transmit data to the applet terminal is received, the second instruction includes The fourth transmission data, generating second hash information corresponding to the fourth transmission data, controlling the preset interface on the applet side to obtain the third URL information on the web page, and adding the second hash information to the third URL information, To generate the fourth website information, when the applet side loads the fourth website information, obtain the second hash information in the fourth website information, and determine the fourth transmission data according to the second hash information.
  • the above technical solution can generate the second hash information from the data to be transmitted when the data transmission channel is unstable, and control the preset interface on the applet side to obtain the third URL information on the web page, and the second hash information Hash information is added to the third URL information to form the fourth URL information, and then through the process of the fourth URL information being loaded by the applet, the applet recognizes the second hash information, so that the Analyzing the second hash information to obtain the data to be transmitted can ensure the reliability of data transmission under the condition that the data transmission channel is unstable.
  • FIG. 9 shows a schematic structural diagram of an electronic device 900 suitable for implementing the embodiments of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like.
  • the electronic device shown in FIG. 9 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
  • an electronic device 900 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 901, which may be randomly accessed according to a program stored in a read-only memory (ROM) 902 or loaded from a storage device 908.
  • a processing device such as a central processing unit, a graphics processing unit, etc.
  • RAM read-only memory
  • various appropriate actions and processes are executed by programs in the memory (RAM) 903 .
  • RAM 903 In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are also stored.
  • the processing device 901, ROM 902, and RAM 903 are connected to each other through a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904 .
  • the following devices can be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 907 such as a computer; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909.
  • the communication means 909 may allow the electronic device 900 to perform wireless or wired communication with other devices to exchange data. While FIG. 9 shows electronic device 900 having various means, it is to be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network via communication means 909, or from storage means 908, or from ROM 902.
  • the processing device 901 When the computer program is executed by the processing device 901, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) can be used to communicate, and can communicate with digital data in any form or medium (for example, communication network) interconnection.
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives the first context information sent by the first SDK module of the applet end, the first The context information is used to characterize the first association relationship between the first SDK module and the applet; the second context information sent by the second SDK module on the web page is received, and the second context information is used to characterize the relationship between the second SDK module and the applet.
  • the second association relationship of the webpage according to the first context information and the second context information, a data transmission channel between the applet and the webpage is established; through the data transmission channel, the applet and the webpage Data transfer between endpoints.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the first context information of the applet terminal through the first SDK module, the The first context information is used to characterize the first association relationship between the first SDK module and the applet end; send the first context information to the proxy server, so that the proxy server can use the first context information and the first context information sent by the web page 2.
  • the context information establishes a data transmission tunnel between the applet terminal and the webpage; data transmission is performed with the webpage through the data transmission tunnel.
  • the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains the second context information of the web page through the second SDK module, the The second context information is used to characterize the second association relationship between the second SDK module and the web page; send the second context information to the proxy server, so that the proxy server can use the second context information and the first message sent by the applet terminal
  • a context information establishes a data transmission channel between the webpage terminal and the applet terminal; data transmission is performed with the applet terminal through the data transmission channel.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as "C" or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, using an Internet service provider to connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service provider for example, using an Internet service provider to connected via the Internet.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware.
  • the name of the module does not constitute a limitation of the module itself under certain circumstances, for example, the first acquisition module can also be described as "a module that acquires the first context information of the applet terminal through the first SDK module".
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • Example 1 provides a data transmission method applied to a proxy server, the method comprising:
  • the data transmission between the applet terminal and the webpage terminal is performed through the data transmission channel.
  • Example 2 provides the method of Example 1, establishing a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information, include:
  • first data identification information is consistent with the second data identification information, acquire the first available interface information in the first context information and the second available interface information in the second context information;
  • a target association relationship between the first available interface information and the second available interface information is established to form a data transmission pipeline including the target association relationship.
  • Example 3 provides the method of Example 2, the data transmission between the applet terminal and the webpage terminal through the data transmission channel, including:
  • Example 4 provides the method of Example 2, where the data transmission between the applet terminal and the webpage terminal is performed through the data transmission channel, including:
  • the second encrypted data is sent to the applet terminal through the second target interface, so that the first SDK module of the applet terminal decrypts the second encrypted data to obtain the second encrypted data corresponding to the second transmission data.
  • Example 5 provides the method described in any one of Examples 1-4, the method further comprising:
  • a prompt message indicating that the data transmission channel is interrupted is sent to the applet end and the webpage end, so that the first SDK module of the applet end responds
  • the first instruction to transmit data to the web page is received, the first instruction includes the third transmission data, generate the first hash information corresponding to the third transmission data, and obtain the first hash information of the web page.
  • the second instruction includes the fourth transmission data, generates the second hash information corresponding to the fourth transmission data, controls the preset interface on the applet side to obtain the third URL information on the web page side, and adds the second hash information to the third website information to generate fourth website information, when the applet side loads the fourth website information, obtain the second hash information in the fourth website information, and determine the second website information according to the second hash information 4.
  • Transfer data if a second instruction to transmit data to the applet is received , the second instruction includes the fourth transmission data, generates the second hash information corresponding to the fourth transmission data, controls the preset interface on the applet side to obtain the third URL information on the web page side, and adds the second hash information to the third website information to generate fourth website information, when the applet side loads the fourth website information, obtain the second hash information in the fourth website information, and determine the second website information according to the second hash information 4.
  • Example 6 provides a data transmission method, which is characterized in that it is applied to an applet end, the applet end includes a first SDK module, and the method includes:
  • first context information of the applet terminal through the first SDK module, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the proxy server sends the first context information to the proxy server, so that the proxy server establishes a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information sent by the webpage terminal;
  • Data transmission is performed with the web page through the data transmission channel.
  • Example 7 provides the method of Example 6, the method further comprising:
  • Example 8 provides the method of Example 6, the method further comprising:
  • the first instruction includes third transmission data
  • the third transmission data is generated
  • obtain the first URL information on the web page add the first hash information to the first URL information to generate second URL information
  • the web page intercepts the second URL information
  • acquiring the first hash information in the second URL information and determining the third transmission data according to the first hash information.
  • Example 9 provides a data transmission method, 9 is applied to a webpage, the webpage includes a second SDK module, and the method includes:
  • Data transmission is performed with the applet terminal through the data transmission channel.
  • Example 10 provides the method of Example 9, the method further comprising:
  • the prompt message of channel interruption
  • Example 11 provides the method of Example 9, the method further comprising:
  • the second instruction includes the fourth transmission data, and the second instruction is generated. 4.
  • the second hash information corresponding to the transmission data controlling the preset interface on the applet side to obtain the third URL information on the web page, and adding the second hash information to the third URL information to generate the fourth URL information.
  • the applet side loads the fourth website information, it obtains the second hash information in the fourth website information, and determines the fourth transmission data according to the second hash information.
  • Example 12 provides a data transmission device applied to a proxy server, the device comprising:
  • the first receiving module is configured to receive first context information sent by the first SDK module of the applet terminal, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the second receiving module is used to receive the second context information sent by the second SDK module on the web page, and the second context information is used to represent the second association relationship between the second SDK module and the web page;
  • a channel establishment module configured to establish a data transmission channel between the applet terminal and the webpage terminal according to the first context information and the second context information;
  • the data transmission module is used for performing data transmission between the applet terminal and the webpage terminal through the data transmission channel.
  • Example 13 provides a data transmission device applied to an applet terminal, the applet terminal includes a first SDK module, and the device includes:
  • a first acquiring module configured to acquire first context information of the applet terminal through the first SDK module, where the first context information is used to represent a first association relationship between the first SDK module and the applet terminal;
  • the first sending module is configured to send the first context information to the proxy server, so that the proxy server can establish a communication between the applet terminal and the webpage terminal according to the first context information and the second context information sent by the webpage terminal Data transmission channels;
  • the first transmission module is used to perform data transmission with the web page through the data transmission channel.
  • Example 14 provides a data transmission device applied to a web page, where the web page includes a second SDK module, and the device includes:
  • the second obtaining module is used to obtain the second context information of the webpage through the second SDK module, and the second context information is used to represent the second association relationship between the second SDK module and the webpage;
  • the third sending module is used to send the second context information to the proxy server, so that the proxy server can establish a connection between the webpage terminal and the applet terminal according to the second context information and the first context information sent by the applet terminal.
  • data transmission channel
  • the third transmission module is configured to perform data transmission with the applet terminal through the data transmission channel.
  • Example 15 provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of any one of the methods in the above Examples 1-11 are implemented. .
  • Example 16 provides an electronic device, comprising:
  • a processing device configured to execute the computer program in the storage device to implement the steps of any one of the methods in Examples 1-11 above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开涉及一种数据传输方法、装置、可读介质及电子设备,该方法通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,该代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立小程序端与该网页端之间的数据传输涵道,通过该数据传输涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,有利于提升重构效率,降低重构成本。

Description

数据传输方法、装置、可读介质及电子设备
相关申请的交叉引用
本申请基于申请号为202111117221.3、申请日为2021年09月23日,名称为“数据传输方法、装置、可读介质及电子设备”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及计算机技术领域,具体地,涉及一种数据传输方法、装置、可读介质及电子设备。
背景技术
自从小程序正式诞生以来,市场上越来越多的厂商和流量载体都提供了小程序体系的开放平台,越来越多的CP(Content Provider,内容提供商),将自己原先已有的H5Web产品,转型重构到小程序体系平台上。在重构的过程中,通常无法直接将已有的H5Web产品搬到小程序体系平台上,需要针对小程序的生态特征,做代码的二次开发重构,并且在重构过程中不同的开放平台提供的小程序生态能力存在不对齐的情况,例如A平台可以提供的开发能力,在B平台上不一定可以提供,因此,通常需要针对不同的小程序体系开放平台定制化的开发相应程序,这无疑会导致根据H5Web产品重构小程序的重构效率降低,重构成本较高的问题。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
本公开的目的是提供一种数据传输方法、装置、可读介质及电子设备。
第一方面,本公开提供一种数据传输方法,应用于代理服务器,所述方法包括:
接收小程序端的第一SDK(Software Development Kit,软件开发工具包)模块发送的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
接收网页端的第二SDK模块发送的第二上下文信息,所述第二上下文信息,用于表征所述第二SDK模块与所述网页端的第二关联关系;
根据所述第一上下文信息和所述第二上下文信息建立所述小程序端与所述网页端之间的数据传输涵道;
通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输。
第二方面,本公开提供一种数据传输方法,应用于小程序端,所述小程序端包括第一SDK模块,所述方法包括:
通过所述第一SDK模块获取小程序端的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
将所述第一上下文信息发送至代理服务器,以使所述代理服务器根据所述第一上下文信息和网页端发送的第二上下文信息建立所述小程序端和所述网页端之间的数据传输涵道;
通过所述数据传输涵道与所述网页端进行数据传输。
第三方面,本公开提供一种数据传输方法,应用于网页端,所述网页端包括第二SDK模块,所述方法包括:
通过所述第二SDK模块获取所述网页端的第二上下文信息,所述第二上下文信息用于表征所述第二SDK模块与所述网页端的第二关联关系;
将所述第二上下文信息发送至代理服务器,以使所述代理服务器根据所述第二上下文信息与小程序端发送的第一上下文信息建立所述网页端与所述小程序端之间的数据传输涵道;
通过所述数据传输涵道与所述小程序端进行数据传输。
第四方面,本公开提供一种数据传输装置,应用于代理服务器,所述装置包括:
第一接收模块,用于接收小程序端的第一SDK模块发送的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
第二接收模块,用于接收网页端的第二SDK模块发送的第二上下文信息,所述第二上下文信息,用于表征所述第二SDK模块与所述网页端的第二关联关系;
涵道建立模块,用于根据所述第一上下文信息和所述第二上下文信息建立所述小程序端与所述网页端之间的数据传输涵道;
数据传输模块,用于通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输。
第五方面,本公开提供一种数据传输装置,应用于小程序端,所述小程序端包括第一SDK模块,所述装置包括:
第一获取模块,用于通过所述第一SDK模块获取小程序端的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
第一发送模块,用于将所述第一上下文信息发送至代理服务器,以使所述代理服务器根据所述第一上下文信息和网页端发送的第二上下文信息建立所述小程序端和所述网页端之间的数据传输涵道;
第一传输模块,用于通过所述数据传输涵道与所述网页端进行数据传输。
第六方面,本公开提供一种数据传输装置,应用于网页端,所述网页端包括第二SDK模块,所述装置包括:
第二获取模块,用于通过所述第二SDK模块获取所述网页端的第二上下文信息,所述第二上下文信息用于表征所述第二SDK模块与所述网页端的第二关联关系;
第三发送模块,用于将所述第二上下文信息发送至代理服务器,以使所述代理服务器根据所述第二上下文信息与小程序端发送的第一上下文信息建立所述网页端与所述小程序端之间的数据传输涵道;
第三传输模块,用于通过所述数据传输涵道与所述小程序端进行数据传输。
第七方面,本公开提供一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现以上第一方面,第二方面或者第三方面所述方法的步骤。
第八方面,本公开提供一种电子设备,包括:
存储装置,其上存储有计算机程序;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现以上第一方面,第二方面或者第三方面所述方法的步骤。
以上技术方案,提供一种数据传输方法,通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据所述第一上下文信息和所述第二上下文信息建立小程序端与所述网页端之间的数据传输涵道,通过该数据传输涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序体系平台上重构的难度,能够提升重构效率,降低重构成本。
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。在附图中:
图1是本公开一示例性实施例示出的一种数据传输方法的流程图;
图2是本公开一示例性实施例示出的一种数据传输方法的示意图;
图3是本公开另一示例性实施例示出的一种数据传输方法的流程图;
图4是本公开又一示例性实施例示出的一种数据传输方法的流程图;
图5是本公开又一示例性实施例示出的一种数据传输方法的流程图;
图6是本公开一示例性实施例示出的一种数据传输装置的框图;
图7是本公开另一示例性实施例示出的一种数据传输装置的框图;
图8是本公开又一示例性实施例示出的一种数据传输装置的框图;
图9是本公开一示例性实施例示出的一种电子设备的框图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加 透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
在介绍本公开的具体实施方式之前,首先对本公开的应用场景进行以下说明,公开可以应用于根据网页端内容生成小程序端内容的过程中,例如根据已有的H5web产品在小程序平台上进行内容重构的过程中,目前在将已有的H5Web产品,转型重构到小程序体系平台上时,通常是基于代码编译方式,即通过编译工具来对齐各家小程序API(Application Programming Interface,应用程序接口)之间的差异,再通过一个通用的js运行时,来抹平实现对于H5Web的兼容,或者是直接基于纯运行时底层APIMock的方式,来提供通用js运行时framework(框架),来实现对于H5Web的兼容。然而无论是以上两种方式中的哪种方式,都无法避免因为小程序功能缺失导致的对于现有H5Web产品的CSS(Cascading Style Sheets;层叠样式表)降级处理,对于业务的开发团队而言,都存在一定的重构成本,以及大量的不同小程序之间容器差异带来的兼容性测试和BUG修复压力,从而会导致重构效率较低,重构成本较高的问题。
为了解决以上技术问题,本公开提供了一种数据传输方法、装置、可读介质及电子设备,该方法通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,该代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立小程序端与该网页端之间的数据传输涵道,通过该数据传输涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,有利于提升重构效率,降低重构成本。
下面结合具体实施例对本公开的具体实施方式进行详细阐述。
图1是本公开一示例性实施例示出的一种数据传输方法的流程图;参见图1,该方法应用于代理服务器,可以包括以下步骤:
步骤101,接收小程序端的第一SDK模块发送的第一上下文信息。
其中,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系,该第一SDK模块为该小程序端内预先设置的第一软件开发工具包,该第一软件开发工具包包括用于获取小程序端的第一上下文信息的工具包,例如,可以是启动过程中加载的,也可以是在启动之前预先置入的相关程序。
需要说明的是,该第一上下文信息可以包括该第一SDK模块所在小程序端的第一数据标识信息,小程序端当前运行过程的上下文变量信息,小程序端的可用接口信息,以及该第一上下文信息的发起函数和对接函数等信息,由于可以根据该第一上下文信息的发起函数确定该第一SDK模块来自于小程序端,因此,该第一上下文信息能够表征该第一SDK模块与该小程序端的第一关联关系。
步骤102,接收网页端的第二SDK模块发送的第二上下文信息。
其中,该第二上下文信息,用于表征该第二SDK模块与该网页端的第二关联关系,该第二SDK模块包括预设的第二软件开发工具包,该第二软件开发工具包包括用于获取该网页端的第二上下文信息的工具包。
需要说明的是,该第二SDK模块可以被加载至网页端,该网页端内容可以被该小程序端的Webview(画面渲染)控件加载,从而在小程序端进行显 示。该第二上下文信息可以包括该第二SDK模块所在网页端的第二数据标识信息,网页端当前运行过程的上下文变量信息,网页端的可用接口信息,以及该第二上下文信息的发起函数和对接函数等信息,由于可以根据该第二上下文信息的发起函数确定该第二SDK模块来自于网页端,因此该第二上下文信息能够表征该第二SDK模块与该网页端的第二关联关系。
步骤103,根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道。
本步骤中,可以获取该第一上下文信息中的第一数据标识信息以及该第二上下文信息中的第二数据标识信息;在该第一数据标识信息与该第二数据标识信息一致的情况下,获取该第一上下文信息中的第一可用接口信息,以及该第二上下文信息中的第二可用接口信息;根据该第一可用接口信息和该第二可用建立该第一可用接口信息和该第二可用接口信息之间的目标关联关系,以形成包括该目标关联关系的数据传输涵道。
需要说明的是,该第一数据标识信息和该第二数据标识信息均为内容提供商所提供的内容的标识信息,该第一数据标识信息与该第二数据标识信息相同,能够表征该第一SDK模块与该第二SDK模块为来自于同一内容的小程序端和网页端,在该第一数据标识信息与该第二数据标识信息一致的情况下,可以对该第一上下文信息中小程序端的可用接口信息(即第一可用接口信息)与该第二上下文信息中网页端的可用接口信息(即第二可用接口信息)建立目标关联关系,其中,该目标关联关系可以是功能注册表,从而形成包括目标关联关系(例如,该功能注册表)的数据传输涵道,该功能注册表可以是以类似Windows的注册表的形式,规定每个功能所用的接口,以及接口调用顺序等信息,该注册表的形式在现有技术中较为常见,本公开在此不再赘述。
步骤104,通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
本步骤中,一方面该代理服务器可以接收小程序端的该第一SDK模块发送的第一加密数据,根据该目标关联关系从该第二可用接口信息中确定该网页端的第一目标接口;通过该第一目标接口将该第一加密数据发送至网页端, 以使网页端的第二SDK模块对该第一加密数据解密后得到该第一加密数据对应的第一传输数据。
另一方面,该代理服务器也可以接收网页端的第二SDK模块发送的第二加密数据;根据该目标关联关系从该第一可用接口信息中确定该小程序端的第二目标接口;通过该第二目标接口将该第二加密数据发送至小程序端,以使该小程序端的第一SDK模块对该第二加密数据进行解密后得到该第二加密数据对应第二传输数据。
需要说明的是,该小程序端和该网页端可以通过代理服务器相互传递加解密的密钥,以使该小程序端和该网页端能够相互解密彼此发送的加密数据,即该网页端能够解密该小程序端发送的第一加密数据,该小程序端能够解密该网页端发送的第二加密数据,从而能够在保证数据传输有效性的同时,提升数据传输的安全性。
可选地,该方法还可以包括:接收该小程序端发送的第一心跳信号和该网页端发送的第二心跳信号;在确定未接收到该第一心跳信号或者第二心跳信号的情况下,向该小程序端和该网页端发送数据传输涵道中断的提示信息,以使该小程序端的第一SDK模块响应于接收到该提示信息,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据;并使该网页端的第二SDK模块响应于接收到该提示信息,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
需要说明的是,在代理服务器确定接收到该第一心跳信号的情况下,确定该小程序端与该代理服务器的连接正常,在代理服务器确定接收到网页端发送的该第二心跳信号的情况下,确定该网页端与该代理服务器的连接正常, 在确定小程序端和网页端与代理服务器端之间的连接均正常的情况下,确定该数据传输涵道未中断,在确定小程序端与代理服务器端之间的连接异常或者网页端与代理服务器端之间的连接异常的情况下,确定该数据传输涵道中断。
示例地,图2是本公开一示例性实施例示出的一种数据传输方法的示意图,如图2所示,在确定通过代理服务器proxy形成的该数据涵道异常(即小程序端接收到代理服务器proxy发送的数据传输涵道中断的提示信息)的情况下,若小程序端要给H5网页端传输数据,则该小程序可以通过自身的webview获取H5网页的URL(即第一网址信息),并根据要传输给该网页端的待传输数据(即第三传输数据)生成第一哈希信息,根据该第一网址信息与该第一哈希信息生成新的一个新的URL(即第二网址信息,例如可以将该第一网址信息与该第一哈希信息进行拼接形成该第二网址信息),该小程序端可以通过一个新的webview,打开该第二网址信息,H5网页端的第二SDK模块会拦截到在小程序端第二网址信息对应的新页面被加载时传递过来的URL的params信息,从而读取到该第三传输数据,在读取到该第三传输数据之后,可以通过注册功能列表中相应的回调函数,对该第三传输数据进行处理。
在确定通过代理服务器proxy形成的该数据涵道异常(即网页端接收到代理服务器proxy发送的数据传输涵道中断的提示信息)的情况下,若H5网页端要给小程序端发送数据,则H5网页端可以调用小程序端内jsbridgeSDK的API wx.navigateTo接口,控制小程序端打开H5网页端的当前URL(即第三网址信息),并获取待传输数据对应的hash值(即第二哈希信息),根据当前URL与该hash值生成目标URL(例如,可以使该当前URL与该hash值拼接形成该目标URL,即形成第四网址信息),小程序端加载一个新的webview,通过该新的webview打开该目标URL(该第四网址信息,例如可以通过Page.onload回调方式读取该目标URL),从而该小程序端的第一SDK模块能够通过劫持该回调函数从该目标URL中获取得到该hash值,对该hash值进行解析,以得到该H5网页端要传输给该小程序端的待传输数据(即第四传输数据)。
以上技术方案,提供一种数据传输方法,该方法应用于代理服务器,通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,该代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立小程序端与该网页端之间的数据传输涵道,通过该数据传输涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,有利于提升重构效率,降低重构成本。
图3是本公开另一示例性实施例示出的一种数据传输方法的流程图;参见图3,该数据传输方法应用于小程序端,该小程序端包括第一SDK模块,该方法可以包括以下步骤:
步骤301,通过该第一SDK模块获取小程序端的第一上下文信息。
其中,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;该第一SDK模块包括预设的软件开发工具包,用于获取小程序端的第一上下文信息。
需要说明的是,该第一上下文信息可以包括该第一SDK模块所在小程序端的第一数据标识信息,小程序端当前运行过程的上下文变量信息,小程序端的可用接口信息,以及该第一上下文信息的发起函数和对接函数等信息,其中,由于可以根据该第一上下文信息的发起函数确定该第一SDK模块来自于小程序端,因此该第一上下文信息能够表征该第一SDK模块与该小程序端的第一关联关系。
步骤302,将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道。
其中,该代理服务器在接收小程序端的第一SDK模块发送的第一上下文信息和该网页端的第二SDK模块发送的第二上下文信息之后,在该第一数据标识信息与该第二数据标识信息一致的情况下,获取该第一上下文信息中的第一可用接口信息,以及该第二上下文信息中的第二可用接口信息;建立该 第一可用接口信息和该第二可用接口信息之间的目标关联关系,以形成包括该目标关联关系的数据传输涵道,该目标关联关系可以功能注册列表。
步骤303,通过该数据传输涵道与该网页端进行数据传输。
本步骤中,在需要向该网页端发送传输数据的情况下,可以通过该第一SDK模块向该代理服务器发送该传输数据对应的第一加密数据,该代理服务器根据预先生成的该目标关联关系从该第二可用接口信息中确定该第一加密数据对应的第一目标接口,并通过该第一目标接口将该第一加密数据发送至网页端,以使网页端的第二SDK模块对该第一加密数据解密后得到该第一加密数据对应的第一传输数据。其中,在向该网页端发送第一加密数据之前,可以先将密钥发送给该网页端,也可以预先约定好加解密的密钥,并将预先约定的密钥存储在该代理服务器上,然后由该代理服务器将该密钥分发给该小程序端和该网页端,这里该加密方式可以是现有技术中的任一加密方式,本公开对此不作限定。
另外,在该第一SDK模块接收到该代理服务器发送的第二加密数据的情况下,可以通过接收到的密钥对该第二加密数据进行解密,以得到该第二加密数据对应的第二传输数据,从而实现该小程序端通过该数据传输涵道对该网页端发送的数据的接收过程。
进一步地,该方法还可以包括:向该代理服务器发送第一心跳信号,以使该代理服务器根据该第一心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该小程序端发送数据传输涵道中断的提示信息。
另外,该方法还包括:在接收到该代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据。
其中,该代理服务器根据该第一心跳信号确定该数据传输涵道是否中断的实施方式可以是:在代理服务器确定接收到该第一心跳信号的情况下,确定该小程序端与该代理服务器的连接正常,在代理服务器确定接收到网页端 发送的该第二心跳信号的情况下,确定该网页端与该代理服务器的连接正常,在确定小程序端和网页端与代理服务器端之间的连接均正常的情况下,确定该数据传输涵道未中断,在确定小程序端与代理服务器端之间的连接异常或者网页端与代理服务器端之间的连接异常的情况下,确定该数据传输涵道中断。在数据传输涵道不稳定的情况下,通过哈希信息传递待传输的数据的过程可以参见以上图2所示实施例的具体过程,本公开在此不再赘述。
以上技术方案,通过在小程序端设置第一SDK模块,将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道,通过该数据传输涵道与该网页端进行数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,能够提升重构效率,降低重构成本;并且能够在数据传输涵道不稳定的情况下,将待传输的数据生成哈希信息,并将生成的哈希信息添加在该网页端内容的网址上,从而形成新的网址信息,再通过小程序内Webview控件加载网页端网址信息的过程拦截到该新的网址信息中的哈希信息,从而对该哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
图4是本公开又一示例性实施例示出的一种数据传输方法的流程图;参见图4,该数据传输方法,应用于网页端,该网页端包括第二SDK模块,该方法可以包括以下步骤:
步骤401,通过该第二SDK模块获取该网页端的第二上下文信息。
其中,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系;该第二SDK模块为预设的第二软件开发工具包,该第二软件开发工具包包括用于获取该网页端的第二上下文信息的工具包。
步骤402,将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道。
其中,该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道的过程可以参见以上图1中步骤103所示的具体实施方式,本公开在此不再赘述。
步骤403,通过该数据传输涵道与该小程序端进行数据传输。
本步骤中,该网页端的第二SDK模块可以向该代理服务器发送的第二加密数据,以使该代理服务器在接收网页端的第二SDK模块发送的第二加密数据后,根据该目标关联关系从该第一可用接口信息中确定该小程序端的第二目标接口;通过该第二目标接口将该第二加密数据发送至小程序端,以使该小程序端的第一SDK模块对该第二加密数据进行解密后得到该第二加密数据对应第二传输数据,从而实现该网页端通过该数据传输涵道向该小程序端发送数据。以上过程中,在向该小程序端发送第二加密数据之前,可以先将密钥发送给该小程序端,也可以预先约定好加解密的密钥,并将预先约定的密钥存储在该代理服务器上,然后由该代理服务器将该密钥分发给该小程序端和该网页端,这里该加密方式可以是现有技术中的任一加密方式,本公开对此不作限定。
另外,在该第二SDK模块接收到该代理服务器发送的第一加密数据的情况下,可以通过接收到的密钥对该第一加密数据进行解密,以得到该第一加密数据对应的第一传输数据,从而实现该网页端通过该数据传输涵道对该小程序端发送的数据的接收过程。
进一步地,该方法还包括:
向该代理服务器发送第二心跳信号,以使该代理服务器根据该第二心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该网页端发送数据传输涵道中断的提示信息。
另外,该方法还包括:在接收到代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
需要说明的是,该代理服务器根据该第二心跳信号确定该数据传输涵道是否中断的实施方式可以是:在代理服务器确定接收到该第一心跳信号的情况下,确定该小程序端与该代理服务器的连接正常,在代理服务器确定接收到网页端发送的该第二心跳信号的情况下,确定该网页端与该代理服务器的连接正常,在确定小程序端和网页端与代理服务器端之间的连接均正常的情况下,确定该数据传输涵道未中断,在确定小程序端与代理服务器端之间的连接异常或者网页端与代理服务器端之间的连接异常的情况下,确定该数据传输涵道中断。在数据传输涵道不稳定的情况下,通过哈希信息传递待传输的数据的过程可以参见以上图2所示实施例的具体过程,本公开在此不再赘述。
以上技术方案,通过在网页端设置第二SDK模块,将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息和小程序端发送的第一上下文信息建立该小程序端和该网页端之间的数据传输涵道,通过该数据传输涵道与该网页端进行数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,能够提升重构效率,降低重构成本;并且能够在数据传输涵道不稳定的情况下,通过将待传输的数据生成第二哈希信息,并控制小程序端的预设接口获取网页端的第三网址信息,将该第二哈希信息添加在该第三网址信息上,从而形成第四网址信息,再通过该第四网址信息被小程序端加载的过程,使该小程序端识别到该第二哈希信息,从而对该第二哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
图5是本公开又一示例性实施例示出的一种数据传输方法的流程图;参见图5,该方法可以包括以下步骤:
步骤501,小程序端通过该第一SDK模块获取小程序端的第一上下文信息。
其中,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;该第一SDK模块为该小程序端内预先设置的软件开发工具包,例如,可以是启动过程中加载的,也可以是在启动之前预先置入的相关程序。
本步骤中的具体实施方式可以参见以上图3中的步骤301所示的内容,本公开在此不再赘述。
步骤502,网页端通过该第二SDK模块获取该网页端的第二上下文信息。
其中,该第二SDK模块为该网页端内预先设置的软件开发工具包,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系。
本步骤中的具体实施方式可以以上及图4中的步骤401所示的内容,本公开在此不再赘述。
步骤503,代理服务器响应于接受到小程序端的第一SDK模块发送的第一上下文信息和网页端的第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道。
本步骤中的具体实施方式可以参见图1中的步骤101至步骤103所示的内容,本公开在此不再赘述。
步骤504,小程序端向该代理服务器发送第一心跳信号,网页端向该代理服务器发送第二心跳信号。
步骤505,代理服务器确定是否接收到该小程序端发送的第一心跳信号和该网页端发送的第二心跳信号。
本步骤中,在确定接收到该第一心跳信号和第二心跳信号的情况下,执行步骤506;在确定未接收到该第一心跳信号或者第二心跳信号的情况下,执行步骤507。
步骤506,该代理服务器通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
本步骤中的具体实施方式可以参见以上图1中步骤104所示的具体实施方式,本公开在此不再赘述。
步骤507,向该小程序端和该网页端发送数据传输涵道中断的提示信息。
其中,该提示信息用于表征该数据传输涵道中断。
步骤508,该小程序端的第一SDK模块响应于接收到该提示信息,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截 到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据。
示例地,如图2所示,在确定通过代理服务器proxy形成的该数据涵道异常(即接收到代理服务器proxy发送的数据传输涵道中断的提示信息)的情况下,若小程序端要给H5网页端传输数据,则该小程序可以通过自身的webview获取H5网页的URL(即第一网址信息),并根据要传输给该网页端的待传输数据(即第三传输数据)生成第一哈希信息,根据该第一网址信息与该第一哈希信息生成新的一个新的URL(即第二网址信息,例如可以将该第一网址信息与该第一哈希信息进行拼接形成该第二网址信息),该小程序端可以通过一个新的webview,打开该第二网址信息,H5网页端的第二SDK模块会拦截到在小程序端第二网址信息对应的新页面被加载时传递过来的URL的params信息,从而读取到该第三传输数据,在读取到该第三传输数据之后,可以通过注册功能列表中相应的回调函数,对该第三传输数据进行处理。
步骤509,该网页端的第二SDK模块响应于接收到该提示信息,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
示例地,如图2所示,在确定通过代理服务器proxy形成的该数据涵道异常(即接收到代理服务器proxy发送的数据传输涵道中断的提示信息)的情况下,若H5网页端要给小程序端发送数据,则H5网页端可以调用小程序端内jsbridgeSDK的API wx.navigateTo接口,控制小程序端打开H5网页端的当前URL(即第三网址信息),并获取待传输数据对应的hash值(即第二哈希信息),根据当前URL与该hash值生成目标URL(例如,可以使该当前URL与该hash值拼接形成该目标URL,即形成第四网址信息),小程序端加载一个新的webview,通过该新的webview打开该目标URL(该第四网址信息,例如可以通过Page.onload回调方式读取该目标URL),从而该小程序端的第一SDK模块能够通过劫持该回调函数从该目标URL中获取得到该hash 值,对该hash值进行解析,以得到该H5网页端要传输给该小程序端的待传输数据(即第四传输数据)。
以上技术方案,提供一种数据传输方法,通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,该代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立小程序端与该网页端之间的数据传输涵道,通过该数据传输涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,有利于提升重构效率,降低重构成本;并且,能够在数据传输涵道不稳定的情况下,将待传输的数据生成哈希信息,并将生成的哈希信息添加在该网页端内容的网址上,从而形成新的网址信息,再通过该新的网址信息被获取的过程中识别到该哈希信息,然后对该哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
图6是本公开一示例性实施例示出的一种数据传输装置的框图;如图6所示,该数据传输装置,应用于代理服务器,可以包括:
第一接收模块601,用于接收小程序端的第一SDK模块发送的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
第二接收模块602,用于接收网页端的第二SDK模块发送的第二上下文信息,该第二上下文信息,用于表征该第二SDK模块与该网页端的第二关联关系;
涵道建立模块603,用于根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道;
数据传输模块604,用于通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
以上技术方案,通过在小程序端设置第一SDK模块,在网页端设置第二SDK模块,该代理服务器通过接收该第一SDK模块发送的第一上下文信息和该第二SDK模块发送的第二上下文信息,根据该第一上下文信息和该第二上下文信息建立小程序端与该网页端之间的数据传输涵道,通过该数据传输 涵道实现小程序端与该网页端之间的数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,有利于提升重构效率,降低重构成本。
可选地,该涵道建立模块603,用于:
获取该第一上下文信息中的第一数据标识信息以及该第二上下文信息中的第二数据标识信息;
在该第一数据标识信息与该第二数据标识信息一致的情况下,获取该第一上下文信息中的第一可用接口信息,以及该第二上下文信息中的第二可用接口信息;
根据该第一可用接口信息和该第二可用建立该第一可用接口信息和该第二可用接口信息之间的目标关联关系,以形成包括该目标关联关系的数据传输涵道。
可选地,该数据传输模块604,用于:
接收小程序端的该第一SDK模块发送的第一加密数据,
根据该目标关联关系从该第二可用接口信息中确定该网页端的第一目标接口;
通过该第一目标接口将该第一加密数据发送至网页端,以使网页端的第二SDK模块对该第一加密数据解密后得到该第一加密数据对应的第一传输数据。
可选地,该数据传输模块604,用于:
接收网页端的第二SDK模块发送的第二加密数据;
根据该目标关联关系从该第一可用接口信息中确定该小程序端的第二目标接口;
通过该第二目标接口将该第二加密数据发送至小程序端,以使该小程序端的第一SDK模块对该第二加密数据进行解密后得到该第二加密数据对应第二传输数据。
可选地,该装置还包括:
第三接收模块605,用于接收该小程序端发送的第一心跳信号和该网页端发送的第二心跳信号;
确定模块606,用于在确定未接收到该第一心跳信号或者第二心跳信号的情况下,向该小程序端和该网页端发送数据传输涵道中断的提示信息,以使该小程序端的第一SDK模块响应于接收到该提示信息,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据;并使该网页端的第二SDK模块响应于接收到该提示信息,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
以上技术方案,能够在数据传输涵道不稳定的情况下,将待传输的数据生成哈希信息,并将生成的哈希信息添加在该网页端内容的网址上,从而形成新的网址信息,再通过小程序内Webview控件加载网页端网址信息的过程拦截到该新的网址信息中的哈希信息,从而对该哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
图7是本公开另一示例性实施例示出的一种数据传输装置的框图;参见图7,该数据传输装置应用于小程序端,该小程序端包括第一SDK模块,该装置可以包括:
第一获取模块701,用于通过该第一SDK模块获取小程序端的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
第一发送模块702,用于将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道;
第一传输模块703,用于通过该数据传输涵道与该网页端进行数据传输。
以上技术方案,通过在小程序端设置第一SDK模块,将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发 送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道,通过该数据传输涵道与该网页端进行数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,能够提升重构效率,降低重构成本。
可选地,该装置还可以包括:
第二发送模块704,用于向该代理服务器发送第一心跳信号,以使该代理服务器根据该第一心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该小程序端发送数据传输涵道中断的提示信息。
可选地,该装置还可以包括:
第二传输模块705,用于在接收到该代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据。
以上技术方案,能够在数据传输涵道不稳定的情况下,将待传输的数据生成哈希信息,并将生成的哈希信息添加在该网页端内容的网址上,从而形成新的网址信息,再通过小程序内Webview控件加载网页端网址信息的过程拦截到该新的网址信息中的哈希信息,从而对该哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
图8是本公开又一示例性实施例示出的一种数据传输装置的框图;参见图8,该数据传输装置,应用于网页端,该网页端包括第二SDK模块,该装置可以包括:
第二获取模块801,用于通过该第二SDK模块获取该网页端的第二上下文信息,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系;
第三发送模块802,用于将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道;
第三传输模块803,用于通过该数据传输涵道与该小程序端进行数据传输。
以上技术方案,通过在网页端设置第二SDK模块,将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息和小程序端发送的第一上下文信息建立该小程序端和该网页端之间的数据传输涵道,通过该数据传输涵道与该网页端进行数据传输,从而能够有效实现该小程序端与该网页端之间的资源共享,达到直接将网页端的内容展示在该小程序端的效果,能够有效降低网页端内容在小程序平台上重构的难度,能够提升重构效率,降低重构成本。
可选地,该装置还包括:
第四发送模块804,用于向该代理服务器发送第二心跳信号,以使该代理服务器根据该第二心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该网页端发送数据传输涵道中断的提示信息。
可选地,该装置还包括:
第四传输模块805,用于在接收到代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
以上技术方案,能够在数据传输涵道不稳定的情况下,通过将待传输的数据生成第二哈希信息,并控制小程序端的预设接口获取网页端的第三网址信息,将该第二哈希信息添加在该第三网址信息上,从而形成第四网址信息,再通过该第四网址信息被小程序端加载的过程,使该小程序端识别到该第二哈希信息,从而对该第二哈希信息进行解析以得到该待传输的数据,能够保证数据传输涵道不稳定情况下,数据传输的可靠性。
下面参考图9,其示出了适于用来实现本公开实施例的电子设备900的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、 PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储装置908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光 存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收小程序端的第一SDK模块发送的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;接收网页端的第二SDK模块发送的第二上下文信息,该第二上下文信息,用于表征该第二SDK模块与该网页端的第二关联关系;根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道;通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:通过该第一SDK模块获取小程序端的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与 该小程序端的第一关联关系;将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道;通过该数据传输涵道与该网页端进行数据传输。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:通过该第二SDK模块获取该网页端的第二上下文信息,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系;将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道;通过该数据传输涵道与该小程序端进行数据传输。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,第一获取模块还可以被描述为“通过该第一SDK模块获取小程序端的第一上下文信息的模块”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。根据本公开的一个或多个实施例,示例1提供了一种数据传输方法,应用于代理服务器,该方法包括:
接收小程序端的第一SDK模块发送的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
接收网页端的第二SDK模块发送的第二上下文信息,该第二上下文信息,用于表征该第二SDK模块与该网页端的第二关联关系;
根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道;
通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
根据本公开的一个或多个实施例,示例2提供了示例1的方法,该根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道,包括:
获取该第一上下文信息中的第一数据标识信息以及该第二上下文信息中的第二数据标识信息;
在该第一数据标识信息与该第二数据标识信息一致的情况下,获取该第一上下文信息中的第一可用接口信息,以及该第二上下文信息中的第二可用接口信息;
建立该第一可用接口信息和该第二可用接口信息之间的目标关联关系,以形成包括该目标关联关系的数据传输涵道。
根据本公开的一个或多个实施例,示例3提供了示例2的方法,该通过该数据传输涵道进行该小程序端与该网页端之间的数据传输,包括:
接收小程序端的该第一SDK模块发送的第一加密数据;
根据该目标关联关系从该第二可用接口信息中确定该网页端的第一目标接口;
通过该第一目标接口将该第一加密数据发送至网页端,以使网页端的第二SDK模块对该第一加密数据解密后得到该第一加密数据对应的第一传输数据。
根据本公开的一个或多个实施例,示例4提供了示例2的方法,该通过该数据传输涵道进行该小程序端与该网页端之间的数据传输,包括:
接收网页端的第二SDK模块发送的第二加密数据;
根据该目标关联关系从该第一可用接口信息中确定该小程序端的第二目标接口;
通过该第二目标接口将该第二加密数据发送至小程序端,以使该小程序端的第一SDK模块对该第二加密数据进行解密后得到该第二加密数据对应第二传输数据。
根据本公开的一个或多个实施例,示例5提供了示例1-4任一项所述的的方法,该方法还包括:
接收该小程序端发送的第一心跳信号和该网页端发送的第二心跳信号;
在确定未接收到该第一心跳信号或者第二心跳信号的情况下,向该小程序端和该网页端发送数据传输涵道中断的提示信息,以使该小程序端的第一SDK模块响应于接收到该提示信息,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息, 获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据;并使该网页端的第二SDK模块响应于接收到该提示信息,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
根据本公开的一个或多个实施例,示例6提供了一种数据传输方法,其特征在于,应用于小程序端,该小程序端包括第一SDK模块,该方法包括:
通过该第一SDK模块获取小程序端的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道;
通过该数据传输涵道与该网页端进行数据传输。
根据本公开的一个或多个实施例,示例7提供了示例6的方法,该方法还包括:
向该代理服务器发送第一心跳信号,以使该代理服务器根据该第一心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该小程序端发送数据传输涵道中断的提示信息。
根据本公开的一个或多个实施例,示例8提供了示例6的方法,该方法还包括:
在接收到该代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向网页端传输数据的第一指令,该第一指令中包括第三传输数据,生成该第三传输数据对应的第一哈希信息,获取该网页端的第一网址信息,将该第一哈希信息添加至该第一网址信息以生成第二网址信息,在该网页端拦截到该第二网址信息时,获取该第二网址信息中的该第一哈希信息,并根据该第一哈希信息确定该第三传输数据。
根据本公开的一个或多个实施例,示例9提供了一种数据传输方法,9应用于网页端,该网页端包括第二SDK模块,该方法包括:
通过该第二SDK模块获取该网页端的第二上下文信息,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系;
将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道;
通过该数据传输涵道与该小程序端进行数据传输。
根据本公开的一个或多个实施例,示例10提供了示例9的方法,该方法还包括:
向该代理服务器发送第二心跳信号,以使该代理服务器根据该第二心跳信号确定该数据传输涵道是否中断,并在确定该数据涵道中断的情况下,向该网页端发送数据传输涵道中断的提示信息。
根据本公开的一个或多个实施例,示例11提供了示例9的方法,该方法还包括:
在接收到代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向小程序端传输数据的第二指令的情况下,该第二指令中包括第四传输数据,生成该第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将该第二哈希信息添加至该第三网址信息,以生成第四网址信息,在小程序端加载该第四网址信息时,获取该第四网址信息中的第二哈希信息,根据该第二哈希信息确定该第四传输数据。
根据本公开的一个或多个实施例,示例12提供了一种数据传输装置,应用于代理服务器,该装置包括:
第一接收模块,用于接收小程序端的第一SDK模块发送的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
第二接收模块,用于接收网页端的第二SDK模块发送的第二上下文信息,该第二上下文信息,用于表征该第二SDK模块与该网页端的第二关联关系;
涵道建立模块,用于根据该第一上下文信息和该第二上下文信息建立该小程序端与该网页端之间的数据传输涵道;
数据传输模块,用于通过该数据传输涵道进行该小程序端与该网页端之间的数据传输。
根据本公开的一个或多个实施例,示例13提供了一种数据传输装置,应用于小程序端,该小程序端包括第一SDK模块,该装置包括:
第一获取模块,用于通过该第一SDK模块获取小程序端的第一上下文信息,该第一上下文信息用于表征该第一SDK模块与该小程序端的第一关联关系;
第一发送模块,用于将该第一上下文信息发送至代理服务器,以使该代理服务器根据该第一上下文信息和网页端发送的第二上下文信息建立该小程序端和该网页端之间的数据传输涵道;
第一传输模块,用于通过该数据传输涵道与该网页端进行数据传输。
根据本公开的一个或多个实施例,示例14提供了一种数据传输装置,应用于网页端,该网页端包括第二SDK模块,该装置包括:
第二获取模块,用于通过该第二SDK模块获取该网页端的第二上下文信息,该第二上下文信息用于表征该第二SDK模块与该网页端的第二关联关系;
第三发送模块,用于将该第二上下文信息发送至代理服务器,以使该代理服务器根据该第二上下文信息与小程序端发送的第一上下文信息建立该网页端与该小程序端之间的数据传输涵道;
第三传输模块,用于通过该数据传输涵道与该小程序端进行数据传输。
根据本公开的一个或多个实施例,示例15提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现以上示例1-11中任一项该方法的步骤。
根据本公开的一个或多个实施例,示例16提供了一种电子设备,包括:
存储装置,其上存储有计算机程序;
处理装置,用于执行该存储装置中的该计算机程序,以实现以上示例1-11中任一项该方法的步骤。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。

Claims (16)

  1. 一种数据传输方法,其特征在于,应用于代理服务器,所述方法包括:
    接收小程序端的第一SDK模块发送的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
    接收网页端的第二SDK模块发送的第二上下文信息,所述第二上下文信息,用于表征所述第二SDK模块与所述网页端的第二关联关系;
    根据所述第一上下文信息和所述第二上下文信息建立所述小程序端与所述网页端之间的数据传输涵道;
    通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一上下文信息和所述第二上下文信息建立所述小程序端与所述网页端之间的数据传输涵道,包括:
    获取所述第一上下文信息中的第一数据标识信息以及所述第二上下文信息中的第二数据标识信息;
    在所述第一数据标识信息与所述第二数据标识信息一致的情况下,获取所述第一上下文信息中的第一可用接口信息,以及所述第二上下文信息中的第二可用接口信息;
    建立所述第一可用接口信息和所述第二可用接口信息之间的目标关联关系,以形成包括所述目标关联关系的数据传输涵道。
  3. 根据权利要求2所述的方法,其特征在于,所述通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输,包括:
    接收小程序端的所述第一SDK模块发送的第一加密数据;
    根据所述目标关联关系从所述第二可用接口信息中确定所述网页端的第一目标接口;
    通过所述第一目标接口将所述第一加密数据发送至网页端,以使网页端的第二SDK模块对所述第一加密数据解密后得到所述第一加密数据对应的第一传输数据。
  4. 根据权利要求2所述的方法,其特征在于,所述通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输,包括:
    接收网页端的第二SDK模块发送的第二加密数据;
    根据所述目标关联关系从所述第一可用接口信息中确定所述小程序端的第二目标接口;
    通过所述第二目标接口将所述第二加密数据发送至小程序端,以使所述小程序端的第一SDK模块对所述第二加密数据进行解密后得到所述第二加密数据对应第二传输数据。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    接收所述小程序端发送的第一心跳信号和所述网页端发送的第二心跳信号;
    在确定未接收到所述第一心跳信号或者第二心跳信号的情况下,向所述小程序端和所述网页端发送数据传输涵道中断的提示信息,以使所述小程序端的第一SDK模块响应于接收到所述提示信息,若接收到向网页端传输数据的第一指令,所述第一指令中包括第三传输数据,生成所述第三传输数据对应的第一哈希信息,获取所述网页端的第一网址信息,将所述第一哈希信息添加至所述第一网址信息以生成第二网址信息,在所述网页端拦截到所述第二网址信息时,获取所述第二网址信息中的所述第一哈希信息,并根据所述第一哈希信息确定所述第三传输数据;并使所述网页端的第二SDK模块响应于接收到所述提示信息,若接收到向小程序端传输数据的第二指令的情况下,所述第二指令中包括第四传输数据,生成所述第四传输数据对应的第二哈希信息,控制小程序端的预设接口获取网页端的第三网址信息,并将所述第二哈希信息添加至所述第三网址信息,以生成第四网址信息,在小程序端加载所述第四网址信息时,获取所述第四网址信息中的第二哈希信息,根据所述第二哈希信息确定所述第四传输数据。
  6. 一种数据传输方法,其特征在于,应用于小程序端,所述小程序端包括第一SDK模块,所述方法包括:
    通过所述第一SDK模块获取小程序端的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
    将所述第一上下文信息发送至代理服务器,以使所述代理服务器根据所述第一上下文信息和网页端发送的第二上下文信息建立所述小程序端和所述网页端之间的数据传输涵道;
    通过所述数据传输涵道与所述网页端进行数据传输。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    向所述代理服务器发送第一心跳信号,以使所述代理服务器根据所述第一心跳信号确定所述数据传输涵道是否中断,并在确定所述数据涵道中断的情况下,向所述小程序端发送数据传输涵道中断的提示信息。
  8. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    在接收到所述代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向网页端传输数据的第一指令,所述第一指令中包括第三传输数据,生成所述第三传输数据对应的第一哈希信息,获取所述网页端的第一网址信息,将所述第一哈希信息添加至所述第一网址信息以生成第二网址信息,在所述网页端拦截到所述第二网址信息时,获取所述第二网址信息中的所述第一哈希信息,并根据所述第一哈希信息确定所述第三传输数据。
  9. 一种数据传输方法,其特征在于,应用于网页端,所述网页端包括第二SDK模块,所述方法包括:
    通过所述第二SDK模块获取所述网页端的第二上下文信息,所述第二上下文信息用于表征所述第二SDK模块与所述网页端的第二关联关系;
    将所述第二上下文信息发送至代理服务器,以使所述代理服务器根据所述第二上下文信息与小程序端发送的第一上下文信息建立所述网页端与所述小程序端之间的数据传输涵道;
    通过所述数据传输涵道与所述小程序端进行数据传输。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    向所述代理服务器发送第二心跳信号,以使所述代理服务器根据所述第二心跳信号确定所述数据传输涵道是否中断,并在确定所述数据涵道中断的情况下,向所述网页端发送数据传输涵道中断的提示信息。
  11. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    在接收到代理服务器发送的数据传输涵道中断的提示信息的情况下,若接收到向小程序端传输数据的第二指令的情况下,所述第二指令中包括第四传输数据,生成所述第四传输数据对应的第二哈希信息,控制小程序 端的预设接口获取网页端的第三网址信息,并将所述第二哈希信息添加至所述第三网址信息,以生成第四网址信息,在小程序端加载所述第四网址信息时,获取所述第四网址信息中的第二哈希信息,根据所述第二哈希信息确定所述第四传输数据。
  12. 一种数据传输装置,其特征在于,应用于代理服务器,所述装置包括:
    第一接收模块,用于接收小程序端的第一SDK模块发送的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
    第二接收模块,用于接收网页端的第二SDK模块发送的第二上下文信息,所述第二上下文信息,用于表征所述第二SDK模块与所述网页端的第二关联关系;
    涵道建立模块,用于根据所述第一上下文信息和所述第二上下文信息建立所述小程序端与所述网页端之间的数据传输涵道;
    数据传输模块,用于通过所述数据传输涵道进行所述小程序端与所述网页端之间的数据传输。
  13. 一种数据传输装置,其特征在于,应用于小程序端,所述小程序端包括第一SDK模块,所述装置包括:
    第一获取模块,用于通过所述第一SDK模块获取小程序端的第一上下文信息,所述第一上下文信息用于表征所述第一SDK模块与所述小程序端的第一关联关系;
    第一发送模块,用于将所述第一上下文信息发送至代理服务器,以使所述代理服务器根据所述第一上下文信息和网页端发送的第二上下文信息建立所述小程序端和所述网页端之间的数据传输涵道;
    第一传输模块,用于通过所述数据传输涵道与所述网页端进行数据传输。
  14. 一种数据传输装置,其特征在于,应用于网页端,所述网页端包括第二SDK模块,所述装置包括:
    第二获取模块,用于通过所述第二SDK模块获取所述网页端的第二上下文信息,所述第二上下文信息用于表征所述第二SDK模块与所述网页端的第二关联关系;
    第三发送模块,用于将所述第二上下文信息发送至代理服务器,以使所述代理服务器根据所述第二上下文信息与小程序端发送的第一上下文信息建立所述网页端与所述小程序端之间的数据传输涵道;
    第三传输模块,用于通过所述数据传输涵道与所述小程序端进行数据传输。
  15. 一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-11中任一项所述方法的步骤。
  16. 一种电子设备,其特征在于,包括:
    存储装置,其上存储有计算机程序;
    处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求1-11中任一项所述方法的步骤。
PCT/CN2022/114874 2021-09-23 2022-08-25 数据传输方法、装置、可读介质及电子设备 WO2023045694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111117221.3 2021-09-23
CN202111117221.3A CN113783966B (zh) 2021-09-23 2021-09-23 数据传输方法、装置、可读介质及电子设备

Publications (1)

Publication Number Publication Date
WO2023045694A1 true WO2023045694A1 (zh) 2023-03-30

Family

ID=78852986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/114874 WO2023045694A1 (zh) 2021-09-23 2022-08-25 数据传输方法、装置、可读介质及电子设备

Country Status (2)

Country Link
CN (1) CN113783966B (zh)
WO (1) WO2023045694A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783966B (zh) * 2021-09-23 2023-01-03 北京火山引擎科技有限公司 数据传输方法、装置、可读介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630512A (zh) * 2016-02-17 2016-06-01 北京高绎信息技术有限公司 通过软件开发工具包实现移动设备数据跟踪的方法及系统
CN110727431A (zh) * 2019-09-17 2020-01-24 阿里巴巴集团控股有限公司 小程序生成方法以及装置
CN111767091A (zh) * 2020-07-01 2020-10-13 百度在线网络技术(北京)有限公司 小程序获取用户信息的方法、装置、电子设备和存储介质
CN113783966A (zh) * 2021-09-23 2021-12-10 北京火山引擎科技有限公司 数据传输方法、装置、可读介质及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319483B (zh) * 2018-01-30 2021-07-09 腾讯科技(深圳)有限公司 网页处理方法、装置、终端及存储介质
CN110569078B (zh) * 2018-05-18 2023-08-08 广州腾讯科技有限公司 一种网页级程序的预加载方法和装置
CN110531962B (zh) * 2019-08-06 2023-11-17 上海连尚网络科技有限公司 小程序的开发处理方法、设备及计算机可读存储介质
CN110795672B (zh) * 2019-10-29 2022-09-09 百度在线网络技术(北京)有限公司 一种小程序的内容展现方法、装置、设备及介质
CN111580997A (zh) * 2020-05-20 2020-08-25 长沙米拓信息技术有限公司 一种应用与网站的内容同步方法、系统、设备及存储介质
CN112379863B (zh) * 2020-10-12 2024-05-28 杭州易现先进科技有限公司 跨浏览器和小程序的webGL开发方法、装置和计算机设备
CN112286656B (zh) * 2020-10-21 2023-08-29 百度在线网络技术(北京)有限公司 小程序模拟方法、装置、电子设备和计算机可读存储介质
CN112269959B (zh) * 2020-11-19 2024-05-24 北京有竹居网络技术有限公司 展示内容的控制方法、装置、可读介质和电子设备
CN113297453A (zh) * 2021-06-17 2021-08-24 北京有竹居网络技术有限公司 一种网络请求响应方法、装置、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630512A (zh) * 2016-02-17 2016-06-01 北京高绎信息技术有限公司 通过软件开发工具包实现移动设备数据跟踪的方法及系统
CN110727431A (zh) * 2019-09-17 2020-01-24 阿里巴巴集团控股有限公司 小程序生成方法以及装置
CN111767091A (zh) * 2020-07-01 2020-10-13 百度在线网络技术(北京)有限公司 小程序获取用户信息的方法、装置、电子设备和存储介质
CN113783966A (zh) * 2021-09-23 2021-12-10 北京火山引擎科技有限公司 数据传输方法、装置、可读介质及电子设备

Also Published As

Publication number Publication date
CN113783966A (zh) 2021-12-10
CN113783966B (zh) 2023-01-03

Similar Documents

Publication Publication Date Title
WO2021077833A1 (zh) 信息推送方法、设备、电子设备及计算机可读存储介质
WO2021057595A1 (zh) 信息推送方法、装置、电子设备和计算机可读介质
CN110535659B (zh) 用于处理数据请求的方法、装置、电子设备和计算机可读介质
CN111199037B (zh) 登录方法、系统和装置
WO2019015272A1 (zh) 信息处理方法和装置
US20230353515A1 (en) Information display method and apparatus, and electronic device
US11861381B2 (en) Icon updating method and apparatus, and electronic device
WO2022053004A1 (zh) 邮件处理方法、装置、电子设备及计算机可读介质
WO2021082693A1 (zh) 网页图像加载时长的获取方法、装置及电子设备
KR20130130985A (ko) 사용자단말과 외부장치 간 연결 시스템 및 방법
WO2023173954A1 (zh) 数据获取方法、装置、存储介质以及电子设备
WO2021088659A1 (zh) 电子签章载入方法和装置
WO2023045694A1 (zh) 数据传输方法、装置、可读介质及电子设备
WO2020259153A1 (zh) 特效同步的方法、装置及存储介质
CN111596992B (zh) 导航栏展示方法、装置和电子设备
CN112329044A (zh) 信息获取方法、装置、电子设备和计算机可读介质
WO2022218028A1 (zh) 页面加载方法、装置、设备及存储介质
WO2022206287A1 (zh) 商服交互方法、装置、设备及存储介质
CN113904773B (zh) Ssl连接建立方法、装置、电子设备及计算机可读存储介质
CN115374207A (zh) 业务处理方法及装置、电子设备和计算机可读存储介质
CN114116263A (zh) 用于浏览器中多页签通信的系统、方法、设备及介质
CN114780124A (zh) 差分升级方法、装置、介质及电子设备
CN113778566A (zh) 原生应用调用方法、装置、电子设备和计算机可读介质
WO2019223759A1 (zh) 用于显示无线接入点信息的方法和装置
CN112230986A (zh) 项目文件生成方法、装置、电子设备和计算机可读介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871747

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE