CN110618768A - Information presentation method and device - Google Patents
Information presentation method and device Download PDFInfo
- Publication number
- CN110618768A CN110618768A CN201910204778.7A CN201910204778A CN110618768A CN 110618768 A CN110618768 A CN 110618768A CN 201910204778 A CN201910204778 A CN 201910204778A CN 110618768 A CN110618768 A CN 110618768A
- Authority
- CN
- China
- Prior art keywords
- interactive interface
- information
- target interactive
- instruction
- terminal
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure discloses an information presentation method and device. One embodiment of the method comprises: receiving an information acquisition request sent by a user, wherein the information acquisition request comprises address information of information to be acquired; based on the address information and a pre-established communication protocol, sending a protocol message to a target interactive interface corresponding to an address indicated by the address information so as to establish communication connection between the current interactive interface and the target interactive interface; and responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting the information to be acquired. The implementation mode reduces the coupling degree among the interfaces, improves the independence among the interfaces, enables the developed application to be more flexible, and improves the running efficiency of the application.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to an information presentation method and device.
Background
With the development of internet technology, more and more users prefer to acquire information, purchase, pay fees, and the like through applications installed on terminals. In order to meet the user's preference, more and more third parties develop various applications based on terminal systems. Developing an application can generally be viewed as an engineering project.
In the related art, different interactive interfaces and different positions in the interactive interfaces in the application realize different functions, and the different interactive interfaces are generally regarded as different modules, so that the application is developed in a modularized manner. Typically, each module is provided with a header file. When a reference is required between modules, the header files of the modules are typically referenced. Then, an instance object is created by utilizing the class of the header file to realize the jump of the page.
Disclosure of Invention
The embodiment of the disclosure provides an information presentation method and device.
In a first aspect, an embodiment of the present disclosure provides an information presenting method, where the method includes: receiving an information acquisition request sent by a user, wherein the information acquisition request comprises address information of information to be acquired; based on the address information and a pre-established communication protocol, sending a protocol message to a target interactive interface corresponding to an address indicated by the address information so as to establish communication connection between the current interactive interface and the target interactive interface; and responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting the information to be acquired.
In some embodiments, receiving an information acquisition request sent by a user includes one of: receiving the click operation of a user on the current interactive interface; and receiving the operation of the user for inputting information to the dialog box presented by the current interactive interface.
In some embodiments, in response to receiving a successful connection establishment instruction returned by the target interactive interface within a preset time period, presenting information to be acquired includes: determining whether the instruction triggered by the information acquisition request comprises an instruction linked to a target interactive interface; and responding to the instruction comprising the link to the target interactive interface, and jumping to the target interactive interface from the current interactive interface to present the information to be acquired.
In some embodiments, the method further comprises: in response to determining that the instruction linked to the target interactive interface is not included, sending an information acquisition request to the target interactive interface; and receiving information returned by the target interactive interface to present in the current interactive interface.
In some embodiments, the method further comprises: responding to a command that connection establishment is successful and returned by the target interactive interface is not received within a preset time period, and sending an information acquisition request comprising the version number of the current interactive interface to the server so that the server downloads the target interactive interface; and receiving an instruction of successful downloading of the target interactive interface returned by the server, acquiring information from the target interactive interface, and presenting the information to be acquired.
In some embodiments, the protocol packet includes an application identifier for indicating a terminal application where the target interactive interface is located; and the method further comprises: determining whether the current interactive interface and the target interactive interface are positioned in the same terminal application or not based on the application identification; in response to the fact that the current interactive interface and the target interactive interface are located in different terminal applications, whether a command of successful connection establishment returned by the target interactive interface is received within a preset time period is determined; in response to the fact that a successful connection establishment instruction returned by the target interactive interface is not received within a preset time period, traversing the terminal equipment, and determining whether a terminal application matched with the terminal identification is installed or not; and responding to the terminal application which is determined not to be installed in the terminal equipment and matched with the terminal identification, and sending an instruction for instructing downloading of the terminal application which is matched with the terminal identification.
In a second aspect, an embodiment of the present disclosure provides an information presenting apparatus, including: the information acquisition device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive an information acquisition request sent by a user, and the information acquisition request comprises address information of information to be acquired; the sending unit is configured to send the protocol message to a target interactive interface corresponding to the address indicated by the address information based on the address information and a pre-established communication protocol so as to establish communication connection between the current interactive interface and the target interactive interface; and the presentation unit is configured to respond to a command of successful connection establishment returned by the target interactive interface within a preset time period and present the information to be acquired.
In some embodiments, the receiving unit is configured to one of: receiving the click operation of a user on the current interactive interface; and receiving the operation of the user for inputting information to the dialog box presented by the current interactive interface.
In some embodiments, the presentation unit is configured to: determining whether the instruction triggered by the information acquisition request comprises an instruction linked to a target interactive interface; and responding to the instruction comprising the link connected to the target interactive interface, and jumping from the current interactive interface to the target interactive interface to present the information to be acquired.
In some embodiments, the apparatus further comprises: a first sending subunit configured to send an information acquisition request to the target interactive interface in response to determining that the instruction linked to the target interactive interface is not included; and the receiving subunit is configured to receive the information returned by the target interactive interface so as to present in the current interactive interface.
In some embodiments, the apparatus further comprises: the second sending subunit is configured to respond to a command of successful connection establishment that is not received within a preset time period and returned by the target interactive interface, and send an information acquisition request including the version number of the current interactive interface to the server so that the server downloads the target interactive interface; and the acquisition subunit is configured to receive an instruction of successful downloading of the target interactive interface returned by the server, acquire information from the target interactive interface and present the information to be acquired.
In some embodiments, the protocol packet includes an application identifier for indicating a terminal application where the target interactive interface is located; and the apparatus further comprises: the first determining subunit is configured to determine whether the current interactive interface and the target interactive interface are located in the same terminal application based on the application identifier; the second determining subunit is configured to determine whether an instruction of successful connection establishment returned by the target interactive interface is received within a preset time period in response to determining that the current interactive interface and the target interactive interface are located in different terminal applications; the third determining subunit is configured to, in response to determining that the instruction of successful connection establishment returned by the target interactive interface is not received within the preset time period, traverse the terminal device and determine whether the terminal application matched with the terminal identifier is installed; and a third transmitting subunit configured to transmit an instruction for instructing downloading of the terminal application matching the terminal identification in response to determining that the terminal application matching the terminal identification is not installed in the terminal device.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in any of the implementations of the first aspect.
According to the information presentation method and the information presentation device, the communication protocol is preset in the application development process. Then, in the application using process, after an information acquisition request sent by a user is received, information acquisition from other interfaces is triggered or information is skipped to other interfaces to present the requested information instruction, so that a protocol message can be directly sent to the information acquisition or skipped to interfaces based on the preset communication protocol without referring to the header file of the interface, an example object is created based on the class of the header file, the interface reference or skipping is realized, the coupling degree between the interfaces is reduced, the independence between the interfaces is improved, the developed application is more flexible, and the application operating efficiency is improved.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of an information presentation method according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of an information presentation method according to an embodiment of the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of an information presentation method according to the present disclosure;
FIG. 5 is a schematic block diagram of one embodiment of an information presentation device according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary architecture 100 to which embodiments of the information presentation method or information presentation apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 may have installed thereon various client applications for presenting visited locations. Such as entertainment applications, job recruitment applications, etc. The terminal devices 101, 102, 103 may interact with the server 105 via the network 104 to receive or send messages or the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices that can receive user operations, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a background server supporting client applications installed on the terminal devices 101, 102, 103. The server 105 can perform various processes on the request information transmitted by the terminal devices 101, 102, 103 and then return the processing results to the terminal devices 101, 102, 103 to cause the terminal devices 101, 102, 103 to present. For example, the terminal device may send an interactive interface download request to the server. The server may download the interactive interface to the above-mentioned terminal devices 101, 102, 103 based on the received request.
The server 105 may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the information presentation methods provided by the embodiments of the present disclosure are generally executed by the terminal devices 101, 102, 103, and accordingly, the information presentation apparatuses are generally disposed in the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an information presentation method according to the present disclosure is shown. The information presentation method comprises the following steps:
step 201, receiving an information acquisition request sent by a user.
In this embodiment, a terminal application run by an execution subject of the information presentation method (for example, terminal devices 101, 102, and 103 shown in fig. 1) may receive an information acquisition request sent by a user through the terminal device.
Here, the terminal application may be various types of applications. For example, may be a living service type application, may be a shopping type application, may be an electronic payment type application, may be an electronic banking type application, and the like. Typically, in the various applications described above, multiple interactive interfaces are provided. According to the requirements of the user, the user can generally operate the current interactive interface, so that more interactive information can be acquired. Here, when the user operates the interactive interface, the information acquisition request is also triggered. Generally, each interactive interface is provided with a plurality of interactive controls, and each interactive control has interactive logic corresponding to the interactive control. When the interaction control is operated, the interaction logic corresponding to the interaction control can be triggered. Here, the interactive logic may be to acquire data from other interactive interfaces or link to other interactive interfaces.
In this embodiment, when a user sends an information acquisition request through an interactive interface presented by a terminal device, generally, the information acquisition request carries address information of data to be acquired. Here, the address information may be a path of the data to be acquired and a URL (uniform resource locator) of an interactive interface where the data to be acquired is located. Here, the address information is generally predefined in the application development process. That is, the address information may be provided in the interaction logic corresponding to the interaction control.
In some optional implementation manners of this embodiment, the receiving the information acquisition request sent by the user may include: and receiving the operation of the user for inputting information to the dialog box presented by the current interactive interface.
Specifically, the interactive control may be, for example, a dialog box for inputting information. When the user inputs information in the dialog box, it can be considered that the user has sent an information acquisition request through the dialog box. Thus, the execution body can receive the information acquisition request sent by the user.
In some optional implementation manners of this embodiment, the receiving the information acquisition request sent by the user specifically may include: and receiving the click operation of the user on the current interactive interface.
Specifically, the interactive control in the interactive interface presented by the terminal device may further include various buttons that can be clicked by the user. For example, when the user clicks the interactive button, the user can jump from the current page to other pages. After the user performs the click operation on the current interactive interface, the execution subject may receive the click operation. After receiving the click operation, the execution subject may also receive address information of the interactive interface to which the click operation is to be linked.
Step 202, based on the address information and the pre-established communication protocol, sending the protocol message to a target interactive interface corresponding to the address indicated by the address information, so as to establish a communication connection between the current interactive interface and the target interactive interface.
In this embodiment, when application development is performed, a communication protocol between each interactive interface may be established in advance. That is, through the communication protocol, reference, jump, and the like between the respective interactive interfaces can be realized.
Here, the pre-established communication protocol typically includes a plurality of fields. The plurality of fields may specifically include: the software installation package comprises a field for indicating a session identifier of an information sender, a field for indicating a window identification code of the information sender, a field for indicating a session identifier of an information receiver, a field for indicating a window identification code of the information receiver, a field for indicating an account identifier in the software installation package, a field for indicating a service type and a field for indicating carried message data content.
Here, the current interactive interface may be a sender of a message, and the target interactive interface including data to be acquired may be a recipient of the message. When a user clicks the current interactive interface or inputs information, the running script of the current interactive interface can control the terminal device to send a protocol message carrying a field indicating a session identifier of the interactive interface, a field indicating an address of a target interactive interface and a field indicating data to be acquired to the target interactive interface indicated by the address. Thereby establishing the communication connection between the current interactive interface and the target interactive interface.
Step 203, responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting information to be acquired.
In this embodiment, after the executing body sends the protocol packet of the current interactive interface to the target interactive interface, it may wait for the connection between the current interactive interface and the target interactive interface to be established. Here, the time period may be set in advance. That is, after the execution main body sends the protocol packet to the target interactive interface, it may be determined whether there is response information of the target interactive interface within the preset time period.
In this embodiment, when information needs to be acquired from the target interactive interface, determining whether there is response information of the target interactive interface within the preset time period may specifically include receiving a protocol packet including data to be acquired, which is returned by the target interactive interface through the preset transmission protocol, so as to determine whether a connection is successfully established with the target interactive interface within the preset time period. When the target interactive interface needs to be jumped to, whether indication information which is returned by the target interactive interface and used for indicating that interface jumping can be carried out is received or not can be determined within the preset time period, and therefore whether connection is successfully established between the target interactive interface and the target interactive interface within the preset time period or not is determined.
In this embodiment, the presenting the information to be acquired in response to receiving the instruction of successful connection establishment returned by the target interactive interface within the preset time period may specifically include: determining whether the instruction triggered by the information acquisition request comprises an instruction linked to a target interactive interface; and responding to the instruction comprising the link to the target interactive interface, and jumping to the target interactive interface from the current interactive interface to present the information to be acquired.
Specifically, when the user operates the current interactive interface through the terminal device, it may be determined whether the instruction triggered by the operation includes an instruction linked to the target interactive interface based on the operation of the user. For example, when the operation of the user on the current interactive interface is a click operation, it may be determined that the instruction triggered by the acquisition request includes an instruction linked to the target interactive interface; when the operation of the user on the current interactive interface is the operation of inputting information through the dialog box, it may be determined that the instruction triggered by the acquisition request does not include an instruction linked to the target interactive interface.
When the execution subject determines that the instruction linked to the target interactive interface is included, the execution subject can jump from the current interactive interface to the target interactive interface, so that the information to be acquired is presented to the user.
In this embodiment, when determining that the instruction linked to the target interactive interface is not included, the execution main body may send a data acquisition request to the target interactive interface. And then, receiving data returned by the target interactive interface, and presenting the information to be acquired by the user to the user.
In some optional implementation manners of this embodiment, the execution main body may further determine whether the target interactive interface and the current interactive interface are located in the same terminal application. Specifically, the determination may be performed through a field in the protocol message, which is used to indicate a terminal identifier of the target interactive interface. When the current interactive interface and the target interactive interface belong to different terminal applications, whether the terminal equipment matched with the terminal identification is installed in the terminal equipment can be traversed in response to the fact that a connection establishment success instruction returned by the target interactive interface is not received within a preset time period. When it is determined that the terminal device with the terminal identifier matching is not installed in the terminal device, the execution main body may be controlled to present an interface for presenting a terminal application download of the target interactive interface, so as to download the terminal application. And after the downloading is determined to be finished, presenting the information to be acquired through a target interactive interface of the downloaded terminal application.
Further referring to fig. 3, an application scenario diagram of the information presentation method of the present disclosure is shown. In the application scenario shown in fig. 3, the user has clicked on the link 301 of the B item in the shopping application via the cell phone. Generally, in shopping applications, various images of items are presented in an interface for selection by a user. Each item image has a detail interface corresponding thereto. After clicking the item image, the user can jump to the detail interface. Here, the current interactive interface presented by the mobile phone communicates with the item detail interface through a preset communication protocol (for example, interface reference). After the user clicks the link of the B article image, step 302 is executed, that is, based on the link address and the pre-established communication protocol, the protocol message requesting to present the B article is sent to the interactive interface presenting the B article, so as to establish the communication connection between the current interactive interface and the interactive interface presenting the B article. Finally, step 303 is executed: and displaying the interactive interface presenting the B article in the mobile phone in response to the identifier that the connection establishment is successful and sent by the interactive interface presenting the B article within the preset time period.
According to the information presentation method provided by the embodiment of the disclosure, a communication protocol is preset in the application development process. Then, in the application using process, after an information acquisition request sent by a user is received, information acquisition from other interfaces is triggered or information is skipped to other interfaces to present the requested information instruction, so that a protocol message can be directly sent to the information acquisition or skipped to interfaces based on the preset communication protocol without referring to the header file of the interface, an example object is created based on the class of the header file, the interface reference or skipping is realized, the coupling degree between the interfaces is reduced, the independence between the interfaces is improved, the developed application is more flexible, and the application operating efficiency is improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of an information presentation method according to the present disclosure is shown. The information presentation method comprises the following steps:
step 401, receiving an information acquisition request sent by a user.
In this embodiment, a terminal application run by an execution subject of the information presentation method (for example, terminal devices 101, 102, and 103 shown in fig. 1) may receive an information acquisition request sent by a user through the terminal device.
In this embodiment, when a user sends an information acquisition request through an interactive interface presented by a terminal device, generally, the information acquisition request carries address information of data to be acquired. Here, the address information may be a path of the data to be acquired and a URL (uniform resource locator) of an interactive interface where the data to be acquired is located. Here, the address information is generally predefined in the application development process. That is, the address information may be provided in the interaction logic corresponding to the interaction control.
Step 402, based on the address information and the pre-established communication protocol, sending the protocol message to a target interactive interface corresponding to the address indicated by the address information, so as to establish a communication connection between the current interactive interface and the target interactive interface.
And 403, responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting information to be acquired.
Specific implementation and beneficial effects of step 401, step 402, and step 403 may specifically refer to the related descriptions in step 201, step 202, and step 203 shown in the embodiment of fig. 2, and are not described again here.
Step 404, in response to not receiving the successful connection establishment instruction returned by the target interactive interface within the preset time period, sending an information acquisition request including the version number of the current interactive interface to the server, so that the server downloads the target interactive interface.
In this embodiment, when the execution subject does not receive a successful connection instruction returned by the target interactive interface within a preset time period, it may be determined that the target interactive interface does not exist in the current terminal device. Therefore, the execution main body can send a request for downloading the target interactive interface to the server. Here, the execution subject may have a version number of the current interactive interface when sending the target interactive interface download request to the server. Typically, the server will store multiple versions of the same application. Different versions of the interactive interface content, the triggering conditions of the interactive logic, and the like are different. By sending the information acquisition request with the version number of the current interactive interface to the terminal, the target interactive interface downloaded by the server is more matched with the current interactive interface, and the application processing speed and the display effect are improved.
And 405, receiving a command that the target interactive interface returned by the server is downloaded successfully, acquiring information from the target interactive interface, and presenting the information to be acquired.
In this embodiment, the execution main body may further receive an instruction of successful downloading of the target interactive interface returned by the server, so that information may be acquired from the target interactive interface. Here, the information to be acquired may be presented in the current interactive interface or in the target interactive interface.
As can be seen from fig. 4, different from the embodiment shown in fig. 2, this embodiment highlights a step of downloading the target interactive interface from the server when a successful connection establishment instruction returned by the target interactive interface is not received within a preset time period. Therefore, the terminal application is more perfect, and the user experience is improved.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present disclosure provides an embodiment of an information presentation apparatus, which corresponds to the method embodiment shown in fig. 2, and which may be specifically applied to various electronic devices.
As shown in fig. 5, the information presentation apparatus 500 provided by the present embodiment includes a receiving unit 501, a transmitting unit 502, and a presentation unit 503. The receiving unit 501 is configured to receive an information acquisition request sent by a user, where the information acquisition request includes address information of information to be acquired; a sending unit 502 configured to send a protocol packet to a target interactive interface corresponding to an address indicated by the address information based on the address information and a pre-established communication protocol, so as to establish a communication connection between the current interactive interface and the target interactive interface; a presentation unit 503 configured to present information to be acquired in response to receiving a successful connection establishment instruction returned by the target interactive interface within a preset time period
In the present embodiment, in the information presentation apparatus 500: the specific processing of the receiving unit 501, the sending unit 502 and the presenting unit 503 and the technical effects thereof can refer to the related descriptions of step 201, step 202 and step 203 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of this embodiment, the receiving unit 501 is configured to be one of: receiving the click operation of a user on the current interactive interface; and receiving the operation of the user for inputting information to the dialog box presented by the current interactive interface.
In some optional implementations of this embodiment, the presentation unit 503 is configured to: determining whether the instruction triggered by the information acquisition request comprises an instruction linked to a target interactive interface; and responding to the instruction comprising the link connected to the target interactive interface, and jumping from the current interactive interface to the target interactive interface to present the information to be acquired.
In some optional implementations of the present embodiment, the information presenting apparatus 500 further includes: a first sending subunit (not shown) configured to send an information acquisition request to the target interactive interface in response to determining that the instruction linked to the target interactive interface is not included; and the receiving subunit (not shown) is configured to receive the information returned by the target interactive interface so as to present in the current interactive interface.
In some optional implementations of the present embodiment, the information presenting apparatus 500 further includes: a second sending subunit (not shown), configured to, in response to not receiving a successful connection establishment instruction returned by the target interactive interface within a preset time period, send an information acquisition request including a version number of the current interactive interface to the server, so that the server downloads the target interactive interface; and the acquiring subunit (not shown) is configured to receive an instruction that the target interactive interface returned by the server is successfully downloaded, acquire information from the target interactive interface, and present the information to be acquired.
In some optional implementation manners of this embodiment, the protocol packet includes an application identifier for indicating a terminal application where the target interactive interface is located; and the information presentation apparatus 500 further includes: a first determining subunit (not shown) configured to determine whether the current interactive interface and the target interactive interface are located in the same terminal application based on the application identification; a second determining subunit (not shown) configured to, in response to determining that the current interactive interface and the target interactive interface are located in different terminal applications, determine whether an instruction of successful connection establishment returned by the target interactive interface is received within a preset time period; a third determining subunit (not shown) configured to, in response to determining that the instruction of successful connection establishment returned by the target interactive interface is not received within the preset time period, traverse the terminal device, and determine whether a terminal application matching the terminal identifier is installed; and a third transmitting subunit (not shown) configured to transmit an instruction for instructing downloading of the terminal application matching the terminal identification in response to a determination that the terminal application matching the terminal identification is not installed in the terminal device.
The information presentation device provided by the embodiment of the disclosure presets a communication protocol in an application development process. Then, in the application using process, after an information acquisition request sent by a user is received, information acquisition from other interfaces is triggered or information is skipped to other interfaces to present the requested information instruction, so that a protocol message can be directly sent to the information acquisition or skipped to interfaces based on the preset communication protocol without referring to the header file of the interface, an example object is created based on the class of the header file, the interface reference or skipping is realized, the coupling degree between the interfaces is reduced, the independence between the interfaces is improved, the developed application is more flexible, and the application operating efficiency is improved.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., terminal device in fig. 1) 600 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the terminal device; or may exist separately without being assembled into the terminal device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving an information acquisition request sent by a user, wherein the information acquisition request comprises address information of information to be acquired; based on the address information and a pre-established communication protocol, sending a protocol message to a target interactive interface corresponding to an address indicated by the address information so as to establish communication connection between the current interactive interface and the target interactive interface; and responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting the information to be acquired.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a processor including a receiving unit, a transmitting unit, and a presenting unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, a receiving unit may also be described as a "unit that receives an information acquisition request sent by a user".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.
Claims (14)
1. An information presentation method, comprising:
receiving an information acquisition request sent by a user, wherein the information acquisition request comprises address information of information to be acquired;
based on the address information and a pre-established communication protocol, sending a protocol message to a target interactive interface corresponding to an address indicated by the address information so as to establish communication connection between the interface before current interaction and the target interactive interface;
and responding to a command of successful connection establishment returned by the target interactive interface received within a preset time period, and presenting the information to be acquired.
2. The method of claim 1, wherein the receiving of the information acquisition request sent by the user comprises one of:
receiving the click operation of the user on the current interactive interface;
and receiving the operation of inputting information to the dialog box presented by the current interactive interface by the user.
3. The method of claim 2, wherein the presenting the information to be acquired in response to receiving the instruction of successful connection establishment returned by the target interactive interface within the preset time period comprises:
determining whether the instruction triggered by the information acquisition request comprises an instruction linked to the target interactive interface;
and responding to the instruction which is determined to include the link to the target interactive interface, and jumping to the target interactive interface from the current interactive interface to present the information to be acquired.
4. The method of claim 3, wherein the method further comprises:
in response to determining that no instruction linked to the target interactive interface is included, sending the information acquisition request to the target interactive interface;
and receiving information returned by the target interactive interface so as to present in the current interactive interface.
5. The method of claim 1, wherein the method further comprises:
responding to a command that connection establishment is successful and is not received, wherein the command is returned by the target interactive interface within a preset time period, and sending an information acquisition request comprising the version number of the current interactive interface to a server so that the server downloads the target interactive interface;
and receiving an instruction of successful downloading of the target interactive interface returned by the server, acquiring information from the target interactive interface, and presenting the information to be acquired.
6. The method according to claim 1, wherein the protocol packet includes an application identifier for indicating a terminal application where the target interactive interface is located; and
the method further comprises the following steps:
determining whether the current interactive interface and the target interactive interface are positioned in the same terminal application or not based on the application identification;
in response to the fact that the current interactive interface and the target interactive interface are located in different terminal applications, determining whether a command of successful connection establishment returned by the target interactive interface is received within a preset time period;
in response to the fact that a command that connection establishment is successful and returned by the target interactive interface is not received within a preset time period, traversing the terminal equipment, and determining whether the terminal application matched with the terminal identification is installed or not;
and responding to the fact that the terminal application matched with the terminal identification is not installed in the terminal equipment, and sending an instruction for instructing downloading of the terminal application matched with the terminal identification.
7. An information presentation device comprising:
the information acquisition device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to receive an information acquisition request sent by a user, and the information acquisition request comprises address information of information to be acquired;
the sending unit is configured to send a protocol message to a target interactive interface corresponding to an address indicated by the address information based on the address information and a pre-established communication protocol so as to establish communication connection between a current interactive interface and the target interactive interface;
and the presentation unit is configured to respond to a command of successful connection establishment returned by the target interactive interface within a preset time period and present the information to be acquired.
8. The apparatus of claim 7, wherein the receiving unit is configured to one of:
receiving the click operation of the user on the current interactive interface;
and receiving the operation of inputting information to the dialog box presented by the current interactive interface by the user.
9. The apparatus of claim 8, wherein the presentation unit is configured to:
determining whether the instruction triggered by the information acquisition request comprises an instruction linked to the target interactive interface;
and responding to the instruction comprising the link connected to the target interactive interface, and jumping from the current interactive interface to the target interactive interface to present the information to be acquired.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a first sending subunit configured to send the information obtaining request to the target interactive interface in response to determining that an instruction linked to the target interactive interface is not included;
and the receiving subunit is configured to receive the information returned by the target interactive interface so as to present in the current interactive interface.
11. The apparatus of claim 7, wherein the apparatus further comprises:
the second sending subunit is configured to send an information acquisition request including the version number of the current interactive interface to a server in response to not receiving a successful connection establishment instruction returned by the target interactive interface within a preset time period, so that the server downloads the target interactive interface;
and the obtaining subunit is configured to receive the instruction that the target interactive interface returned by the server is successfully downloaded, obtain information from the target interactive interface, and present the information to be obtained.
12. The apparatus according to claim 7, wherein the protocol packet includes an application identifier for indicating a terminal application where the target interactive interface is located; and
the device further comprises:
a first determining subunit, configured to determine, based on the application identifier, whether the current interactive interface and the target interactive interface are located in the same terminal application;
the second determining subunit is configured to determine whether an instruction of successful connection establishment returned by the target interactive interface is received within a preset time period in response to determining that the current interactive interface and the target interactive interface are located in different terminal applications;
the third determining subunit is configured to, in response to determining that a connection establishment success instruction returned by the target interactive interface is not received within a preset time period, traverse the terminal device and determine whether a terminal application matched with the terminal identifier is installed;
a third sending subunit, configured to send, in response to determining that the terminal application matching the terminal identifier is not installed in the terminal device, an instruction for instructing downloading of the terminal application matching the terminal identifier.
13. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910204778.7A CN110618768B (en) | 2019-03-18 | 2019-03-18 | Information presentation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910204778.7A CN110618768B (en) | 2019-03-18 | 2019-03-18 | Information presentation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110618768A true CN110618768A (en) | 2019-12-27 |
CN110618768B CN110618768B (en) | 2021-05-04 |
Family
ID=68921180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910204778.7A Active CN110618768B (en) | 2019-03-18 | 2019-03-18 | Information presentation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110618768B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218374A (en) * | 2017-07-07 | 2019-01-15 | 北京小米移动软件有限公司 | Using exchange method and device |
CN114237741A (en) * | 2021-12-10 | 2022-03-25 | 北京思必拓科技有限责任公司 | Installation-free application interaction method and device |
US11360834B2 (en) | 2017-06-14 | 2022-06-14 | Beijing Xiaomi Mobile Software Co., Ltd. | Application interaction method and apparatus |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674239A (en) * | 2009-10-10 | 2010-03-17 | 华为技术有限公司 | Method and device for providing web service |
JP4586063B2 (en) * | 2007-12-18 | 2010-11-24 | ソニー エレクトロニクス インク | Terminal device |
CN105722249A (en) * | 2016-01-29 | 2016-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Connection switching method and device and terminal |
CN105812345A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Method and device for realizing communication between webpage and client end |
CN106020904A (en) * | 2016-05-31 | 2016-10-12 | 北京奇艺世纪科技有限公司 | Graphical user interface displaying method and device |
CN106055199A (en) * | 2016-05-26 | 2016-10-26 | 努比亚技术有限公司 | Information synchronization method and electronic device |
CN106909395A (en) * | 2017-03-02 | 2017-06-30 | 腾讯科技(深圳)有限公司 | A kind of interface call method and terminal |
CN107124477A (en) * | 2017-03-30 | 2017-09-01 | 努比亚技术有限公司 | Processing method, terminal and the server of web site contents |
CN107390994A (en) * | 2017-07-31 | 2017-11-24 | 北京京东尚科信息技术有限公司 | Interface presentation and device |
CN108008952A (en) * | 2017-11-30 | 2018-05-08 | 浙江执御信息技术有限公司 | Mobile terminal page Dynamic Distribution method and system |
CN108132973A (en) * | 2017-12-06 | 2018-06-08 | 杭州迪普科技股份有限公司 | Loading method and device, the computer readable storage medium of WEB jump page |
CN108156220A (en) * | 2017-12-04 | 2018-06-12 | 北京小米移动软件有限公司 | Communication means and device |
CN108776601A (en) * | 2018-06-05 | 2018-11-09 | 平安壹钱包电子商务有限公司 | Loading method, device, equipment and the storage medium of the Android H5 pages |
CN108965203A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of resource access method and server |
CN109151548A (en) * | 2018-08-31 | 2019-01-04 | 北京优酷科技有限公司 | Interface alternation method and device |
-
2019
- 2019-03-18 CN CN201910204778.7A patent/CN110618768B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4586063B2 (en) * | 2007-12-18 | 2010-11-24 | ソニー エレクトロニクス インク | Terminal device |
CN101674239A (en) * | 2009-10-10 | 2010-03-17 | 华为技术有限公司 | Method and device for providing web service |
CN105812345A (en) * | 2014-12-31 | 2016-07-27 | 广州市动景计算机科技有限公司 | Method and device for realizing communication between webpage and client end |
CN105722249A (en) * | 2016-01-29 | 2016-06-29 | 宇龙计算机通信科技(深圳)有限公司 | Connection switching method and device and terminal |
CN106055199A (en) * | 2016-05-26 | 2016-10-26 | 努比亚技术有限公司 | Information synchronization method and electronic device |
CN106020904A (en) * | 2016-05-31 | 2016-10-12 | 北京奇艺世纪科技有限公司 | Graphical user interface displaying method and device |
CN106909395A (en) * | 2017-03-02 | 2017-06-30 | 腾讯科技(深圳)有限公司 | A kind of interface call method and terminal |
CN107124477A (en) * | 2017-03-30 | 2017-09-01 | 努比亚技术有限公司 | Processing method, terminal and the server of web site contents |
CN108965203A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | A kind of resource access method and server |
CN107390994A (en) * | 2017-07-31 | 2017-11-24 | 北京京东尚科信息技术有限公司 | Interface presentation and device |
CN108008952A (en) * | 2017-11-30 | 2018-05-08 | 浙江执御信息技术有限公司 | Mobile terminal page Dynamic Distribution method and system |
CN108156220A (en) * | 2017-12-04 | 2018-06-12 | 北京小米移动软件有限公司 | Communication means and device |
CN108132973A (en) * | 2017-12-06 | 2018-06-08 | 杭州迪普科技股份有限公司 | Loading method and device, the computer readable storage medium of WEB jump page |
CN108776601A (en) * | 2018-06-05 | 2018-11-09 | 平安壹钱包电子商务有限公司 | Loading method, device, equipment and the storage medium of the Android H5 pages |
CN109151548A (en) * | 2018-08-31 | 2019-01-04 | 北京优酷科技有限公司 | Interface alternation method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11360834B2 (en) | 2017-06-14 | 2022-06-14 | Beijing Xiaomi Mobile Software Co., Ltd. | Application interaction method and apparatus |
CN109218374A (en) * | 2017-07-07 | 2019-01-15 | 北京小米移动软件有限公司 | Using exchange method and device |
CN114237741A (en) * | 2021-12-10 | 2022-03-25 | 北京思必拓科技有限责任公司 | Installation-free application interaction method and device |
CN114237741B (en) * | 2021-12-10 | 2022-10-28 | 北京思必拓科技有限责任公司 | Installation-free application interaction method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110618768B (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110378743B (en) | Application invitation method, terminal device, server and medium | |
CN111931962B (en) | Information display method and device and electronic equipment | |
CN110781373B (en) | List updating method and device, readable medium and electronic equipment | |
CN110618768B (en) | Information presentation method and device | |
CN111432001B (en) | Method, apparatus, electronic device and computer readable medium for jumping scenes | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN110865846B (en) | Application management method, device, terminal, system and storage medium | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN111246228B (en) | Method, device, medium and electronic equipment for updating gift resources of live broadcast room | |
CN110430292B (en) | Method and device for inviting login of network platform, electronic equipment and readable medium | |
CN111857858A (en) | Method and apparatus for processing information | |
CN112965673A (en) | Content printing method, device, equipment and storage medium | |
CN110619100A (en) | Method and apparatus for acquiring data | |
CN114489891A (en) | Control method, system, device, readable medium and equipment of cloud application program | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN113596530A (en) | Method and device for transferring data | |
CN110069185B (en) | Method and apparatus for co-running hosted applications | |
CN110619101B (en) | Method and apparatus for processing information | |
CN113079085B (en) | Business service interaction method, business service interaction device, business service interaction equipment and storage medium | |
CN113220293B (en) | Page display method, page display device, electronic equipment and computer readable medium | |
CN115587860A (en) | Service processing method, device, storage medium and electronic equipment | |
JP2024500300A (en) | Information interaction methods, devices, and equipment | |
CN111367592B (en) | Information processing method and device | |
CN109933556B (en) | Method and apparatus for processing information | |
US20240152504A1 (en) | Data interaction method, apparatus, and electronic device |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230404 Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299 Patentee after: Beijing youzhuju Network Technology Co.,Ltd. Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081 Patentee before: Beijing infinite light field technology Co.,Ltd. |
|
TR01 | Transfer of patent right |