CN110083467B - Method and device for processing applet message and computer storage medium - Google Patents

Method and device for processing applet message and computer storage medium Download PDF

Info

Publication number
CN110083467B
CN110083467B CN201910358913.3A CN201910358913A CN110083467B CN 110083467 B CN110083467 B CN 110083467B CN 201910358913 A CN201910358913 A CN 201910358913A CN 110083467 B CN110083467 B CN 110083467B
Authority
CN
China
Prior art keywords
applet
message
data
host application
user
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
CN201910358913.3A
Other languages
Chinese (zh)
Other versions
CN110083467A (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910358913.3A priority Critical patent/CN110083467B/en
Publication of CN110083467A publication Critical patent/CN110083467A/en
Application granted granted Critical
Publication of CN110083467B publication Critical patent/CN110083467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention provides a method, equipment and a computer storage medium for processing an applet message, wherein the method comprises the following steps: the small program obtains small program message data and session object information to be sent, wherein the small program message data comprises: message content data and presentation structure information; sending the applet message data and the session object information to a server side of a host application so that the server side can send the applet message data to the host application corresponding to the session object information; wherein the applet message data is used for displaying a corresponding applet message body by the host application. The invention can facilitate developers of the applet messages to independently and flexibly control the display of the applet messages.

Description

Method and device for processing applet message and computer storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for processing an applet message, and a computer storage medium.
[ background of the invention ]
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
A Mini Program (Mini Program) is an application that can be used without downloading and installing, and runs in an environment provided by a host application. It is becoming more and more widely used because it is readily available without the need for installation and removal. Users often need to send or receive applet messages in the process of using applets, and at present, the delivery of the applet messages depends on host application. The method comprises the steps that the applet provides message content data such as pictures, titles and the like to a server side of the host application, the server side of the host application provides the message content data and a preset template to the host application, the host application assembles the message content data and displays the message content data through a session interface, and the applet message is linked to a set applet interface. And fixedly jumping to the corresponding small program interface when the user clicks the small program message on the session interface of the host application.
Obviously, the presentation form of the existing applet message is limited by the host application, and the developer of the applet message cannot autonomously and flexibly control the presentation of the applet message.
[ summary of the invention ]
In view of the above, the present invention provides a method, an apparatus, and a computer storage medium for processing an applet message, so as to facilitate a developer of the applet message to autonomously and flexibly control the presentation of the applet message.
The specific technical scheme is as follows:
in a first aspect, the present invention provides a method for processing an applet message, including:
the small program obtains small program message data and session object information to be sent, wherein the small program message data comprises: message content data and presentation structure information;
sending the applet message data and the session object information to a server side of a host application so that the server side can send the applet message data to the host application corresponding to the session object information;
wherein the applet message data is used for displaying a corresponding applet message body by the host application.
According to a preferred embodiment of the present invention, the acquiring, by the applet, the applet message data and the session object information to be transmitted includes:
the method comprises the steps that an applet obtains applet message data to be sent triggered by a user through a sharing function in the applet and session object information selected by the user in the sharing function; alternatively, the first and second electrodes may be,
the small program obtains the information data of the notification type small program triggered by the payment or submission form of the user, and takes the information of the user as the information of the session object.
According to a preferred embodiment of the present invention, the applet message data further comprises: an executable code segment;
the executable code segment is used for responding to the event generated by the message body after the message body is displayed.
According to a preferred embodiment of the present invention, the event generated by the message body includes: user interaction events and/or program run events of the message body.
According to a preferred embodiment of the present invention, the executable code segment for responding to the event generated by the message body returned after the message body is displayed comprises:
the executable code segment changes the display content or the form of the message body according to the event generated by the message body; alternatively, the first and second electrodes may be,
the executable code segment opens an interface to a web page, applet or other application in accordance with an event generated by the message body.
According to a preferred embodiment of the invention, the events generated by the message bodies are returned and synchronized to the executable code segments of the message bodies in the same session.
In a second aspect, the present invention further provides a method for processing an applet message, where the method includes:
a server of a host application acquires applet message data and session object information sent by an applet, wherein the applet message data comprises: message content data and presentation structure information;
sending the applet message data to a host application corresponding to the session object information;
wherein the applet message data is used for displaying a corresponding applet message body by the host application.
According to a preferred embodiment of the present invention, the applet message data further comprises: an executable code segment;
the executable code segment is used for responding to the event generated by the message body after the message body is displayed.
According to a preferred embodiment of the invention, the method further comprises:
and the server of the host application synchronizes the returned events generated by the message bodies to the executable code segments of the message bodies in the same session.
In a third aspect, the present invention further provides a method for processing an applet message, where the method includes:
the method comprises the following steps that a host application receiving server obtains small program message data sent by a small program and small program message data forwarded after session object information is obtained, the host application is a host application corresponding to the session object information, and the small program message data comprise: message content data and presentation structure information;
and displaying an applet message body corresponding to the applet message data.
According to a preferred embodiment of the present invention, the applet message data further comprises: an executable code segment;
the executable code segment is used for responding to the event generated by the message body after the message body is displayed.
According to a preferred embodiment of the present invention, displaying the applet message body corresponding to the applet message data includes:
and assembling the message content data by using the display structure information, and embedding the executable segment to obtain an applet message body.
According to a preferred embodiment of the present invention, displaying the applet message body corresponding to the applet message data includes:
displaying an applet message body corresponding to the applet message data on a session interface of a user of the applet; alternatively, the first and second electrodes may be,
and displaying an applet message body corresponding to the applet message data on an interface of the notification message.
In a fourth aspect, the present invention also provides an apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the methods described above.
In a fifth aspect, the present invention also provides a storage medium containing computer-executable instructions for performing the method as described above when executed by a computer processor.
According to the technical scheme, the message content data and the display structure information are sent to the server side by the small program, so that the server side can forward the message content data and the display structure information to the host application for display. In this way, the developer or user of the applet can self-define the display structure of the applet message flexibly without being limited by the host application.
[ description of the drawings ]
FIG. 1 is a flowchart of a method provided in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart of a method provided in a second embodiment of the present invention;
FIGS. 3 a-3 d are diagrams illustrating an interface provided by an embodiment of the present invention;
FIG. 4 illustrates a block diagram of an exemplary computer system/server suitable for use in implementing embodiments of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Three subject objects are involved in the present invention: an applet, a host application, and a server side of the host application. The concepts and relationships of these three subject objects are first clarified:
the small program runs on the terminal equipment depending on the host application, and the environment where the small program runs is provided by the host application. Usually, the message sent by the applet is forwarded to the server of the host application through the host application, and then the server of the host application forwards the message to the host application corresponding to the session object information of the message. For convenience of description, the server side of the host application is hereinafter referred to simply as the server side.
The core idea of the invention is that the applet sends the message content data and the display structure information to the server side, so that the server side forwards the message content data and the display structure information to the host application for display. Thus, the developer or user of the applet can flexibly customize the presentation structure of the applet message without being limited to the host application. The method provided by the present invention will be described in detail with reference to examples.
The first embodiment,
Fig. 1 is a flowchart of a method according to a first embodiment of the present invention, as shown in fig. 1, the method may include the following steps:
in 101, an applet obtains applet message data and session object information to be transmitted, the applet message data including message content data and presentation structure information.
The manner in which the sending of the applet message is triggered may include a variety of ways, including but not limited to the following two:
the first mode is as follows: and triggering and sending the applet message by the user through the sharing function of the applet. For example, when a user wants to share content on a current applet interface or specified content on an applet to other users in the process of using the applet, a specific control on the applet interface may be triggered to implement a sharing function, and when the sharing function is implemented, the user may select a specific user or group from a user list, and determine a session object of the applet message according to the specific user or group selected by the user. It should be noted that, in some applets, the above-mentioned "sharing" function may also be referred to as "forwarding" function, but the purpose of the function is to send the content in the applet to other users, and all of them are within the protection scope of the present invention.
The second mode is as follows: the user pays for or submits the form triggering a notification-like applet message. Mechanisms are provided on the host application platform to trigger the sending of the notification applet messages, and the existing methods are mainly triggered by the user paying or submitting a form, but are not limited to the two mechanisms. The notification applet message is a notification message generated based on the actions of paying or submitting the form by the user, and is usually displayed on a notification message interface of the host application, such as a service notification interface. Therefore, in this case, the session object of the applet message is the user who triggered the sending of the applet message and the session with the applet server, and the information of the user can be used as the session object information.
The message content data refers to content-related data such as text resources, picture resources, video resources and the like included in the message. The presentation structure information indicates what structure the message content data is presented in to obtain a specific style, and may include layout information, resource type information, and the like.
The display structure information may be preset by a developer of the applet, or may be provided with an interface through which the user sets the display structure information in advance. When the applet message is triggered to be sent, the preset display structure information is automatically carried.
The session object refers to a session to which the applet message is to be sent, and the session may be between a user and a user, may be a group, or may be between the user and an applet server. Typically, each session is identified by a session ID (flag), from which the user information belonging to the session can be determined. When the user uses the applet, the user generally adopts the account of the host application to directly log in, and then the user information can be the account information of the host application. The session object information is typically specified by the user when triggering the sending of the applet message, or for notification-like applet messages, the information of the user triggering the sending of the applet message is typically taken as the session object information. This section will also be detailed in the following specific examples.
At 102, the applet sends the applet message data and session object information to the server side of the host application.
And the applet message data and the session object information sent by the applet are sent to a server side of the host application through the host application of the terminal equipment.
In 103, the server sends the applet message data to the host application corresponding to the session object information.
In the embodiment of the invention, the server side does not determine the template data of the applet message any more, but mainly executes the forwarding function, and forwards the applet message data which is sent by the applet and comprises the message content data and the display structure information to the host application corresponding to the session object information.
At 104, the host application corresponding to the session object information exposes the applet message body corresponding to the applet message data.
In the embodiment of the present invention, all the user information in the session can be determined according to the session object information, and then the applet message data is sent to the host applications of all the users in the session. After receiving the applet message data sent by the server, the host application assembles the message content data by using the display structure information to obtain an applet message body.
When the presentation of the applet message body is performed, the applet message body may be presented in a conversation interface with a user who sent the applet message. For example, a user a triggers an applet to send applet message data through a sharing function of the applet, a session object is a session between the user a and the user B, a host application logged in by the user B displays an applet message body corresponding to the applet message data on a session interface between the user B and the user a, and meanwhile, the host application logged in by the user a also displays an applet message body corresponding to the applet message data on the session interface between the user a and the user B.
And displaying an applet message body corresponding to the applet message data on an interface of the notification message. For example, a user a pays or submits a form to trigger a notification type applet message, and at this time, a session object is a session between the user a and an applet server, the server sends the applet message data to a host application logged in by the user a, and the host application displays an applet message body corresponding to the applet message data on an interface of the notification message.
Example II,
Fig. 2 is a flowchart of a method according to a second embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:
in 201, an applet obtains applet message data and session object information to be sent, the applet message data including message content data, presentation structure information and executable code segments.
Similar to the embodiments, the manner of triggering sending of the applet message may include a variety of ways, including but not limited to the following two:
the first mode is as follows: and triggering and sending the applet message by the user through the sharing function of the applet. For example, when a user wants to share content on a current applet interface or specified content on an applet to other users in the process of using the applet, a specific control on the applet interface may be triggered to implement a sharing function, and when the sharing function is implemented, the user may select a specific user from a user list as a session object of an applet message. It should be noted that, in some applets, the above-mentioned "sharing" function may also be referred to as "forwarding" function, but the purpose of the function is to send the content in the applet to other users, and all of them are within the protection scope of the present invention.
The second mode is as follows: the user pays for or submits the form triggering a notification-like applet message. Mechanisms are provided on the host application platform to trigger the sending of the notification applet messages, and the existing methods are mainly triggered by the user paying or submitting a form, but are not limited to the two mechanisms. The notification applet message is a notification message generated based on the actions of paying or submitting the form by the user, and is usually displayed on a notification message interface of the host application, such as a service notification interface. Thus, in this case, the session object of the applet message is the user who triggered the sending of the applet message itself.
The message content data refers to content-related data such as text resources, picture resources, video resources and the like included in the message. The presentation structure information indicates what structure the message content data is presented in to obtain a specific style, and may include layout information, resource type information, and the like.
The display structure information may be preset by a developer of the applet, or may be provided with an interface through which the user sets the display structure information in advance. When the applet message is triggered to be sent, the preset display structure information is automatically carried.
The session object refers to user information to which the applet message is to be sent, such as account information of the user. Typically, the user logs in directly using the account of the host application when using the applet, and the session object information is the host application account information to which the applet message is to be sent. The session object information is typically specified by the user when triggering the sending of the applet message, or for notification-like applet messages, the information of the user triggering the sending of the applet message is typically taken as the session object information.
Unlike the first embodiment, in the present embodiment, the applet message data further includes executable code. That is, when the user triggers sending of the applet message, the applet will automatically send the preset executable code one to the server of the host application. The function of the executable code will be detailed in subsequent steps.
In embodiments of the invention, the applet developer may set up different executable code for different types of applet messages.
At 202, the applet sends the applet message data and session object information to the server side of the host application.
In 203, the server sends the applet message data to the host application corresponding to the session object information.
The steps 202 to 203 are similar to the steps 102 to 103 in the embodiment, except that the applet message data includes executable codes, which are not described again.
In 204, the host application corresponding to the session object information assembles the message content data by using the presentation structure information, embeds the executable segment into the message content data to obtain an applet message body, and presents the applet message body.
Similarly to the embodiment, when the applet message body is displayed, the applet message body can be displayed through a session interface corresponding to the session object information. For example, a user a triggers an applet to send applet message data through a sharing function of the applet, a session object is a session between the user a and the user B, a host application logged in by the user B displays an applet message body corresponding to the applet message data on a session interface between the user B and the user a, and meanwhile, the host application logged in by the user a also displays an applet message body corresponding to the applet message data on the session interface between the user a and the user B.
And displaying an applet message body corresponding to the applet message data on an interface of the notification message. For example, a user a pays or submits a form to trigger a notification type applet message, and at this time, a session object is a session between the user a and an applet server, the server sends the applet message data to a host application logged in by the user a, and the host application displays an applet message body corresponding to the applet message data on an interface of the notification message.
In contrast to the first embodiment, the message body is exposed with a segment of executable code embedded therein. The executable code segment is used for responding to the event generated by the message body after the message body is displayed. That is, after an applet message body is exposed, events generated by the message body are all passed back to the executable code segment in the message body.
Wherein, the event generated by the message body may include, but is not limited to, a user interaction event and/or a program running event of the message body.
User interaction events may include, but are not limited to, events such as: clicking on the body of the message, sliding, long-pressing, multi-finger interaction, etc. The program run event for the message body may include, but is not limited to, presentation of the message body, revocation of the message body, end of the message body, and the like.
The executable code segment may change the content or form of the message body presented on the host application interface in accordance with an event generated by the message body.
For example, after the executable code segment acquires the event of the message body presentation, the executable code segment knows that the message body is in the presentation state. If the relative or reverse movement event of the double fingers of the user on the message body is further acquired, the display of the message body can be reduced or enlarged.
For another example, after the executable code segment acquires the withdrawal event of the message body, the message body can be gradually faded and displayed until the message body disappears.
For another example, when the executable code segment acquires a click event of the user on the displayed message body to the "hide/display" component, the hidden message content is displayed or the displayed message content is hidden.
The executable code segments may also open an interface to a web page, applet or other application upon an event generated by the message body.
For example, an executable code segment may trigger an applet to be opened to present a particular interface upon acquiring a user click event on a particular link on a message body.
In addition, events generated by message bodies in the same session are synchronized to the executable code segments of all message bodies in the session. For example, a group session includes users A, B and C, when user a generates a click event on a message body, the executable code segment of the applet message body displayed by the host application of user a uploads the returned click event to the server side of the host application, and the server side synchronizes the click event to the executable code segment of the applet message body displayed by the host applications of users B and C. Therefore, synchronization of the content or form change of the applet message body generated by each host application based on the event in the same session is realized.
As an example herein.
Suppose that during the use of a certain game type applet, the user triggers the sending of the applet message through the applet interface as shown in fig. 3a, i.e. clicking the "invite friend in group" button triggers the sending of the applet message. After clicking the "invite to friends in group" button, the user displays the interface shown in fig. 3b, and selects the session object to be forwarded from the interface. For example, the user selects "game group," then the session object is the game group.
And the applet sends the applet message data and the information of the session object to a server of the host application, wherein the applet message data comprises message content data, presentation structure information and executable code segments. Wherein the message content data may be text data selected with respect to a kind of the game character. The presentation structure information and the executable code segment may correspond to the game class applet interface shown in fig. 3a and be preset by the developer of the game class applet.
And the server of the host application sends the applet message data to the host application corresponding to the session object, namely the host application of each user of the game group. And the host application of each user of the game group assembles the message content data by using the display structure information in the applet message data, embeds the executable segments into the message content data to obtain an applet message body, and displays the applet message body. The applet message body as shown in figure 3c may be presented as a group message in a "game group".
Suppose that the swarm friend 1 clicks the component of the game man in the applet message body to select the game role, the swarm friend 2 clicks the component of the legal player to select the game role, and the swarm friend 3 clicks the component of the kingdom to select the game role. The click events based on the applet message body are all transmitted back to the executable codes of the applet message body and are synchronized in all the executable codes in the session, and the executable codes respond to the click events and change the display content of the applet message body. For example, as shown in FIG. 3d, the component in which each character resides displays user information that selects the character.
Fig. 4 illustrates a block diagram of an exemplary computer system/server 012 suitable for use in implementing embodiments of the invention. The computer system/server 012 shown in fig. 4 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 4, the computer system/server 012 is embodied as a general purpose computing device. The components of computer system/server 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Bus 018 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 012 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 012 and includes both volatile and nonvolatile media, removable and non-removable media.
System memory 028 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)030 and/or cache memory 032. The computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 034 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 018 via one or more data media interfaces. Memory 028 can include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the present invention.
Program/utility 040 having a set (at least one) of program modules 042 can be stored, for example, in memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof might include an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system/server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.), hi the present invention, the computer system/server 012 communicates with an external radar device, and may also communicate with one or more devices that enable a user to interact with the computer system/server 012, and/or with any device (e.g., network card, modem, etc.) that enables the computer system/server 012 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 022. Also, the computer system/server 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system/server 012 via bus 018. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes programs stored in the system memory 028, thereby executing various functional applications and data processing, such as implementing the method flow provided by the embodiment of the present invention.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the method flows provided by the embodiments of the invention are executed by one or more processors described above.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 the context of this document, 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.
A computer readable signal medium may include 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 any of a variety of 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 wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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).
From the above description, it can be seen that the method, apparatus, and computer storage medium provided by the present invention can have the following advantages:
1) and the applet sends the message content data and the display structure information to the server side so that the server side forwards the message content data and the display structure information to the host application for display. In this way, the developer or user of the applet can self-define the display structure of the applet message flexibly without being limited by the host application.
2) According to the method and the device, the executable code segment is embedded in the applet message body, and the response is carried out on the event based on the applet message body, so that the display content and the form of the applet message are dynamically changed, and a richer interactive form is provided.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for processing applet messages, the method comprising:
the small program obtains small program message data and session object information to be sent, wherein the small program message data comprises: message content data, an executable code segment and presentation structure information, the presentation structure information indicating a presentation style of the message content data;
sending the applet message data and the session object information to a server side of a host application so that the server side can send the applet message data to the host application corresponding to the session object information;
the applet message data is used for assembling the message content data by the host application by utilizing the display structure information so as to display a corresponding applet message body; the executable code segment is used for responding to the event generated by the message body after the message body is displayed.
2. The method of claim 1, wherein the applet obtaining the applet message data and the session object information to be sent comprises:
the method comprises the steps that an applet obtains applet message data to be sent triggered by a user through a sharing function in the applet and session object information selected by the user in the sharing function; alternatively, the first and second electrodes may be,
the small program obtains the information data of the notification type small program triggered by the payment or submission form of the user, and takes the information of the user as the information of the session object.
3. The method of claim 1, wherein the event generated by the message body comprises: user interaction events and/or program run events of the message body.
4. The method of claim 3, wherein the executable code segment for responding to the event generated by the message body returned after the message body is exposed comprises:
the executable code segment changes the display content or the form of the message body according to the event generated by the message body; alternatively, the first and second electrodes may be,
the executable code segment opens an interface to a web page, applet or other application in accordance with an event generated by the message body.
5. The method according to claim 1, 3 or 4, characterized in that the events generated by the message bodies are returned and synchronized to the executable code segments of the message bodies in the same session.
6. A method for processing applet messages, the method comprising:
a server of a host application acquires applet message data and session object information sent by an applet, wherein the applet message data comprises: message content data, an executable code segment and presentation structure information, the presentation structure information indicating a presentation style of the message content data;
sending the applet message data to a host application corresponding to the session object information;
the applet message data is used for assembling the message content data by the host application by utilizing the display structure information so as to display a corresponding applet message body; the executable code segment is used for responding to the event generated by the message body after the message body is displayed.
7. The method of claim 6, further comprising:
and the server of the host application synchronizes the returned events generated by the message bodies to the executable code segments of the message bodies in the same session.
8. A method for processing applet messages, the method comprising:
the method comprises the following steps that a host application receiving server obtains small program message data sent by a small program and small program message data forwarded after session object information is obtained, the host application is a host application corresponding to the session object information, and the small program message data comprise: message content data, an executable code segment and presentation structure information, the presentation structure information indicating a presentation style of the message content data;
assembling the message content data by using the display structure information to display a corresponding applet message body;
wherein the executable code segment is used for responding to an event generated by the message body after the message body is displayed and returned.
9. The method of claim 8, wherein the executable code segment is further embedded when the message content data is assembled by using the presentation structure information, so as to obtain the applet message body.
10. The method of claim 8, wherein exposing an applet message body corresponding to the applet message data comprises:
displaying an applet message body corresponding to the applet message data on a session interface of a user of the applet; alternatively, the first and second electrodes may be,
and displaying an applet message body corresponding to the applet message data on an interface of the notification message.
11. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
12. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-10 when executed by a computer processor.
CN201910358913.3A 2019-04-30 2019-04-30 Method and device for processing applet message and computer storage medium Active CN110083467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910358913.3A CN110083467B (en) 2019-04-30 2019-04-30 Method and device for processing applet message and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910358913.3A CN110083467B (en) 2019-04-30 2019-04-30 Method and device for processing applet message and computer storage medium

