Instant chat gift giving method and device, equipment and medium

By loading the gift delivery portal on the live chat page and filtering the virtual gift list suitable for the live chat scene, the problem of lack of gift giving mechanism in the live chat scene in the existing technology is solved, and the secure transmission and display of virtual gifts is realized, and the user interaction experience and the social functions of the platform are improved.

CN120201207APending Publication Date: 2025-06-24GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510262171.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The existing online live broadcast platform lacks an effective virtual gift-giving mechanism in live chat scenarios, which cannot meet the interactive needs between users. The existing gifts are not suitable for live chat scenarios, and lacks systematic business mechanism support.

Method used

Load the gift delivery portal on the live chat page, filter the virtual gift list suitable for the live chat scene, and confirm and encrypt the gift delivery business process through the server to achieve the secure transmission and display of virtual gifts.

Benefits of technology

It enhances users' interactive experience in the live chat environment, deeply enhances the data collaboration between live broadcast scenarios and live chat scenarios, promotes interaction and communication between users, and enhances users' stickiness to the platform and social vitality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201207A_ABST
    Figure CN120201207A_ABST
Patent Text Reader

Abstract

The invention relates to the field of network live broadcast, and discloses an instant chat gift sending method and device, equipment and a medium, and the method comprises the steps: responding to an entering event of an instant chat page, requesting a server to confirm that a gift sending user and a gift receiving user belong to a friend relationship, and then loading a gift sending entrance on the instant chat page; responding to an operation event acting on the gift sending entrance, requesting the server to screen virtual gifts from the virtual gift library, and displaying the virtual gifts on an instant chat page; when the gift sending user sends a virtual gift to the gift receiving user, the trigger server sends encrypted gift sending service data to the gift sending user and the gift receiving user after confirming that the gift sending service process is completed; and receiving gift service data, and displaying a corresponding gift effect according to the decrypted gift service data. Through a perfect technical framework and a data collaboration mechanism, the blank of an instant chat gift giving function is filled, the contact relationship of the platform is activated, and the social interactivity and the user experience of the platform are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to network live broadcast technology, and particularly to an instant messaging gift-giving method, its device, equipment, and medium. Background Art

[0002] In the current network live broadcast environment, the interaction between users mainly focuses on the live broadcast room and is achieved by means of giving virtual gifts, sending bullet screens, etc. Although this interaction method can enhance the connection between users and the anchor, there are certain limitations for the interaction between users, especially the interaction between non-anchor users. With the popularization of the instant messaging (IM) function, users also hope to enhance the interaction and emotional connection with each other by giving virtual gifts in the instant messaging scenario of the live broadcast platform. However, in the existing instant messaging function of the live broadcast platform, there is a lack of an effective gift-giving mechanism to meet this demand.

[0003] The traditional virtual gift-giving function is mainly designed around the real-time interaction scenario in the live broadcast room. In the live broadcast room, users can click on the gift icon to select and give virtual gifts to the anchor or other users. These gifts usually appear on the interface of the live broadcast room in the form of special effects, animations, or text, thus enhancing the interaction atmosphere in the live broadcast room. However, this gift-giving mechanism is not applicable to the instant messaging scenario. There are significant differences between the instant messaging scenario and the live broadcast room: the gift-giving in the live broadcast room is usually accompanied by the real-time interaction and feedback of the anchor, while in the instant messaging scenario, the interaction between users is more private and lacks a real-time feedback mechanism. In addition, the gift library in the live broadcast room usually contains a variety of special gifts related to live broadcast interaction, and these gifts are not suitable for direct application in the instant messaging scenario.

[0004] Based on the current situation of the above traditional technologies, the instant messaging function of the existing live broadcast platform will face various problems when implementing virtual gift-giving, lacking a systematic business mechanism to provide technical support for it and requiring special implementation. Summary of the Invention

[0005] The purpose of this application is to solve the above problems and provide an instant messaging gift-giving method, its corresponding device, equipment, and a non-volatile readable storage medium.

[0006] According to one aspect of this application, an instant messaging gift-giving method is provided, including the following steps:

[0007] In response to the entry event of the instant messaging page, after requesting the server to confirm that there is a gift-receiving user in the instant messaging page who is a friend of the gift-giving user, load a gift-giving entrance on the instant messaging page;

[0008] In response to an operation event acting on the gift-giving entry, request the server to screen virtual gifts from the virtual gift library to construct a list of virtual gifts applicable to the instant messaging scenario and display it on the instant messaging page;

[0009] When the gift-giving user sends the virtual gift to the gift-receiving user through the virtual gift list, trigger the server to send the encrypted gift-giving service data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving service process of the virtual gift;

[0010] Receive the gift-giving service data and perform corresponding decryption, and display the corresponding gift effect on the instant messaging page according to the decrypted gift-giving service data.

[0011] According to another aspect of the present application, there is provided an instant messaging gift-giving device, including:

[0012] An entry loading module, configured to respond to an entry event of the instant messaging page, request the server to confirm that there is a gift-receiving user who is a friend of the gift-giving user in the instant messaging page, and then load a gift-giving entry on the instant messaging page;

[0013] A list display module, configured to respond to an operation event acting on the gift-giving entry, request the server to screen virtual gifts from the virtual gift library to construct a list of virtual gifts applicable to the instant messaging scenario and display it on the instant messaging page;

[0014] A gift-giving feedback module, configured to when the gift-giving user sends the virtual gift to the gift-receiving user through the virtual gift list, trigger the server to send the encrypted gift-giving service data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving service process of the virtual gift;

[0015] A gift display module, configured to receive the gift-giving service data and perform corresponding decryption, and display the corresponding gift effect on the instant messaging page according to the decrypted gift-giving service data.

[0016] According to another aspect of the present application, there is provided an instant messaging gift-giving device, including a central processing unit and a memory, and the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the instant messaging gift-giving method described in the present application.

[0017] According to another aspect of the present application, there is provided a non-volatile readable storage medium, which stores a computer program implemented according to the instant messaging gift-giving method in the form of computer-readable instructions. When the computer program is called and run by a computer, it executes the steps included in the method.

[0018] This application provides a complete technical framework for realizing virtual gift giving in the instant messaging scenario. By loading a gift-giving entrance on the instant messaging page and screening virtual gifts suitable for this scenario, it fills the gap in the existing technology and enhances the interactive experience of users in a private chat environment. When this application is applied to a network live broadcast platform, it can deeply enhance the data collaboration tightness between the live broadcast scenario and the instant messaging scenario. Through screening virtual gifts and encrypting data transmission, it realizes efficient collaboration and secure interaction between the two scenarios. In addition, by enhancing the virtual gift-giving function, this application can effectively activate the network relationships on the platform, promote interaction and communication between users, and enhance user stickiness and social vitality on the platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a network architecture exemplary suitable for applying the instant messaging gift-giving method of this application;

[0020] Figure 2 is a schematic flowchart of an embodiment of the instant messaging gift-giving method of this application;

[0021] Figure 3 is an exemplary instant messaging page;

[0022] Figure 4 is a principle block diagram of the instant messaging gift-giving device of this application;

[0023] Figure 5 is a schematic structural diagram of an instant messaging gift-giving device adopted by this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0024] Before introducing the specific embodiments of the technical solution of this application in detail, the network architecture and application scenarios suitable for supporting the implementation of the technical solution of this application are first revealed.

[0025] Please refer to Figure 1 , the exemplary network architecture of this application includes a service cluster supported by multiple servers 80 and the terminal devices 90, 92 of each user. According to actual business requirements, the service cluster may include business servers responsible for supporting the operation of network live broadcast services and instant messaging services, security servers responsible for security processing, and operation servers responsible for virtual gift fee management, etc. In actual deployment, the functions of these servers 80 can be independently deployed on a single server or integrated into the same server, and through mutual cooperation, they provide network live broadcast and instant messaging services and provide technical support for virtual gift interaction between users.

[0026] The terminal devices of each user can be personal computers, or various mobile terminals such as smart phones and tablet computers. These terminal devices are mainly used to run live broadcast applications, enabling users to interact with the server through the application, use various functions and services provided by the server, and conduct network live broadcast service interactions and instant chat communications with other users. In this application, a user who gives a virtual gift to others through a terminal device is called a gift-giving user, while a user who receives a virtual gift given by a gift-giving user is called a gift-receiving user.

[0027] The instant chat gift-giving method of this application can be implemented in the computer programs of the corresponding server and terminal device respectively according to the business logic of each part. For example, the terminal device can run a computer program that implements the relevant steps responsible for the gift-giving user and the gift-receiving user, while one or more servers are responsible for running the computer programs that implement the relevant steps executed by the server in this application. Through network communication, data and instructions can be exchanged between each terminal device and the server, thereby implementing the method of this application.

[0028] One or more servers of this application are responsible for implementing network live broadcast services, instant chat services, and virtual gift interaction services. These services enable multiple users to use these functions and achieve interconnection and interoperability in terms of data. For example, a user can be a common user of both the network live broadcast service and the instant chat service. In the network live broadcast service, the same user can be an audience or a host; in the instant communication service, the same user can be a gift-giving user or a gift-receiving user. The same user can send virtual gifts to another user through these two services or receive virtual gifts from other users, thereby implementing the application of the technical solution of this application.

[0029] During the implementation of this application, the gift-giving user runs a live broadcast application on their terminal device, opens the instant chat page of another user. When this user is a friend of the gift-giving user, they can be a gift-receiving user. The gift-giving user can select and send a virtual gift to the gift-receiving user by touching the gift-giving entry in the instant chat page. When the terminal device of the gift-giving user sends a virtual gift, it sends a gift-giving request and related information to the server. After receiving the request, the server performs a series of business logic processes, including verifying user relationships, screening and confirming virtual gift information, performing account balance verification, and executing deduction operations, etc., thereby completing the execution of the gift-giving business process. After confirming the completion of the gift-giving business process, the server sends the encrypted gift-giving business data to the terminal devices of the gift-giving user and the gift-receiving user. The terminal device of the gift-receiving user decrypts the data after receiving it and displays the corresponding gift effect in the instant chat page according to the decrypted data, thereby completing the whole process from the gift-giving user presenting a virtual gift to the gift-receiving user successfully receiving and displaying it.

