Embedded program-based interaction method, device, equipment and medium

By displaying interactive entry points and prompts in the embedded program, convenient interaction with related objects in the host application is achieved, improving the interactive effect and user experience of the embedded program.

CN122152382APending Publication Date: 2026-06-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-12-03
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing interactive methods based on embedded programs have poor interactive effects, resulting in a poor user experience.

Method used

The interactive entry point is displayed in the host application, and a prompt message is displayed when a second object that is associated with the first object logs into the embedded program. Interaction between objects is realized through the interactive entry point, and status data is processed and synchronized using interactive components, with status updates sent in priority order.

Benefits of technology

It improves the interactivity and convenience of embedded programs, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152382A_ABST
    Figure CN122152382A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses an interactive method and device based on an embedded program, equipment and a medium, and belongs to the technical field of computers. After a first object logged in the host application logs in the embedded program, an interactive entrance is displayed in the program interface of the embedded program, and in the case that a second object having an association relationship with the first object in the host application logs in the embedded program, prompt information is displayed in the interactive entrance to remind the second object having the association relationship with the first object in the host application to log in the embedded program, and then the second object is interacted with in the embedded program through the interactive entrance. In this way, without the user performing a complex operation, the scheme that the objects having the association relationship in the host application are interacted with in the embedded program is realized, the interactive convenience is ensured, the interactive effect of different objects based on the embedded program can be ensured, and then the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an interactive method, apparatus, device and medium based on embedded programs. Background Technology

[0002] Embedded programs, also known as applets, are lightweight applications embedded within a host application. They require no download or installation. Users can interact with each other through embedded programs; for example, they can share the program with friends or invite them to use it. However, current interactive methods based on embedded programs suffer from poor interaction quality, resulting in a poor user experience. Summary of the Invention

[0003] This application provides an interactive method, apparatus, device, and medium based on embedded programs, which can improve the interactive effect and thus enhance the user experience. The technical solution is as follows:

[0004] On the one hand, an interactive method based on embedded programs is provided, the method comprising:

[0005] If the first object in the host application has already logged into the embedded program, the program interface of the embedded program is displayed, and the program interface displays an interactive entry point. The first object is the object that has already logged into the host application.

[0006] When the second object has logged into the embedded program, a first prompt message is displayed in the interactive entry. The first prompt message is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application.

[0007] In response to a triggering operation on the interactive entry point, the second object is displayed;

[0008] In response to an interaction with the second object, a first interaction message is sent to the second object.

[0009] On the other hand, an interactive method based on embedded programs is provided, the method comprising:

[0010] The system receives interactive information sent by the first terminal through an access interface. The interactive information is sent by the first terminal in response to an interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application.

[0011] The type of interactive information is identified through the access interface;

[0012] When the access interface identifies that the interactive information belongs to a preset type, it calls the interactive component provided by the host application, which is used to process the information of the preset type.

[0013] The interactive component sends the interactive information to a second terminal, which is a terminal that logs into the embedded program based on the second object in the host application.

[0014] In one possible implementation, the interactive component is further used to synchronize state data between different objects; the method also includes:

[0015] The interactive component detects the status data of objects that have logged into the embedded program, and the status data of the objects indicates the status of the objects or the status of virtual objects controlled by the objects.

[0016] Through the interactive component, in response to an update of the status data of the third object, the updated status data of the third object is sent to the terminal corresponding to the fourth object. The third object is any object that has logged into the embedded program, and the fourth object is the object associated with the third object in the host application of the embedded program.

[0017] In another possible implementation, the step of sending the updated state data of the third object to the terminal corresponding to the fourth object via the interactive component in response to an update of the state data of the third object includes:

[0018] Through the interactive component, in response to the update of p status data of the third object, the updated status data of each status data is sent to the terminal corresponding to the fourth object in order of priority of the p status data from high to low or from low to high, where p is an integer greater than 1.

[0019] In another possible implementation, after detecting the status data of the object that has logged into the embedded program in real time through the interactive component, the method further includes:

[0020] Through the interactive component, in response to the update of the state data of q fifth objects, the updated state data of each fifth object is sent to the terminal corresponding to the object associated with each of the q fifth objects in order of priority from high to low or from low to high, where q is an integer greater than 1.

[0021] On the other hand, an interactive device based on an embedded program is provided, the device comprising:

[0022] The display module is used to display the program interface of the embedded program when the first object in the host application has logged into the embedded program. The program interface displays an interactive entry point, and the first object is the object that has logged into the host application.

[0023] The display module is also used to display a first prompt message in the interactive entry when the second object has logged into the embedded program. The first prompt message is used to prompt that the second object has logged into the embedded program, and the second object is an object that has an association relationship with the first object in the host application.

[0024] The display module is also configured to display the second object in response to a trigger operation on the interactive entry point;

[0025] The sending module is used to send first interactive information to the second object in response to an interactive operation on the second object.

[0026] In one possible implementation, the display module is configured to display i sub-entries in response to a trigger operation on the interactive entry point, wherein different sub-entries are used to implement different interactive functions, and i is an integer greater than 1; and to display the second object in response to a trigger operation on an interactive sub-entry among the i sub-entries.

[0027] In another possible implementation, the display module is further configured to, in response to a trigger operation on the guide sub-entry of the i sub-entries, display j embedded programs, wherein the j embedded programs are embedded programs that a third object has historically logged into, and the third object is an object that the first object has an association with in the host application, and j is an integer greater than 0; and in response to a trigger operation on any of the j embedded programs, display the program interface of the triggered embedded program.

[0028] In another possible implementation, the program interface displays a virtual object controlled by the first object, and the first interactive information is a virtual item owned by the virtual object; the sending module is used to send the virtual item to the second object in response to an item gifting operation to the second object.

[0029] In another possible implementation, the display module is further configured to display a fourth object in response to a trigger operation on the interactive entry point, the fourth object being an object that has an association with the first object in the host application and has historically logged into the embedded program.

[0030] In another possible implementation, the display module is further configured to, in response to receiving status data of a fifth object, display a second prompt message in the interactive entry point. The second prompt message is used to indicate that status data of the fifth object has been received. The fifth object is an object that has an association with the first object in the host application. The status data indicates the status of the fifth object or the status of a virtual object controlled by the fifth object. When the second prompt message is displayed in the interactive entry point, the status data of the fifth object is displayed in response to a triggering operation on the interactive entry point.

[0031] In another possible implementation, the display module is configured to, in response to the second object logging into the embedded program, switch the interactive entry from an inactive state to an active state and display the first prompt information in the interactive entry; and, when the interactive entry is in the active state, display the second object in response to a trigger operation on the interactive entry.

[0032] In another possible implementation, the display module is further configured to, in response to receiving second interactive information, display third prompt information in the interactive entry point, the third prompt information being used to indicate that the second interactive information has been received, the second interactive information being sent from another object to the first object; and to display the second interactive information in response to a triggering operation on the interactive entry point.

[0033] In another possible implementation, the display module is further configured to display interactive options corresponding to the second object in response to a triggering operation on the interactive entry point;

[0034] The sending module is used to send the first interactive information to the second object in response to a triggering operation of the interactive option.

[0035] In another possible implementation, the display module is configured to display k interactive options corresponding to the second object in response to a trigger operation on the interactive entry point, where k is an integer greater than 1;

[0036] The sending module is configured to send the first interactive information corresponding to the triggered interactive option to the second object in response to a triggering operation of any of the k interactive options.

[0037] In another possible implementation, the sending module is configured to, in response to a triggering operation on the interaction option, send the first interaction information to the second object when a fourth prompt message is displayed in the interaction option, and switch the fourth prompt message in the interaction option to a fifth prompt message, wherein the fourth prompt message is used to prompt interaction with the second object in the embedded program, and the fifth prompt message is used to prompt interaction with the second object in the host application;

[0038] The sending module is further configured to, in response to a triggering operation of the interactive option, send an interactive message to the second object in the host application when the fifth prompt information is displayed in the interactive option.

[0039] In another possible implementation, the interactive entry is used to request other objects to perform the same virtual task, and the first prompt information is used to prompt m second objects that have logged into the embedded program, where m is an integer greater than 1; the display module is used to display the objects among the m second objects that can perform the virtual task in response to the triggering operation of the interactive entry when the first object has accepted the virtual task.

[0040] The sending module is configured to send a task request information to the triggered object in response to a triggering operation on any of the displayed objects. The task request information instructs the triggered object to jointly execute the virtual task with the first object.

[0041] In another possible implementation, the display module is configured to, in response to a triggering operation on the interactive entry point, display the n virtual tasks when the first object has already accepted n virtual tasks; and in response to a triggering operation on any of the n virtual tasks, display the object among the m second objects that can execute the triggered virtual task.

[0042] In another possible implementation, the first prompt message is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1; the display module is used to, in response to a trigger operation on the interaction entry, display the m second objects in descending or ascending order of the interaction parameters corresponding to the m second objects, where the interaction parameters of the second objects indicate the interaction status between the second objects and the first objects in the embedded program; or, in response to a trigger operation on the interaction entry, display the object among the m second objects that meets a preset condition, where the preset condition indicates that the corresponding interaction parameter of the m second objects is the largest, or indicates that the interaction time between the m second objects and the first object is the latest.

[0043] On the other hand, an interactive device based on an embedded program is provided, the device comprising:

[0044] The receiving module is used to receive interactive information sent by the first terminal through the access interface. The interactive information is sent by the first terminal in response to the interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application.

[0045] An identification module is used to identify the type of the interactive information through the access interface;

[0046] The calling module is used to call the interactive component provided by the host application when the access interface is used to identify that the interactive information belongs to a preset type. The interactive component is used to process the information of the preset type.

[0047] The sending module is used to send the interactive information to a second terminal through the interactive component. The second terminal is a terminal that logs into the embedded program based on the second object in the host application.

[0048] In one possible implementation, the interactive component is further used to synchronize state data between different objects; the device also includes:

[0049] The sending module is further configured to detect, through the interactive component, the status data of an object that has logged into the embedded program, wherein the status data of the object indicates the status of the object or the status of a virtual object controlled by the object; and, through the interactive component, in response to an update of the status data of a third object, send the updated status data of the third object to the terminal corresponding to the fourth object, wherein the third object is any object that has logged into the embedded program, and the fourth object is an object associated with the third object in the host application of the embedded program.

[0050] In another possible implementation, the sending module is configured to, in response to an update of p status data of the third object, send the updated status data of each status data to the terminal corresponding to the fourth object in descending or ascending order of priority of the p status data, where p is an integer greater than 1.

[0051] In another possible implementation, the sending module is further configured to, in response to an update of the state data of the q fifth objects, send the updated state data of each fifth object to the terminal corresponding to the object associated with each of the q fifth objects, in descending or ascending order of priority of the state data of the q fifth objects, where q is an integer greater than 1.

[0052] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the embedded program-based interactive method as described above.

[0053] On the other hand, a computer-readable storage medium is provided that stores at least one computer program, which is loaded and executed by a processor to perform the operations performed by the embedded program-based interactive method as described above.

[0054] In another aspect, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the operations performed by the embedded program-based interactive method as described above.

[0055] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 This is a schematic diagram of the structure of an implementation environment provided in an embodiment of this application;

[0058] Figure 2 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0059] Figure 3This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0060] Figure 4 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0061] Figure 5 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0062] Figure 6 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0063] Figure 7 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0064] Figure 8 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0065] Figure 9 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0066] Figure 10 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application;

[0067] Figure 11 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0068] Figure 12 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0069] Figure 13 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0070] Figure 14 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0071] Figure 15 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0072] Figure 16 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0073] Figure 17 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0074] Figure 18 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0075] Figure 19 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0076] Figure 20 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0077] Figure 21 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0078] Figure 22 This is a schematic diagram of a program interface provided in an embodiment of this application;

[0079] Figure 23 This is a schematic diagram of the structure of an interactive device based on an embedded program provided in an embodiment of this application;

[0080] Figure 24 This is a schematic diagram of the structure of an interactive device based on an embedded program provided in an embodiment of this application;

[0081] Figure 25 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;

[0082] Figure 26 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0083] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0084] The terms “first,” “second,” “third,” “fourth,” “fifth,” “sixth,” etc., used in this application may be used to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are used only to distinguish one concept from another. For example, without departing from the scope of this application, a first object may be referred to as a second object, and similarly, a second object may be referred to as a first object.

[0085] As used in this application, the terms "at least one," "multiple," "each," and "any" have different meanings: at least one includes one, two, or more; multiple includes two or more; each refers to each of the corresponding multiple options; and any refers to any one of the multiple options. For example, multiple interactive options may include three interactive options, where each refers to each of the three interactive options, and any refers to any one of the three interactive options, which could be the first interactive option, the second interactive option, or the third interactive option.

[0086] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the objects, prompts, or interactive information involved in this application were obtained with full authorization.

[0087] Figure 1 This is a structural block diagram of a computer system provided in an embodiment of this application. See also... Figure 1 The computer system includes a first terminal 101, a second terminal 102, and a server 103.