Publications (2)

Publication Number Publication Date
CN110083467A CN110083467A (en) 2019-08-02
CN110083467B true CN110083467B (en) 2021-10-26

Family

ID=67417974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910358913.3A Active CN110083467B (en) 2019-04-30 2019-04-30 Method and device for processing applet message and computer storage medium

Country Status (1)

Country Link
CN (1) CN110083467B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704054A (en) * 2019-09-06 2020-01-17 北京达佳互联信息技术有限公司 Method and device for accessing target application program through applet, electronic equipment and storage medium
CN114706621B (en) * 2019-09-26 2023-03-24 华为技术有限公司 Method for starting fast application and related device
CN113568695A (en) * 2021-07-22 2021-10-29 北京字跳网络技术有限公司 Corner mark processing method and device for boarder application

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207886A (en) * 2015-08-12 2015-12-30 深圳前海珩昌科技有限公司 Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system
CN108958780A (en) * 2018-09-30 2018-12-07 上海掌门科技有限公司 A kind of method and apparatus of the more new information for program of lodging for rendering

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014106546A (en) * 2012-11-22 2014-06-09 Mitsubishi Electric Corp Resume method and information processing device
CN104573552B (en) * 2014-12-29 2018-01-19 广东欧珀移动通信有限公司 A kind of method and device of hiden application icon

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207886A (en) * 2015-08-12 2015-12-30 深圳前海珩昌科技有限公司 Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system
CN108958780A (en) * 2018-09-30 2018-12-07 上海掌门科技有限公司 A kind of method and apparatus of the more new information for program of lodging for rendering