[0030] It should be noted that, although for the convenience of those skilled in the art to understand, the technical solutions implemented by this application for the instant messaging scenario are combined with the webcast scenario for exemplary illustration, however, the technical solutions of this application are not limited to the combination with the webcast scenario, but can be applied to all instant messaging scenarios equipped with a virtual gift library separately.

[0031] Please refer to Figure 2 , according to an instant messaging gift-giving method provided by this application, in some embodiments of this method, the following steps are included:

[0032] Step S3100, in response to the entry event of the instant messaging page, after requesting the server to confirm that there is a gift-receiving user who is a friend of the gift-giving user in the instant messaging page, load a gift-giving entry in the instant messaging page;

[0033] The instant messaging page can be either a page used for one-on-one chat between two users or a page used for group chat among a group of users. Whether it is one-on-one chat or group chat, each user participating in the chat uses the functions provided by the technical solutions of this application based on the corresponding instant messaging page.

[0034] Taking the chat scenario between two users provided in the live streaming application as an example, users can trigger and open an instant messaging page in various ways. For example, users can click on the avatar or nickname of other users in the user list of the live streaming room to directly enter the instant messaging page with that user; or in the social interface of the live streaming platform, select a user through the friend list and initiate a chat. In addition, users can also click on the relevant notification to enter the instant messaging page by receiving a chat invitation or message push from other users.

[0035] When the user successfully enters the instant messaging page, the live streaming application will trigger an entry event. At this time, the live streaming application will send a request to the server to confirm whether there is a friend relationship between the current user as the gift-giving user and the gift-receiving user of this instant messaging page. For this purpose, the live streaming application obtains the unique identifiers of both users (such as user IDs) and uploads them to the server. After receiving the request, the server queries the user relationship database to determine whether the two are friends. If it is confirmed that the two are friends, the server will return a confirmation message, and the application will load a gift-giving entry in the instant messaging page according to this confirmation message; if the two are not friends, the gift-giving entry will not be loaded according to the negative message sent by the server, and the user can be prompted to establish a friend relationship before performing the gift-giving operation.

[0036] Taking the chat mode among users in a group in a general instant messaging scenario as an example, when a user opens the instant messaging page of the group, a corresponding entry event is triggered. In response to this event, the service verifies whether there are member users in the group who are friends with the current user as the gift-giving user. When there are users with such a friendship in the group, a confirmation message is returned. Based on this, the terminal device loads a gift-giving entry in the instant messaging page and can further associate the list of member users who are friends with the gift-giving user provided by the server with the operation process of this gift-giving entry, so that the gift-giving user can select one, multiple, or all of them as the gift-receiving users from it.

[0037] The verification of the friendship can be achieved in various ways. For example, the platform can adopt a direct matching method based on user IDs, or can combine the user's social graph for more complex verification logic. In addition, the platform can further refine the verification rules of the friendship according to the user's privacy settings and social preferences. For example, the user can choose to open the gift-giving function only to a specific group of friends, or set specific gift-giving permissions. Although these specific implementation methods are different in details, they all conform to the core technical features of this step, that is, to decide whether to load the gift-giving entry by verifying the user relationship.

[0038] It should be noted that the friendship in this application is a social connection state between users in the live streaming platform, which usually means that both parties have mutually confirmed each other's identities through the social mechanism of the platform and are willing to have more in-depth interactions. Therefore, in one embodiment, the social mechanism of the live streaming platform can be adopted, and the mutual follow-up of the two users is regarded as the establishment of a friendship. In another embodiment, this friendship is not satisfied with the mutual follow-up of the two users according to the live streaming social relationship, but requires that the two users add each other as friends in advance and store the friendship relationship in the user relationship database, rather than just storing the follow-up relationship between the two parties in the user relationship database.

[0039] The design of the gift-giving entry is usually located in a prominent position on the instant messaging page, such as near the chat box or in the toolbar at the bottom of the page, so that users can quickly discover and use it. This entry can be in the form of an icon, a button, or a floating window, etc. The specific design can be adjusted according to the interface style of the live streaming application and the user experience requirements. The purpose of loading the gift-giving entry is to provide a convenient gift-giving operation entry for users, so that users can easily initiate the sending of virtual gifts in the instant messaging scenario, thereby enhancing the interactive experience between users.

[0040] Step S3200: In response to the operation event acting on the gift-giving entry, request the server to screen virtual gifts from the virtual gift library to construct a list of virtual gifts suitable for the instant messaging scenario and display it on the instant messaging page;

[0041] When a gift - giving user touches the gift - giving entrance on the instant messaging page, it will trigger corresponding operation events, and a gift - giving request will be sent to the server according to this event, so as to drive the server to match a list of virtual gifts applicable to the instant messaging scenario from the virtual gift library.

[0042] In the live - streaming scenario, the virtual gift library is one of the core resources of the live - streaming platform. It stores a large number of virtual gifts related to live - streaming interactions. These gifts usually have unique designs and functions, such as special - effect gifts, animated gifts, and customized gifts related to the theme of the live - streaming room. However, these gifts are not entirely suitable for the instant messaging scenario. Some gifts have a corresponding relationship with the scenario, and the instant messaging scenario pays more attention to privacy and immediacy. Therefore, it is necessary to screen and optimize the gift library to provide virtual gifts more suitable for this scenario.

[0043] In one embodiment, corresponding instant - messaging - scenario identifiers are marked on the virtual gifts in advance. When the user touches the gift - giving entrance, the server will screen out the virtual gifts corresponding to the instant - messaging - scenario identifiers from the virtual gift library and construct a temporary gift list. This screening process takes into account the characteristics of the instant - messaging scenario, such as the display method of the gift, interactivity, and the degree of fit with the chat theme. For example, some special - effect gifts used to enhance the atmosphere in the live - streaming room may not be suitable for the instant - messaging scenario and will be filtered out.

[0044] Furthermore, the server will filter out some virtual gifts in the temporary gift list according to the identity level of the gift - giving user to obtain the final virtual gift list. The identity level is a user classification divided by the live - streaming platform according to the user's activity, contribution, or other criteria. Users with different identity levels may have different permissions and preferences. Therefore, the server will filter out virtual gifts that are not suitable for the identity level of the gift - giving user. For example, some high - level gifts may only be available to high - level users, and low - level users cannot select these gifts. In this way, the server can provide personalized gift choices for users.

[0045] It should be noted that the screening of virtual gifts can be adjusted according to different business requirements and technical implementation methods. For example, in addition to screening based on identity level and gift - giving behavior data, factors such as the user's geographical location, current time, or special festivals can also be combined for dynamic screening. In addition, the platform can continuously optimize the screening algorithm based on user feedback and data - analysis results to provide a virtual gift list that better meets user needs.

[0046] Finally, the server sorts the gifts in the virtual gift list according to the gift-giving behavior data of the gift-giving user in the gift-giving behavior database. The gift-giving behavior data includes information such as the user's historical gift-giving records, preferred gift types, and gift-giving frequencies. By analyzing this data, the server can predict the gifts that the user may be interested in and display these gifts at the top of the list. For example, if a user often gives a certain type of gift, that gift will be ranked higher in the list.

[0047] In other embodiments, according to the same principle as in the webcast scenario, the technical business logic related to virtual gifts in the webcast scenario can be migrated to the general instant messaging service of a non-live platform. A virtual gift library can be specifically set up. In this case, the server can mainly screen virtual gifts according to the identity level of the gift-giving user to provide a virtual gift list. The implementation principle is basically the same as that in the webcast scenario and will not be elaborated here.

[0048] Through the above process, the server constructs a virtual gift list suitable for the instant messaging scenario and pushes it to the gift-giving user to be displayed on their instant messaging page. Please refer to Figure 3 , Figure 3 which is an exemplary instant messaging page. A gift-giving panel pops up at the bottom of the page, listing each virtual gift in the virtual gift list in a multi-page and multi-option graphical way for the gift-giving user to choose from. For example, Figure 3 as shown in the lower part of the interface, each virtual gift in the virtual gift list is presented through a gift-giving panel, allowing the gift-giving user to select a virtual gift to send to the gift-receiving user. This list not only takes into account the characteristics of the instant messaging scenario but also combines the user's personal preferences and identity level, thus providing the user with a personalized gift selection that meets the scenario requirements.

[0049] Step S3300: When the gift-giving user sends the virtual gift to the gift-receiving user through the virtual gift list, it triggers the server to send the encrypted gift-giving business data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving business process of the virtual gift;

[0050] After the gift-giving user selects a virtual gift through the gift-giving entry on the instant messaging page and initiates a gift-giving operation, the live application will trigger a corresponding operation event to request the server to perform the gift-giving operation. At this time, the server will start a series of business logic processes to ensure the smooth progress of the gift-giving operation. After the server confirms the completion of the gift-giving business process, it sends the encrypted gift-giving business data corresponding to the virtual gift to the gift-giving user and the gift-receiving user.

[0051] In one embodiment, after receiving a gift-giving request, the server first verifies whether the gift-giving user has the permission to perform this operation. This includes checking the user's account status and confirming whether the user has passed authentication, etc. For example, if the user has not completed authentication or there are abnormalities in the account, the server will reject the gift-giving request and return corresponding prompt information to the user. After confirming the user's identity, the server will further process the gift-giving request, including but not limited to verifying whether the account balance of the gift-giving user is sufficient to pay for the selected virtual gift. If the balance is insufficient, the server will trigger the device on the gift-giving user's side to guide the user to perform a top-up operation. This process ensures the economic feasibility of the gift-giving operation and avoids transaction failures caused by account balance problems.