[0088] The first terminal 101 has a host application 111 installed and running that supports running embedded programs. Optionally, the host application 111 can be any of an instant messaging application, a multimedia resource sharing application, etc. The first terminal 101 is a terminal used by a first user, and a first object is used to represent the first user. The first user uses the first terminal 101 to log in to the host application 111 based on the first object, and can log in to the embedded program in the host application 111 based on the first object to display the program interface of the embedded program.

[0089] The second terminal 102 has a host application 121 installed and running, which supports running embedded programs. The second terminal 102 is a terminal used by a second user. The second object is used to represent the first user. The second user uses the second terminal 102 to log in to the host application 121 based on the second object, and can log in to the embedded program in the host application 121 based on the second object to display the program interface of the embedded program.

[0090] The first terminal 101 is connected to the server 103 via a wireless or wired network, and the second terminal 102 is also connected to the server 103 via a wireless or wired network. The server 103 provides background services for the embedded program. The server 103 includes at least one of a single server, multiple servers, or a virtualization center. For example, the server 103 includes a processor and a memory. The memory further includes a receiving module and a sending module. The receiving module receives requests from the embedded program, such as interaction requests or information retrieval requests. The processor responds to the received requests. The sending module sends responses to the embedded program, such as sending information. Optionally, the server 103 undertakes the primary computational work, while the first terminal 101 and the second terminal 102 undertake secondary computational work; or, the server 103 undertakes secondary computational work, while the first terminal 101 and the second terminal 102 undertake the primary computational work; or, the server 103, the first terminal 101, and the second terminal 102 collaborate using a distributed computing architecture.

[0091] Taking the relationship between the first object and the second object in the host application as an example, the interaction between the first terminal 101, the second terminal 102, and the server 103 enables the interaction between the first object and the second object in the embedded program. The first terminal 101 sends an interaction request to the server 102 through the running embedded program, so that the server 102 responds to the interaction request and sends interaction information to the second terminal 102, so that the second terminal 102 can display the received interaction information through the program interface of the embedded program, thus realizing the interaction between the first terminal 101, the second terminal 102, and the server 103.

[0092] Optionally, the host application installed on the first terminal 101 and the second terminal 102 is the same, or the host applications installed on the three terminals are the same type of host application on different operating system platforms. The first terminal 101 can refer to one of multiple terminals, and the second terminal 102 can refer to one of multiple terminals; this embodiment only uses the first terminal 101 and the second terminal 102 as examples. The device types of the first terminal 101 and the second terminal 102 may be the same or different, and these device types include at least one of the following: smartphones, smartwatches, smart TVs, tablets, wearable devices, in-vehicle terminals, MP3 players, MP4 players, laptops, and desktop computers. The following embodiments use smartphones as an example.

[0093] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number of terminals or the type of device.

[0094] Figure 2 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 2 As shown, the method includes:

[0095] 201. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0096] In this embodiment, the terminal has a host application installed and is capable of running the host application. When the host application is running, the embedded program can be launched and run within the host application. While running the embedded program within the host application, the terminal can log in to the embedded program based on an object already logged in within the host application, thereby displaying the embedded program's interface. Subsequently, various operations can be performed within the program interface, such as interactions with other objects, control operations on virtual objects within the program interface, or other types of operations. When the terminal logs into the embedded program within the host application based on a first object, it can interact with other objects that have a relationship with the host application within the embedded program.

[0097] The host application can be any type of application, such as an instant messaging application, multimedia resource sharing application, navigation application, e-commerce application, etc. The embedded program, also known as a mini-program, is a lightweight application embedded within the host application. Embedded programs require no download or installation. The embedded program can be any type of program, such as a game mini-program, e-commerce mini-program, navigation mini-program, or other similar programs. The program interface of the embedded program can be any interface within the embedded program, such as the main interface or the interface for playing a game. The first object represents the corresponding user and is a unique identifier for the user. The first object can be represented in any form; for example, the first object can be the user's account, represented as a string or text. The interaction entry point can be any type of entry point, such as a button or a slider.

[0098] For example, when the terminal is running a host application, the user displays an embedded program in the host application through the terminal. The user clicks on the embedded program through the terminal, and the embedded program runs in the host application. When the embedded program is running, the login interface of the embedded program is displayed. The user triggers a login operation in the login interface through the terminal, and the terminal displays confirmation information through the embedded program. This confirmation information indicates that the embedded program is logged in based on the first object logged in in the host application. The user triggers a confirmation operation on the confirmation information through the terminal, which is equivalent to the user confirming that the embedded program is logged in based on the first object. Therefore, when the first object has logged into the embedded program in the host application, the terminal displays the program interface of the embedded program so that subsequent operations can be performed in the program interface.

[0099] 202. When the terminal has logged into the embedded program with the second object, the terminal displays the first prompt message in the interactive entry. The first prompt message is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application.

[0100] In this embodiment, considering that objects related to the first object in the host application may also log in to the embedded program, and that objects related to the first object in the host application can interact with each other in the embedded program when they log in, when the terminal displays the program interface of the embedded program, if an object related to the first object in the host application has logged in to the embedded program, a prompt message will be displayed in the interaction entry point. This prompt message will remind other objects that are already related to the first object to log in to the embedded program so that the first object can interact with other objects in the host application in the future.

[0101] The first object in the host application can be any of the objects associated with the first object in the host application. This association can be of any type; for example, a friend relationship means the second object is a friend of the first object in the host application; or the association indicates that the second object and the first object belong to the same group. The first notification message can be represented in any form, such as text or numbers. For example, if the first notification message is text, it describes the objects associated with the first object in the host application and logged into the embedded program, such as "xx object is online" or "3 friends are online". If the first notification message is numerical, it represents the number of objects associated with the first object in the host application and logged into the embedded program, such as "5", indicating that there are 5 objects associated with the first object in the host application and logged into the embedded program.

[0102] For example, if a first user logs into an embedded program in a host application using a first terminal based on a first object, the first terminal will display the embedded program's interface, indicating a connection between the first object and a second object within the host application. If the first object is already logged into the embedded program, and a second user logs into the embedded program in the host application using a second terminal based on the second object, the first terminal will display a first prompt message in the interactive entry points included in the program interface to indicate that the second object has already logged into the embedded program. Alternatively, if the first terminal logs into the embedded program based on the first object, and an object already associated with the first object in the host application is also logged into the embedded program, the first prompt message will immediately be displayed in the interactive entry points included in the program interface to indicate that the object associated with the first object in the host application has logged into the embedded program.

[0103] 203. The terminal responds to the trigger operation of the interactive entry and displays the second object.

[0104] In this embodiment of the application, the interactive entry is used to interact with other objects. When the terminal detects the trigger operation of the interactive entry, it will display objects that are associated with the first object in the host application and have been logged into the embedded program, so that the terminal can interact with the displayed objects in the future.

[0105] The triggering operation for the interactive entry point can be any type of operation, such as a click, press, or swipe.

[0106] 204. In response to the interactive operation on the second object, the terminal sends the first interactive information to the second object.

[0107] In this embodiment of the application, when the terminal displays an object that is associated with the first object in the host application and has been logged into the embedded program, the user can trigger an interactive operation on the object through the terminal, and then send interactive information to the object, so as to realize the interaction between the first object and the object in the embedded program.

[0108] The first interactive information can be any type of information, such as conversation messages, virtual props, etc. Virtual props can be virtual avatar frames, virtual emoticons, virtual coins, etc.

[0109] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience.

[0110] exist Figure 2 Based on the illustrated embodiment, in this embodiment of the application, i different sub-entries can be displayed through the interactive entry point, so that interaction with other objects can be achieved through the interactive sub-entries among the i sub-entries. For details of the process, please refer to the following embodiments.

[0111] Figure 3 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 3 As shown, the method includes:

[0112] 301. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0113] In one possible implementation, the program interface also displays function options and information about the first object.

[0114] The function options are used to implement any function, such as a task option or a virtual match option. The task option is used to accept virtual tasks, and the virtual match option is used to participate in virtual matches. The information of the first object includes the name and avatar of the first object. Optionally, the information of the first object also includes the number of virtual items owned by the first object.

[0115] For example, the embedded program is a card game program, and the program interface is the game interface. The game interface displays the name of the first object, the avatar of the first object, the function options corresponding to various virtual games, the number of virtual items possessed by the first object, etc. The virtual items are the items consumed to participate in the virtual games, such as virtual coins. The function options corresponding to different virtual games are used to participate in different virtual games, such as the number of virtual items consumed to participate in different virtual games.

[0116] For example, the embedded program is a level-based game program, and the program interface is the game interface. The game interface displays the virtual object controlled by the first object, the enemy virtual object, the current level, and multiple function options. The virtual object can enter the next level after defeating the enemy virtual object. The multiple function options include equipment options, combat options, and mission options. The equipment option is used to display the virtual equipment owned by the virtual object, the combat option is used to control the virtual object to fight against the enemy virtual object, and the mission option is used to display the virtual missions undertaken by the virtual object.

[0117] 302. When the terminal has logged into the embedded program with the second object, it displays the first prompt information in the interactive entry. The first prompt information is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application.

[0118] In one possible implementation, when the first object is logged into the embedded program, the object that has an association with the first object in the host application and is already logged into the embedded program is referred to as the second object. There may be one or more second objects. If there are multiple second objects, a first notification message indicates that multiple second objects have been logged into the embedded program. Optionally, the first notification message includes the number of multiple second objects or the number of second objects themselves.

[0119] For example, if there are 3 second objects, the first prompt message indicates "3 friends are online" or "Second object 1, second object 2, and second object 3 are all online".

[0120] In one possible implementation, step 302 includes: displaying a first prompt message at the interactive entry point when the first object has been logged into the embedded program for a preset duration and the second object has been logged into the embedded program.

[0121] The preset duration can be any length, for example, 10 seconds or 15 seconds.

[0122] In this embodiment of the application, when the terminal logs into the embedded program based on the first object in the host application, the first prompt information will only be displayed in the interactive entry after the login time reaches the preset time. This is to avoid the program interface becoming cluttered due to too many prompts displayed when the embedded program is first logged in, and to ensure the display effect of the program interface.

[0123] In one possible implementation, step 302 includes: in the case of a first object logging into the embedded program, in response to a second object logging into the embedded program, displaying a first prompt message at the interactive entry point.

[0124] The second object is an object that has a relationship with the first object in the host application and logs into the embedded program after the first object. When the first object logs into the embedded program, the login of the second object indicates that the second object has just come online in the embedded program.

[0125] In this embodiment, after the terminal logs into the embedded program based on the first object, if any object that has a relationship with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind which objects have just logged into the embedded program. This enhances the reminder effect for newly online associated objects, encourages interaction with newly online associated objects, and thus ensures the subsequent interaction effect.

[0126] 303. In response to the trigger operation of the interactive entry, the terminal displays i sub-entries. Different sub-entries are used to implement different interactive functions, where i is an integer greater than 1.

[0127] In this embodiment, the interactive entry point is equivalent to an integrated entry point of i sub-entries, and this interactive entry point is used to display the i sub-entries. The sub-entries can be of any type, such as buttons or sliders.

[0128] For example, if i is 3, the 3 sub-entries include the interaction sub-entry, the guidance sub-entry, and the record sub-entry. The interaction sub-entry is used to interact with objects associated with the first object in the host application within the embedded program. The guidance sub-entry is used to display other embedded programs logged into by objects associated with the first object in the host application. The record sub-entry is used to display the historical interactions between the first object and other objects in the embedded program.

[0129] In one possible implementation, each sub-entry point displays a function identifier for the corresponding interactive function. This function identifier can be represented in any form, such as a function name or an image.

[0130] In this embodiment of the application, the corresponding interactive function identifier is displayed in each sub-entry point, which makes it convenient for users to view the interactive functions that each sub-entry point can achieve and facilitates the subsequent selection of sub-entry points.

[0131] In one possible implementation, step 303 includes: in response to a triggering operation on the interactive entry, displaying i sub-entries in the interactive interface; or, in response to a triggering operation on the interactive entry, displaying a pop-up window on the program interface, the pop-up window displaying i sub-entries.

[0132] In this embodiment, the interactive interface is used to display i sub-entries. The interactive interface is provided by the embedded program and is different from the program interface. In response to the triggering operation of the interactive entry, the program interface is switched to the interactive interface, and the i sub-entries are displayed in the interactive interface. This highlights the i sub-entries, avoids visual interference from the content in the original program interface, ensures the display effect of the interface, and thus ensures the user experience.

[0133] In this embodiment, a pop-up window is used to display i sub-entries. In response to the triggering operation of the interactive entry, the i sub-entries are displayed in the form of a pop-up window, which can highlight the i sub-entries, ensure the display effect of the sub-entries, and thus ensure the user experience.

[0134] 304. The terminal responds to the trigger operation of the interactive sub-entry among the i sub-entries by displaying the second object.