Also Published As

Publication number Publication date
CN110083467A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110113252B (en) Method and device for processing applet notification message and computer storage medium
US11778430B2 (en) Layers in messaging applications
US9772750B2 (en) Linking selected messages in electronic message threads
US20200301648A1 (en) Method of operating a shared object in a video call
CN110083467B (en) Method and device for processing applet message and computer storage medium
US10613717B2 (en) Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image
US20110161989A1 (en) Dynamic program integration
US20200396187A1 (en) Email reactions through embedded tokens
CN110168496B (en) Method and system for application presentation
CN110634220B (en) Information processing method and device
CN110287146B (en) Method, device and computer storage medium for downloading application
CN112732386A (en) Message processing method, device, terminal and storage medium
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
CN110058854B (en) Method, terminal device and computer-readable medium for generating application
CN111901221A (en) Message processing method, device and computer storage medium
CN112214706A (en) Information publishing method and device, electronic equipment and storage medium
CN107733781B (en) Instant messaging processing method, equipment and computer storage medium
CN111581664B (en) Information protection method and device
CN110162350B (en) Notification bar information display method, notification bar information display device, server and storage medium
CN112822089B (en) Method and device for adding friends
CN113778370A (en) Voice message playing method and device, electronic equipment and storage medium
CN114422468A (en) Message processing method, device, terminal and storage medium
CN112346615A (en) Information processing method and device
CN111859999A (en) Message translation method, device, storage medium and electronic equipment
US10602332B2 (en) Programming organizational links that propagate to mobile applications

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