[0052] When the account balance of the gift-giving user is sufficient, the server will control the revenue back-end to deduct the account balance according to the price of the virtual gift and return a deduction success notification. This notification is a key signal to confirm the completion of the gift-giving business process, indicating that the gift-giving operation has been successfully executed. After receiving the deduction success notification, the server will further process the gift-giving business data, including encrypting the data to ensure the security and privacy of the data during transmission. The encrypted gift-giving business data will be stored in the gift-giving behavior database for subsequent reuse, loading, and query. At the same time, the server will send the encrypted gift-giving business data to the gift-giving user and the gift-receiving user respectively to ensure that both parties can receive information related to the gift-giving operation.

[0053] When encrypting the gift-giving business data, a symmetric key can be used. In another embodiment that pursues higher security, an asymmetric encryption method is adopted. The server holds the private key and distributes the corresponding public keys to the gift-giving user and the gift-receiving user in advance. The server encrypts the gift-giving business data with the private key and sends it to the gift-giving user and the gift-receiving user, and the user-side application can use the pre-received public key to decrypt and read the gift-giving business data.

[0054] By the server rather than the terminal device where the user is located to confirm the gift-giving business process and encrypt and transmit the corresponding gift-giving business data, it not only ensures the smooth progress of the gift-giving operation but also enhances the security and reliability of the data through the encryption and data storage mechanisms, avoiding the forgery of gift-giving business data. Given that the virtual gifts in the live streaming platform have a monetary value attached, this pursuit of security is significantly higher than the security requirements for emoticon gifts in traditional instant messaging outside the live streaming platform.

[0055] Step S3400: Receive the gift-giving business data and perform corresponding decryption, and display the corresponding gift effect on the instant messaging page according to the decrypted gift-giving business data.

[0056] After the server confirms the completion of the gift-giving business process, it will send encrypted gift-giving business data to the gift-giving user and the gift-receiving user. After the terminal devices of the gift-giving user and the gift-receiving user receive this data, they will perform decryption processing and display the corresponding gift effects in the instant messaging page according to the decrypted gift-giving business data.

[0057] The specific data included in the gift-giving business data can be flexibly set according to needs. For example, gift name, gift quantity, gift unit price, gift total price, gift-giving user information, gift-receiving user information, gift icon, gift type, etc. The selection of specific data should be sufficient to provide basic information for the display of gift effects. For example, the gift name and icon are used to identify the specific content of the gift, the gift quantity and total price are used to display the scale and value of the gift-giving, and the gift-giving user and gift-receiving user information are used to clarify the source and destination of the gift.

[0058] When displaying gift effects in the instant messaging page, multiple embodiments can be adopted. One embodiment is to embed controls corresponding to the gift effects in the message area of the instant messaging interface. Specifically, the terminal device determines the gift display style of the corresponding virtual gift according to the decrypted gift-giving business data, and then applies this style to encapsulate the specific data in the gift-giving business data to obtain a gift display control. This control is configured as a reuse entry for triggering the gift-giving business process of the virtual gift and is rendered to the instant messaging page to present the corresponding gift effect. For example, the gift display control can be displayed in the form of a card with a gift icon and relevant information (such as "Gift from User A: 10 roses"), and the user can click on this control to further view the gift details or trigger other related operations.

[0059] Another embodiment is to overlay a layer in the instant messaging interface to display the gift effect. When the gift type in the decrypted gift-giving business data is identified as the target type, this target type can be the type corresponding to high-level gifts, and these high-level gifts can display special effects. The terminal device adds the gift-giving business data as a special effect rendering message to the special effect rendering queue. In response to the dequeue event of the special effect rendering queue, the terminal device obtains the corresponding special effect image file according to the gift identifier in the dequeued special effect rendering message and renders this special effect image file to the top layer of the instant messaging page to present the corresponding gift effect. For example, for high-value virtual gifts, they can be displayed in the form of dynamic special effects at the top or bottom of the chat interface, such as flashing animation effects, floating gift icons, etc., to attract users' attention and enhance the visual impact of the gift.

[0060] In another embodiment, for virtual gifts of a target type, the above two embodiments can be used for display simultaneously. Moreover, the display using the layer method is only shown after the user's application first receives the corresponding gift-giving service data, while the display in the control can be shown every time the user browses. In this way, it not only avoids visual interference to the user caused by frequent special effects playback but also facilitates the user to check historical gift data and know the exchanges of various virtual gifts.

[0061] In some embodiments, due to reasons such as the control not being loaded or having been cleared from the cache, when the user performs a message paging operation on the instant messaging page, the controls of some virtual gifts may no longer be displayed. To solve this problem, the terminal device where the user, such as the gift-giving user or the gift-receiving user, is located will re-send the encrypted gift-giving service data of the virtual gifts sent and received by the gift-giving user to the server. After receiving the request, the server will retrieve and extract the corresponding encrypted data from the gift-giving behavior database and send it to the terminal device again. After receiving the encrypted data, the terminal device decrypts it and reconstructs the gift display control according to the decrypted data, so as to restore the display effect of virtual gifts on the instant messaging page. This process ensures that even in the case of non-loading or cache cleaning, the user can still view the historical virtual gift display content completely, improving the coherence and integrity of the user experience.

[0062] Through the above embodiments regarding the display effect of gifts, the terminal device can display the effect of virtual gifts in different ways on the instant messaging page, which not only meets the needs of gift display in the instant messaging scenario but also enhances the interactive experience between users. These embodiments all operate based on the decrypted gift-giving service data, ensuring the accuracy and security of gift display.

[0063] According to the above embodiments, it can be understood that this application improves the problems existing in the prior art and achieves significant beneficial effects and technical advantages in multiple aspects, including but not limited to.

[0064] First of all, this application provides a complete technical framework for realizing the giving of virtual gifts in the instant messaging scenario of the live broadcast platform. By loading the gift-giving entrance on the instant messaging page and showing the virtual gift list after confirming the user relationship, this application enables the user to easily initiate a gift-giving operation in the instant messaging scenario and finally realize the display of the corresponding gift effect, filling the gap in the instant messaging gift-giving function in the prior art. This design not only provides a convenient gift-giving method for the user but also enhances the interactive experience of the user in the private chat environment, making the giving of virtual gifts no longer limited to the live broadcast room and further expanding the social function of the live broadcast platform.

[0065] Secondly, the present application deeply enhances the data collaboration tightness between the live broadcast scenario and the instant messaging scenario of the live broadcast platform. By screening virtual gifts applicable to the instant messaging scenario from the virtual gift library, the present application realizes data sharing and collaboration between the two scenarios. This deep collaboration not only optimizes the usage efficiency of the gift library but also ensures that the virtual gifts in the instant messaging scenario are consistent with the overall style and functions of the live broadcast platform. Meanwhile, by encrypting the transmission of gift-giving service data, the present application further guarantees the security and real-time nature of data transfer between different scenarios, enabling each functional module of the live broadcast platform to work more closely together and improving the overall operation efficiency and user experience of the platform.

[0066] In addition, the present application can effectively activate the interpersonal relationships on the live broadcast platform by enhancing the virtual gift-giving function. Introducing the gift-giving function in the instant messaging scenario not only provides users with a new way to express emotions and enhance relationships but also promotes interaction and communication among users. This interactivity helps to enhance user stickiness to the platform and also brings more social vitality to the platform. Through the giving of virtual gifts, the relationships between users are deepened, thus further expanding the social network of the live broadcast platform and laying a solid foundation for the long-term development of the platform.

[0067] Based on any embodiment of the method of the present application, in the step where the request server screens virtual gifts from the virtual gift library to construct a virtual gift list applicable to the instant messaging scenario, the server performs the following steps, including:

[0068] Step S4100: Screen virtual gifts corresponding to the chat scenario identifier from the virtual gift library and construct them into a temporary gift list;

[0069] During the implementation of instant messaging gift-giving, the server needs to screen out virtual gifts applicable to the instant messaging scenario from the virtual gift library to construct a virtual gift list to ensure that users can select appropriate virtual gifts in the instant messaging scenario.

[0070] To this end, the server screens out virtual gifts corresponding to the instant messaging scenario identifier from the virtual gift library and constructs a temporary gift list. The virtual gift library stores a large number of virtual gifts related to live broadcast interactions, and these gifts usually have unique designs and functions, such as special effect gifts, animation gifts, and customized gifts related to the live broadcast room theme. However, not all gifts are suitable for the instant messaging scenario. Therefore, the server screens out those virtual gifts that are suitable for display and interaction in instant messaging according to the preset instant messaging scenario identifier. For example, some special effect gifts used to enhance the atmosphere in the live broadcast room may not be suitable for the instant messaging scenario and will thus be filtered out.

[0071] Step S4200: Filter out the virtual gifts in the temporary gift list that do not match the identity level of the gift-giving user, and construct the remaining virtual gifts into a virtual gift list;

[0072] Furthermore, the server filters the temporary gift list according to the identity level of the gift-giving user. The identity level is a user classification divided by the live streaming platform based on user activity, contribution, or other criteria. Users with different identity levels may have different permissions and preferences. Therefore, the server filters out the virtual gifts that do not match the identity level of the gift-giving user. For example, some high-level gifts may only be available to high-level users, while low-level users cannot select these gifts. In this way, the server can provide users with personalized gift choices, ensuring that users can select virtual gifts that match their identity and preferences and are suitable for the instant chat scenario.

[0073] In other embodiments, the server can also perform dynamic screening in combination with factors such as the user's geographical location, current time, or special festivals. For example, during specific festivals (such as Valentine's Day, Christmas, etc.), the server can preferentially screen out virtual gifts related to the festival theme to enhance the festival atmosphere and user participation. This dynamic screening mechanism can be adjusted according to different business requirements and technical implementation methods to further optimize the gift screening results.

[0074] Step S4300: After sorting the virtual gifts in the virtual gift list according to the gift-giving behavior data of the gift-giving user in the gift-giving behavior database, push the virtual gift list to the gift-giving user.