[0135] In this embodiment, among the i sub-entries, there is an interactive sub-entry. When the terminal displays the i sub-entries, the user triggers the displayed interactive sub-entry through the terminal to display objects that have a relationship with the first object in the host application and have been logged into the embedded program, so that the user can interact with the displayed objects.

[0136] In one possible implementation, step 304 includes: if i sub-entries are displayed in the interactive interface, in response to a triggering operation on an interactive sub-entry among the i sub-entries, displaying a second object in the interactive interface; or, if i sub-entries are displayed in a pop-up window on the program interface, in response to a triggering operation on an interactive sub-entry among the i sub-entries, displaying a second object in the pop-up window.

[0137] In this embodiment of the application, the second object is displayed in the interactive interface or pop-up window to ensure the display effect and thus ensure the user experience.

[0138] It should be noted that the embodiments of this application are illustrated by showing the second object through the interactive sub-entries when i sub-entries are displayed through the interactive entry. In another embodiment, it is not necessary to perform the above steps 303-304. Instead, other methods are adopted to display the second object in response to the triggering operation of the interactive entry.

[0139] 305. In response to the interactive operation on the second object, the terminal sends the first interactive information to the second object.

[0140] In one possible implementation, the program interface displays a virtual object controlled by a first object, and the first interactive information is virtual items owned by the virtual object; then step 305 includes: in response to an item gifting operation to a second object, sending virtual items to the second object.

[0141] In this scenario, when the terminal logs into the embedded program based on the first object, a virtual object controlled by the first object is displayed in the program interface. The terminal can control the virtual object to perform operations within the program interface, such as controlling the virtual object to engage in combat with other virtual objects or controlling its movement within a virtual scene. This virtual object possesses virtual items, which can be of any type, such as virtual gems, virtual coins, or virtual equipment.

[0142] In this embodiment, when a first object is associated with a second object in the host application and has been logged into the embedded program, the user can interact with the displayed second object and gift virtual items owned by the virtual object controlled by the first object to the second object. This realizes a solution for gifting items between different objects in the embedded program, enriches the interaction methods between different objects, and ensures the interaction effect.

[0143] Optionally, after gifting virtual items to the second object, a conversation message can be sent to the second object in the host application to remind it. The process of sending the conversation message includes: displaying a gift notification message when gifting virtual items to the second object, the gift notification message being used to notify the second object when gifting virtual items to the second object; and sending a conversation message in the host application in response to a confirmation operation on the gift notification message, the conversation message being used to indicate that the first object has gifted virtual items to the second object.

[0144] The gift notification message can be represented in any form; for example, it can be text-based, such as "Gifted, tell them." The confirmation action for the gift notification message can be any type of action, such as a click, long press, or swipe. Conversation messages are messages exchanged between different objects within the host application.

[0145] In this embodiment of the application, when virtual items are gifted to the second object, a gifting prompt message will also be displayed to remind the second object to send a session message in the host application, so that the second object knows that the first object has gifted virtual items to it. This allows the first object to interact with the second object through the host application while interacting with the second object through the embedded program, enriching the interaction methods between the first and second objects and improving the interaction effect.

[0146] Optionally, in addition to displaying the gift notification message, a confirmation option is also displayed, and in response to triggering the confirmation option, a session message is sent to the second object in the host application.

[0147] The action of triggering the confirmation option is equivalent to the confirmation action of the gift notification message. Optionally, when the gift notification message is displayed, a cancellation option is also displayed. In response to the action of triggering the cancellation option, the display of the gift notification message is canceled, and no session message is sent to the second object in the host application.

[0148] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience.

[0149] Furthermore, the interactive entry point is equivalent to an integrated entry point for i sub-entries used to implement different interactive functions. In response to the triggering operation of the interactive entry point, i sub-entries are displayed so that the interactive sub-entries among the i sub-entries can be triggered, displaying the objects that the first object has a relationship with in the host application and has been logged into the embedded program, so that subsequent interaction with the displayed objects can be achieved. In this way, interaction with associated objects can be achieved through interactive sub-entries without displaying i sub-entries in the program interface, which simplifies the content displayed in the program interface and ensures the display effect of the program interface. Moreover, different interactive functions can be implemented through i sub-entries, enriching the interaction methods between different objects in the embedded program and ensuring the interaction effect.

[0150] In the above Figure 3Based on the embodiments shown, the embodiments of this application can also realize the jump of the embedded program through the boot sub-entry in i sub-entries, and the specific process is detailed in the following embodiments.

[0151] Figure 4 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 4 As shown, the method includes:

[0152] 401. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0153] 402. When the terminal has logged into the embedded program with the second object, the terminal displays the first prompt message in the interactive entry. The first prompt message is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application.

[0154] 403. In response to the trigger operation of the interactive entry, the terminal displays i sub-entries. Different sub-entries are used to implement different interactive functions, where i is an integer greater than 1.

[0155] Steps 401-403 are the same as steps 301-303 above, and will not be repeated here.

[0156] 404. In response to the triggering operation of the guide sub-entry in i sub-entries, the terminal displays j embedded programs. The j embedded programs are embedded programs that the third object has historically logged into. The third object is an object that has an association relationship with the first object in the host application. j is an integer greater than 0.

[0157] Among them, the i sub-entries include an interactive sub-entry and a guidance sub-entry, which is used to guide the object to log in to other embedded programs. The j embedded programs are different from the embedded programs logged in by the terminal based on the first object, or the j embedded programs include the embedded programs logged in by the terminal based on the first object and other embedded programs. The third object is any object that has an association relationship with the first object in the host application, and the third object includes one or more.

[0158] In this embodiment of the application, for objects that have an association with the first object in the host application, they may have logged into multiple embedded programs in the past. Therefore, by triggering the bootstrap sub-entry, the embedded programs that the objects that have an association with the first object in the host application have logged into in the past are displayed, so as to provide the first object with the bootstrap program guidance, so as to guide the first object to log into other embedded programs and interact with objects that have an association with the host application.

[0159] In one possible implementation, step 404 includes: in response to a triggering operation on the boot sub-entry of the i sub-entries, displaying the program identifiers of the j embedded programs.

[0160] Among them, the program identifier of the embedded program is a unique identifier used to represent the embedded program. The program identifier can be represented in any form, such as the name or image of the embedded program.

[0161] 405. In response to a trigger operation on any of the j embedded programs, the terminal displays the program interface of the triggered embedded program.

[0162] The trigger operation for the embedded program can be any type of operation, such as a click operation or a long press operation.

[0163] In this embodiment of the application, in response to a trigger operation on any of the j embedded programs, the program interface of the triggered embedded program will be displayed to realize the scheme of jumping from the current embedded program to the triggered embedded program.

[0164] In one possible implementation, the j embedded programs include an embedded program logged in by the terminal based on a first object and other embedded programs. The embedded program logged in by the terminal based on the first object is referred to as the first embedded program. Then, step 405 includes: in response to a trigger operation on the second embedded program among the j embedded programs, the terminal displays the program interface of the second embedded program, wherein the second embedded program is any embedded program among the j embedded programs that is different from the first embedded program.

[0165] In the embodiments of this application, the j embedded programs include a first embedded program and a second embedded program that the terminal logs in based on a first object. When the second embedded program is triggered, a solution can be implemented to jump from the first embedded program to the second embedded program, ensuring the convenience of embedded program switching, eliminating the need for users to perform complex operations, and improving the efficiency of human-computer interaction.

[0166] In one possible implementation, step 405 includes: when the terminal displays program identifiers of j embedded programs, in response to a trigger operation on any program identifier, displaying the program interface of the embedded program indicated by the triggered program identifier.

[0167] Among them, the embedded program indicated by the triggered program identifier is equivalent to the aforementioned triggered embedded program.

[0168] In the solution provided by this application embodiment, for objects that have a relationship with the first object in the host application, they may have historically logged into multiple embedded programs. Therefore, by triggering a bootstrap sub-entry point, the embedded programs that the objects that have a relationship with the first object in the host application have historically logged into are displayed, so as to provide the first object with embedded program guidance. In response to a trigger operation on any of the j embedded programs, the program interface of the triggered embedded program will be displayed, so as to realize the solution of jumping from the current embedded program to the triggered embedded program. This realizes a new way of switching embedded programs, which can switch from the current embedded program to other embedded programs without the user performing complex operations, ensuring the convenience of embedded program switching and improving human-computer interaction efficiency. Furthermore, since the switched embedded program is an embedded program that the objects that have a relationship with the first object in the host application have historically logged into, the user can also interact with the objects that have a relationship in the host application in the switched embedded program, ensuring the interaction effect in the switched embedded program.

[0169] In the above Figure 2 Based on the embodiments shown, in the embodiments of this application, the state of the interactive entry will change as the first object logs into the embedded program with an object that has an association with it in the host application. It can only be triggered when the interactive entry is in an active state. For details, please refer to the following embodiments.

[0170] Figure 5 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 5 As shown, the method includes:

[0171] 501. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0172] Step 501 is the same as step 301 above, and will not be repeated here.

[0173] 502. In response to the second object logging into the embedded program, the terminal displays the interactive entry from an inactive state to an active state, and displays the first prompt information in the interactive entry. The first prompt information is used to indicate that the second object has logged into the embedded program, and the second object is an object that has an association relationship with the first object in the host application.

[0174] In this embodiment, the interaction portal is used to interact with objects that are associated with the first object in the host application and have logged into the embedded program. If none of the objects associated with the first object in the host application are logged into the embedded program, it means that none of the objects associated with the first object are currently logged into the embedded program. Therefore, the interaction portal cannot interact with other objects, and it is displayed in an inactive state to prevent it from being triggered. The second object is any object that is associated with the first object in the host application. In response to the second object logging into the embedded program, it means that objects associated with the first object in the host application are logged into the embedded program. At this time, interaction with logged-in objects is possible. Therefore, the interaction portal switches from an inactive state to an active state so that it can be triggered to interact with other objects later. Furthermore, a first prompt message is displayed in the interaction portal to indicate which objects are logged into the embedded program, achieving a double reminder effect.

[0175] The interactive entry point cannot be triggered when it is inactive, but it can be triggered when it is active. The inactive and active states can be displayed differently; for example, the interactive entry point is dimmed when inactive and highlighted when active.

[0176] 503. When the interactive entry is active, the terminal displays the second object in response to the triggering operation of the interactive entry.

[0177] In this embodiment of the application, when the interactive entry is in an active state, the interactive entry can be triggered, and it can also reflect that the object with which the first object has a relationship in the host application has been logged into the embedded program. Therefore, in response to the triggering operation of the interactive entry, the object with which the first object has a relationship in the host application and has been logged into the embedded program will be displayed so that the user can select the object to interact with.

[0178] In one possible implementation, the first prompt message is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1; then the process of displaying the second objects through the interactive entry includes the following two methods.

[0179] The first method: In response to the trigger operation of the interactive entry, m second objects are displayed in descending or ascending order of their corresponding interactive parameters. The interactive parameters of the second objects indicate the interaction between the second objects and the first objects in the embedded program.

[0180] In this embodiment, when m second objects that are associated with the first object in the host application have been logged into the embedded program, the m second objects are displayed in descending or ascending order of their interaction parameters. This allows the display order of the m second objects to reflect the interaction parameters with the first object, making it easier for the user to view the displayed second objects and select an interactive object from the m second objects. This improves the display effect of the second objects and ensures the convenience of subsequent object selection.

[0181] In this context, a higher interaction parameter for the second object indicates more interaction between the second object and the first object within the embedded program; conversely, a lower interaction parameter indicates less interaction between the second object and the first object. The interaction parameter can be represented in any form. For example, the interaction parameter for the second object can represent the number of interactions between the second and first objects, the number of times virtual items are gifted between them, or the value of the virtual items gifted between them.

[0182] The second method: In response to the trigger operation of the interaction entry, display the object that meets the preset conditions among the m second objects. The preset conditions indicate that the corresponding interaction parameter of the m second objects is the largest, or indicate that the interaction time with the first object is the latest among the m second objects.

[0183] In this embodiment of the application, when m second objects that are associated with the first object in the host application have been logged into the embedded program, only the objects that meet the preset conditions among the m second objects are displayed, without displaying all m second objects. This ensures that the displayed objects are those that the first object may want to interact with, avoids visual interference caused by displaying too many objects, and thus ensures the display effect and subsequent interaction effect.

[0184] In this context, a larger interaction parameter for the second object indicates more interaction between the second object and the first object. The interaction time between the second object and the first object represents the time of their most recent interaction. In this embodiment, a larger interaction parameter for the second object increases the likelihood of the first object interacting with the second object again; therefore, the object with the largest interaction parameter among the m second objects is displayed. A later interaction time between the second object and the first object indicates that the historical interaction time between the second object and the first object is closer to the current time, increasing the likelihood of the first object interacting with the second object again; therefore, the object with the latest interaction time with the first object among the m second objects is displayed.

[0185] For example, if m is 5, it means that 5 second objects that are related to the first object in the host application have been logged into the embedded program. If object 1 among the 5 second objects has the largest interaction parameter with the first object, then object 1 will be displayed; or, if object 2 among the 5 second objects has interacted with the first object today, and the other 4 second objects among the 5 second objects have all interacted with the first object yesterday, then object 2 will be displayed.

