CN115221443B - Information transmission method, device, system, electronic equipment and storage medium - Google Patents

Information transmission method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN115221443B
CN115221443B CN202211118365.5A CN202211118365A CN115221443B CN 115221443 B CN115221443 B CN 115221443B CN 202211118365 A CN202211118365 A CN 202211118365A CN 115221443 B CN115221443 B CN 115221443B
Authority
CN
China
Prior art keywords
target
signaling
webpage
application program
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211118365.5A
Other languages
Chinese (zh)
Other versions
CN115221443A (en
Inventor
卢鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211118365.5A priority Critical patent/CN115221443B/en
Publication of CN115221443A publication Critical patent/CN115221443A/en
Application granted granted Critical
Publication of CN115221443B publication Critical patent/CN115221443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

Abstract

The disclosure relates to an information transmission method, an information transmission device, an information transmission system, electronic equipment and a storage medium, relates to the technical field of networks, and can improve the efficiency of acquiring real-time data information from a server corresponding to an application program by the webpage when the webpage is opened by the application program. The method comprises the following steps: determining a target callback function corresponding to a target webpage under the condition that the target webpage is opened through a target application program, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list; monitoring a target signaling through a target callback function under the condition that the target application program has the target callback function corresponding to the target webpage, wherein the target signaling is any signaling in a target signaling list and comprises target data information corresponding to the target webpage; and displaying target data information in the target signaling based on the target webpage. The method and the device are applied to a scene that a webpage is opened through an application program.

Description

Information transmission method, device, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to an information transmission method, apparatus, system, electronic device, and storage medium.
Background
Currently, in a scene of live video broadcasting through a live broadcasting application program, when an entertainment activity is performed in a virtual space, in an entertainment activity interface (an active web page opened by the live broadcasting application program, the active web page is constructed by a Hyper Text Mark Up Language 5 (html 5)), the active web page is required to send query information to a server (a server corresponding to the live broadcasting application program) at intervals of a certain time, and the change condition of data information in a background server is queried so as to obtain real-time data information from the background server interface.
In the method, query information is sent to the server at intervals of a certain time through the active web page, real-time data information is acquired from the server interface, the information is acquired in a polling mode, when the polling frequency is high (namely, the interval duration is short), the real-time data information can be acquired in time, but a lot of useless query requests are generated, and a plurality of servers are required to support high query rate per second (QPS) and consumed server resources; when the polling frequency is low (i.e., the interval duration is long), server resources can be saved, but the time required for acquiring real-time data information is increased, a longer time is required to wait (i.e., the message delay is long, the real-time performance is poor), and the use experience is reduced.
Therefore, when the webpage is opened through the application program, the efficiency of acquiring the real-time data information from the server corresponding to the application program by the webpage is poor.
Disclosure of Invention
The present disclosure provides an information transmission method, apparatus, system, electronic device, and storage medium, which can improve efficiency of acquiring real-time data information from a server corresponding to an application when the web page is opened by the application, and can also reduce resource consumption of the server. The technical scheme of the disclosure is as follows:
according to a first aspect of the present disclosure, there is provided an information transmission method applied to a client, where the client includes a target application and a target webpage, the method including: determining a target callback function corresponding to a target webpage under the condition that the target webpage is opened through a target application program, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, and the target signaling list comprises a plurality of signaling corresponding to the target webpage; monitoring a target signaling through a target callback function under the condition that the target application program has the target callback function corresponding to the target webpage, wherein the target signaling is any signaling in a target signaling list and comprises target data information corresponding to the target webpage; and displaying target data information in the target signaling based on the target webpage.
As can be seen from the above, when the target webpage is opened by the target application, it may be determined whether a target callback function corresponding to the target webpage registered on the target application exists, so that when it is determined that the target application exists the target callback function corresponding to the target webpage, the target signaling including the target data information corresponding to the target webpage is monitored by the target callback function, and the target data information in the target signaling is displayed based on the target webpage. By the implementation mode, under the condition that the target webpage is opened through the target application program, the target signaling comprising the target data information corresponding to the target webpage can be monitored in real time through the target callback function, so that the target data information in the target signaling is displayed based on the target webpage. Query information does not need to be sent to the server at intervals of a certain time by the target webpage so as to actively query and acquire the corresponding data information change condition in the background server, so that a lot of useless query request information is generated when the polling frequency is high, and resources are wasted; or, when the polling frequency is low, there is a long delay in the acquired data information. Therefore, when the webpage is opened through the application program, the efficiency of acquiring real-time data information from the server corresponding to the application program by the webpage can be improved, and meanwhile, the resource consumption of the server can be saved.
Optionally, the method specifically further includes: under the condition that the target callback function corresponding to the target webpage does not exist in the target application program, acquiring a target signaling list corresponding to the target webpage according to a target user account currently logged in the target application program; and registering a target callback function corresponding to the target webpage on the target application program based on the target signaling list.
As can be seen from the above, under the condition that the target callback function corresponding to the target webpage does not exist, the target signaling list corresponding to the target webpage can be obtained according to the currently logged target user account in the target application program, so as to register the target callback function corresponding to the target webpage on the target application program based on the target signaling list. By the implementation mode, whether the target callback function corresponding to the target webpage needs to be registered on the target application program or not can be accurately determined, and the efficiency of registering the target callback function corresponding to the target webpage on the target application program is improved.
Optionally, the method for acquiring the target signaling list corresponding to the target webpage according to the currently logged target user account in the target application program specifically includes: transmitting a target user account currently logged in by a target application program to a target webpage; and based on the target webpage, acquiring a target signaling list corresponding to the target webpage from the server according to the current login target user account in the target application program.
As can be seen from the above, specifically, the target user account currently logged in by the target application program may be transferred to the target webpage, so that the target signaling list corresponding to the target webpage is obtained from the server according to the target user account currently logged in the target application program based on the target webpage. By the implementation mode, the target signaling list corresponding to the target webpage can be accurately acquired from the server based on the target webpage and the current login target user account in the target application program, and the efficiency of acquiring the target signaling list corresponding to the target webpage is improved.
Optionally, the method for determining the target callback function corresponding to the target webpage when the target webpage is opened by the target application program specifically includes: under the condition that a target webpage is opened through a target application program, a callback function list is obtained, wherein the callback function list comprises the corresponding relation between the webpage and the callback function; and determining a target callback function corresponding to the target webpage from the callback function list.
As can be seen from the above, when the target webpage is opened by the target application, the target callback function corresponding to the target webpage can be determined from the callback function list by obtaining the callback function list including the correspondence between the webpage and the callback function. Through the implementation mode, a specific implementation mode for determining the target callback function corresponding to the target webpage is provided, and the accuracy and the efficiency for determining the target callback function corresponding to the target webpage are improved. Based on the target callback function, the target application program can transmit the data information corresponding to the received signaling to the target webpage.
Optionally, the target signaling list is a signaling list determined by the server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used for describing permissions of the user account, signaling corresponding to the web page, and monitoring conditions corresponding to each signaling, each target signaling in the target signaling list is a signaling corresponding to the target web page, and the permissions of the target user account satisfy the monitoring conditions of each target signaling in the target signaling list.
As can be seen from the above, the server may determine the target signaling list corresponding to the target webpage based on the target user account currently logged in by the target application program, and the configuration file used for describing the authority of the user account, the signaling corresponding to the webpage, and the monitoring condition corresponding to each signaling. Through the implementation mode, a specific implementation mode for determining the target signaling list is provided, and the accuracy and the efficiency of determining the target signaling list are improved. Based on the target signaling list, signaling that needs to be listened to by the target callback function may be determined.
According to a second aspect of the present disclosure, an information transmission system is provided, where the system includes a target application program, a target webpage and a server, where the server is configured to send a target signaling to the target application program according to changed target data information when data information corresponding to the target webpage changes; the target application program is used for monitoring a target signaling through a target callback function corresponding to a target webpage under the condition that the target webpage is opened, and transmitting the target signaling to the target webpage after the target signaling is monitored, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, the target signaling list comprises a plurality of signaling corresponding to the target webpage, and the target signaling is any one signaling in the target signaling list; the target webpage is used for displaying target data information in the target signaling.
Optionally, the target application program is further configured to, in the absence of a target callback function corresponding to the target web page, transfer a target user account currently logged in the target application program to the target web page; the target webpage is also used for sending a request for acquiring a target signaling list to the server according to a target user account currently logged in the target application program, and sending the target signaling list to the target application program after the target signaling list is acquired; the server is also used for responding to the request for obtaining the target signaling list, determining the target signaling list corresponding to the target user account according to the currently logged target user account and the configuration file in the target application program, and sending the target signaling list to the target webpage.
According to a third aspect of the present disclosure, there is provided an information transmission apparatus, specifically a client, the information transmission apparatus including a target application and a target web page, the information transmission apparatus including: the device comprises a determining unit, a processing unit, a display unit and an acquisition unit; the determining unit is configured to determine a target callback function corresponding to a target webpage under the condition that the target webpage is opened through a target application program, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, and the target signaling list comprises a plurality of signaling corresponding to the target webpage; the processing unit is configured to monitor a target signaling through a target callback function under the condition that the target application program has the target callback function corresponding to the target webpage, wherein the target signaling is any signaling in a target signaling list and comprises target data information corresponding to the target webpage; and the display unit is configured to display the target data information in the target signaling based on the target webpage.
Optionally, the obtaining unit is configured to, when the target application program does not have the target callback function corresponding to the target webpage, obtain a target signaling list corresponding to the target webpage according to a currently logged target user account in the target application program; and the processing unit is configured to execute target callback functions corresponding to the target webpage registered on the target application program based on the target signaling list.
Optionally, the processing unit is configured to perform transferring a target user account currently logged in by the target application to the target webpage; and the acquisition unit is configured to execute acquisition of a target signaling list corresponding to the target webpage from the server based on the target webpage according to the current login target user account in the target application program.
Optionally, the obtaining unit is configured to obtain a callback function list in a case that the target webpage is opened by the target application program, where the callback function list includes a correspondence between the webpage and the callback function; and the determining unit is configured to execute the target callback function corresponding to the target webpage determined from the callback function list.
Optionally, the target signaling list is a signaling list determined by the server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used to describe permissions of the user account, signaling corresponding to the web page, and monitoring conditions corresponding to each signaling, each target signaling in the target signaling list is a signaling corresponding to the target web page, and the permissions of the target user account satisfy the monitoring conditions of each target signaling in the target signaling list.
According to a fourth aspect of the present disclosure, there is provided an electronic apparatus including:
a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the above-mentioned optional information transmission methods of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, which, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above-mentioned first aspect optional information transmission methods.
According to a sixth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements any of the above-described optional information transmission methods of the first aspect.
According to a seventh aspect of the present disclosure, there is provided a chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a computer program or instructions to implement the optional information transmission method as in any one of the first aspects.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
based on any one of the above aspects, in the present disclosure, in a case where the target webpage is opened by the target application, it may be determined whether a target callback function corresponding to the target webpage registered on the target application exists, so that in a case where it is determined that the target application exists the target callback function corresponding to the target webpage, a target signaling including target data information corresponding to the target webpage is monitored by the target callback function, and the target data information in the target signaling is displayed based on the target webpage. By the implementation mode, under the condition that the target webpage is opened through the target application program, the target signaling comprising the target data information corresponding to the target webpage is monitored in real time through the target callback function, so that the target data information in the target signaling is displayed based on the target webpage. Query information does not need to be sent to the server at intervals of a certain time by the target webpage so as to actively query and acquire the corresponding data information change condition in the background server, so that a lot of useless query request information is generated when the polling frequency is high, and resources are wasted; or, when the frequency of polling is low, there is a long delay in the acquired data information. Therefore, when the webpage is opened through the application program, the efficiency of acquiring the real-time data information from the server corresponding to the application program by the webpage can be improved, and meanwhile, the resource consumption of the server can be saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating an information delivery system in accordance with an embodiment of the present disclosure;
fig. 2 is a schematic flow chart diagram illustrating an information transmission method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating another method of information transmission according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart diagram illustrating yet another information transmission method according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart diagram illustrating yet another information transmission method according to an embodiment of the present disclosure;
fig. 6 is a schematic flow chart diagram illustrating yet another information transmission method according to an embodiment of the present disclosure;
fig. 7 is a schematic flow chart diagram illustrating yet another information transmission method according to an embodiment of the present disclosure;
fig. 8 is a schematic flow chart diagram illustrating yet another information transmission method according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram illustrating an information transmission apparatus according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of still another information transmission apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that, the user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
First, an application scenario of the embodiment of the present disclosure is described. Currently, in a scene of live video broadcast through a live broadcast application, when entertainment activity is performed in a virtual space (e.g., a live broadcast room), an active web page constructed based on HTML5 needs to be opened through the live broadcast application, and the active web page needs to send query information to a server corresponding to the live broadcast application at intervals of a certain time (that is, data change conditions in an HTML5 perception background server are involved), query the activity data information change conditions in the background server, and acquire real-time activity data information from a background server interface. The polling mode of sending query information to a server at a certain interval and acquiring real-time activity data information from a server interface by an activity webpage has the following technical problems: when the polling frequency is high, although real-time data information can be obtained in time, a lot of useless query requests are generated, and a plurality of servers are required to support a high query rate per second and consumed server resources; when the polling frequency is low, although server resources can be saved, the time required for acquiring real-time data information is increased, the delay for acquiring data information is long, and the real-time performance of information is poor. Therefore, when the webpage is opened through the application program, the efficiency of acquiring the real-time data information from the server corresponding to the application program by the webpage is poor.
In order to solve the above problem, an embodiment of the present disclosure provides an information transmission method, which may determine whether a target callback function corresponding to a target webpage registered on a target application exists when the target webpage is opened by the target application, so as to monitor a target signaling including target data information corresponding to the target webpage through the target callback function and display the target data information in the target signaling based on the target webpage when the target application is determined to have the target callback function corresponding to the target webpage. By the implementation mode, under the condition that the target webpage is opened through the target application program, the target signaling comprising the target data information corresponding to the target webpage can be monitored in real time through the target callback function, so that the target data information in the target signaling is displayed based on the target webpage. Query information does not need to be sent to the server at intervals of a certain time by the target webpage so as to actively query and acquire the corresponding data information change condition in the background server, so that a lot of useless query request information is generated when the polling frequency is high, and resources are wasted; or, when the frequency of polling is low, there is a long delay in the acquired data information. Therefore, when the webpage is opened through the application program, the efficiency of acquiring real-time data information from the server corresponding to the application program by the webpage can be improved, and meanwhile, the resource consumption of the server can be saved.
The following describes an example of an information transmission method provided by the embodiments of the present disclosure with reference to the accompanying drawings:
fig. 1 is a schematic diagram of an information transmission system provided by an embodiment of the present disclosure, and as shown in fig. 1, the information transmission system may include a server 11 and a client 12 (only one client 12 is shown in fig. 1 by way of example, and there may be more clients in a specific implementation). Wherein a communication connection can be established between the server 11 and the client 12. The server 11 and the client 12 may be connected in a wired manner or in a wireless manner, which is not limited in this disclosure. After the web page is opened by the client 12, the signaling corresponding to the web page pushed by the server 11 can be acquired in real time based on the scheme provided by the present disclosure, and the data information corresponding to the signaling is forwarded to the web page, so that the real-time interaction of the data information between the web page and the server 11 is realized.
The server 11 is configured to perform data information interaction with the client 12, and may return a corresponding message signaling to the client 12 based on the received signaling sent by the client 12; specifically, the server 11 is configured to send a target signaling to the target application according to the changed target data information when the data information corresponding to the target webpage changes; the server 11 is further configured to, in response to the request for obtaining the target signaling list, determine, according to the target user account and the configuration file currently logged in the target application program, the target signaling list corresponding to the target user account, and send the target signaling list to the target web page.
And the client 12 is used for performing data information interaction with the server 11, and when a webpage is opened through the application program, implementing data information interaction between the application program and the server 11, and implementing data information interaction between the application program and the webpage. For example, when video live broadcasting is performed through the live application, a web page may be opened through the live application, and data information interaction between the live application and the server 11 and data information interaction between the live application and the web page are realized.
The client 12 includes a target application program and a target webpage, the target application program is configured to monitor a target signaling through a target callback function corresponding to the target webpage when the target webpage is opened, and transmit the target signaling to the target webpage after the target signaling is monitored, where the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used to indicate a corresponding relationship between the target webpage and a target signaling list, the target signaling list includes multiple signaling corresponding to the target webpage, and the target signaling is any signaling in the target signaling list; the target webpage is used for displaying target data information in the target signaling.
The target application program is also used for transmitting the current login target user account in the target application program to the target webpage under the condition that the target callback function corresponding to the target webpage does not exist; the target webpage is also used for sending a request for acquiring a target signaling list to the server according to the current login target user account in the target application program, and sending the target signaling list to the target application program after acquiring the target signaling list.
In an implementation manner, the server 11 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 11 may include a processor, memory, and a network interface, among others.
In one implementable manner, the client 12 is used to provide voice and/or data connectivity services to users. The client 12 may be variously named, for example, a UE end, a terminal unit, a terminal station, a mobile station, a remote terminal, a mobile device, a wireless communication device, a vehicular user equipment, a terminal agent, or a terminal device, etc.
Optionally, the client 12 may be a handheld device, an in-vehicle device, a wearable device, or a computer with a communication function, which is not limited in this disclosure. For example, the handheld device may be a smartphone. The in-vehicle device may be an in-vehicle navigation system. The wearable device may be a smart band. The computer may be a Personal Digital Assistant (PDA) computer, a tablet computer, and a laptop computer.
The information transmission method provided by the embodiment of the present disclosure may be applied to an electronic device, which may be the server 11 and the client 12 in the information transmission system shown in fig. 1. Taking the application of the information transmission method disclosed by the invention to a server in the process of executing a service as an example, the information transmission method provided by the embodiment of the disclosure is described in detail.
After introducing the application scenario and the information transmission system of the embodiment of the present disclosure, the information transmission method provided in the embodiment of the present disclosure is described in detail below with reference to the information transmission system shown in fig. 1.
As shown in fig. 2, a flowchart of an information transmission method according to an exemplary embodiment is applied to an electronic device, which may be a client (terminal device), where the client includes a target application and a target web page. The information transmission method may include S201 to S203.
S201, under the condition that the target webpage is opened through the target application program, determining a target callback function corresponding to the target webpage.
The target callback function is a callback function corresponding to a target webpage registered on a target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, and the target signaling list comprises a plurality of signaling corresponding to the target webpage.
In the embodiment of the disclosure, under the condition that the target webpage is opened through the target application program, whether a callback function corresponding to the target webpage registered on the target application program exists or not can be determined in real time, and under the condition that the target callback function corresponding to the target webpage exists, the target signaling is monitored through the target callback function so as to be transmitted to the target webpage, so that the target webpage displays the target data information in the target signaling.
Optionally, when the target webpage is opened by the target application program, it is first determined whether a callback function corresponding to the target webpage is registered on the target application program.
S202, under the condition that a target callback function corresponding to a target webpage exists in the target application program, monitoring a target signaling through the target callback function.
The target signaling is any signaling in the target signaling list, the target signaling includes target data information corresponding to the target webpage, and the target signaling is a signaling monitored by the target application program through the target callback function.
Optionally, in a live scenario, the target callback function may monitor a target signaling received by the target application program and sent by the server through a live signaling service, when the target application program monitors the target signaling through the target callback function, the target application program may send the target signaling to the target webpage, and the target webpage may display corresponding content in the interface according to target data information included in the target signaling. The target signaling is signaling sent to a target application program by the server when the target data information changes, and the target data information is data information corresponding to the target webpage.
It should be noted that the above-mentioned live signaling service is a long connection service based on a Transmission Control Protocol (TCP) between the client and the server, and the live signaling service can provide a real-time communication platform between the virtual space included in the target application program and the server. In the present disclosure, a live signaling service may provide a real-time communication platform between a target application and a server.
Illustratively, in a target virtual space executed by a target application, when a viewer user a triggers a client to send a broadcast message, the client may invoke a server corresponding to the target application through a live signaling service, so that the server pushes the broadcast message to all viewer users in the target virtual space.
Optionally, the target signaling may be an Action Signal signaling, the Action Signal signaling belongs to a signaling mode of a live signaling service, and the server only triggers a corresponding Action once every time the Action Signal signaling is issued, and is only effective for the audience in the virtual space at the current moment. Action Signal signaling is used to send a real-time notification message.
It is understood that the above target signaling is used for signaling that the server sends to the target application program in the client when the target data information in the target webpage changes (updates), so that the client updates the target webpage in real time (e.g., updates the displayed content, performs a certain function, etc.).
For example, assuming that the target webpage is a game activity interface opened by the target application program, any two users need to be matched as competition competitors, and after the server matches that the two users are competitors, the server may send a target signaling to the target application program, so that the target application program transmits the target signaling to the target webpage, and thus information of the matched competitors is displayed in the target webpage.
It should be noted that the target web page may be a web page constructed based on various HTML, for example, a web page constructed based on HTML5, where HTML5 is a markup language and includes a series of tags, and the tags can unify the document format on the network, so that the distributed resources are connected into a logical whole. HTML5 is a way of organizing information by associating words and diagrams in text with other information media through a hyperlink method. These interrelated information media may be in the same text, may be other files, or may be files on a computer that is geographically remotely located. The information resources distributed at different positions are connected in a random mode by the information organization mode, and convenience is provided for people to search and retrieve information.
It can be understood that when the user browses the web page by any means, the viewed content is originally in the HTML format, and needs to be converted into recognizable information through some technical processes. For example, in an entertainment activity interface (an entertainment web page opened by a live application), data changes in a background server need to be obtained through HTML 5.
It should be noted that the target signaling list is a signaling list corresponding to a target webpage, the target callback function is a callback function corresponding to the target webpage registered on the target application program based on a target tool, and the target tool is used for data information interaction between the target webpage and the target application program; wherein the computer languages used to construct the target web page and the target application are different.
S203, displaying target data information in the target signaling based on the target webpage.
Optionally, the target application may transmit the data information corresponding to the target signaling to the target webpage through the target tool and the target callback function. The target callback function is a callback function corresponding to a target webpage registered on the target application program based on the target tool.
Optionally, the target signaling list is a signaling list corresponding to a target webpage acquired in advance by the target application program, so that after receiving the target signaling sent by the server, it may be determined whether the target signaling is a signaling included in the target signaling list.
Optionally, because the target application program and the target webpage correspond to different computer languages, the target tool may be a technical tool for providing information interaction capability and acquiring information between the webpage and the application program. So that certain functions within the application can be invoked using the web page. For example, the target tool may be a JS Bridge.
It is understood that the JS Bridge is a Bridge built based on Java Script, one end is a web page (web) and the other end is an application program, so that the application program can call the code of the web page. The ability to leverage this language (Java Script) is required when a web page (a web page built based on HTML 5) sends a request to a server.
Optionally, after the target application receives the target signaling sent by the server, if it is determined that the target signaling is included in the target signaling list, it may be determined that the target signaling needs to be sent to the target webpage, so as to send the data information corresponding to the target signaling to the target webpage, and display the target data information in the target webpage.
It should be noted that, one callback function is used to monitor one or more corresponding signaling, and process the data information in the signaling through the callback function, and transmit the data information to the corresponding web page.
It can be understood that the service corresponding to the target signaling can be executed in the target webpage based on the data information corresponding to the target signaling.
Optionally, after the target webpage receives the data information corresponding to the target signaling sent by the target application program, the corresponding service may be executed based on the data information corresponding to the target signaling.
For example, when the target webpage is a competition activity interface opened by the target application program, after the server matches that two users are competitors, the server sends a target signaling to the target application program, and the target application program transmits the target signaling to the target webpage, so that when the target webpage receives the target signaling sent by the target application program, data information corresponding to the target signaling (that is, prompt information of the matched competitors) can be displayed in the target webpage.
The technical scheme provided by the embodiment at least has the following beneficial effects: the method includes the steps that whether a target callback function corresponding to a target webpage registered on the target application program exists or not can be determined under the condition that the target webpage is opened through the target application program, so that a target signaling including target data information corresponding to the target webpage is monitored through the target callback function under the condition that the target callback function corresponding to the target webpage exists in the target application program, and the target data information in the target signaling is displayed on the basis of the target webpage. By the implementation mode, under the condition that the target webpage is opened through the target application program, the target signaling comprising the target data information corresponding to the target webpage can be monitored in real time through the target callback function, so that the target data information in the target signaling is displayed based on the target webpage. Query information does not need to be sent to the server at intervals of a certain time by the target webpage so as to actively query and acquire the corresponding data information change condition in the background server, so that a lot of useless query request information is generated when the polling frequency is high, and resources are wasted; or, when the polling frequency is low, there is a long delay in the acquired data information. Therefore, when the webpage is opened through the application program, the efficiency of acquiring the real-time data information from the server corresponding to the application program by the webpage can be improved, and meanwhile, the resource consumption of the server can be saved.
In an implementable manner, as shown in fig. 3 in conjunction with fig. 2, the method may specifically further include S301 to S302.
S301, under the condition that the target application program does not have the target callback function corresponding to the target webpage, a target signaling list corresponding to the target webpage is obtained according to the currently logged target user account in the target application program.
Optionally, the target signaling list is a signaling list determined by the server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used to describe permissions of the user account, signaling corresponding to the web page, and monitoring conditions corresponding to each signaling, each target signaling in the target signaling list is a signaling corresponding to the target web page, and the permissions of the target user account satisfy the monitoring conditions of each target signaling in the target signaling list.
It can be understood that different user accounts have different functions and different permissions, so that for the same signaling, only part of the web pages corresponding to the user accounts can receive the signaling, and thus for any signaling, the signaling can have corresponding monitoring conditions, where the monitoring conditions are used to describe the permissions of the user accounts capable of monitoring the signaling. For example: the user account 1 has authority 1, the user account 2 has authority 2, the signaling A can be received only by the user having the authority 1, and the signaling B can be received by the user having the authority 1 and also by the user having the authority 2, so that when the target user account is the user account 1, the signaling A and the signaling B can be determined to be included in the signaling which can be received by the user, and when the target user account is the user account 2, the signaling B can be determined to be included in the signaling which can be received by the user, and therefore, a corresponding signaling list can be determined according to information such as account authority, account functions and the like corresponding to the user account.
Optionally, after the virtual space is opened by the target application program, the target webpage may be opened in the virtual space by the target application program.
It can be understood that the application scenario of the present disclosure may specifically be that the target webpage is a webpage opened by the target application program when the virtual space is displayed by the target application program.
Optionally, when the target webpage is opened by the target application program, it is required to determine whether a target callback function corresponding to the target webpage exists, and when it is determined that the target callback function is not registered on the target application program, the target callback function corresponding to the target webpage may be registered on the target application program for the first time based on the target tool.
Alternatively, in the case that it is determined that the target callback function has been registered on the target application program but the target callback function has expired, the target callback function corresponding to the target webpage may be registered on the target application program based on the target tool again.
It can be understood that, a target callback function corresponding to the target web page is registered on the target application program, so that the target web page formulates a target signaling list to be monitored to the target application program, and when the target web page is opened by the target application program, the target callback function can be registered on the application program by using the JS Bridge to determine that the target signaling list needs to be monitored by the target application program.
It should be noted that the callback function is a function method developed by HTML5 through Java Script, and is used for processing service logic of an Action Signal signaling, where one callback function has a corresponding relationship with one web page, and may be understood as a segment of code, one callback function may correspond to multiple signaling, and one signaling may correspond to multiple callback functions.
S302, registering a target callback function corresponding to the target webpage on the target application program based on the target signaling list.
Optionally, when the target application receives monitoring information sent by the target webpage, the target application may determine that the signaling included in the target signaling list needs to be monitored in real time, so that when the signaling included in the target signaling list is received, the signaling is sent to the target webpage, and data information corresponding to the signaling is sent to the target webpage.
It can be understood that, it is determined between the target web page and the target application program that the target application program needs to monitor the target signaling list, that is, it can be understood that the target callback function corresponding to the target web page is registered on the target application program.
In addition, when the steps S301 to S302 are included, the specific contents included in the step S202 are: and monitoring target signaling through the target callback function.
The technical scheme provided by the embodiment at least has the following beneficial effects: under the condition that the target callback function corresponding to the target webpage does not exist, a target signaling list corresponding to the target webpage can be obtained according to a target user account currently logged in the target application program, and the target callback function corresponding to the target webpage is registered on the target application program based on the target signaling list. By the implementation mode, whether the target callback function corresponding to the target webpage needs to be registered on the target application program or not can be accurately determined, and the efficiency of registering the target callback function corresponding to the target webpage on the target application program is improved.
In an implementable manner, with reference to fig. 3 and as shown in fig. 4, the method of "obtaining a target signaling list corresponding to a target webpage according to a currently logged target user account in a target application" in the above S301 may specifically include S401 to S402.
S401, under the condition that the target application program does not have the target callback function corresponding to the target webpage, transmitting the target user account currently logged in by the target application program to the target webpage.
Optionally, before receiving the target signaling sent by the target application program, the target web page needs to receive target indication information, which is sent by the target application program and used for indicating the target web page to obtain the corresponding target signaling list from the server.
Optionally, the target webpage sends a request for obtaining the target signaling list to the server according to the target user account, so that the server obtains the target signaling list corresponding to the target webpage according to the target user account.
Optionally, after the target webpage receives the target indication information sent by the target application program, a request for obtaining the target signaling list may be sent to the server according to the target user account in the target indication information, so that the server obtains the target signaling list corresponding to the target webpage according to the target user account.
S402, based on the target webpage, according to the current login target user account in the target application program, a target signaling list corresponding to the target webpage is obtained from the server.
Optionally, the target webpage receives a target signaling list sent by the server, and sends monitoring information to the target application program according to the target signaling list, so that the target application program registers a target callback function corresponding to the target webpage on the target application program according to the target signaling list in the monitoring information.
Optionally, after the server determines the target signaling list corresponding to the target user account according to the configuration file, the server may send the target signaling list to the target webpage, so that the target webpage may send monitoring information to the target application program according to the target signaling list, so that the target application program registers the target callback function corresponding to the target webpage on the target application program according to the target signaling list in the monitoring information.
Optionally, under the condition that it is determined that the target callback function corresponding to the target webpage does not exist, the target application program may send the target indication information to the target webpage, so that the target webpage registers the target callback function corresponding to the target webpage on the target application program based on the target tool according to the content indicated by the target indication information, and returns the monitoring information including the target signaling list corresponding to the target webpage to the target application program. Wherein the target callback function does not exist comprising: the target callback function is not registered on the target application program, the target callback function is overdue, and the target callback function is overdue after the registration is completed.
Optionally, the target indication information is used to indicate the target webpage to obtain a target signaling list corresponding to the target webpage from the server. The target indication information also includes a target user account currently logged in the target application program, that is, under the condition that a target callback function corresponding to the target webpage does not exist in the target application program, the target application account currently logged in the target application program can be acquired, and the target indication information is sent to the target webpage according to the target application account, so that the target webpage can respond to the target indication information and acquire a target signaling list corresponding to the target webpage from the server based on the target application account.
Optionally, in a case that it is determined that the target callback function corresponding to the target webpage does not exist, the target webpage may call the target tool, and send the monitoring information to the target application program. The monitoring information is used for indicating a target signaling list to be monitored by the target application program.
Optionally, when the target webpage is opened through the target application program, if it is determined that the target callback function corresponding to the target webpage does not exist, the target indication information needs to be sent to the target webpage first, so that when the target webpage receives the target indication information, the monitoring information can be sent to the target application program through the target tool, so that the target application program determines that the target signaling list needs to be monitored, and the target callback function corresponding to the target webpage is registered on the target application program.
The technical scheme provided by the embodiment at least has the following beneficial effects: specifically, a target signaling list corresponding to a target webpage can be acquired from a server according to a currently logged target user account in a target application program based on the target webpage by transmitting the currently logged target user account of the target application program to the target webpage. By the implementation mode, the target signaling list corresponding to the target webpage can be accurately acquired from the server based on the target webpage and the current login target user account in the target application program, and the efficiency of acquiring the target signaling list corresponding to the target webpage is improved.
In an implementable manner, as shown in fig. 5 in conjunction with fig. 2, the method in S201 may specifically include S501-S502.
S501, acquiring a callback function list under the condition that a target webpage is opened through a target application program.
The callback function list comprises the corresponding relation between the webpage and the callback function.
Optionally, when the target webpage is opened for the first time by the target application program, a request for acquiring the target signaling list may be sent to the server; or, in the case that the time interval between the two times of opening the target webpage by the target application program is greater than the preset time interval, the request for obtaining the target signaling list may be sent to the server.
It can be understood that the target signaling list may be a signaling list acquired from the server when the target callback function corresponding to the target webpage does not exist. For example, when the target application program opens the target webpage for the first time, the target callback function is not registered on the target application program at this time, and the signaling list may be acquired from the server; or, when the time interval between two times of opening the target webpage by the target application is greater than the preset time interval (that is, the target webpage is not opened for a long time), the target callback function registered on the target application is expired, and the signaling list can be obtained from the server again.
Optionally, the target application may send a request for obtaining the target signaling list to the server through the user Io Status interface, so that the server returns the required target signaling list through the user Io Status interface. It should be noted that, the user Io Status interface is an http api interface in the server, and the client requests the user Io Status interface to obtain corresponding information (for example, state information of a current user) each time the client enters a virtual space corresponding to the target application program.
Optionally, after the target webpage in the client requests the server to obtain the target signaling list, the target webpage may receive the target signaling list sent by the server. The target signaling list is a signaling list corresponding to a target user account determined by the server according to the configuration file; the target user account is a user account logged in the target application program.
Optionally, when the server receives a request for obtaining the target signaling list sent by the target webpage, the server may determine, through the configuration file, the target signaling list corresponding to the target user account logged in the target application program, and return the target signaling list to the target application program through the user Io Status interface.
It should be noted that the configuration file is used to indicate configuration information corresponding to different webpages, and the configuration files corresponding to different webpages are different, for example, the configuration file may indicate information such as a user account, an account authority, an account function, and the like corresponding to a webpage. The configuration file may be kconf, the server may obtain the target signaling list through kconf, and kconf may be used to make some configurations, set some contents, and the like. That is, different webpages (i.e., webpages corresponding to different user accounts) need to monitor different signaling, and when different webpages are opened through different terminal devices, the webpages may send requests to the userliostatus interface of the server, so that the server obtains a target signaling list through kconf.
S502, determining a target callback function corresponding to the target webpage from the callback function list.
Optionally, one callback function may correspond to multiple signaling, and one signaling may correspond to multiple callback functions, that is, one signaling is issued by the server and may be received by multiple application programs; different web pages may register the same callback function in the application. Therefore, after the callback function list is obtained, the target callback function corresponding to the target webpage can be determined from the callback functions corresponding to the plurality of webpages included in the callback function list based on the target user account corresponding to the target webpage, so that the target signaling is transmitted to the target webpage based on the target callback function.
The technical scheme provided by the embodiment at least has the following beneficial effects: under the condition that the target webpage is opened through the target application program, the target callback function corresponding to the target webpage can be determined from the callback function list by acquiring the callback function list comprising the corresponding relation between the webpage and the callback function. Through the implementation mode, a specific implementation mode for determining the target callback function corresponding to the target webpage is provided, and the accuracy and the efficiency for determining the target callback function corresponding to the target webpage are improved. Based on the target callback function, the target application program can transmit the data information corresponding to the received signaling to the target webpage.
As shown in fig. 6, a flowchart of an information transmission method according to an exemplary embodiment is shown and applied to a server. The information transmission method may include S601-S602.
S601, when the data information corresponding to the target webpage changes, the changed target data information is obtained.
Optionally, when the server detects that the data information corresponding to the target webpage changes, the changed target data information may be obtained, so as to send the changed target data information to the target application program through the target signaling.
S602, sending a target signaling to the target application program according to the target data information, so that the target application program transmits the target signaling to the target webpage after monitoring the target signaling through a target callback function corresponding to the target webpage.
The target callback function is a callback function corresponding to a target webpage registered on a target application program and used for indicating the corresponding relation between the target webpage and a target signaling list, the target signaling list comprises a plurality of signaling corresponding to the target webpage, and the target signaling is any signaling in the target signaling list.
Optionally, the server may send the target signaling to the target application program through the live signaling service, and when data information corresponding to the target webpage in the server changes (for example, data update, function change, and the like), the server may actively send the target signaling for indicating that the target data information corresponding to the target webpage changes to the target application program through the live signaling service.
Therefore, the target application program sends the data information corresponding to the target signaling to the target webpage so as to update the content corresponding to the target webpage.
The technical scheme provided by the embodiment at least has the following beneficial effects: when the server determines that the data information corresponding to the target webpage changes, the changed target data information is obtained, and a target signaling comprising the target data information is sent to the target application program, so that the target application program transmits the target signaling to the target webpage after monitoring the target signaling through a target callback function corresponding to the target webpage. By the implementation mode, when the data information corresponding to the target webpage changes, the server can actively send target signaling comprising the changed target data information to the target application program without passively waiting for the periodic inquiry of the client. Therefore, when the webpage is opened through the application program, the efficiency of acquiring real-time data information from the server corresponding to the application program by the webpage is improved, and meanwhile, the resource consumption caused by the periodic reply of the server when the client periodically polls can be saved.
In an implementable manner, in conjunction with fig. 6, as shown in fig. 7, before the method in S602 above, S701-S702 may be specifically further included.
S701, receiving a request for acquiring a target signaling list sent by a target webpage.
The request comprises a target user account currently logged in the target application program.
Optionally, when the target webpage is opened for the first time by the target application program or the time interval between the target webpage and the target application program for opening the target webpage twice is greater than the preset time interval, the target webpage may send a request for obtaining a target signaling list corresponding to the target webpage to the server, so that the server returns the target signaling list according to the request including the target user account currently logged in the target application program.
S702, determining a target signaling list corresponding to the target user account according to the configuration file, and sending the target signaling list to the target webpage.
The configuration file comprises configuration information, and the configuration information can be understood as corresponding relation among a target user account, account authority and account functions.
Optionally, after the server receives a request for obtaining the target signaling list sent by the target application program, the server may determine, according to the configuration file, the target signaling list corresponding to the target user account logged in the target application program, and send the target signaling list to the target application program, and specifically, may return the target signaling list to the target application program through the user Io Status interface.
Optionally, after determining the target user account from the received request for acquiring the target signaling list sent by the target webpage, the server may query the target user account through the configuration file to determine information such as corresponding account permissions and account functions, thereby determining a plurality of signaling that can be received by the target webpage for logging in the target user account according to the information such as the account permissions and the account functions corresponding to the user account, and obtaining the target signaling list including the plurality of signaling that can be received by the target webpage.
The technical scheme provided by the embodiment at least has the following beneficial effects: when receiving a request for acquiring a target signaling list sent by a target webpage, the server may determine the target signaling list corresponding to the target user account according to a configuration file including configuration information, and send the target signaling list to the target webpage. Through the implementation mode, a specific implementation mode for determining the target signaling list is provided, and the accuracy and the efficiency of determining the target signaling list are improved. Based on the target signaling list, signaling that needs to be listened to by the target callback function may be determined.
The present disclosure also provides an information transmission system, including: the system comprises a target application program, a target webpage and a server, wherein the server is used for sending a target signaling to the target application program according to changed target data information when the data information corresponding to the target webpage is changed; the target application program is used for monitoring a target signaling through a target callback function corresponding to a target webpage under the condition that the target webpage is opened, and transmitting the target signaling to the target webpage after the target signaling is monitored, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, the target signaling list comprises a plurality of signaling corresponding to the target webpage, and the target signaling is any signaling in the target signaling list; the target webpage is used for displaying target data information in the target signaling.
Optionally, the target application program is further configured to, in the absence of a target callback function corresponding to the target web page, transfer the target user account currently logged in the target application program to the target web page; the target webpage is also used for sending a request for acquiring a target signaling list to the server according to a target user account currently logged in the target application program, and sending the target signaling list to the target application program after the target signaling list is acquired; the server is also used for responding to the request for obtaining the target signaling list, determining the target signaling list corresponding to the target user account according to the currently logged target user account and the configuration file in the target application program, and sending the target signaling list to the target webpage.
For example, as shown in fig. 8, in a case that a virtual space is displayed through a live application in a terminal device, when the virtual space displays an entertainment activity link, a user may trigger the terminal device to open an active web page through the application, and while the active web page (i.e., a target web page) is opened, the active web page sends a request for obtaining a target signaling list corresponding to the active web page to a server through a target interface (e.g., a user Io Status interface), so that the server determines the target signaling list corresponding to the active web page through configuration information and returns the target signaling list to the active web page through the target interface. Further, after the active web page receives the target signaling list, the active web page sends the target signaling list to the application program, so that the active web page registers the signaling list needing the application program to listen to on the application program through the target tool (e.g., jsbridge), so that the application program keeps listening whether the received signaling is the signaling in the signaling list.
Further, under the condition that the application program determines the callback function corresponding to the active webpage, when the data information corresponding to the active webpage in the server changes, the server pushes the signaling for indicating the change of the data information to the application program through long connection by calling the live signaling service, so that the application program transparently transmits the data information corresponding to the signaling to the active webpage based on the callback function corresponding to the active webpage, the active webpage is updated, and the real-time data information is displayed to the user.
In combination with the above example, the present disclosure is configured to, in a case that the target webpage is opened by the application program, implement the information interaction capability between the application program and the target webpage through the JS Bridge, so that the target webpage is aware of the signaling data acquired by the application program. And connecting the signaling service, the JS Bridge and the application program to open a data channel, and sending the signaling data sent by the server to the target webpage through the link. The method has the advantages of fully utilizing technical advantages, having high service stability, realizing real-time data push, improving user experience, reducing server resource cost and saving resources.
It is understood that the above method may be implemented by an information transmission apparatus. In order to realize the above functions, the information transmission device includes a hardware structure and/or a software module that performs each function. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments.
The embodiment of the present disclosure may perform division of functional modules on the information transmission device and the like according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present disclosure is illustrative, and is only one logical function division, and there may be another division manner in actual implementation.
Fig. 9 is a schematic diagram illustrating a structure of an information transmission apparatus according to an exemplary embodiment. Referring to fig. 9, the information transmission apparatus 100 may include: a determination unit 1001, a processing unit 1002, a display unit 1003, and an acquisition unit 1004.
The determining unit 1001 is configured to determine a target callback function corresponding to a target webpage when the target webpage is opened by a target application program, where the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating a corresponding relationship between the target webpage and a target signaling list, and the target signaling list includes multiple signaling corresponding to the target webpage; for example, the determination unit 1001 may be used to perform the steps in step 201 in fig. 2.
The processing unit 1002 is configured to monitor a target signaling through a target callback function when the target application program has the target callback function corresponding to the target webpage, where the target signaling is any signaling in a target signaling list, and the target signaling includes target data information corresponding to the target webpage; for example, the processing unit 1002 may be configured to perform the steps in step 202 in fig. 2.
A display unit 1003 configured to perform presentation of target data information in the target signaling based on the target web page; for example, the display unit 1003 may be used to perform the step in step 203 in fig. 2.
Optionally, the obtaining unit 1004 is configured to, in a case that the target callback function corresponding to the target webpage does not exist in the target application, obtain a target signaling list corresponding to the target webpage according to a target user account currently logged in the target application; for example, the obtaining unit 1004 may be configured to perform the step in step 301 in fig. 3.
The processing unit 1002 is configured to execute a target callback function corresponding to the target webpage registered on the target application program based on the target signaling list. For example, the processing unit 1002 may be configured to perform the steps in step 302 in fig. 3.
Optionally, the processing unit 1002 is configured to perform transferring a target user account currently logged in by the target application to the target webpage; for example, the processing unit 1002 may be configured to perform the steps in step 401 in fig. 4.
The obtaining unit 1004 is configured to execute obtaining, based on the target web page, a target signaling list corresponding to the target web page from the server according to the target user account currently logged in the target application program. For example, the obtaining unit 1004 may be configured to perform the steps in step 402 in fig. 4.
Optionally, the obtaining unit 1004 is configured to, in a case that the target webpage is opened by the target application program, obtain a callback function list, where the callback function list includes a correspondence between the webpage and the callback function; for example, the obtaining unit 1004 may be used to perform the steps in step 501 in fig. 5.
A determining unit 1001 configured to execute a target callback function corresponding to a target web page determined from the callback function list; for example, the determination unit 1001 may be used to perform the steps in step 502 in fig. 5.
Optionally, the target signaling list is a signaling list determined by the server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used to describe permissions of the user account, signaling corresponding to the web page, and monitoring conditions corresponding to each signaling, each target signaling in the target signaling list is a signaling corresponding to the target web page, and the permissions of the target user account satisfy the monitoring conditions of each target signaling in the target signaling list.
As above, the embodiment of the present disclosure may perform division of functional modules on an electronic device according to the above method example. The integrated module can be realized in a hardware form, and can also be realized in a software functional module form. In addition, it should be further noted that the division of the modules in the embodiments of the present disclosure is schematic, and is only a logic function division, and there may be another division manner in actual implementation. For example, the functional blocks may be divided for the respective functions, or two or more functions may be integrated into one processing block.
With regard to the information transmission apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a schematic structural diagram of an information transmission device 90 provided by the present disclosure. As shown in fig. 10, the information transfer device 90 may include at least one processor 901 and a memory 903 for storing instructions executable by the processor 901. Wherein the processor 901 is configured to execute the instructions in the memory 903 to implement the information transmission method in the above embodiments.
Additionally, information transfer device 90 may also include a communication bus 902 and at least one communication interface 904.
The processor 901 may be a CPU, a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of programs in accordance with the disclosed aspects.
Communication bus 902 may include a path that transfers information between the aforementioned components.
Communication interface 904 may be implemented using any transceiver or the like for communicating with other devices or communication networks, such as ethernet, radio Access Network (RAN), wireless Local Area Networks (WLAN), etc.
The memory 903 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and connected to the processing unit by a bus. The memory may also be integrated with the processing unit as a volatile storage medium in the CPU.
The memory 903 is used for storing instructions for executing the disclosed solution, and is controlled by the processor 901 to execute. The processor 901 is configured to execute instructions stored in the memory 903, thereby implementing functions in the disclosed methods.
In particular implementations, processor 901 may include one or more CPUs, such as CPU0 and CPU1 in fig. 10, as an example.
In one implementation, information transfer device 60 may include multiple processors, such as processor 901 and processor 907 of fig. 10, for example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores that process data (e.g., computer program instructions).
In one implementation, the information transmission apparatus 90 may further include an output device 905 and an input device 906. An output device 905, which is in communication with the processor 901, may display information in a variety of ways. For example, the output device 905 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device 906, which is in communication with the processor 901, may accept input from a user in a variety of ways. For example, the input device 906 may be a mouse, keyboard, touch screen device, or sensing device, among others.
Those skilled in the art will appreciate that the configuration shown in fig. 10 does not constitute a limitation of the information transmission device 90, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
The present disclosure also provides a computer-readable storage medium, on which instructions are stored, and when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information transmission method provided by the embodiment of the present disclosure.
The embodiment of the present disclosure further provides a computer program product containing instructions, which when run on an electronic device, causes the electronic device to execute the information transmission method provided by the embodiment of the present disclosure.
The embodiment of the present disclosure also provides an information transmission system, as shown in fig. 1, the system includes a server 11 and a client 12. The server 11 and the client 12 are respectively configured to execute corresponding steps in the foregoing embodiments of the present disclosure, so that the information transmission system solves the technical problem solved by the embodiments of the present disclosure and achieves the technical effect achieved by the embodiments of the present disclosure, which is not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An information transmission method applied to a client, wherein the client comprises a target application program and a target webpage, and the method comprises the following steps:
determining a target callback function corresponding to the target webpage under the condition that the target webpage is opened through the target application program, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, and the target signaling list comprises a plurality of signaling corresponding to the target webpage;
monitoring a target signaling through the target callback function under the condition that the target application program has the target callback function corresponding to the target webpage, wherein the target signaling is any signaling in the target signaling list, and the target signaling comprises target data information corresponding to the target webpage;
and displaying the target data information in the target signaling based on the target webpage.
2. The method of claim 1, further comprising:
under the condition that the target application program does not have the target callback function corresponding to the target webpage, acquiring a target signaling list corresponding to the target webpage according to a currently logged target user account in the target application program;
and registering the target callback function corresponding to the target webpage on the target application program based on the target signaling list.
3. The method according to claim 2, wherein the obtaining a target signaling list corresponding to the target webpage according to the currently logged target user account in the target application program comprises:
transmitting the current login target user account of the target application program to the target webpage;
and acquiring the target signaling list corresponding to the target webpage from a server according to the current login target user account in the target application program based on the target webpage.
4. The method of claim 1, wherein determining the target callback function corresponding to the target webpage when the target webpage is opened by the target application comprises:
acquiring a callback function list under the condition that the target webpage is opened through the target application program, wherein the callback function list comprises the corresponding relation between the webpage and the callback function;
and determining the target callback function corresponding to the target webpage from the callback function list.
5. The method according to claim 2 or 3, wherein the target signaling list is a signaling list determined by a server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used for describing authority of the user account, signaling corresponding to a webpage and a monitoring condition corresponding to each signaling, each target signaling in the target signaling list is the signaling corresponding to the target webpage, and the authority of the target user account satisfies the monitoring condition of each target signaling in the target signaling list.
6. An information transmission system, comprising a target application, a target web page and a server, wherein,
the server is used for sending a target signaling to the target application program according to the changed target data information when the data information corresponding to the target webpage changes;
the target application program is used for monitoring a target signaling through a target callback function corresponding to the target webpage under the condition that the target webpage is opened, and transmitting the target signaling to the target webpage after the target signaling is monitored, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating the corresponding relation between the target webpage and a target signaling list, the target signaling list comprises a plurality of signaling corresponding to the target webpage, and the target signaling is any one of the signaling lists;
the target webpage is used for displaying the target data information in the target signaling.
7. The system of claim 6, wherein the target application is further configured to, in the absence of the target callback function corresponding to the target webpage, transfer the target user account currently logged in the target application to the target webpage;
the target webpage is also used for sending a request for acquiring the target signaling list to the server according to the target user account currently logged in the target application program, and sending the target signaling list to the target application program after acquiring the target signaling list;
the server is further configured to, in response to the request for obtaining the target signaling list, determine, according to a target user account and a configuration file currently logged in the target application program, the target signaling list corresponding to the target user account, and send the target signaling list to the target webpage.
8. An information transfer apparatus, in particular a client, comprising a target application and a target web page, the information transfer apparatus comprising:
the determining unit is configured to determine a target callback function corresponding to the target webpage when the target webpage is opened through the target application program, wherein the target callback function is a callback function corresponding to the target webpage registered on the target application program and is used for indicating a corresponding relation between the target webpage and a target signaling list, and the target signaling list comprises a plurality of signaling corresponding to the target webpage;
the processing unit is configured to monitor a target signaling through the target callback function when the target callback function corresponding to the target webpage exists in the target application program, wherein the target signaling is any signaling in the target signaling list, and the target signaling comprises target data information corresponding to the target webpage;
a display unit configured to perform presentation of the target data information in the target signaling based on the target webpage.
9. The information transmission apparatus according to claim 8, wherein the obtaining unit is configured to, in a case that the target callback function corresponding to the target webpage does not exist in the target application, obtain a target signaling list corresponding to the target webpage according to a target user account currently logged in the target application;
the processing unit is configured to perform registration of the target callback function corresponding to the target webpage on the target application program based on the target signaling list.
10. The information transmission apparatus according to claim 9, wherein the processing unit is configured to perform transferring a target user account currently logged in by the target application to the target webpage;
the obtaining unit is configured to execute obtaining, based on the target webpage, the target signaling list corresponding to the target webpage from a server according to a target user account currently logged in the target application program.
11. The information transmission apparatus according to claim 8, wherein the acquisition unit is configured to execute, in a case where the target web page is opened by the target application, acquiring a callback function list including a correspondence relationship between a web page and a callback function;
the determining unit is configured to execute the target callback function corresponding to the target webpage determined from the callback function list.
12. The information transmission apparatus according to claim 9 or 10, wherein the target signaling list is a signaling list determined by the server based on a target user account currently logged in by the target application program and a configuration file, the configuration file is used to describe an authority of the user account, signaling corresponding to a web page, and a monitoring condition corresponding to each of the signaling, each of the target signaling in the target signaling list is a signaling corresponding to the target web page, and the authority of the target user account satisfies the monitoring condition of each of the target signaling in the target signaling list.
13. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information transmission method of any one of claims 1-5.
14. A computer-readable storage medium having instructions stored thereon, which when executed by a processor of an electronic device, enable the electronic device to perform the information transmission method of any one of claims 1-5.
CN202211118365.5A 2022-09-15 2022-09-15 Information transmission method, device, system, electronic equipment and storage medium Active CN115221443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211118365.5A CN115221443B (en) 2022-09-15 2022-09-15 Information transmission method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211118365.5A CN115221443B (en) 2022-09-15 2022-09-15 Information transmission method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115221443A CN115221443A (en) 2022-10-21
CN115221443B true CN115221443B (en) 2023-01-20

Family

ID=83617572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211118365.5A Active CN115221443B (en) 2022-09-15 2022-09-15 Information transmission method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115221443B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200585A (en) * 2013-02-18 2013-07-10 大唐移动通信设备有限公司 Signaling service subsystem and expanding counter processing system and method
CN104580209A (en) * 2015-01-06 2015-04-29 烽火通信科技股份有限公司 Device and method for implementing multi-platform message processing
CN104737158A (en) * 2013-03-13 2015-06-24 华为技术有限公司 Network data processing method, device, and terminal
CN111131442A (en) * 2019-12-19 2020-05-08 广州品唯软件有限公司 Webpage data monitoring method, terminal equipment and readable storage medium
CN111159614A (en) * 2019-12-30 2020-05-15 北京金堤科技有限公司 Webpage resource acquisition method and device
CN113449218A (en) * 2020-08-05 2021-09-28 北京新氧万维科技咨询有限公司 Adaptation processing method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795195B (en) * 2019-10-31 2023-09-26 百度在线网络技术(北京)有限公司 Webpage rendering method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200585A (en) * 2013-02-18 2013-07-10 大唐移动通信设备有限公司 Signaling service subsystem and expanding counter processing system and method
CN104737158A (en) * 2013-03-13 2015-06-24 华为技术有限公司 Network data processing method, device, and terminal
CN104580209A (en) * 2015-01-06 2015-04-29 烽火通信科技股份有限公司 Device and method for implementing multi-platform message processing
CN111131442A (en) * 2019-12-19 2020-05-08 广州品唯软件有限公司 Webpage data monitoring method, terminal equipment and readable storage medium
CN111159614A (en) * 2019-12-30 2020-05-15 北京金堤科技有限公司 Webpage resource acquisition method and device
CN113449218A (en) * 2020-08-05 2021-09-28 北京新氧万维科技咨询有限公司 Adaptation processing method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式Web Server的设计与实现;史洁 等;《中国现代教育装备》;20120610;全文 *

Also Published As

Publication number Publication date
CN115221443A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
KR102415845B1 (en) Internet of Things Resource Subscription Methods, Devices, and Systems
US7761522B2 (en) System and method for providing asynchronous notifications using synchronous data sources
US20160308996A1 (en) Apparatus and Method for Context-Aware Mobile Data Management
US20100077035A1 (en) Optimized Polling in Low Resource Devices
KR20200092249A (en) Method, apparatus and system for slicing live streaming
WO2012151980A1 (en) Service processing server, system, and method
CN108228625B (en) Push message processing method and device
WO2022199376A1 (en) Content printing method and apparatus, and device and storage medium
CN112600881A (en) Method, device, server and storage medium for providing service of internet of things
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN114979024A (en) Computing power network transaction method and device, computer readable medium and electronic equipment
WO2020233168A1 (en) Network storage method and apparatus for picture type comment data, and electronic device and medium
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN110798495B (en) Method and server for end-to-end message push in cluster architecture mode
CN115221443B (en) Information transmission method, device, system, electronic equipment and storage medium
CN112769671B (en) Message processing method, device and system
CN113824675B (en) Method and device for managing login state
CN111245874B (en) Information pushing method, device, server and storage medium
CN109600452B (en) Server cluster, message pushing method and related server
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
CN113542424A (en) Data processing method, device, equipment and computer program product
CN103188323A (en) System and method for providing Web services based on user mainframe cache equipment
KR20120097947A (en) Advertising system using push notification, advertising method performed on advertising system and computing device for advertisement using push notification
CN112565173B (en) Method and apparatus for message processing
KR101690604B1 (en) Chatting system and method based on wire/wireless web

Legal Events

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