[0075] Finally, the server sorts the gifts in the virtual gift list according to the gift-giving behavior data of the gift-giving user in the gift-giving behavior database. The gift-giving behavior data includes information such as the user's historical gift-giving records, preferred gift types, and gift-giving frequencies, which can be determined by pre-statistical analysis of the gift-giving business data generated by the corresponding user's historical gift-giving. By analyzing these data and using one or more specific data such as preferred gift types or gift-giving frequencies for sorting, the server can predict the gifts that the user may be interested in and display these gifts preferentially in the virtual gift list finally sent to the user. For example, if a user often gives a certain type of gift, that gift will be ranked at the top of the list. This personalized sorting mechanism based on user behavior can further enhance the user experience and help users quickly find their favorite gifts.

[0076] Through the above-mentioned various screening and sorting mechanisms, the server can screen out a list of virtual gifts suitable for the instant messaging scenario from the virtual gift library and push it to the gift-giving user to be displayed on the instant messaging page. This process not only takes into account the characteristics of the instant messaging scenario, effectively solves the permission obstacle for sharing virtual gifts between the live broadcast scenario and the instant messaging scenario, but also combines the user's personal preferences and identity levels, thus providing the user with a gift selection that is both personalized and meets the scenario requirements.

[0077] Based on any embodiment of the method of this application, before the server triggers and confirms the completion of the gift-giving business process of the virtual gift, it includes:

[0078] Step S6100, in response to the gift-sending event that the gift-giving user selects a virtual gift in the virtual gift list to send, the server verifies whether the account balance of the gift-giving user is sufficient to send the virtual gift. When the balance is insufficient, it controls the device on the gift-giving user side to trigger the recharge guidance process;

[0079] When the gift-giving user selects a certain virtual gift from the virtual gift list and triggers the send operation, it triggers the corresponding gift-sending event, thereby sending a gift-giving request to the server. The server will respond to this request and start a series of verification and processing processes to ensure the smooth progress of the gift-giving operation.

[0080] First of all, the server will respond to the gift-sending event of the gift-giving user and verify whether the account balance of the gift-giving user is sufficient to pay for the selected virtual gift. This verification process is the key to ensuring the feasibility of the transaction because virtual gifts usually have a monetary value and the corresponding amount needs to be deducted from the user's account balance.

[0081] If the account balance of the gift-giving user is insufficient, the server will control the device on the gift-giving user side to trigger the recharge guidance process. This guidance process is designed to prompt the user that the current balance is insufficient to complete the gift-giving operation and provide recharge options so that the user can complete the transaction by recharging. The recharge guidance can be implemented in various ways, such as popping up a recharge prompt box on the user interface to guide the user to select the recharge amount and payment method, or directly jumping to the recharge page. This design not only ensures the coherence of the user experience but also provides the user with a convenient way to solve the problem of insufficient balance.

[0082] In specific implementation, the recharge guidance process can include any one of the following ways:

[0083] Pop-up prompt: Pop up a prompt box on the instant messaging page or the gift selection page, display information such as "Insufficient balance, please recharge", and provide a recharge button. After the user clicks the button, they can enter the recharge process.

[0084] Floating window prompt: Display a floating window at the corner of the user interface to prompt the user that the balance is insufficient and provide a recharge entry.

[0085] Page jump: Directly jump the user from the current page to the recharge page, while retaining the user's previous gift-giving operation status, so that the user can continue to complete the gift-giving operation after the recharge is completed.

[0086] It can be seen that through the recharge guidance process, users can be effectively guided to complete the recharge operation, thus ensuring the smooth progress of the gift-giving operation. It not only considers the convenience of user operations, but also through clear prompts and guidance, avoids transaction failures caused by insufficient balance, and improves the user experience and the interaction efficiency of the platform.

[0087] Step S6200: When the balance is sufficient, control the revenue back-end to deduct the account balance according to the gift price of the virtual gift, and return a deduction success notification.

[0088] When the server confirms that the account balance of the gift-giving user is sufficient, it will send a deduction request to the revenue back-end, which includes the price information of the virtual gift and the user characteristic identifier of the gift-giving user, such as the user ID. After receiving the request, the revenue back-end will deduct an amount equal to the price of the virtual gift from the account balance of the gift-giving user. This deduction process is preferably implemented through the platform's payment system, which will record the detailed information of the transaction, including the transaction time, amount, and the user accounts involved, to ensure the traceability and security of the transaction. After the deduction is successful, the revenue back-end will return a deduction success notification to the server. After receiving the deduction success notification, the server can further process the gift-giving business data.

[0089] In specific implementations, the deduction process can be achieved in various ways, depending on the architecture of the platform's payment system. For example, the platform can adopt a pre-authorization deduction mechanism, that is, when the user selects a virtual gift, the system freezes the corresponding amount in advance and then formally deducts it after the gift-giving operation is confirmed; or adopt an immediate deduction mechanism, that is, directly deduct the corresponding amount from the account balance at the moment the user triggers the gift-giving operation. No matter which method is adopted, the platform will ensure the accuracy and timeliness of the deduction process and avoid transaction anomalies caused by deduction failures.

[0090] Step S6300: In response to the deduction success notification, confirm that the gift-giving user has completed the gift-giving business process corresponding to the virtual gift sent to the gift-receiving user through the virtual gift list, and send a gift-giving notification message that can be replied to the gift-giving user and the gift-receiving user.

[0091] After completing the deduction operation and receiving the notice of successful deduction, the server confirms the gift-giving business process in which the gift-giving user sends virtual gifts to the gift-receiving user through the virtual gift list. This confirmation process marks the official completion of the gift-giving process. After the server confirms the completion of the gift-giving business process, it generates and sends a gift-giving notice message to the gift-giving user and the gift-receiving user, notifying both parties that the gift-giving operation has been successfully executed.

[0092] The specific content and form of the gift-giving notice message can be diversified according to the platform design and user needs. For example, the notice message can include information such as the nickname of the gift-giving user, the name and quantity of the virtual gift, and the icon or picture of the gift, to visually display the gift-giving content. In addition, for the gift-receiving user, the gift-giving notice message can also provide a reply button or link, and the gift-receiving user can directly send a thank-you message or other reply content to the gift-giving user by clicking on the button or link. This design not only improves the information interaction efficiency between the gift-receiving user and the gift-giving user, but also promotes further communication between users.

[0093] In specific implementation, after the gift-giving notice message arrives at the corresponding user's terminal device, it can be specifically processed through the following embodiments:

[0094] In one embodiment, the gift-giving notice message is directly displayed in the message area of the instant messaging page, and the message content can include the nickname of the gift-giving user, the name and icon of the virtual gift, etc. For example, "User A sent you a rose!" At the same time, a "Reply" button can be provided below the message, and after the gift-receiving user clicks it, they can directly enter the reply content in the chat box.

[0095] In another embodiment, a notification window pops up on the user interface to display the gift-giving information and provide reply options. This way can more significantly attract the user's attention and ensure that the user does not miss the gift-giving notice.

[0096] In yet another embodiment, if the gift-receiving user is not currently on the instant messaging page, the server can send the gift-giving notice message to the user's device as a system message through the message push function and display it in the system message icon. After the user clicks on the gift-giving notice message in the system message, they can jump to the instant messaging page to view the gift-giving details and reply. When the user is already on the original instant messaging page and this gift-giving notice message arrives later, it can be filtered out from the system message or not added to the system message to avoid unnecessary information interference.

[0097] In addition, to further enhance the user experience and interactivity, the gift-giving notification message can also be extended in combination with other functions of the platform. For example, the platform can provide quick reply options such as "Thank you" or "Like", and the gift-receiving user can quickly express gratitude with a simple click operation without manually entering text. This design is not only convenient and fast but also promotes positive interaction among users.

[0098] During the process of confirming the gift-giving business process and sending the notification message, the server will also record relevant data of the gift-giving operation, such as the gift-giving time, the user IDs of the gift-giving user and the gift-receiving user, the detailed information of the virtual gift, etc. These data will be stored in the gift-giving behavior database for subsequent data analysis and user behavior research. Through these data, the platform can better understand the gift-giving habits and preferences of users, so as to optimize the gift recommendation system and improve the user experience.

[0099] Through the above embodiments, the business process confirmation is completed by combining the fee processing process and the message notification mechanism. The present application systematically realizes the interconnection and interoperability of virtual gifts between instant messaging services and webcast services, achieving significant technical advantages. First, by verifying the account balance and guiding the recharge, the economic feasibility of the gift-giving operation is ensured, avoiding transaction failures due to insufficient balance. At the same time, through the return of the successful deduction notice, the accuracy and traceability of the transaction are further guaranteed. This process not only improves the user experience but also enhances the transaction security of the platform. Second, by sending gift-giving notification messages that can be replied to to the gift-giving user and the gift-receiving user, the present application not only realizes the gift-giving in the instant messaging scenario but also promotes the interaction and communication between users, enhancing the user's stickiness to the platform. In addition, by systematically integrating instant messaging services and webcast services, the present application realizes data sharing and collaboration between the two services, optimizes the use efficiency of the gift library, and improves the overall operation efficiency and user experience of the platform. Finally, by recording relevant data of the gift-giving operation and storing them in the gift-giving behavior database, the platform can better analyze user behavior and optimize the gift recommendation system, thereby further improving the user experience and the social function of the platform. The combined effect of these technical advantages enables the present application to reach a new height in enhancing the social interactivity and user experience of the live broadcast platform.

[0100] Based on any embodiment of the method of the present application, in the step of triggering the server to send the encrypted gift-giving business data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving business process of the virtual gift, the server performs the following steps, including:

[0101] Step S8100: Construct the gift-giving business data after the completion of the gift-giving business process of the virtual gift, and encrypt the gift-giving business data with a preset key;

[0102] After the server confirms the completion of the virtual gift giving business process, it constructs the gift giving business data and encrypts it to ensure the security, integrity, and privacy of the gift giving business data during transmission, while preventing the risk of data forgery or tampering.