[0186] In one possible implementation, the method further includes: in response to a triggering operation on the interactive entry point, displaying a fourth object, which is an object that has an association with the first object in the host application and has historically logged into the embedded program.

[0187] In this embodiment of the application, in response to the triggering operation of the interactive entry, not only is the second object that has been logged into the embedded program displayed, but also the fourth object that has not been logged into the embedded program but has been logged into the embedded program in the past is displayed. This is so that all objects that have an association with the first object in the host application and have been logged into the embedded program can be displayed, so as to provide more interactive objects for the first object, enrich the displayed content, facilitate the selection of interactive objects, ensure the display effect, and also ensure the convenience of subsequent selection of interactive objects.

[0188] Optionally, if the second object and the fourth object are displayed, the login information of the second object and the login information of the fourth object will also be displayed.

[0189] The login information for the second object indicates whether the second object is currently logged in, that is, whether the second object is currently online. The login information for the fourth object indicates the time of the fourth object's most recent login.

[0190] It should be noted that in this embodiment, the state of the interactive entry changes as the first object logs into the embedded program with an object that has a relationship with it in the host application. It can only be triggered when the interactive entry is active. In another embodiment, steps 502-503 do not need to be executed. Instead, other methods are used. When the second object has logged into the embedded program, the first prompt information is displayed in the interactive entry. In response to the triggering operation of the interactive entry, the second object is displayed.

[0191] 504. In response to the interactive operation on the second object, the terminal sends the first interactive information to the second object.

[0192] Step 504 is the same as step 305 above, and will not be repeated here.

[0193] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience.

[0194] Furthermore, the state of the interactive entry point changes as objects associated with the first object in the host application log into the embedded program. When any object associated with the first object in the host application logs into the embedded program, the interactive entry point not only switches from an inactive state to an active state, but also displays the first prompt information in the interactive entry point to indicate which objects have logged into the embedded program, so that the active interactive entry point can be triggered to interact with other objects in the future, achieving a dual reminder effect and ensuring the reminder effect.

[0195] In the above Figure 2 Based on the illustrated embodiments, this application embodiment also displays interactive options when displaying the second object, so as to interact with the second object through the interactive options. For details, please refer to the following embodiments.

[0196] Figure 6 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 6 As shown, the method includes:

[0197] 601. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0198] 602. When the terminal has logged into the embedded program with the second object, it displays the first prompt information in the interactive entry. The first prompt information is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application.

[0199] Steps 601-602 are the same as steps 301-302 above, and will not be repeated here.

[0200] 603. In response to the triggering operation of the interactive entry, the terminal displays the second object and the corresponding interactive options.

[0201] In this embodiment of the application, the interaction entry is used to interact with other objects. When the terminal detects the trigger operation of the interaction entry, it not only displays the second object, that is, the object that has an association with the first object in the host application and has been logged into the embedded program, but also displays the interaction options corresponding to the second object, so as to interact with the second object through the interaction options.

[0202] Interaction options are used to enable interactive functions with the corresponding objects. For example, interaction options can be used to send messages to the corresponding object, or to give virtual items to the object's object. Interaction options can be of any type; for example, interaction options can be buttons or sliders.

[0203] In one possible implementation, the process of displaying the second object includes: displaying the second object in response to a triggering operation on the interactive entry point when the first prompt information is displayed at the interactive entry point.

[0204] Optionally, if the first prompt message is displayed at the interactive entry point, a second object and its corresponding interactive options are displayed in response to the triggering operation of the interactive entry point.

[0205] In one possible implementation, step 603 includes: in response to a triggering operation on the interactive entry, displaying k interactive options corresponding to the second object, where k is an integer greater than 1.

[0206] There are k interactive options used to implement different interactive functions. For example, among the k interactive options, the first interactive option is used to send a message to the corresponding object, the second interactive option is used to give virtual items to the corresponding object, and the third interactive option is used to provide assistance to the object, etc.

[0207] Optionally, in response to a triggering operation on the interactive entry point, multiple second objects and k interactive options corresponding to each second object are displayed.

[0208] In this embodiment of the application, when the first prompt message is used to prompt that multiple objects with an association relationship in the host application have been logged into the embedded program, the multiple objects can be displayed by triggering the interaction entry, that is, the second object is displayed, and at least one interaction option corresponding to each second object is displayed, so as to interact with the second object through the interaction option corresponding to the second object.

[0209] In one possible implementation, step 603 includes: displaying a second object in the interactive interface in response to a triggering operation on the interactive entry point; or, displaying the second object in a pop-up window in response to a triggering operation on the interactive entry point.

[0210] In this embodiment, the interactive interface is an interface provided by the embedded program and is different from the program interface. In response to a trigger operation on the interactive entry point, the program interface is switched to the interactive interface, and the second object is displayed in the interactive interface. Alternatively, in response to a trigger operation on the interactive entry point, a pop-up window is displayed on the program interface, and the second object is displayed in the pop-up window. Displaying the second object in the interactive interface or the pop-up window ensures a good display effect and thus guarantees a good user experience.

[0211] 604. In response to the triggering operation of the interactive option, the terminal sends the first interactive information to the second object.

[0212] In this embodiment of the application, when displaying the interactive options corresponding to the second object, the triggering operation of the interactive options is equivalent to the interactive operation of the second object, and the first interactive information is sent to the second object.

[0213] In one possible implementation, step 604 includes: when displaying k interactive options corresponding to the second object, in response to a triggering operation on any of the k interactive options, sending first interactive information corresponding to the triggered interactive option to the second object.

[0214] In this embodiment of the application, when displaying k interactive options corresponding to the second object, different interactive options are used to implement different interactive functions. When different interactive options are triggered, different interactive information will be sent to the second object to achieve different interactive functions. In this way, different interactive methods can be adopted to interact with the second object through k interactive options, which enriches the interactive methods and ensures the interactive effect.

[0215] The interactive information corresponding to different interactive options is different, and the interactive information corresponding to the interactive options matches the interactive function implemented by the interactive options.

[0216] For example, if k is 2, the first interaction option is used to implement the chat function, and the second interaction option is used to implement the item gifting function. If the first interaction option is triggered, the first interaction message sent to the second object is a chat message. If the second interaction option is triggered, the first interaction message sent to the second object is a virtual item gifted to the second object.

[0217] In one possible implementation, the process of sending interactive information to a second object via an interactive option includes: if a fourth prompt message is displayed in the interactive option, in response to a triggering operation on the interactive option, sending a first interactive message to the second object; switching the fourth prompt message in the interactive option to a fifth prompt message, wherein the fourth prompt message is used to prompt interaction with the second object in the embedded program, and the fifth prompt message is used to prompt interaction with the second object in the host application; and if the fifth prompt message is displayed in the interactive option, in response to a triggering operation on the interactive option, sending an interactive message to the second object in the host application.

[0218] In this embodiment, in response to a triggering operation of the interactive entry point, a second object and its corresponding interactive options are displayed. At this time, a fourth prompt message is displayed in the interactive options, indicating that the second object can be interacted with in the embedded program via the interactive options. If the interactive options are triggered, interactive information is sent to the second object in the embedded program to enable interaction between the first and second objects in the embedded program. Furthermore, the fourth prompt message displayed in the interactive options switches to a fifth prompt message, indicating that the second object can be interacted with in the host application via the interactive options. If the interactive options are triggered, interactive information is sent to the second object in the host application to enable interaction between the first and second objects in the host application. This achieves a solution where two objects can interact in two different programs through a single interactive option, eliminating the need to set separate interactive options for different programs, reducing the number of interactive options required, ensuring display quality, and eliminating the need to perform triggering operations on different interactive options separately, thus ensuring ease of operation.

[0219] The fourth prompt can be represented in any form, such as text. For example, the fourth prompt could be "Interact with friends in the embedded program" or "Interact with friends in the host application." The fifth prompt can also be represented in any form, such as text. The fifth prompt is similar to the fourth prompt and will not be elaborated further.

[0220] It should be noted that the embodiments of this application are described using the example of interacting with the second object through the displayed interactive options. In another embodiment, it is not necessary to perform the above steps 603-604. Instead, other methods are adopted, such as displaying the second object in response to the triggering operation of the interactive entry; and sending the first interactive information to the second object in response to the interactive operation of the second object.

[0221] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience.

[0222] Furthermore, the interactive entry point is used to interact with other objects. When the terminal detects the trigger operation of the interactive entry point, it not only displays the second object, but also the corresponding interactive options for the second object, so that the second object can be interacted with through the interactive options to send the first interactive information to the second object. In this way, interaction with the second object can be achieved simply by triggering the interactive options, without the need to perform complex operations, ensuring the convenience of interaction and thus improving the efficiency of human-computer interaction.

[0223] In the above Figure 2 Based on the embodiments shown, in the embodiments of this application, other objects can be asked to perform the same virtual task through the interactive portal. For details of the process, please refer to the following embodiments.

[0224] Figure 7 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 7 As shown, the method includes:

[0225] 701. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point. The first object is the object that has already logged into the host application. The interactive entry point is used to request other objects to perform the same virtual task.

[0226] In this embodiment, when a terminal logs into an embedded program based on a first object, it can undertake virtual tasks within the embedded program to complete these tasks and obtain corresponding rewards, such as virtual items. Furthermore, an interaction portal is used to request assistance from other objects to perform the same virtual task as the current first object, enabling interaction between the first object and other objects. The interaction portal also allows the terminal to request assistance from other objects to perform the same virtual task, thereby accelerating the completion of virtual tasks by the logged-in first object, or enabling the first object to complete virtual tasks that require multiple objects to execute together.

[0227] For example, the embedded program is a card game mini-program. The terminal logs into the card game mini-program based on a first object. Based on the first object, it can participate in a card game in the mini-program. The virtual task that the first object has accepted requires it to participate in the same card game with friends 5 times. Moreover, a card game requires the participation of multiple objects. Therefore, it can use the interaction entry to ask other objects that have a relationship with the first object in the host application to participate in the same card game with the first object in order to help the first object complete the virtual task.

[0228] For example, the embedded program is a game mini-program. The terminal logs into the game mini-program based on a first object. The embedded program's interface displays a virtual scene and virtual objects located within the virtual scene. The first object can control these virtual objects to move around in the virtual scene or interact with other virtual objects. The virtual objects have accepted virtual tasks in the virtual scene, which is equivalent to the first object accepting virtual tasks. These virtual tasks instruct the first object to fight and defeat a target virtual object together with a friend. Therefore, through an interaction portal, the first object can request assistance from other objects that have a relationship with it in the host application. This allows other objects to execute virtual tasks in the virtual scene by controlling virtual objects that work together with the virtual objects controlled by the first object, thus completing the virtual task.

[0229] 702. When m second objects have been logged into the embedded program, the terminal displays the first prompt message in the interactive entry. The first prompt message is used to prompt that m second objects have been logged into the embedded program. The second object is an object that has an association relationship with the first object in the host application, and m is an integer greater than 1.

[0230] In this embodiment of the application, when the terminal logs into the embedded program based on the first object, if m objects that have an association with the first object in the host application have already logged into the embedded program, the prompt information displayed in the interactive entry will remind these m objects which objects have already logged into the embedded program.

[0231] Steps 701-702 are the same as steps 301-302 above, and will not be repeated here.

[0232] 703. When the first object has accepted the virtual task, the terminal responds to the trigger operation of the interaction entry and displays the object that can perform the virtual task among the m second objects.

[0233] In this embodiment of the application, when the first object has already accepted the virtual task, the interactive entry is triggered to display the objects among the m second objects that can perform the virtual task, so that the user can select the object to jointly perform the virtual task from the displayed objects.

[0234] Virtual tasks can be of any type. For example, a virtual task might indicate participating in the same card game with a friend five times, or it might indicate fighting and defeating a target virtual object with a friend. "The first object has accepted a virtual task" refers to a virtual task accepted by the first object within the embedded program, or a virtual task accepted by a virtual object controlled by the first object within the embedded program.

[0235] In this embodiment, not all objects can execute any given virtual task. Therefore, only the objects among the m second objects that can execute the virtual task are displayed to avoid situations where the displayed objects cannot execute the virtual task, thus ensuring the accuracy of the displayed objects.

[0236] In one possible implementation, the process of determining the object capable of performing the virtual task from the m second objects includes: determining the object whose object information meets the acceptance condition from the m second objects as the object capable of accepting the virtual task.

[0237] The object information of the second object describes the second object. For example, the object information indicates the level, the amount of resources it possesses, or the virtual items it owns. The acceptance condition is the condition that the object accepting the virtual task must meet. For example, the acceptance condition indicates that the level of the object accepting the virtual task has reached a threshold, or that the amount of resources the object accepting the virtual task possesses exceeds a threshold, or that the object accepting the virtual task possesses certain virtual items.

[0238] In one possible implementation, step 703 includes: if the first object has already accepted n virtual tasks, in response to a trigger operation on the interactive entry, displaying the n virtual tasks; in response to a trigger operation on any of the n virtual tasks, displaying the m second objects that can execute the triggered virtual task.

[0239] In this embodiment, considering that the first object may undertake multiple virtual tasks, and that a request for help can be initiated for any virtual task through the interactive entry, the virtual tasks undertaken by the first object are displayed in response to the triggering operation of the interactive entry. When a virtual task is selected, the objects among m second objects that can execute the selected virtual task are displayed. In this way, when the first object may undertake multiple virtual tasks, the user can select the virtual task to be requested and then initiate the request for help, so as to ensure that the process of initiating the request for help is satisfactory to the user, facilitates user operation, and improves user experience.

[0240] Triggering any virtual task is equivalent to selecting that task, indicating subsequent interaction with other objects based on that task. Therefore, objects capable of performing that virtual task will be displayed. The triggering action for a virtual task can be any action, such as a click or a long press. Among the n virtual tasks, different tasks indicate different content. For example, one virtual task might instruct you to fight and defeat a target virtual object with a friend, while another virtual task might instruct you to gift virtual items to a friend.

[0241] 704. In response to a trigger operation on any of the displayed objects, the terminal sends a task request information to the triggered object, which instructs the triggered object to jointly execute a virtual task with the first object.

[0242] In this embodiment of the application, when displaying m second objects that can perform virtual tasks, a task request message is sent to the triggered object for any of the displayed objects to request the triggered object to perform the virtual task together with the first object, thereby realizing the interaction between the first object and the triggered object.

[0243] In this context, when displaying m second objects capable of performing virtual tasks, triggering any displayed object is equivalent to triggering a specific second object. The task request information is equivalent to the first interactive information. The task request information can be represented in any form; for example, it can be text-based. For instance, the task request information could be "Let's perform task XX together with the object."

[0244] In one possible implementation, the terminal that logs into the embedded program in the host application based on the triggered object is called the target terminal. After receiving the task request information, the target terminal displays the task request information in the program interface of the embedded program. In response to the confirmation operation of the task request information, it indicates that it agrees to jointly execute the virtual task with the first object, and subsequently displays a screen showing the triggered object and the first object jointly executing the virtual task. In response to the confirmation operation of the task request information, it indicates that it refuses to jointly execute the virtual task with the first object.

[0245] It should be noted that the embodiments of this application are illustrated by taking the example of being able to ask other objects for help to perform the same virtual task through the interactive entry. In another embodiment, it is not necessary to perform the above steps 703-704. Instead, other methods are adopted, and in response to the triggering operation of the interactive entry, the second object is displayed; in response to the interactive operation of the second object, the first interactive information is sent to the second object.

[0246] In the solution provided by this application embodiment, after a first object logged into the embedded program through the host application, an interaction entry will be displayed in the program interface of the embedded program. When a second object that is associated with the first object in the host application logs into the embedded program, a prompt message will be displayed in the interaction entry to remind the second object that is associated with the first object in the host application to log into the embedded program. Then, the user can interact with the second object in the embedded program through the interaction entry. In this way, the solution of allowing objects that are associated with the host application to interact in the embedded program can be realized without the user performing complex operations. This ensures the convenience of interaction and also ensures the interaction effect of different objects based on the embedded program. Furthermore, the displayed prompt message can promote interaction between different objects, further improving the interaction effect between different objects and thus enhancing the user experience.

[0247] Furthermore, the interactive entry point is used to request assistance from other objects to perform the same virtual task as the current first object. When the first object has already accepted the virtual task, triggering the interactive entry point displays m second objects capable of performing the virtual task. Then, in response to a trigger operation on any of the displayed objects, a task request message is sent to the triggered object, requesting assistance from the triggered object to perform the virtual task together with the first object. This achieves interaction between the first object and the triggered object, enriching the interaction methods between different objects, improving the interaction effect, avoiding situations where displayed objects cannot perform the virtual task, ensuring the accuracy of the displayed objects, and guaranteeing the convenience of selecting a requesting object. This improves human-computer interaction efficiency and speeds up the first object's completion of the virtual task, thereby enhancing the user experience.

[0248] It should be noted that the above Figures 2 to 7The illustrated embodiment displays a first prompt message in the interaction entry when the second object has already logged into the embedded program. In another embodiment, after a certain login duration, the first prompt message can also be displayed in the interaction entry according to the currently displayed friend's login status. Furthermore, the first prompt message is canceled after a certain display duration. That is, the process of displaying the first prompt message in the interaction entry includes: displaying the first prompt message in the interaction entry when the first object's login duration reaches a first preset duration and the second object has already logged into the embedded program; the first prompt message is used to indicate that the second object has logged into the embedded program; and canceling the display of the first prompt message in the interaction entry when the display duration reaches a second preset duration.

[0249] The first preset duration can be any length, for example, 5 seconds. The second preset duration can be any length, for example, 30 seconds.

[0250] In this embodiment, considering that when a user logs into an embedded program based on a first object through a terminal, they may overlook the first prompt information due to the excessive content displayed on the program interface, the first prompt information will only be displayed in the interactive entry point when the login duration of the first object reaches a first preset duration, so as to enhance the reminder effect of the first prompt information. When the display duration of the first prompt information reaches a second preset duration, the display of the first prompt information in the interactive entry point will be canceled to avoid visual interference caused by displaying the first prompt information for a long time, ensure the display effect, and thus improve the user experience.

[0251] It should be noted that the above Figures 2 to 7 The illustrated embodiment is based on sending interactive information to a second object. However, in the embodiments of this application, it is also possible to receive information sent by other objects to the first object. For details, please refer to the following embodiments.

[0252] Figure 8 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 8 As shown, the method includes:

[0253] 801. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0254] Step 801 is the same as step 301 above, and will not be repeated here.

[0255] 802. Upon receiving the second interactive information, the terminal displays a third prompt in the interactive entry. The third prompt is used to indicate that the second interactive information has been received. The second interactive information is sent from another object to the first object.

[0256] In this embodiment of the application, after the terminal logs into the embedded program based on the first object, it can also receive interactive information sent by other objects. If interactive information sent by other objects is received, a prompt message will be displayed in the interactive entry to remind the user that interactive information sent by other objects has been received, so that the user can view the interactive information received by the terminal in a timely manner.

[0257] The second interactive information is any interactive information sent from the first object to the first object by any object that is associated with it in the host application. The second interactive information can be of any type, such as a conversation message or a virtual item. The third prompt information can be of any type, such as text or color-coded information.

[0258] For example, if the terminal has already logged into the embedded program within the host application, and receives interactive information from other objects, a red dot will be displayed in the interactive entry point to indicate that interactive information has been received; or, if interactive information is received from other objects, the text "New Message" will be displayed in the interactive entry point to indicate that interactive information has been received. The red dot or "New Message" is equivalent to a third notification message.

[0259] 803. The terminal responds to the trigger operation of the interactive entry and displays the second interactive information.

[0260] In this embodiment of the application, when the third prompt information is displayed in the interactive entry, triggering the interactive entry can display the second interactive information so that the user can view the received interactive information.

[0261] In the solution provided in this application embodiment, after the terminal logs into the embedded program based on the first object, it can also receive interactive information sent by other objects. Upon receiving interactive information from other objects, a prompt message is displayed in the interactive entry point to remind the user. This allows the user to trigger the interactive entry point and view the received interactive information, thus implementing a reminder scheme for interactive information. This ensures that the user can view the interactive information received by the terminal in a timely manner, guaranteeing the interactive effect. Furthermore, the interactive entry point can implement multiple interactive functions. Different interactive functions can be implemented depending on the prompt message displayed in the interactive entry point, eliminating the need to display multiple entry points, simplifying the content displayed in the program interface, and ensuring the display effect of the program interface.

[0262] It should be noted that the embodiments in this application are described using the example of the terminal receiving the second interactive information. In another embodiment, the terminal follows the above... Figures 2 to 7 After the first interaction information is sent to the second object in the embodiment shown, the terminal that logs into the embedded program based on the second object will also follow the above procedure. Figure 8 The illustrated embodiment is used to display the first interactive information.

[0263] It should be noted that the above Figures 2 to 7 The illustrated embodiment is based on sending interactive information to a second object. However, in this embodiment, it is also possible to receive status data from other objects. The specific process is detailed in the following embodiment.

[0264] Figure 9 This is a flowchart illustrating an interactive method based on an embedded program provided in an embodiment of this application. Taking the method executed by a terminal as an example, as follows... Figure 9 As shown, the method includes:

[0265] 901. When the first object in the host application has already logged into the embedded program, the terminal displays the program interface of the embedded program. The program interface displays an interactive entry point, and the first object is the object that has already logged into the host application.

[0266] Step 901 is the same as step 301 above, and will not be repeated here.

[0267] 902. Upon receiving the status data of the fifth object, the terminal displays a second prompt message in the interactive entry. The second prompt message is used to indicate that the status data of the fifth object has been received. The fifth object is an object that has an association with the first object in the host application. The status data indicates the status of the fifth object or the status of the virtual object controlled by the fifth object.

[0268] In the embodiments of this application, when any object logs into the embedded program, the state of the object or the state of the virtual object controlled by the object will change. When the state of the object or the state of the virtual object controlled by the object changes, state data will be sent to other objects in the embedded program to indicate the change in the state of the object or the virtual object controlled by the object. This can promote interaction between different objects and thus improve the interaction effect between different objects.

[0269] In this context, the fifth object is any object that has a relationship with the first object within the host application. The state data of the fifth object indicates that its state is equivalent to the updated state of the fifth object. Similarly, the state data indicating the state of the virtual objects controlled by the fifth object is equivalent to the updated state of the virtual objects controlled by the fifth object. The state of the fifth object can be arbitrary; for example, it can indicate its level, the quantity of virtual resources it possesses, or its virtual items. The state of the virtual objects controlled by the fifth object can also be arbitrary; for example, it can indicate the virtual object's level, the virtual scene it is in, or the virtual items it possesses. The state data of the fifth object is sent by the terminal that logs into the embedded program based on the fifth object, or by the server providing services to the embedded program.

[0270] The second prompt message is different from the first prompt message. Optionally, the second prompt message may be displayed differently from the first prompt message. For example, the first prompt message may be displayed in text form, while the second prompt message may be displayed in color-coded form.

[0271] 903. When the terminal displays the second prompt information in the interactive entry, it displays the status data of the fifth object in response to the triggering operation of the interactive entry.

[0272] In this embodiment of the application, when the second prompt information is displayed in the interactive entry, triggering the interactive entry will display the status data of the fifth object, so that the user can know the status changes of the fifth object by viewing the displayed status data.

[0273] In the solution provided by this application embodiment, when any object logs into the embedded program, the state of the object or the state of the virtual object controlled by the object will change. When the state of the object or the virtual object controlled by the object changes, state data is sent to other objects in the embedded program to indicate the change in the state of the object or the virtual object controlled by the object. This facilitates interaction between different objects, thereby improving the interaction effect. Furthermore, for the same interaction entry point, triggering it with different prompts can display different content, realizing a solution that achieves different interactive functions through an interaction entry point. This eliminates the need to display multiple entry points, simplifies the content displayed in the program interface, and ensures the display effect of the program interface.

[0274] Figure 10 This is a flowchart illustrating an interactive method based on an embedded program, provided in an embodiment of this application. Taking the method executed by a server as an example, as follows... Figure 10 As shown, the method includes:

[0275] 1001. The server receives interactive information sent by the first terminal through the access interface. The interactive information is sent by the first terminal in response to the interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application.

[0276] In this embodiment, the server provides services to the embedded program. The server provides an access interface so that the terminal can interact with the server during the execution of the embedded program, enabling the server to provide services to the embedded program running on the terminal. In response to an interaction operation with the second object, the first terminal sends interaction information to the server's access interface. The server can then receive the interaction information through the access interface and subsequently forward it to the terminal that logged into the embedded program based on the second object, thereby realizing the interaction between the first object and the second terminal.

[0277] The server provides an access interface for terminals to access, and the terminals can access this access interface through embedded programs. The first terminal is the terminal that logs into the embedded program within the host application, and this first terminal is related to the aforementioned... Figures 2 to 7 Similarly, in the illustrated embodiment, the interactive information sent by the first terminal is the same as described above. Figures 2 to 7 The first interactive information in the illustrated embodiment is similar and will not be repeated here.

[0278] In one possible implementation, the process of the server obtaining interactive information includes: a first terminal responding to an interactive operation on a second object by sending an interactive request to the server, the interactive request carrying interactive information, and the server receiving the interactive request sent by the second terminal.

[0279] In this embodiment of the application, the interaction request carries interaction information. After the server receives the interaction request, it can obtain the interaction information carried in the interaction request.

[0280] 1002. The server identifies the type of interactive information through the access interface.