[0103] Specifically, the server first constructs the gift giving business data, which contains detailed information related to the virtual gift, such as the name, quantity, price of the gift, the identifiers of the gift giving user and the gift receiving user, the gift icon, the gift type, etc. These information are the basis for displaying the gift effect and recording the gift giving behavior. The process of constructing the gift giving business data is systematic to ensure the accuracy and consistency of the data. For example, the gift name and quantity are used to clarify the specific content of the gift, the user identifier is used to confirm the two parties of the gift giving and receiving, and the price information is used to record the transaction amount.

[0104] After the construction is completed, the server encrypts the gift giving business data using a preset private key. Private key encryption is a common security measure. By encrypting the data with the private key, only the user holding the corresponding public key can decrypt and read the data content. This encryption method not only ensures the security of the data during transmission, but also effectively prevents unauthorized access and data tampering. For example, when the gift giving business data is sent from the server to the user's terminal device, even if the encrypted data is intercepted, it cannot be read or tampered with by an unauthorized third party.

[0105] In specific implementations, the server can adopt various encryption algorithms, such as asymmetric encryption algorithms (e.g., RSA algorithm) or symmetric encryption algorithms (e.g., AES algorithm). Asymmetric encryption algorithms use a pair of keys (public key and private key) to achieve encryption and decryption, with high security and are suitable for scenarios that require high security. Symmetric encryption algorithms use the same key for encryption and decryption, with high encryption speed and are suitable for scenarios with large amounts of data. The server can select the appropriate encryption algorithm according to actual needs and ensure the secure storage and management of the private key.

[0106] In addition, when constructing the gift giving business data, the server can also add additional security information as needed, such as timestamps, data verification codes, etc., and the user side terminal device verifies the validity of the gift giving business data based on these security information after decrypting the gift giving business data. The timestamp is used to record the time when the data is generated to ensure the timeliness of the data; the data verification code is used to verify the integrity and accuracy of the data to prevent data tampering during transmission. These security measures further enhance the security and reliability of the gift giving business data.

[0107] Step S8200: Store the encrypted gift giving business data in the gift giving behavior database for reuse and loading on the instant messaging page;

[0108] After the encryption is completed, the server will store the encrypted gift-giving business data in the gift-giving behavior database for subsequent reuse and loading on the instant messaging page to ensure the secure storage and efficient reuse of gift-giving data.

[0109] The gift-giving behavior database is a dedicated database on the server side for storing data related to virtual gift-giving. It records the detailed information of each gift-giving operation, including but not limited to the identifiers of the gift-giving user and the gift-receiving user, the name, quantity, price, gift icon, gift type, and gift-giving time of the virtual gift. These data are not only used for instant display of gift effects but also for generating gift-giving behavior data for subsequent data analysis, user behavior research, and optimization of the gift recommendation system.

[0110] Storing the encrypted gift-giving business data in the database can not only ensure the security and privacy of the data but also prevent the data from being tampered with or leaked during storage and reading. Only through the correct decryption algorithm and key can the encrypted data be read, which provides a strong guarantee for data security.

[0111] When the user performs a message paging operation or requests to load the historical gift-giving records on the instant messaging page, the server can extract the corresponding encrypted data from the gift-giving behavior database and send it to the user's terminal device. After receiving the data, the terminal device restores the data content through the decryption algorithm and displays the corresponding gift effects on the instant messaging page. Thus, not only the security and consistency of the data are ensured, but also the fluency and coherence of the user experience are improved.

[0112] Step S8300: Send the encrypted gift-giving business data to the gift-giving user and the gift-receiving user respectively.

[0113] After completing the gift-giving business process and generating the encrypted gift-giving business data, the server sends the encrypted data to the gift-giving user and the gift-receiving user respectively. After receiving the encrypted gift-giving business data, both users decrypt it and display the gift effects, thus completing the gift-sending process.

[0114] It should be noted that when the present application sends the gift-giving business data in the above embodiments, it is executed by the server rather than the terminal device on the gift-giving user side. This is designed considering the value attribute of virtual gifts and the particularity of the need to connect the network live broadcast service and the instant messaging service, and has many important technical advantages and practical significances, including but not limited to:

[0115] First, as the core node for data processing and storage, the server can ensure the accuracy and consistency of data. When sending encrypted gift-giving business data, the server can uniformly manage and schedule the data, avoiding data transmission errors or losses caused by performance differences of terminal devices or unstable network states. For example, the server can monitor the status of data transmission in real time to ensure that the data reaches the user's terminal device completely, thereby improving the reliability of data transmission.

[0116] Second, having the server responsible for sending data can effectively enhance data security. The server side can adopt more advanced security mechanisms and encryption algorithms to protect the data, preventing the data from being intercepted or tampered with during transmission. For example, the server can combine multiple encryption technologies (such as the combination of asymmetric encryption and symmetric encryption) to ensure data security, and at the same time, it can also verify the integrity and source legality of the data through technologies such as digital signatures. This centralized security management method is more efficient and reliable than implementing it on terminal devices.

[0117] Furthermore, having the server send data can also achieve more flexible business logic and function expansion. For example, the server can further process or optimize the data before sending it, such as adding additional metadata, performing data compression, or format conversion, etc., to improve the user experience. At the same time, the server can also dynamically adjust the data content according to the user's real-time status and preferences. For example, when a user receives a certain type of virtual gift for the first time, additional instructions or prompts can be provided.

[0118] In addition, having the server responsible for sending gift-giving business data can better support the operation and management of the platform. For example, the server can record detailed logs of each data transmission for subsequent auditing, data analysis, and user behavior research. In this way, the platform can better understand the user's behavior patterns, optimize the gift recommendation system, and provide more personalized services for users.

[0119] It can be seen that in the above embodiments, it is the server rather than the terminal device on the gift-giving user side that is responsible for sending encrypted gift-giving business data. This can not only improve the reliability and security of data transmission, but also support more flexible business logic and function expansion. At the same time, it provides strong support for the operation and management of the platform, fully considering the actual needs of the instant messaging gift-giving function, and providing users with an efficient, secure, and personalized virtual gift-giving experience.

[0120] Based on any embodiment of the method of the present application, presenting corresponding gift effects in the instant messaging page according to the decrypted gift-giving business data includes:

[0121] Step S3411: Determine the gift display style of the corresponding virtual gift according to the decrypted gift-giving business data;

[0122] During the process of displaying virtual gift effects on the instant messaging page, it is first necessary to determine the gift display style of the corresponding virtual gift based on the decrypted gift-giving business data to ensure that users can more intuitively see the content and effects of the gift.

[0123] The gift display style is a template file that details the display form and effects of the gift on the instant messaging page through code. This template file is the key to realizing the visual effects and interactive functions of the gift, defining the appearance, layout, animation effects, and specific ways of interacting with users of the gift.

[0124] Specifically, the gift display style includes visual elements such as the name, icon, color, size, and animation effects of the gift, as well as layout information such as the position and display duration of the gift on the page. For example, for a simple virtual gift like "rose", its display style may include a delicate rose icon, a light pink background, a gentle fluttering animation effect, and a layout setting of being centered at the top of the chat page for 5 seconds. These style information are stored in the template file in the form of code, and the terminal device can render the gift effect according to these code instructions.

[0125] In practical applications, the gift display style can be designed diversely according to different types of virtual gifts and user preferences. For example, for high-value virtual gifts, more magnificent animation effects and larger display sizes can be designed to highlight the importance of the gift; while for ordinary gifts, a simple design style can be adopted. In addition, the display style can also be adapted according to the user's device type (such as mobile phone, tablet or computer) to ensure a good visual experience on different devices.

[0126] To achieve personalized gift display, after receiving the decrypted gift-giving business data, the terminal device will parse the gift type and related attribute data therein, and match the corresponding gift display style template according to the gift type and / or one or more related attribute data. If the data contains specific user preference information, such as the user hopes the gift to be displayed with a certain animation effect, the terminal device will adjust the gift display style according to these preference information to achieve a personalized gift display effect.

[0127] Step S3412, apply the gift display style to perform format encapsulation on the specific data in the gift-giving business data to obtain a gift display control;

[0128] After determining the display style of the virtual gift, the terminal device needs to apply the specific data in the decrypted gift-giving service data to this display style to generate a gift display control that can be used for display on the instant messaging page. This process can be achieved through format encapsulation, that is, integrating and encapsulating the specific information of the gift, such as name, quantity, price, icon, etc., according to the format and structure defined by the gift display style.

[0129] As revealed above, the gift display style, as a template file, details the display form and effect of the gift on the instant messaging page through code. It not only defines the appearance of the gift, such as icon, color, size, and animation effect, but also stipulates the layout of the gift on the page, such as the display position and duration. These style information provide specific instructions for the terminal device to render the gift effect.

[0130] During the format encapsulation process, the terminal device will adapt and process the specific data in the gift-giving service data according to the requirements of the gift display style. For example, if the gift display style requires the gift name to be displayed in a specific font and color, the terminal device will extract the gift name from the gift-giving service data and format it according to the style requirements. Similarly, for information such as the quantity and price of the gift, corresponding format processing will also be performed according to the style template to ensure that this information can be displayed in a user-friendly manner.

[0131] In some embodiments, format encapsulation also supports personalized display. If the gift-giving service data contains the user's preference information, such as the user hopes the gift to be displayed with a certain specific animation effect, the terminal device will adjust the gift display style according to these preference information. For example, the user may hope that the gift has a special sound effect or light and shadow effect when displayed, and the terminal device can customize the gift display control according to these personalized needs.

[0132] The gift display control obtained through format encapsulation is a complete component that can be used for display on the instant messaging page. It contains all the necessary information and style settings and can directly render the effect of the virtual gift on the chat page. For example, the gift display control can display the icon and name of the gift in a specific area of the chat page and perform dynamic display according to the set animation effect. The design of this control not only improves the efficiency of gift display but also enhances the coherence and consistency of the user experience.