[0281] In this embodiment, an interactive component is deployed in the server. The server uses this interactive component to enable interaction between different objects; specifically, the interactive component facilitates interaction between objects logged into by different terminals. Considering that during the execution of an embedded program, a terminal may send other information besides interactive information to the server's access interface, such as data retrieval requests to obtain the data needed for running the embedded program, a preset type is set for the interactive component. This allows the interactive component to process only information or requests of the preset type, while non-preset types of information or requests are processed by the server through other components or virtual services.

[0282] In this embodiment, after receiving interactive information sent by the terminal through the access interface, the server identifies the type of the interactive information to determine if it belongs to a preset type and whether the interactive information is the type that the interactive component needs to process. The preset type can be any type, such as chat information or gift-giving.

[0283] In one possible implementation, step 1002 includes: the server classifying the interactive information through an access interface to obtain the type of interactive information.

[0284] In this embodiment, the server is configured with preset types and non-preset types. By classifying the interactive information, it is determined whether the interactive information belongs to the preset type or the non-preset type.

[0285] Optionally, the server accesses the interface and calls the classification model; the classification model extracts features from the interactive information to obtain the features of the interactive information; the classification model classifies the features of the interactive information to obtain the probability that the interactive information belongs to a preset type and the probability that it belongs to a non-preset type, and the type with the highest probability is determined as the type of the interactive information.

[0286] The classification model can be any network model. It is a binary classification model used to determine whether the input information belongs to a preset type or a non-preset type.

[0287] In one possible implementation, if the interactive information is sent to the server in the form of an interactive request, then step 1002 includes: identifying the type identifier carried in the interactive request through an access interface.

[0288] In this embodiment of the application, the interaction request not only carries interaction information, but also carries a type identifier to indicate what type of situation the interaction request is, thus reflecting what type of information the interaction information is.

[0289] The type identifier can be represented in any form; for example, the type identifier can be represented as a string.

[0290] Optionally, the server stores type identifiers corresponding to preset types. The server queries the type identifiers corresponding to the preset types based on the type identifiers carried in the interaction request through the access interface. If the type identifiers carried in the interaction request are found, the interaction information is determined to belong to the preset type; if the type identifiers carried in the interaction request are not found, the interaction information is determined to belong to a non-preset type.

[0291] 1003. When the server recognizes that the interactive information belongs to a preset type through the access interface, it calls the interactive component provided by the host application. The interactive component is used to process the information of the preset type.

[0292] In this embodiment, if the interactive information is of a preset type, the interactive component provided by the host application is invoked so that the interaction between different objects in the embedded program running in the host application can be realized through the interactive component.

[0293] In this embodiment, the interactive component in the server is provided by the host application. That is, the interactive component and the host application are developed on the same platform, ensuring compatibility between them. In related technologies, components used to implement interaction between different objects in a login embedded program are not compatible with the host application. Therefore, when these components interact with the embedded program in the host application, they cannot directly call the interfaces in the host application; they need to interact with the host application to verify their identity before calling the interfaces to transmit information. Alternatively, components in related technologies cannot directly access the server corresponding to the host application when interacting with the embedded program in the host application; they need to verify their identity with the server before interacting. However, this affects information transmission efficiency. The interactive component provided in this embodiment is compatible with the host application. When the interactive component interacts with the embedded program in the host application, it can directly call the interfaces in the host application and directly interact with the server corresponding to the host application without needing to verify its identity with the server. This ensures the efficiency of the server interacting with the terminal through the interactive component and guarantees efficient information transmission.

[0294] The interactive component is essentially a plugin provided by the host application. Through this interactive component, objects with relationships in the host application can interact based on the embedded program.

[0295] 1004. The server sends interactive information to the second terminal through the interactive component. The second terminal is the terminal that logs into the embedded program based on the second object in the host application.

[0296] In this embodiment, the server sends interactive information to the second terminal through an interactive component, so that the second terminal can receive the interactive information and display it in the embedded program, thereby enabling the first object and the second object that have a relationship in the host application to interact in the embedded program.

[0297] In the solution provided in this application embodiment, the embedded program runs within the host application. The server is configured with an interactive component provided by the host application. This interactive component enables interaction between different objects with relationships within the host application and within the embedded program. The server provides an access interface and sets preset types for the interactive component. After receiving interactive information sent by the terminal through the access interface, the server identifies the type of the interactive information. Only when the interactive information belongs to the preset type will the server call the interactive component to enable interaction between different objects within the embedded program. This ensures the effective interaction between different objects with relationships within the host application and within the embedded program. Furthermore, since the interactive component is provided by the host application, it is compatible with the host application. Interaction between objects logged into the embedded program on different terminals is achieved through the interactive component without requiring identity verification with the server corresponding to the host application before interaction. This ensures the efficiency of the server's interaction with the terminal through the interactive component and guarantees efficient information transmission.

[0298] In the above Figure 10 Based on the embodiments shown, the interactive component in this application embodiment is also used to synchronize state data between different objects, so the server can also realize the synchronization of state data between different objects through the interactive component.

[0299] In one possible implementation, the interactive component is also used to synchronize state data between different objects; the process of synchronizing state data between different objects includes: detecting the state data of an object that has been logged into the embedded program through the interactive component, the state data of the object indicating the state of the object or the state of a virtual object controlled by the object; and sending the updated state data of the third object to the terminal corresponding to the fourth object through the interactive component in response to an update of the state data of the third object, wherein the third object is any object that has been logged into the embedded program, and the fourth object is an object associated with the third object in the host application of the embedded program.

[0300] In this embodiment, during the process of a terminal logging into an embedded program based on an object, the state data of that object may change. However, the state data of objects not logged into the embedded program will not change. Therefore, the server can detect the state data of logged-in objects through an interactive component. This allows the server to promptly obtain the updated state data of the object when it is updated, and then synchronize the updated state data to other objects in the host application that are related to that object and have logged into the embedded program. This ensures state synchronization between different related objects in the host application and within the embedded program, enriches the interaction methods between related objects in the host application, guarantees the interaction effect between different objects, and ensures the real-time nature of data synchronization. Furthermore, detecting only the state data of logged-in objects, rather than detecting the state data of all objects, ensures detection efficiency and reduces server load, thus maintaining server performance.

[0301] Among them, the third object has association relationships with multiple objects in the host application, and the fourth object is each of these multiple objects, or, is an object among these multiple objects that has been logged into the embedded program.

[0302] Optionally, if the server stores state data for each object, the process of detecting the state data includes: detecting the state data of each object stored in the server through interactive components.

[0303] In this embodiment, after the terminal logs into the embedded program based on an object, it can perform various operations within the embedded program. During this process, the terminal interacts with the server through the access interface provided by the server, allowing the server to record the object's state data. Simultaneously, the server uses an interactive component to detect changes in the state data of each object. If the state data of any object changes, the server synchronizes the updated state data of that object with which it has a relationship in the host application and which is already logged into the embedded program. Thus, since the server stores the state data of each object, the interactive component is used to detect the state data of each object on the server, ensuring efficient detection.

[0304] Optionally, if the interactive component is used to synchronize the status data of the target type, then the interactive component can detect the status data of the target type of the object that has been logged into the embedded program, and in response to the update of the status data of the target type of the third object, send the updated status data of the target type of the third object to the terminal corresponding to the fourth object.

[0305] The target type can be any type, but it refers to the type related to the interaction. For example, the target type's status data indicates the object's level, the number of virtual resources the object possesses, the virtual items the object owns, the virtual scene in which the controlled virtual object is located, and the level of the controlled virtual object, etc.

[0306] In this embodiment of the application, considering that there are multiple types of state data for an object, and only some of the state data needs to be synchronized between different objects, such as only needing to synchronize the state data related to the interaction between different objects, a target type is set for the interactive component so that the interactive component can only detect the state data of the target type.

[0307] Optionally, in response to an update of the state data of the third object, the updated state data of the third object is sent to the terminal corresponding to the fourth object, including: through the interactive component, in response to an update of p pieces of state data of the third object, the updated state data of each piece of state data is sent to the terminal corresponding to the fourth object in order of priority from high to low or from low to high, where p is an integer greater than 1.

[0308] In this embodiment, more important state data has lower priority, or more important state data has higher priority. For example, taking the case where more important state data has higher priority, in p state data, the first state data indicates that the level of the virtual object controlled by the third object is increased, the second state data indicates that the virtual object controlled by the third object is moving in the virtual scene, and the priority of the second state data is higher than the priority of the first state data.

[0309] In this embodiment, p status data of the third object are updated, and all p status data need to be synchronized to the fourth object. Therefore, the p status data are sent to the fourth object in descending or ascending order of priority to achieve a scheme of synchronizing status data for associated objects according to the priority of status data. This ensures that the more important status data is synchronized first, guarantees the real-time synchronization of status data, and eliminates the need for the server to synchronize p status data simultaneously through interactive components, thereby reducing the server load and ensuring server performance.

[0310] Optionally, when the state data of the q fifth objects is updated, data synchronization will also be performed according to the priority of the state data. That is, the method also includes: through the interactive component, in response to the update of the state data of the q fifth objects, sending the updated state data of each fifth object to the terminal corresponding to the object associated with each of the q fifth objects in order of priority from high to low or from low to high, where q is an integer greater than 1.

[0311] Here, the object associated with each fifth object refers to the object that has an association relationship with each fifth object in the host application. The terminal corresponding to the object associated with the fifth object refers to the terminal in the host application that logs into the embedded program based on the object associated with the fifth object.

[0312] In this embodiment, more important state data has lower priority, or vice versa. When the server detects updates to the state data of q fifth objects via the interactive component, it sends corresponding state update notifications to the terminals associated with each of the q fifth objects, in descending or ascending order of priority. This achieves a scheme of synchronizing state data for associated objects according to the priority of the state data, ensuring that more important state data is synchronized first, guaranteeing real-time state data synchronization. Simultaneously, the server does not need to synchronize p pieces of state data simultaneously via the interactive component, reducing server load and ensuring server performance.

[0313] For example, synchronization is performed according to the priority of state data from high to low. Taking the state data of three fifth objects as an example, the state data of the first fifth object has the highest priority and the state data of the third fifth object has the lowest priority. Then, the server, through the second component, first synchronizes the updated state data of the first fifth object to the objects in the host application that have a relationship with the first fifth object; then it synchronizes the updated state data of the second fifth object to the objects in the host application that have a relationship with the second fifth object; and finally, it synchronizes the updated state data of the third fifth object to the objects in the host application that have a relationship with the third fifth object.

[0314] Based on the embodiments described above, taking an embedded program as a game mini-program, a first object as the first user's account, and a second object as the first object's friends as an example, the terminal logs into the game mini-program in the host application based on the first user's account, and the program interface displayed on the terminal is as follows. Figure 11 As shown, Figure 11 The interface displays a virtual object 1101 controlled by the first user, an enemy virtual object 1102, the current level 1103, multiple function options 1104, and an interaction portal 1105. Defeating the enemy virtual object 1102 allows the user to advance to the next level. The multiple function options 1104 include equipment options, combat options, and mission options. Figure 11 No prompt message is displayed at the interactive entry point 1105. The interactive entry point 1105 is located on the left side of the mini-program capsule 1106, which includes multiple function options for the mini-program, such as an exit option and menu options.

[0315] exist Figure 11Based on the program interface shown, when the first user's friend logs into the game mini-program, the program interface is as follows: Figure 12 As shown, Figure 12 The first message displayed in the interactive entry 1105 is "3 friends are playing".

[0316] exist Figure 12 Based on the program interface shown, if the user does not click on the interactive entry 1105, the first prompt message will be canceled after the display time reaches the second preset time, and then the following will be displayed: Figure 11 The program interface shown.

[0317] exist Figure 11 or Figure 12 Based on the program interface shown, if the user clicks the interactive entry 1105 through the terminal, the program interface displayed on the terminal will be as follows: Figure 13 As shown, a pop-up window appears in the program interface, displaying the currently playing friend 1301, the friend 1302 who is not currently logged in but has logged into the game mini-program in the past, the login information of friend 1301 1303, the login information of friend 1302 1304, the friend 1305 who has not logged into the game mini-program, the interaction options for each friend 1306, and the record sub-entry 1307. Among these, friend 1301's login information 1303 indicates that friend 1301 is currently online, friend 1302's login information 1304 indicates that friend 1302 logged into the game mini-program two days ago, and friend 1305 who has not logged into the game mini-program is the first user's friend currently in the host application and has not logged into the game mini-program. The interaction option 1306 for friends 1301 and 1302 is "Send Coins," used to send virtual coins to the corresponding friend. The interaction option 1306 for friend 1305 is "Invite," used to invite friend 1305 to use the game mini-program. The record entry 1307 is used to query the history of gifts exchanged between the first user and each of their friends.