[0133] Step S3413: Configure the gift display control as a reuse entry that can trigger the gift-giving service process of the virtual gift, and render it to the instant messaging page to present the corresponding gift effect.

[0134] After completing the format encapsulation, the terminal device configures the generated gift display control as a reusable entry that can trigger the virtual gift giving business process, and renders it onto the instant messaging page to present the corresponding gift effects.

[0135] Through the configuration of the terminal device, the gift display control, as a complete component, not only contains the visual display information of the gift, such as icons, names, quantities, animation effects, etc., but also has the function of triggering the gift giving business process. This means that users can, through interaction with the control, initiate a gift giving operation again or trigger other gift related functions. For example, users can click on the gift display control to view gift details, send the same gift again, or trigger gift related social interactions, such as sharing to other chat windows or social platforms.

[0136] When rendered onto the instant messaging page, the gift display control will be displayed in a specific area of the page according to the preset layout and style information. For example, the gift control can be displayed at the top or bottom of the chat message list, or appear as a floating window in the corner of the page. This layout not only ensures the prominence of the gift effect but also avoids excessive interference with the chat content.

[0137] To enhance the user experience and interactivity, the gift display control can also support multiple interaction methods. For example, when the user hovers the mouse or touches the control, more detailed information can be displayed, such as the description of the gift, price, nickname of the gift giving user, etc. In addition, the control can also support animation effects, such as the flashing or magnifying effect of the gift icon when received, to attract the user's attention and increase interactivity.

[0138] In specific implementation, the rendering of the gift display control can be optimized in combination with other functions of the instant messaging page. For example, the control can be scrolled and displayed together with other messages in the chat message list, or dynamically loaded when the user performs a message paging operation. In addition, the control can also support responsive design, automatically adjusting the layout and style according to the screen size and resolution of the user's device to ensure a good visual experience on different devices.

[0139] By implementing the above steps, this application realizes the personalized display and efficient interaction of virtual gifts in the instant messaging page, significantly enhancing the user experience and the interactivity of the platform.

[0140] First of all, by decrypting the gift giving business data and determining the gift display style, the terminal device can accurately render the gift effect according to the gift type and user preferences, ensuring the diversity and personalization of the gift display. This personalized display not only enhances the visual appeal of the gift but also meets the aesthetic and interaction needs of different users, improving the user's perception and participation in virtual gifts.

[0141] Furthermore, a gift display control is generated through format encapsulation. The terminal device integrates the specific information of the gift into a reusable component, achieving the efficiency and consistency of gift display. This process not only simplifies the complexity of gift rendering but also further enhances the flexibility and user-friendliness of gift display by supporting personalized display and customization. The generation of the gift display control ensures that the gift effect can maintain a consistent display effect on different devices and in different scenarios, enhancing the coherence of the user experience.

[0142] Finally, the gift display control is configured as a reuse entry and rendered on the instant messaging page, realizing the interactivity and dynamic display of virtual gifts. Users can initiate the gift-giving operation again or trigger other social functions through interaction with the control, enhancing the interactivity between users. At the same time, the dynamic display and responsive design of the control ensure that the gift effect can obtain a good visual experience on different devices, further enhancing the interactivity and adaptability of the platform.

[0143] Generally speaking, through the above embodiments, the present application not only realizes the personalized display and efficient interaction of virtual gifts on the instant messaging page but also enhances the user experience and the social interactivity of the platform through technical means, providing a more rich and vivid interaction method for the instant messaging scenario of the live broadcast platform.

[0144] Based on any embodiment of the method of the present application, corresponding gift effects are displayed on the instant messaging page according to the decrypted gift-giving service data, including:

[0145] Step S3421: When it is recognized that the gift type in the decrypted gift-giving service data is the target type, add the gift-giving service data to the special effect rendering queue as a special effect rendering message;

[0146] In this embodiment, when the terminal device receives the decrypted gift-giving service data, it will identify whether the gift type therein is the target type. The target type refers to those virtual gifts that need to be displayed in the form of special effects, such as high-value gifts or gifts with special visual effects. If it is recognized that the gift type is the target type, the terminal device will add the gift-giving service data to the special effect rendering queue as a special effect rendering message.

[0147] The special effect rendering queue is a data structure for managing special effect rendering tasks. It sorts and processes special effect rendering tasks according to the first-in, first-out (FIFO) principle. When the gift-giving service data is added to the special effect rendering queue, the terminal device will process these special effect rendering tasks in sequence according to the order in the queue. This queue mechanism ensures the orderliness and efficiency of special effect rendering, avoiding conflicts and chaos between special effect rendering tasks.

[0148] In specific implementations, the special effect rendering queue can be optimized according to different business requirements and technical implementations. For example, the queue can support priority scheduling, enabling high-priority special effect rendering tasks to be processed first. In addition, the queue can also support dynamic adjustment, dynamically adjusting the processing order of special effect rendering tasks according to the performance status of the current device and the user's interaction behavior.

[0149] Step S3422: In response to the dequeue event of the special effect rendering queue, obtain the corresponding special effect image file according to the gift identifier in the dequeued special effect rendering message.

[0150] After adding the gift-giving service data as a special effect rendering message to the special effect rendering queue, the special effect rendering queue dequeues each special effect rendering message according to the first-in-first-out mechanism, thereby triggering the corresponding dequeue event. The terminal device, in response to the dequeue event of the special effect rendering queue, obtains the corresponding special effect image file according to the gift identifier in the dequeued special effect rendering message.

[0151] The dequeue event in the special effect rendering queue indicates that a special effect rendering task is about to be executed. When the terminal device responds to this event, it extracts the gift identifier from the special effect rendering message, which is the key information for uniquely identifying the virtual gift. Through the gift identifier, the terminal device can obtain the special effect image file corresponding to the gift from local storage or the server side. The special effect image file is the visual content for displaying the special effect, which can be an animation, a video, or other forms of multimedia files. The terminal device will render the corresponding special effect according to the format and content of the special effect image file.

[0152] In specific implementations, the acquisition method of the special effect image file can be diversified. If the special effect image file has been cached locally on the terminal device, it can be directly read from local storage to improve the rendering efficiency. If it is not cached locally, the terminal device will request the server to download the corresponding special effect image file. After receiving the request, the server will search for and return the corresponding file according to the gift identifier. This mechanism ensures that even if the special effect image file is not pre-stored on the user's device, it can be obtained and displayed in a timely manner.

[0153] In addition, to optimize performance and the user experience, the terminal device can adopt a preloading mechanism. For example, when it is recognized that the gift type in the gift-giving service data is the target type, the terminal device can request and cache the special effect image file from the server in advance so that it can respond quickly when the special effect rendering queue is processed. The preloading mechanism can reduce the user's waiting time for the special effect to be displayed and improve the fluency of the interaction.

[0154] Step S3423: Render the special effect image file to the top layer of the instant messaging page to present the corresponding gift effect.

[0155] After obtaining the special effect image files, the terminal device will further process these files to achieve the rendering of special effects. The special effect rendering process can generate dynamic visual effects based on the animation frame sequence and timestamp information in the special effect image files. For example, for a high-value virtual gift, the special effect rendering may include animation effects such as the enlargement, flashing, and floating of the gift, as well as elements that enhance the experience such as background halos or sound effects.

[0156] The special effect rendering process can support multiple special effect display methods. For example, for high-value virtual gifts, full-screen animation special effects can be used to enhance the visual impact of the gift; while for ordinary gifts, local animation effects can be used, such as the floating or flashing of the gift icon in the chat page. In addition, the special effect rendering can be optimized in combination with the device performance and network status of the user. For example, when the device performance is low or the network status is poor, the complexity of the special effects can be reduced to ensure a smooth user experience.

[0157] To achieve the rendering of special effect image files, the terminal device will render the special effect image files to the top layer of the instant chat page to ensure that the special effects can cover the chat content, thereby attracting the user's attention and enhancing the visual effect. The rendering process will be adapted according to the specific content and format of the special effect image files. For example, for animation files, the terminal device will render frame by frame according to the animation frame sequence and timestamp information to achieve a smooth animation effect; for video files, the video content will be directly played. In addition, the terminal device can further optimize the display effect of the special effects according to the metadata in the special effect image files, such as the duration and display position of the special effects.

[0158] When rendering special effects, the terminal device will consider the user's interaction behavior. For example, when the user performs other operations (such as sending messages or switching pages) during the special effect display process, the terminal device can pause or adjust the rendering of the special effects to avoid interfering with the user's normal operations. In addition, the terminal device can also adjust the display method of the special effects according to the user's preference settings. For example, the user can choose to turn off certain special effects or adjust the display intensity of the special effects.

[0159] To further enhance the user experience, the terminal device can also be optimized in combination with other functions when rendering special effects. For example, when the special effect rendering is completed and the user has not performed any operations, the terminal device can automatically save the special effect to the chat history so that the user can see the special effect display again when viewing the chat history later. In addition, the terminal device can send a confirmation message of the rendering completion to the server after the special effect rendering is completed, so that the server can record the user's interaction behavior and perform data analysis.

[0160] By rendering the special effect image file to the top layer of the instant messaging page, the terminal device not only realizes the dynamic display of virtual gifts, but also ensures the efficiency of special effect rendering and the coherence of the user experience through various optimization measures. This design not only enhances the visual appeal of virtual gifts, but also improves the interactivity and sense of participation of users in the instant messaging scenario.

[0161] By implementing the above steps, this application realizes the orderly rendering and efficient display of virtual gift special effects in the instant messaging page, significantly improving the user experience and the stability of the system.

[0162] First, the special effect rendering queue is used to manage the special effect rendering tasks, ensuring the orderliness of special effect rendering. This queue mechanism follows the First-In-First-Out (FIFO) principle, avoiding conflicts and chaos between special effect rendering tasks, thus ensuring the coherence and consistency of special effect display. Even in high-concurrency scenarios, the system can effectively process multiple special effect rendering tasks, avoiding congestion and superimposition of special effects, and improving the clarity and readability of the visual effect.