[0318] exist Figure 13 Based on the program interface shown, when a user clicks on interaction option 1306 corresponding to friend 1301 via their terminal, the terminal sends a gift request to the server, instructing the user to gift virtual coins to friend 1301. The server, through the interaction component, sends the virtual coins to the terminal corresponding to friend 1301 based on the gift request. Friend 1301's terminal receives the virtual coins in the game mini-program and displays a notification message to indicate receipt of the virtual coins gifted by the first user. Afterwards, the program interface displayed on the terminal is as follows... Figure 14 As shown, the interaction option 1306 for friend 1301 has been updated to "Gifted, tell them". At this point, if the user clicks on interaction option 1306 for friend 1301 on their device, a pop-up window will appear, as shown in the image. Figure 15As shown, the pop-up window displays the name of friend 1301, the game mini-program, a gift notification, a cancel option, and a send-to-chat option. The gift notification indicates that the first user gifted virtual coins to friend 1301. If the user clicks the cancel option on their device, the pop-up window will be removed, and the following will be displayed: Figure 14 The program interface is shown below. When the user clicks the "Send to Chat" option on the terminal, a chat message will be sent to friend 1301 in the host application. This chat message includes the game mini-program and a gift notification. Friend 1301 will then see this chat message displayed in the chat interface between the first user and the host application on the terminal. The chat interface is as follows: Figure 16 As shown in the image. When friend 1301 clicks on the chat message via the terminal, the game mini-program's interface will be displayed as shown. Figure 17 As shown, the virtual coins obtained are displayed in the program interface.

[0319] exist Figure 11 Based on the program interface shown, when the first user's friend sends virtual items to the first user, the program interface will look like this: Figure 18 As shown, Figure 18 The third prompt displayed in the interactive entry 1105 is a black dot. Based on this, when the first user clicks on the interactive entry 1105 on the terminal, the terminal will display the following... Figure 19 The program interface shown is in Figure 19 The program interface shown displays a pop-up window, which shows the currently playing friend (1301), the friend who is not currently logged in but has logged in historically (1302), the login information of friend 1301 (1303), the login information of friend 1302 (1304), the friend who has not logged in to the game mini-program (1305), interaction options for each friend (1306), a record sub-entry (1307), and a gift notification message. The gift notification message indicates that "one friend has gifted coins." When the user clicks on the gift notification message on the terminal, the terminal displays the following... Figure 20 The program interface shown is in Figure 20 The program interface shown displays a pop-up window showing the gifts that each friend has given to the first user, as well as the options to claim any unclaimed gifts. The user can then claim the gifts from their friends by clicking the claim option on their device.

[0320] It should be noted that the above Figures 11 to 20 The program interface shown is an example of a game mini-program in portrait mode. However, in another embodiment, the solution provided by this application is applicable to game mini-programs in landscape mode. The program interface of a game mini-program in landscape mode is as follows: Figure 21 As shown, Figure 21 The text displays an interactive entry point (2101). Figure 21Based on the program interface shown, when the first user's friend logs into the game mini-program, the program interface is as follows: Figure 22 As shown, Figure 22 The first message displayed in the interactive entry 2101 is "3 friends are playing".

[0321] In this embodiment, the interactive entry point of the program interface is the component entry point provided by the interactive component in the server. Through the interactive component, the server can achieve real-time data synchronization between different users, ensuring the consistency of information such as game progress, game score, and game status. This realizes a highly efficient, real-time, and stable game interactive component that can be implemented within an embedded program in the host application, thereby enhancing the user's gaming experience. The component entry point provided by the interactive component can achieve stable business redirection, provide reminders in the form of text, and remind users of interactions between friends using red dot notifications. The interactive component provides stable interactive operation support, ensuring timely response to the synchronized actions and statuses of multiple users. Different synchronization strategies are set for different types of interactive needs in the game. For example, game score updates are set to a lower priority, while operations such as game character movement are set to a higher priority, ensuring that critical interactions are not delayed.

[0322] In this embodiment, users can send virtual gifts to friends through the component entry provided by the interactive component, increasing social interaction and entertainment in the game. The game mini-program has multiple preset gift types, such as virtual items, points, virtual avatar frames, and virtual emoticons, all of which can be sent as virtual gifts to friends, enhancing the user's gaming experience. Users can obtain virtual gifts through in-game points, task rewards, or resource exchanges, incentivizing them to acquire virtual gifts through different methods. Virtual gifts are categorized into different levels based on their value, such as common, advanced, and rare, allowing users to experience the sense of accomplishment of sending rare gifts. A "Gift" button is created within the game; clicking it brings up a gift selection interface displaying all available gift types and quantities, allowing users to select the desired gift and quantity, facilitating gift-giving to friends and further enhancing the user's interactive experience and social interaction. When a user receives a gift, a notification is sent via a system chat window or a red dot. When receiving a virtual gift from a friend, the system will pop up a gift confirmation window. After the user taps the receive button, visual effects (such as fireworks, heart-shaped animations, etc.) will be presented to the recipient, enhancing the interactive fun.

[0323] In this embodiment, the host application provides an interactive component with a standardized interface. When configuring the embedded program running in the host application, the developer can embed the interactive component into the embedded program through simple configuration. This enables subsequent interaction and data synchronization between different users in the embedded program through the interactive component, reducing development difficulty and time, and improving the versatility and scalability of the interactive component. This also allows the interactive component to be quickly integrated into different embedded programs corresponding to the host application, ensuring the development efficiency of the embedded program running in the host application.

[0324] In this embodiment, after developing the embedded program as described above, an interactive component is set up in the server of the embedded program. This interactive component enables a user synchronization mechanism to achieve real-time data synchronization among multiple users. By using the embedded program's WebSocket (a full-duplex communication protocol) or other applicable protocols, an efficient data push mechanism is designed to ensure that multiple users on different devices can share the same game state in real time, thereby improving the game's interactivity and synchronization.

[0325] In this embodiment, the embedded program provides a Connect Socket API (Connect Socket Application Programming Interface) for establishing WebSocket connections. When a user logs into the embedded program via a terminal, a connection is established with the server via the WebSocket protocol. The server records the connection information for each user, including object information representing the user, the object's login status, etc. When a user's status or operation changes, the server pushes the changed data to the friend's embedded program via WebSocket. The server can detect the user's connection status and immediately trigger a reconnection mechanism if the user disconnects. Data changes during brief disconnections are saved through a short-term cache and synchronized after reconnection to ensure data consistency.

[0326] In this embodiment, the interactive component handles interactions between users, including friend invitations, play status, and gift-giving. The interactive component enables rapid response to each user's actions and synchronization with the friend's embedded program, ensuring consistency during gameplay. The embedded program captures the user's game actions (such as clicks and swipes) in real time and sends these actions to the server via WebSocket. The server receives and parses the user's actions, updates game status data (such as game scores and virtual item usage), and then synchronizes the updated status data to the friend's embedded program to ensure consistent game status. For high-frequency action data, data compression technology is used to reduce the size of transmission packets. Furthermore, a priority mechanism is implemented to reduce latency and optimize performance.

[0327] In this embodiment, the interactive component provides interfaces such as Initialize Game (a function to initialize the game), Connect Player (a function for connecting player-related operations), and Update Score (a function to update the score). Developers can quickly implement the initialization of the interactive component, user connection, and data synchronization through these interfaces. Event detection and callback mechanisms (such as on Player Join (an event handling function) and on Data Sync (an event handling function) are provided to developers to execute custom logic when key events occur. For example, specific UI updates or prompts are triggered when a user joins the game or disconnects. Configuration files (such as JSON (JavaScript Object Notation, a lightweight data exchange format)) are provided, allowing developers to customize some component parameters (such as maximum number of players, synchronization frequency, etc.) to implement dynamic configuration files, enhancing the flexibility and applicability of the component.

[0328] Furthermore, HTTPS (Hypertext Transfer Protocol Secure) and WebSocket encrypted transmission protocols are used to ensure data security during transmission. Basic user permissions are obtained through the host application's authorization system, while avoiding the collection or storage of excessive user personal information, adhering to the principle of data minimization to ensure the security and privacy of user data.

[0329] The solution provided in this application supports real-time data synchronization, enhances the interactive experience of multiplayer games, reduces network latency, improves the user experience in weak network environments, provides standardized interfaces, and reduces development difficulty and time.

[0330] Figure 23This is a schematic diagram of the structure of an interactive device based on an embedded program provided in an embodiment of this application, such as... Figure 23 As shown, the device includes:

[0331] Display module 2301 is used to display the program interface of the embedded program when the first object in the host application has been logged into the embedded program. The program interface displays an interactive entry point, and the first object is the object that has been logged into the host application.

[0332] The display module 2301 is also used to display a first prompt message in the interactive entry when the second object has been logged into the embedded program. The first prompt message is used to prompt that the second object has been logged into the embedded program. The second object is an object that has an association relationship with the first object in the host application.

[0333] The display module 2301 is also used to display a second object in response to a trigger operation on the interactive entry point;

[0334] The sending module 2302 is used to send first interactive information to the second object in response to an interactive operation on the second object.

[0335] In one possible implementation, the display module 2301 is used to display i sub-entries in response to a trigger operation on an interactive entry, where different sub-entries are used to implement different interactive functions, and i is an integer greater than 1; and to display a second object in response to a trigger operation on an interactive sub-entry among the i sub-entries.

[0336] In another possible implementation, the display module 2301 is also used to display j embedded programs in response to a trigger operation on the boot sub-entry of the i sub-entries, where the j embedded programs are embedded programs that a third object has historically logged into, the third object is an object that has an association relationship with the first object in the host application, and j is an integer greater than 0; and to display the program interface of the triggered embedded program in response to a trigger operation on any of the j embedded programs.

[0337] In another possible implementation, the program interface displays a virtual object controlled by the first object, and the first interactive information is the virtual items owned by the virtual object; the sending module 2302 is used to send virtual items to the second object in response to the item gifting operation to the second object.

[0338] In another possible implementation, the display module 2301 is also used to display a fourth object in response to a trigger operation on the interactive entry point. The fourth object is an object that has an association with the first object in the host application and has been logged into the embedded program in the past.

[0339] In another possible implementation, the display module 2301 is further configured to display a second prompt message in the interactive entry in response to receiving the status data of the fifth object. The second prompt message is used to indicate that the status data of the fifth object has been received. The fifth object is an object that has an association with the first object in the host application. The status data indicates the status of the fifth object or the status of the virtual object controlled by the fifth object. When the second prompt message is displayed in the interactive entry, the status data of the fifth object is displayed in response to the triggering operation of the interactive entry.

[0340] In another possible implementation, the display module 2301 is used to switch the display interactive entry from an inactive state to an active state in response to the second object logging into the embedded program, and to display a first prompt message in the interactive entry; when the interactive entry is in an active state, in response to a trigger operation on the interactive entry, the second object is displayed.

[0341] In another possible implementation, the display module 2301 is further configured to display a third prompt message in the interaction entry in response to receiving the second interactive information, the third prompt message being used to indicate that the second interactive information has been received and is sent from another object to the first object; and to display the second interactive information in response to a triggering operation on the interaction entry.

[0342] In another possible implementation, the display module 2301 is also used to display the interactive options corresponding to the second object in response to the triggering operation of the interactive entry;

[0343] The sending module 2302 is used to send first interactive information to the second object in response to a triggering operation of the interactive option.

[0344] In another possible implementation, the display module 2301 is used to display k interactive options corresponding to the second object in response to the triggering operation of the interactive entry, where k is an integer greater than 1;

[0345] The sending module 2302 is used to send the first interactive information corresponding to the triggered interactive option to the second object in response to the triggering operation of any interactive option among the k interactive options.

[0346] In another possible implementation, the sending module 2302 is used to send first interactive information to the second object in response to a triggering operation of the interactive option when a fourth prompt message is displayed in the interactive option. The fourth prompt message in the interactive option is switched to a fifth prompt message. The fourth prompt message is used to prompt interaction with the second object in the embedded program, and the fifth prompt message is used to prompt interaction with the second object in the host application.

[0347] The sending module 2302 is also used to send an interactive message to the second object in the host application in response to a triggering operation of the interactive option when a fifth prompt message is displayed in the interactive option.

[0348] In another possible implementation, the interactive entry is used to request other objects to perform the same virtual task, and the first prompt message is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1; the display module 2301 is used to display the objects among the m second objects that can perform the virtual task in response to the triggering operation of the interactive entry when the first object has accepted the virtual task.

[0349] The sending module 2302 is used to send a task request information to the triggered object in response to a trigger operation on any of the displayed objects. The task request information instructs the triggered object to perform a virtual task together with the first object.

[0350] In another possible implementation, the display module 2301 is used to display n virtual tasks in response to a trigger operation on the interactive entry point when the first object has already accepted n virtual tasks; and to display the objects among m second objects that can execute the triggered virtual tasks in response to a trigger operation on any of the n virtual tasks.

[0351] In another possible implementation, the first prompt message is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1; the display module 2301 is used to display the m second objects in order of their corresponding interaction parameters from high to low or from low to high in response to the triggering operation of the interaction entry, whereby the interaction parameters of the second objects indicate the interaction status between the second objects and the first objects in the embedded program; or, in response to the triggering operation of the interaction entry, the object among the m second objects that meets the preset conditions is displayed, where the preset conditions indicate that the corresponding interaction parameter of the m second objects is the largest, or that the interaction time between the m second objects and the first object is the latest.

[0352] Figure 24 This is a schematic diagram of the structure of an interactive device based on an embedded program provided in an embodiment of this application, such as... Figure 24 As shown, the device includes:

[0353] The receiving module 2401 is used to receive interactive information sent by the first terminal through the access interface. The interactive information is sent by the first terminal in response to the interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application.

[0354] The identification module 2402 is used to identify the type of interactive information through the access interface;

[0355] Module 2403 is used to call the interactive component provided by the host application when the interactive information is identified as belonging to a preset type through the access interface. The interactive component is used to respond to the request of the preset type.

[0356] The sending module 2404 is used to send interactive information to a second terminal through an interactive component. The second terminal is a terminal that logs into the embedded program based on a second object in the host application.

[0357] In one possible implementation, the interactive component is also used to synchronize state data between different objects; the device also includes:

[0358] The sending module 2404 is also used to detect the status data of an object that has been logged into the embedded program through an interactive component. The status data of the object indicates the status of the object or the status of a virtual object controlled by the object. In response to an update of the status data of a third object, the sending module 2404 sends the updated status data of the third object to the terminal corresponding to the fourth object through the interactive component. The third object is any object that has been logged into the embedded program, and the fourth object is the object associated with the third object in the host application of the embedded program.

[0359] In another possible implementation, the sending module 2404 is used to send the updated status data of each status data to the terminal corresponding to the fourth object in order of priority of the p status data, according to the p status data in descending or ascending order of priority, where p is an integer greater than 1, in response to the update of p status data of the third object via the interactive component.

[0360] In another possible implementation, the sending module 2404 is further configured to, in response to an update of the state data of the q fifth objects, send the updated state data of each fifth object to the terminal corresponding to the object associated with each of the q fifth objects in descending or ascending order of priority of the state data of the q fifth objects, where q is an integer greater than 1.

[0361] It should be noted that the interactive device based on embedded programs provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the interactive device based on embedded programs provided in the above embodiments and the interactive method embodiments based on embedded programs belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0362] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to perform the operations performed by the embedded program-based interactive method of the above embodiments.