[0163] Furthermore, the special effect rendering queue supports priority scheduling and dynamic adjustment, enabling high-priority special effect tasks to be processed first, and dynamically adjusting the task processing order according to device performance and user interaction behavior. This flexibility not only optimizes resource allocation, but also ensures smooth special effect display under different device and network conditions, further improving the user experience.

[0164] During the special effect rendering process, the terminal device performs adaptive rendering according to the specific content and format of the special effect image file, supporting multiple special effect display methods. This adaptability ensures that special effects can be personalized according to gift types and user preferences, enhancing the visual appeal and interactivity of virtual gifts. At the same time, the terminal device considers the user's interaction behavior when rendering special effects, avoiding interfering with the user's normal operations, and further improving the interaction experience of users in the instant messaging scenario.

[0165] In addition, by rendering the special effect image file to the top layer of the instant messaging page, the terminal device ensures that the special effect can cover the chat content, thus attracting the user's attention and enhancing the visual effect. This design not only improves the display effect of virtual gifts, but also ensures the efficiency of special effect rendering and the coherence of the user experience through various optimization measures.

[0166] It can be seen that by utilizing the special effect rendering queue mechanism and the adaptive rendering ability of the terminal device, this application not only avoids special effect congestion, but also realizes the orderly display and efficient processing of virtual gift special effects, significantly improving the user experience and the stability of the system. This design provides a richer and more vivid interaction method for the instant messaging scenario of the live streaming platform, enhancing the interactivity and sense of participation among users.

[0167] Based on any embodiment of the method of the present application, before the requesting server screens virtual gifts from the virtual gift library to construct a virtual gift list applicable to the instant messaging scenario, it includes:

[0168] Step S2100: The server verifies whether the communication channel information of the gift-giving user and the gift-receiving user is complete respectively. When it is incomplete, it executes the service process of guiding the corresponding user to complete the communication channel information;

[0169] Before the requesting server screens virtual gifts from the virtual gift library to construct a virtual gift list applicable to the instant messaging scenario, the server will first verify whether the communication channel information of the gift-giving user and the gift-receiving user is complete. The communication channel information refers to the contact information used by the user on the platform to receive notifications, messages or other interaction information, such as mobile phone numbers, email addresses or the accounts of other instant messaging tools, etc. Complete communication channel information helps to improve the security guarantee of virtual gift sending and receiving.

[0170] If the server detects that the communication channel information of the gift-giving user or the gift-receiving user is incomplete, for example, the necessary contact information is missing or the information format is incorrect, the server will execute the service process of guiding the corresponding user to complete the communication channel information. This guiding process can be implemented in various ways to ensure that users can conveniently supplement or update their communication channel information. For example, the server can send a prompt message to the user's terminal device to guide the user to enter the settings page to complete the information; or prompt the user to supplement necessary information such as mobile phone number or email address through a pop-up window. These prompt messages can clearly inform the user of the specific content that needs to be supplemented and provide direct links or buttons to facilitate the user to quickly complete the operation.

[0171] Step S2200: When the communication channel information is complete, it detects whether the behavior pattern data of the gift-giving user and the gift-receiving user respectively matches a preset abnormal behavior pattern. When it matches, it implements identity verification based on the communication channel information and the corresponding user;

[0172] After completing the verification of the completeness of the communication channel information, the server will further detect whether the behavior pattern data of the gift-giving user and the gift-receiving user respectively matches a preset abnormal behavior pattern. The behavior pattern data refers to a series of operation records and behavior characteristics of the user on the platform, including but not limited to login frequency, operation time, gift-giving frequency, gift-receiving frequency, interaction patterns with other users, etc. These data can reflect the normal behavior habits of the user and can also be used to identify potential abnormal behaviors, such as maliciously swiping gifts, account theft or other abnormal operations.

[0173] When the communication channel information is complete, the server will compare the user's behavior pattern data with the preset abnormal behavior patterns. If it detects that the user's behavior pattern matches an abnormal pattern, such as an abnormally high gift-giving frequency, frequent logins within a short period, or an abnormal interaction pattern with other users, etc., the server will interact with the corresponding user based on the user's communication channel information to achieve identity verification. This verification process aims to ensure the authenticity of operations and prevent unauthorized behaviors or malicious operations.

[0174] Identity verification can be carried out in various ways. For example, the server can send a text message verification code to the user's registered mobile phone number and require the user to enter the verification code to complete the verification; or send a verification link to the user's email, and the user completes the identity confirmation after clicking the link. In addition, the server can also adopt biometric verification, such as fingerprint recognition, face recognition, or voiceprint recognition, etc. These verification methods require the user to complete the collection and setting of relevant biometric features in the system in advance. Through these diverse verification means, the platform can effectively enhance the security of virtual gift sending and receiving while ensuring the convenience of the user experience.

[0175] In specific implementation, the server can select different verification methods according to the degree of user behavior abnormality. For minor abnormal behaviors, only a text message verification code or email verification may be required; while for serious abnormal behaviors, multiple verification methods may need to be combined, such as combining a text message verification code and biometric verification. This flexible verification mechanism not only improves security but also provides an appropriate verification intensity according to different situations, avoiding excessive interference with users.

[0176] Step S2300: When the identity verification of the corresponding user fails, terminate the execution of the gift-giving business process.

[0177] If the identity verification of the corresponding user fails, the server will terminate the execution of the gift-giving business process. This measure is for the protection of the platform's security and user rights and interests, ensuring that only verified legitimate users can perform virtual gift sending and receiving operations.

[0178] Situations where the identity verification fails may include the user failing to correctly enter the text message verification code, not clicking the verification link to complete the confirmation, or the biometric verification not matching successfully, etc. When these situations occur, the server will immediately stop the subsequent gift-giving operations to prevent unauthorized behaviors or malicious operations from damaging the platform and users.

[0179] When terminating the gift-giving business process, the server will send clear prompt information to the user's terminal device, informing the user of the reason for the failed identity verification and providing corresponding solutions. For example, if the user fails to correctly enter the SMS verification code, the server can prompt the user to re-obtain the verification code or check for input errors; if the biometric verification fails, the server can prompt the user to re-collect the feature information or contact the platform customer service for resolution.

[0180] By implementing the above steps, the present application effectively protects the value attributes of virtual gifts in the instant chat gift-giving function of the live streaming platform and significantly improves the security of the platform.

[0181] First, by verifying the completeness of the communication channel information, it is ensured that the channels for the user to receive notifications and interaction information on the platform are complete and reliable. This measure provides a basic guarantee for subsequent security verification and user operations, ensuring the accuracy and timeliness of information transmission.

[0182] Furthermore, by detecting whether the user behavior pattern data matches the preset abnormal behavior pattern, the platform can timely identify potential malicious behaviors or abnormal operations. This security mechanism based on behavior analysis can effectively prevent risks such as malicious gift brushing and account theft, ensuring that the sending and receiving operations of virtual gifts conform to the normal behavior habits of users. When abnormal behavior is detected, the platform interacts with the user through the communication channel information to perform identity verification, further strengthening the confirmation of the user's identity and preventing unauthorized operations. In the case of failed identity verification, the platform terminates the gift-giving business process, which directly blocks potential security threats and protects the value attributes of virtual gifts from being damaged. At the same time, the platform sends clear prompt information to the user, informing the reason for the verification failure and providing solutions, which not only enhances the user's trust in the platform's security mechanism but also improves the user's security awareness and operation standardization.

[0183] Thus, through the combined effects of the completeness verification of communication channel information, abnormal detection of behavior patterns, and the identity verification mechanism, the security and legality of the sending and receiving operations of virtual gifts are ensured, effectively protecting the value attributes of virtual gifts and providing a safe and reliable interaction environment for users.

[0184] Please refer to Figure 4, An instant messaging gift-giving device provided according to an aspect of the present application includes an entrance loading module 3100, a list display module 3200, a gift-giving feedback module 3300, and a gift display module 3400. Among them, the entrance loading module 3100 is configured to, in response to an event of entering an instant messaging page, request the server to confirm that there is a gift-receiving user in the instant messaging page who is a friend of the gift-giving user, and then load a gift-giving entrance on the instant messaging page; the list display module 3200 is configured to, in response to an operation event on the gift-giving entrance, request the server to screen virtual gifts from a virtual gift library to construct a virtual gift list applicable to the instant messaging scenario and display it on the instant messaging page; the gift-giving feedback module 3300 is configured to, when the gift-giving user sends the virtual gift to the gift-receiving user through the virtual gift list, trigger the server to send encrypted gift-giving service data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving service process of the virtual gift; the gift display module 3400 is configured to receive the gift-giving service data and perform corresponding decryption, and display corresponding gift effects on the instant messaging page according to the decrypted gift-giving service data.

[0185] Based on any embodiment of the device of the present application, corresponding to the list display module 3200, the server runs the following modules, including: a gift preliminary screening module configured to screen virtual gifts corresponding to a chat scenario identifier from a virtual gift library to construct a temporary gift list; a personalized refined screening module configured to filter out virtual gifts in the temporary gift list that are not suitable for the identity level according to the identity level of the gift-giving user, and construct the remaining virtual gifts into a virtual gift list; a list sorting module configured to sort the virtual gifts in the virtual gift list according to the gift-giving behavior data of the gift-giving user in a gift-giving behavior database, and then push the virtual gift list to the gift-giving user.

[0186] Based on any embodiment of the device of the present application, corresponding to the gift-giving feedback module 3300, the server runs the following modules, including: a balance verification module configured to, in response to a gift-sending event that the gift-giving user selects a virtual gift in the virtual gift list to send, the server verifies whether the account balance of the gift-giving user is sufficient to send the virtual gift. When the balance is insufficient, it controls the device on the gift-giving user side to trigger a recharge guidance process; a deduction notification module configured to, when the balance is sufficient, control the revenue back office to deduct the account balance according to the gift price of the virtual gift and return a deduction success notification; a gift-giving notification module configured to, in response to the deduction success notification, confirm the completion of the gift-giving service process corresponding to the gift-giving user sending the virtual gift to the gift-receiving user through the virtual gift list, and send a gift-giving notification message that can be replied to the gift-giving user and the gift-receiving user.