[0363] Optionally, the computer device is provided as a terminal. Figure 25 A structural block diagram of a terminal 2500 provided in an exemplary embodiment of this application is shown. The terminal 2500 includes a processor 2501 and a memory 2502.

[0364] Processor 2501 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 2501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 2501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0365] The memory 2502 may include one or more computer-readable storage media, which may be non-transitory. The memory 2502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2502 are used to store at least one computer program, which is executed by the processor 2501 to implement the embedded program-based interactive method provided in the method embodiments of this application.

[0366] In some embodiments, the terminal 2500 may also optionally include a peripheral device interface 2503 and at least one peripheral device. The processor 2501, memory 2502, and peripheral device interface 2503 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 2503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: radio frequency circuitry 2504, display screen 2505, camera assembly 2506, audio circuitry 2507, and power supply 2508.

[0367] Peripheral device interface 2503 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 2501 and memory 2502. In some embodiments, processor 2501, memory 2502 and peripheral device interface 2503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 2501, memory 2502 and peripheral device interface 2503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0368] The radio frequency (RF) circuit 2504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 2504 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 2504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 2504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 2504 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 2504 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0369] Display screen 2505 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 2505 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 2501 for processing. In this case, display screen 2505 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 2505, disposed on the front panel of terminal 2500; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 2500 or in a folded design; in still other embodiments, display screen 2505 may be a flexible display screen, disposed on a curved or folded surface of terminal 2500. Furthermore, display screen 2505 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 2505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0370] The camera assembly 2506 is used to acquire images or videos. Optionally, the camera assembly 2506 includes a front-facing camera and a rear-facing camera. The front-facing camera is disposed on the front panel of the terminal, and the rear-facing camera is disposed on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 2506 may also include a flash. The flash may be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.

[0371] The audio circuit 2507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 2501 for processing, or to the radio frequency circuit 2504 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 2500. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 2501 or the radio frequency circuit 2504 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 2507 may also include a headphone jack.

[0372] Power supply 2508 is used to power the various components in terminal 2500. Power supply 2508 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 2508 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0373] Those skilled in the art will understand that Figure 25 The structure shown does not constitute a limitation on terminal 2500 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0374] Optionally, the computer equipment is provided as a server. Figure 26 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 2600 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 2601 and one or more memories 2602. The memories 2602 store at least one computer program, which is loaded and executed by the processor 2601 to implement the methods provided in the above-described method embodiments. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated upon here.

[0375] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the operations performed by the embedded program-based interactive method of the above embodiments.

[0376] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the operations performed by the embedded program-based interactive method described above.

[0377] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0378] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.

Claims

1. An interactive method based on embedded programs, characterized in that, The method includes: If the first object in the host application has already logged into the embedded program, the program interface of the embedded program is displayed, and the program interface displays an interactive entry point. The first object is the object that has already logged into the host application. When the second object has logged into the embedded program, a first prompt message is displayed in the interactive entry. The first prompt message is used to prompt that the second object has logged into the embedded program. The second object is an object that has an association with the first object in the host application. In response to a triggering operation on the interactive entry point, the second object is displayed; In response to an interaction with the second object, a first interaction message is sent to the second object.

2. The method according to claim 1, characterized in that, The step of displaying the second object in response to a trigger operation on the interactive entry point includes: In response to the triggering operation of the interactive entry, i sub-entries are displayed. Different sub-entries are used to implement different interactive functions, where i is an integer greater than 1. In response to a trigger operation on an interactive sub-entry among the i sub-entries, the second object is displayed.

3. The method according to claim 2, characterized in that, After displaying i sub-entries in response to a trigger operation on the interactive entry point, the method further includes: In response to the triggering operation of the guiding sub-entry in the i sub-entries, j embedded programs are displayed. The j embedded programs are embedded programs that the third object has historically logged into. The third object is an object that the first object has an association with in the host application. j is an integer greater than 0. In response to a trigger operation on any of the j embedded programs, the program interface of the triggered embedded program is displayed.

4. The method according to claim 1, characterized in that, The program interface displays a virtual object controlled by the first object, and the first interactive information is the virtual props owned by the virtual object; The step of sending first interaction information to the second object in response to an interaction operation on the second object includes: In response to the item gifting operation to the second object, the virtual item is sent to the second object.

5. The method according to claim 1, characterized in that, When the second object has already logged into the embedded program, after displaying the first prompt message in the interactive entry point, the method further includes: In response to the triggering operation of the interactive entry, a fourth object is displayed, which is an object that has an association with the first object in the host application and has previously logged into the embedded program.

6. The method according to claim 1, characterized in that, The method further includes: In response to receiving status data of a fifth object, a second prompt message is displayed in the interactive entry. The second prompt message is used to indicate that the status data of the fifth object has been received. The fifth object is an object that has an association with the first object in the host application. The status data indicates the status of the fifth object or the status of a virtual object controlled by the fifth object. When the second prompt information is displayed in the interactive entry point, the status data of the fifth object is displayed in response to the triggering operation of the interactive entry point.

7. The method according to claim 1, characterized in that, When the second object has already logged into the embedded program, a first prompt message is displayed in the interactive entry point, including: In response to the second object logging into the embedded program, the interactive entry is switched from an inactive state to an active state, and the first prompt information is displayed in the interactive entry; The step of displaying the second object in response to a trigger operation on the interactive entry point includes: When the interactive entry is in the active state, the second object is displayed in response to a triggering operation on the interactive entry.

8. The method according to claim 1, characterized in that, When the first object in the host application has already logged into the embedded program, after displaying the program interface of the embedded program, the method further includes: In response to receiving the second interactive information, a third prompt message is displayed in the interactive entry point. The third prompt message is used to indicate that the second interactive information has been received, and the second interactive information is sent from another object to the first object. In response to a triggering operation on the interactive entry point, the second interactive information is displayed.

9. The method according to claim 1, characterized in that, When the second object has already logged into the embedded program, after displaying the first prompt message in the interactive entry point, the method further includes: In response to a triggering operation on the interactive entry point, the interactive options corresponding to the second object are displayed; The step of sending first interaction information to the second object in response to an interaction operation on the second object includes: In response to a triggering operation of the interactive option, the first interactive information is sent to the second object.

10. The method according to claim 9, characterized in that, The step of displaying interactive options corresponding to the second object in response to a trigger operation on the interactive entry point includes: In response to the triggering operation of the interactive entry, k interactive options corresponding to the second object are displayed, where k is an integer greater than 1; The step of sending the first interaction information to the second object in response to a triggering operation of the interaction option includes: In response to a triggering operation on any of the k interactive options, the first interactive information corresponding to the triggered interactive option is sent to the second object.

11. The method according to claim 9, characterized in that, The step of sending the first interaction information to the second object in response to a triggering operation of the interaction option includes: When a fourth prompt message is displayed in the interaction options, in response to the triggering operation of the interaction options, the first interaction message is sent to the second object, and the fourth prompt message in the interaction options is switched to a fifth prompt message. The fourth prompt message is used to prompt interaction with the second object in the embedded program, and the fifth prompt message is used to prompt interaction with the second object in the host application. The method further includes: If the fifth prompt message is displayed in the interaction options, in response to the triggering operation of the interaction options, an interaction message is sent to the second object in the host application.

12. The method according to claim 1, characterized in that, The interactive entry point is used to request assistance from other objects to perform the same virtual task. The first prompt information is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1. The step of displaying the second object in response to a trigger operation on the interactive entry point includes: If the first object has already accepted the virtual task, in response to the triggering operation of the interactive entry, the object among the m second objects that can execute the virtual task is displayed; The step of sending first interaction information to the second object in response to an interaction operation on the second object includes: In response to a trigger operation on any of the displayed objects, a task request information is sent to the triggered object, the task request information instructing the triggered object to jointly perform the virtual task with the first object.

13. The method according to claim 12, characterized in that, When the first object has already accepted the virtual task, in response to the triggering operation of the interactive entry point, the object among the m second objects that can execute the virtual task is displayed, including: If the first object has already accepted n virtual tasks, in response to the triggering operation of the interactive entry, the n virtual tasks are displayed; In response to a trigger operation on any of the n virtual tasks, display the object among the m second objects that can execute the triggered virtual task.

14. The method according to claim 1, characterized in that, The first prompt message is used to indicate that m second objects have logged into the embedded program, where m is an integer greater than 1; The step of displaying the second object in response to a trigger operation on the interactive entry point includes: In response to the triggering operation of the interactive entry, the m second objects are displayed in descending or ascending order of the interactive parameters corresponding to the m second objects. The interactive parameters corresponding to the second objects indicate the interaction between the second objects and the first objects in the embedded program. or, In response to the triggering operation of the interactive entry, the object that meets the preset conditions among the m second objects is displayed. The preset conditions indicate that the corresponding interactive parameter of the m second objects is the largest, or that the interaction time with the first object among the m second objects is the latest.

15. An interactive method based on embedded programs, characterized in that, The method includes: The system receives interactive information sent by the first terminal through an access interface. The interactive information is sent by the first terminal in response to an interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application. The type of interactive information is identified through the access interface; When the access interface identifies that the interactive information belongs to a preset type, it calls the interactive component provided by the host application, which is used to process the information of the preset type. The interactive component sends the interactive information to a second terminal, which is a terminal that logs into the embedded program based on the second object in the host application.

16. An interactive device based on embedded programs, characterized in that, The device includes: The display module is used to display the program interface of the embedded program when the first object in the host application has logged into the embedded program. The program interface displays an interactive entry point, and the first object is the object that has logged into the host application. The display module is also used to display a first prompt message in the interactive entry when the second object has logged into the embedded program. The first prompt message is used to prompt that the second object has logged into the embedded program, and the second object is an object that has an association relationship with the first object in the host application. The display module is also configured to display the second object in response to a trigger operation on the interactive entry point; The sending module is used to send first interactive information to the second object in response to an interactive operation on the second object.

17. An interactive device based on embedded programs, characterized in that, The device includes: The receiving module is used to receive interactive information sent by the first terminal through the access interface. The interactive information is sent by the first terminal in response to the interactive operation on the second object when the first object has been logged into the embedded program in the host application. The first object is the object that the first terminal has logged into in the host application. An identification module is used to identify the type of the interactive information through the access interface; The calling module is used to call the interactive component provided by the host application when the access interface is used to identify that the interactive information belongs to a preset type. The interactive component is used to process the information of the preset type. The sending module is used to send the interactive information to a second terminal through the interactive component. The second terminal is a terminal that logs into the embedded program based on the second object in the host application.

18. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the embedded program-based interactive method as described in any one of claims 1 to 14; or to perform the operations performed by the embedded program-based interactive method as described in claim 15.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the operations performed by the embedded program-based interactive method as described in any one of claims 1 to 14; or to implement the operations performed by the embedded program-based interactive method as described in claim 15.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the operations performed by the embedded program-based interactive method as described in any one of claims 1 to 14; or, it implements the operations performed by the embedded program-based interactive method as described in claim 15.