[0187] Based on any embodiment of the device in the present application, corresponding to the gift - giving feedback module 3300, the server runs the following modules, including: a construction encryption module, configured to construct the gift - giving service data after the completion of the gift - giving service process of the virtual gift, and encrypt the gift - giving service data with a preset key; a storage reuse module, configured to store the encrypted gift - giving service data in the gift - giving behavior database for reuse and loading on the instant messaging page; a data transmission module, configured to separately send the encrypted gift - giving service data to the gift - giving user and the gift - receiving user.

[0188] Based on any embodiment of the device in the present application, the gift display module 3400 includes: a style call module, configured to determine the gift display style of the corresponding virtual gift according to the decrypted gift - giving service data; a control encapsulation module, configured to apply the gift display style to format - encapsulate each specific data in the gift - giving service data to obtain a gift display control; a control display module, configured to configure the gift display control as a reuse entry that can trigger the gift - giving service process of the virtual gift and render it to the instant messaging page to present the corresponding gift effect.

[0189] Based on any embodiment of the device in the present application, the gift display module 3400 includes: a rendering enqueue module, configured to, when identifying that the gift type in the decrypted gift - giving service data is a target type, add the gift - giving service data as a special effect rendering message to the special effect rendering queue; a special effect call module, configured to, in response to the dequeue event of the special effect rendering queue, obtain the corresponding special effect image file according to the gift identifier in the dequeued special effect rendering message; a special effect display module, configured to render the special effect image file to the top layer of the instant messaging page to present the corresponding gift effect.

[0190] Based on any embodiment of the device in the present application, corresponding to the list display module 3200, the server runs the following modules, including: a communication verification module, configured to verify by the server whether the communication channel information of the gift - giving user and the gift - receiving user is complete, and when it is incomplete, execute the service process of guiding the corresponding user to complete the communication channel information; an anomaly verification module, configured to, when the communication channel information is complete, detect whether the behavior pattern data of the gift - giving user and the gift - receiving user matches a preset behavior anomaly pattern, and when it matches, interact with the corresponding user based on the communication channel information to implement identity verification; an anomaly handling module, configured to terminate the execution of the gift - giving service process when the identity verification of the corresponding user fails.

[0191] Another embodiment of the present application further provides an instant messaging gift - giving device. As Figure 5As shown, it is a schematic diagram of the internal structure of an instant messaging gift-giving device. The instant messaging gift-giving device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable non-volatile storage medium of the instant messaging gift-giving device stores an operating system, a database, and computer-readable instructions. Information sequences can be stored in the database. When the computer-readable instructions are executed by the processor, the processor can implement an instant messaging gift-giving method.

[0192] The processor of the instant messaging gift-giving device is used to provide computing and control capabilities to support the operation of the entire instant messaging gift-giving device. Computer-readable instructions can be stored in the memory of the instant messaging gift-giving device. When the computer-readable instructions are executed by the processor, the processor can execute the instant messaging gift-giving method of this application. The network interface of the instant messaging gift-giving device is used to connect and communicate with the terminal.

[0193] Those skilled in the art can understand that Figure 5 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the instant messaging gift-giving device to which the solution of this application is applied. The specific instant messaging gift-giving device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0194] In this embodiment, the processor is used to execute Figure 4 the specific functions of each module in. The memory stores the program code and various types of data required to execute the above modules or sub-modules. The network interface is used to implement data transmission between the user terminal or the server. The non-volatile readable storage medium in this embodiment stores the program code and data required to execute all modules in the instant messaging gift-giving device of this application. The server can call the program code and data of the server to execute the functions of all modules.

[0195] This application also provides a non-volatile readable storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute the steps of the instant messaging gift-giving method of any embodiment of this application.

[0196] This application also provides a computer program product, including computer programs / instructions. When the computer programs / instructions are executed by one or more processors, the steps of the method described in any embodiment of this application are implemented.

[0197] Those of ordinary skill in the art can understand that to implement all or part of the processes in the above-described embodiments of the method of the present application, it can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned various methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0198] In summary, through technical means such as loading a gift-giving entrance on the instant messaging page, screening a virtual gift list suitable for the instant messaging scenario, and encrypting gift-giving service data, the present application effectively solves the problems existing in the prior art, provides systematic technical support for the instant messaging gift-giving function of the live streaming platform, and significantly improves the user experience and the interactivity of the platform.

Claims

1. A method for sending gifts in instant chat, characterized in that: include: In response to an entry event of an instant chat page, after requesting the server to confirm that there is a gift receiving user who is a friend of the gift sending user in the instant chat page, the gift sending entry is loaded in the instant chat page; In response to the operation event acting on the gift-giving portal, request the server to filter virtual gifts from the virtual gift library to construct a virtual gift list suitable for the instant chat scenario, and display it on the instant chat page; When the gift-giving user sends the virtual gift to the gift-receiving user through the virtual gift list, the trigger server sends the encrypted gift-giving service data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming that the gift-giving service process of the virtual gift is completed; The gift-giving service data is received and decrypted accordingly, and a corresponding gift effect is displayed in the instant chat page according to the decrypted gift-giving service data.

2. The instant chat gift giving method according to claim 1, characterized in that: In the step of requesting the server to filter virtual gifts from the virtual gift library to construct a virtual gift list suitable for the instant chat scenario, the server performs the following steps, including: Filter virtual gifts corresponding to the chat scene identifier from the virtual gift library to construct a temporary gift list; According to the identity level of the gift-giving user, the virtual gifts in the temporary gift list that are not suitable for the identity level are filtered, and the remaining virtual gifts are constructed into a virtual gift list; After sorting the virtual gifts in the virtual gift list according to the gift-giving behavior data of the gift-giving user in the gift-giving behavior database, the virtual gift list is pushed to the gift-giving user.

3. The instant chat gift giving method according to claim 1, characterized in that: The trigger server confirms the completion of the virtual gift delivery business process, including: In response to a gift sending event in which a gift-giving user selects a virtual gift in the virtual gift list for sending, the server verifies whether the gift-giving user's account balance is sufficient to send the virtual gift, and when the balance is insufficient, controls the device on the gift-giving user's side to trigger a recharge guidance process; When the balance is sufficient, the revenue control backend deducts the account balance according to the gift price of the virtual gift and returns a successful deduction notification; In response to the deduction success notification, the gift giving user is confirmed to have completed the gift giving business process corresponding to the virtual gift sent to the gift receiving user through the virtual gift list, and a replyable gift giving notification message is sent to the gift giving user and the gift receiving user.

4. The instant chat gift giving method according to claim 1, characterized in that: In the step of triggering the server to send the encrypted gift-giving service data corresponding to the virtual gift to the gift-giving user and the gift-receiving user after confirming the completion of the gift-giving service process of the virtual gift, the server executes the following steps, including: Constructing gift-giving service data after the gift-giving service process of the virtual gift is completed, and encrypting the gift-giving service data with a preset key; Storing the encrypted gift-giving business data in a gift-giving behavior database for reuse and loading by the instant chat page; The encrypted gift-giving business data is sent to the gift-giving user and the gift-receiving user respectively.

5. The instant chat gift giving method according to claim 1, characterized in that: The corresponding gift effects are displayed on the instant chat page according to the decrypted gift-giving service data, including: Determine the gift display style of the corresponding virtual gift according to the decrypted gift-giving business data; Apply the gift display style to format and encapsulate each specific data in the gift-giving business data to obtain a gift display control; The gift display control is configured as a reused entry that can trigger the gift-giving business process of the virtual gift, and is rendered into the instant chat page to present the corresponding gift effect.

6. The instant chat gift giving method according to claim 1, characterized in that: The corresponding gift effects are displayed on the instant chat page according to the decrypted gift-giving service data, including: When the gift type in the decrypted gift-giving service data is identified as the target type, the gift-giving service data is added to the special-effect rendering queue as a special-effect rendering message; In response to a dequeue event of the special effect rendering queue, obtaining a corresponding special effect image file according to a gift identifier in the dequeued special effect rendering message; The special effect image file is rendered to the top layer of the instant chat page to present a corresponding gift effect.

7. The instant chat gift giving method according to any one of claims 1 to 5, characterized in that: Before requesting the server to filter virtual gifts from the virtual gift library to construct a virtual gift list suitable for instant chat scenarios, the following steps are included: The server verifies whether the communication channel information of the gift-giving user and the gift-receiving user is complete, and if it is incomplete, executes a business process to guide the corresponding user to complete the communication channel information; When the communication channel information is complete, detecting whether the behavior pattern data of the gift-giving user and the gift-receiving user match the preset abnormal behavior pattern, and when they match, interacting with the corresponding user based on the communication channel information to implement identity authentication; When the corresponding user identity authentication fails, the gift-giving business process is terminated.

8. An instant chat gift-giving device, characterized in that: include: The entry loading module is configured to respond to an entry event of the instant chat page, request the server to confirm that there is a gift receiving user who is a friend of the gift sending user in the instant chat page, and then load the gift sending entry in the instant chat page; A list display module is configured to respond to an operation event acting on the gift sending portal, request the server to filter virtual gifts from the virtual gift library to construct a virtual gift list suitable for the instant chat scenario, and display it on the instant chat page; A gift giving feedback module is configured to trigger the server to send the encrypted gift giving service data corresponding to the virtual gift to the gift giving user and the gift receiving user after confirming the completion of the gift giving service process of the virtual gift when the gift giving user sends the virtual gift to the gift receiving user through the virtual gift list; The gift display module is configured to receive the gift-giving service data and perform corresponding decryption, and display the corresponding gift effect in the instant chat page according to the decrypted gift-giving service data.

9. An instant chat gift-giving device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.

10. A non-volatile readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.