CN113840155A - Method and system for replacing virtual gift and computer equipment - Google Patents

Method and system for replacing virtual gift and computer equipment Download PDF

Info

Publication number
CN113840155A
CN113840155A CN202111106718.5A CN202111106718A CN113840155A CN 113840155 A CN113840155 A CN 113840155A CN 202111106718 A CN202111106718 A CN 202111106718A CN 113840155 A CN113840155 A CN 113840155A
Authority
CN
China
Prior art keywords
virtual gift
fragment
fragments
data
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111106718.5A
Other languages
Chinese (zh)
Other versions
CN113840155B (en
Inventor
许英俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Cubesili Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cubesili Information Technology Co Ltd filed Critical Guangzhou Cubesili Information Technology Co Ltd
Priority to CN202111106718.5A priority Critical patent/CN113840155B/en
Publication of CN113840155A publication Critical patent/CN113840155A/en
Application granted granted Critical
Publication of CN113840155B publication Critical patent/CN113840155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of network live broadcast, and provides a method, a system and computer equipment for replacing a virtual gift, wherein the method comprises the following steps: the server responds to the virtual gift bar display request and acquires a target virtual gift; wherein the target virtual gift comprises a virtual gift having a life span; if the expired virtual gift exists in the target virtual gift, the server replaces the expired virtual gift with virtual gift fragments to obtain virtual gift fragment data; the server acquires virtual gift certificate data containing virtual gift fragment data and issues the virtual gift certificate data to the client; the client displays the virtual gift boxes in the live broadcast room interface according to the virtual gift box data, and the virtual gift boxes display the replaced virtual gift fragments. Compared with the prior art, the expired virtual gifts are replaced by the virtual gift fragments, so that a user can perform richer interactive behaviors based on the virtual gift fragments, and the live broadcast interactive experience of the user is improved.

Description

Method and system for replacing virtual gift and computer equipment
Technical Field
The embodiment of the application relates to the technical field of network live broadcast, in particular to a method, a system and computer equipment for replacing a virtual gift.
Background
With the rapid development of internet technology and streaming media technology, more and more users begin to participate in live webcasting, and perform various forms of online interaction with a main broadcast in a live webcasting room, such as public screen chat, giving virtual gifts, and the like.
At present, for some virtual gifts, the virtual gifts have a certain service life, and if the virtual gifts are not given when the service life is reached, the server will perform expiration processing on the virtual gifts, which will affect the livecast interaction enthusiasm of the user and reduce the live broadcast interaction participation of the user.
Disclosure of Invention
The embodiment of the application provides a method, a system and a computer device for replacing a virtual gift, which can solve the technical problems that expiration of the virtual gift affects the enthusiasm of live broadcast interaction and reduces the participation degree of the live broadcast interaction, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for replacing a virtual gift, including the steps of:
the method comprises the steps that a server responds to a virtual gift bar display request sent by a client side, and obtains a current user identification and a target virtual gift corresponding to the current user identification; wherein the target virtual gift comprises a virtual gift having a life span;
if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with virtual gift fragments to obtain virtual gift fragment data;
the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client;
the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift certificate displays the replaced virtual gift fragments therein.
In a second aspect, an embodiment of the present application provides a virtual gift replacement system, including: a server and a client;
the server is used for responding to a virtual gift bar display request sent by the client and acquiring a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span;
the server is used for replacing an expired virtual gift with a virtual gift fragment if the expired virtual gift exists in the target virtual gift to obtain virtual gift fragment data;
the server is used for acquiring virtual gift certificate data containing the virtual gift fragment data and sending the virtual gift certificate data to the client;
the client is used for receiving the virtual gift bar data and displaying the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift certificate displays the replaced virtual gift fragments therein.
In a third aspect, embodiments of the present application provide a computer device, a processor, a memory, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the first aspect.
In the embodiment of the application, a server responds to a virtual gift bar display request sent by a client to obtain a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span; if the expired virtual gift exists in the target virtual gift, the server replaces the expired virtual gift with virtual gift fragments to obtain virtual gift fragment data; the server acquires virtual gift certificate data containing virtual gift fragment data and issues the virtual gift certificate data to the client; the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein. The embodiment of the application realizes that the expired virtual gift is replaced by the virtual gift fragments, and the virtual gift fragments obtained by replacement are displayed in the virtual gift bar, so that a user can intuitively know which target virtual gifts are expired, the expired loss of the virtual gift can be compensated, the user can perform richer interactive behaviors based on the virtual gift fragments subsequently, and the live broadcast interactive experience and the live broadcast interactive participation of the user are improved.
For a better understanding and implementation, the technical solutions of the present application are described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic application scenario diagram of a virtual gift replacement method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a virtual gift box displayed in a live broadcast interface according to an embodiment of the present application;
fig. 3 is a schematic view illustrating a virtual gift having a lifespan displayed in a virtual gift box according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for replacing a virtual gift according to a first embodiment of the present application;
fig. 5 is a schematic flowchart of S102 in the method for replacing a virtual gift according to the first embodiment of the present application;
fig. 6 is a schematic view of a virtual gift certificate provided by an embodiment of the present application displayed in a virtual gift certificate;
fig. 7 is a flowchart illustrating a method for replacing a virtual gift according to a second embodiment of the present application;
fig. 8 is a schematic diagram of an interactive popup in a live broadcast room interface according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a method for replacing a virtual gift according to a third embodiment of the present application;
fig. 10 is a flowchart illustrating a method for replacing a virtual gift according to a fourth embodiment of the present application;
fig. 11 is a flowchart illustrating a method for replacing a virtual gift according to a fifth embodiment of the present application;
fig. 12 is a flowchart illustrating a method for replacing a virtual gift according to a sixth embodiment of the present application;
fig. 13 is a schematic structural diagram of a replacement system for a virtual gift according to a seventh embodiment of the present application;
fig. 14 is a schematic structural diagram of a computer device according to an eighth embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if/if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As will be appreciated by those skilled in the art, the terms "client," "terminal device," and "terminal device" as used herein include both wireless signal receiver devices, which include only wireless signal receiver devices without transmit capability, and receiving and transmitting hardware devices, which include receiving and transmitting hardware devices capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (personal communications Service), which may combine voice, data processing, facsimile and/or data communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially a computer device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., wherein a computer program is stored in the memory, and the central processing unit loads a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby accomplishing specific functions.
It should be noted that the concept of "server" as referred to in this application can be extended to the case of a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through an interface, or may be integrated into one physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a virtual gift replacement method provided in an embodiment of the present application, where the application scenario includes an anchor client 101, a server 102, and a viewer client 103 provided in the embodiment of the present application, and the anchor client 101 and the viewer client 103 interact with each other through the server 102.
The anchor client 101 is a client that transmits a live video, and is generally a client used by an anchor (i.e., a live anchor user) in live streaming.
The viewer client 103 refers to an end that receives and views a live video, and is typically a client employed by a viewer viewing a video in a live network (i.e., a live viewer user).
The hardware at which the anchor client 101 and viewer client 103 are directed is essentially a computer device, and in particular, as shown in fig. 1, it may be a type of computer device such as a smart phone, smart interactive tablet, and personal computer. Both the anchor client 101 and the viewer client 103 may access the internet via known network access means to establish a data communication link with the server 102.
Server 102, acting as a business server, may be responsible for further connecting with related audio data servers, video streaming servers, and other servers providing related support, etc., to form a logically associated server cluster for serving related terminal devices, such as anchor client 101 and viewer client 103 shown in fig. 1.
In the embodiment of the present application, the anchor client 101 and the audience client 103 may join in the same live broadcast room (i.e., a live broadcast channel), where the live broadcast room is a chat room implemented by means of an internet technology, and generally has an audio/video broadcast control function. The anchor user is live in the live room through the anchor client 101, and the audience of the audience client 103 can log in the server 102 to enter the live room to watch the live.
In the live broadcast room, interaction between the anchor and the audience can be realized through known online interaction modes such as voice, video, characters and the like, generally, the anchor performs programs for audience users in the form of audio and video streams, and economic transaction behaviors can also be generated in the interaction process. Of course, the application form of the live broadcast room is not limited to online entertainment, and can also be popularized to other relevant scenes, such as a video conference scene, a product recommendation sale scene and any other scenes needing similar interaction.
Specifically, the viewer watches live broadcast as follows: a viewer may click on a live application installed on the viewer client 103 and choose to enter any one of the live rooms, triggering the viewer client 103 to load a live room interface for the viewer, the live room interface including a number of interactive components, for example: the video component, the virtual gift bar component, the public screen component and the like can enable audience users to watch live broadcast in a live broadcast room by loading the interactive components, and perform various online interactions, wherein the online interaction modes comprise but are not limited to presenting virtual gifts, speaking on a public screen and the like.
Currently, some virtual gifts are time-limited, i.e., before the time-limit is reached, if the virtual gift is not given to the anchor, the virtual gifts are processed and cannot be given any more.
In an alternative embodiment, the virtual gift with a lifetime is typically delivered to the user after the user engages in a live event or a certain live interaction occurs.
Referring to fig. 2 and 3, fig. 2 is a schematic view illustrating a virtual gift box displayed in a live broadcast interface according to an embodiment of the present application. Fig. 3 is a schematic view illustrating a virtual gift having a lifetime displayed in a virtual gift box according to an embodiment of the present application. As can be seen in fig. 2, a navigation control 22 is displayed in the virtual gift box 21, and a virtual gift having a lifetime generally will be in a package displayed in the navigation control 22. When the user opens the package, the virtual gift certificate 21 displays the virtual gift 31 having the life span shown in fig. 3. It can be seen that the virtual gift 31 having the age has the remaining time displayed thereon.
To prevent the interactive enthusiasm of the user from being affected when the virtual gift expires. The embodiment of the application provides a method for replacing a virtual gift. Referring to fig. 4, fig. 4 is a schematic flow chart of a method for replacing a virtual gift according to a first embodiment of the present application, the method including the following steps:
s101: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S102: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S103: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S104: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
The present application describes a method for replacing a virtual gift from two execution bodies, a client and a server. In the present embodiment, the client in S101 to S104 refers to the viewer client at which the viewer presenting the virtual gift is located.
When a user wishes to present a virtual gift to the anchor, the user can click the virtual gift bar control displayed in the live broadcast interface to trigger the client to load the virtual gift bar in the live broadcast interface, as shown in fig. 2, the user can browse various virtual gifts in the virtual gift bar, and can present the virtual gift to the anchor after selecting the virtual gift, inputting the number of the virtual gifts and paying the value of the virtual gift.
In the embodiment of the present application, the virtual gift certificate may display a virtual gift having a lifespan owned by the user, and thus, the virtual gift having the lifespan may be processed at the server in response to a virtual gift certificate display request transmitted from the client.
Regarding step S101, the server acquires the current user identifier and the target virtual gift corresponding to the current user identifier in response to the virtual gift certificate display request sent by the client.
The virtual gift bar display request is used for triggering the server to send virtual gift bar data, and the virtual gift bar data is used for loading the virtual gift bar in the live broadcast interface.
The virtual gift certificate data includes display data of the virtual gift certificate and function data of the virtual gift certificate.
The display data of the virtual gift certificate includes, but is not limited to, style data of the virtual gift certificate, size data of the virtual gift certificate, position data of the virtual gift certificate, internal layout data of the virtual gift certificate, and display images, display sizes, display positions, and the like of the respective virtual gifts in the virtual gift certificate.
The functional data of the virtual gift certificate is used for realizing various functions of the virtual gift certificate, including but not limited to a virtual gift browsing function, a virtual gift selecting function, a data input function, a presentation confirming function and the like.
The current user identifier is a user identifier corresponding to a user who logs in the server through the client, and the current user identifier is included in the virtual gift certificate display request, so that the server confirms which user requests to display the virtual gift certificate.
The target virtual gift corresponding to the current user identification refers to a virtual gift having a use term owned by the current user.
In step S102, if the expired virtual gift exists in the target virtual gift, the server replaces the expired virtual gift with the virtual gift fragment to obtain the virtual gift fragment data.
Since the target virtual gifts all have a lifespan, it is necessary to determine whether the target virtual gifts have expired before the server issues the virtual gift certificate data.
In an alternative embodiment, the server determines whether the target virtual gift is expired as follows: the server acquires the generation time of each target virtual gift, the service life of each target virtual gift and the current time, and if the difference between the current time and the generation time of the target virtual gift is greater than the service life of the target virtual gift, the target virtual gift is the expired virtual gift.
The generation time of the target virtual gift refers to the time when the target virtual gift is issued to the current user.
After the server determines that the expired virtual gifts exist in the target virtual gifts, the server does not directly clear the expired virtual gifts, but replaces the expired virtual gifts with the virtual gift fragments to obtain the virtual gift fragment data.
Wherein the virtual gift fragments refer to fragments that can be used to compose a virtual gift.
Specifically, to replace an expired virtual gift with a shard of the virtual gift, in an alternative embodiment, the data structure of the virtual gift is followed and fields are added, such as: newly added field A: whether it is a virtual gift fragment, newly added field B: current fragment number and newly added field C: the number of virtual gift fragments required to compose the virtual gift. Replacement of expired virtual gifts with virtual gift fragments is thus achieved at the bottom layer through changes to the field values.
Referring to fig. 5, in an alternative embodiment, the step S102 of replacing the expired virtual gift with the virtual gift fragments by the server to obtain the virtual gift fragment data includes the steps of:
s1021: the server marks the expired virtual gift as virtual gift fragments, acquires the number of the replaced virtual gift fragments according to the expired virtual gift and a preset virtual gift replacement rule, and updates the current fragment number of the virtual gift fragments according to the number of the replaced virtual gift fragments; wherein the current shard number of the virtual gift shards is the number of the virtual gift shards already owned by the current user.
S1022: the server acquires display data of the virtual gift fragments and functional data of the virtual gift fragments, and obtains the virtual gift fragment data according to the display data of the virtual gift fragments, the functional data of the virtual gift fragments and the updated current fragment number of the virtual gift fragments.
With respect to step S1021, the server marks the expired virtual gift as a virtual gift fragment. That is, the above-mentioned added field a is set to yes, so that the server can confirm whether a data record is a data record about the virtual gift fragment based on the added field a.
The server acquires the number of the replaced virtual gift fragments according to the expired virtual gift and a preset virtual gift replacement rule, and updates the current fragment number of the virtual gift fragments according to the number of the replaced virtual gift fragments. That is, the server first obtains the number of the replaced virtual gift fragments and sets the value of the newly added field B as the number of the replaced virtual gift fragments, so that the server can confirm that the current user owns the number of the virtual gift fragments according to the newly added field B.
In an alternative embodiment, the preset virtual gift replacement rule may refer to: an expired virtual gift is replaced with a corresponding virtual gift fragment.
In other alternative embodiments, the preset virtual gift replacement rule may be related to the virtual gift identifications, and the preset virtual gift replacement rules corresponding to different virtual gift identifications are different, so that the number of the virtual gift fragments replaced by different expired virtual gift may be different.
Note that, the new field C: the number of virtual gift fragments required to compose a virtual gift is a default value in this embodiment, such as: every 5 virtual gift shards with a corresponding virtual gift, the value of the newly added field C is 5.
With respect to step S1022, the server acquires display data of the virtual gift fragments and function data of the virtual gift fragments, and obtains virtual gift fragment data according to the display data of the virtual gift fragments, the function data of the virtual gift fragments, and the number of the replaced virtual gift fragments.
The display data of the virtual gift fragments includes, but is not limited to, display images of the virtual gift fragments, display sizes of the virtual gift fragments, and display positions of the virtual gift fragments.
The functional data of the virtual gift fragments are used to implement interactive functions with respect to the virtual gift fragments, including but not limited to discarding the virtual gift fragments, synthesizing the virtual gift, etc., as will be described in detail in the following embodiments.
In an alternative embodiment, the display image of the virtual gift fragments is derived from the display image of the virtual gift before substitution.
Referring to fig. 6, fig. 6 is a schematic view illustrating a display of virtual gift fragments in a virtual gift certificate according to an embodiment of the present application. As can be seen from fig. 6, the virtual gift fragments 61 are displayed in the virtual gift certificate 21, and the display images of the virtual gift fragments 61 are split to visually indicate their differences from the virtual gift.
In addition, the target virtual gift 31 for other unexpired is normally displayed in the virtual gift certificate 21.
In an optional embodiment, the server may further issue expiration prompt popup data to the client, and the client receives the expiration prompt popup data and displays the expiration prompt popup in a live broadcast room interface according to the expiration prompt popup data.
Wherein, the overdue prompt popup window displays the expired virtual gift. The expired virtual gift displayed in the expiration prompt pop-up window refers to a display image of the expired virtual gift.
The overdue prompt popup window data comprises display data of the overdue prompt popup window and functional data of the overdue prompt popup window. The display data of the overdue prompt popup is used for determining the display style, the display position and the like of the overdue prompt popup, and the functional data of the overdue prompt popup is used for realizing the functions of automatic closing, active closing, prompt display and the like.
In this embodiment, the expiration prompt popup can be used to efficiently prompt the user which target virtual gifts have expired, so as to prevent the target virtual gifts from disappearing without knowing an expiration mechanism.
In the embodiment of the application, a server responds to a virtual gift bar display request sent by a client to obtain a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span; if the expired virtual gift exists in the target virtual gift, the server replaces the expired virtual gift with virtual gift fragments to obtain virtual gift fragment data; the server acquires virtual gift certificate data containing virtual gift fragment data and issues the virtual gift certificate data to the client; the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein. The embodiment of the application realizes that the expired virtual gift is replaced by the virtual gift fragments, and the virtual gift fragments obtained by replacement are displayed in the virtual gift bar, so that a user can intuitively know which target virtual gifts are expired, the expired loss of the virtual gift can be compensated, the user can perform richer interactive behaviors based on the virtual gift fragments subsequently, and the live broadcast interactive experience and the live broadcast interactive participation of the user are improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a virtual gift replacing method according to a second embodiment of the present application, including the following steps:
s201: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S202: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S203: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S204: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
S205: the client responds to the discarding instruction of the virtual gift fragments, acquires the identification of the fragments to be discarded, the quantity of the fragments to be discarded and the current user identification, and sends a virtual gift fragment discarding request containing the identification of the fragments to be discarded, the quantity of the fragments to be discarded and the current user identification to the server.
S206: the server responds to the virtual gift fragment discarding request, updates the current fragment number corresponding to the fragment identification to be discarded according to the fragment number to be discarded, and sends a first virtual gift fragment data updating instruction to the client; and the current fragment number corresponding to the fragment to be discarded identifier is the number of fragments to be discarded owned by the current user.
S207: and the client responds to the first virtual gift fragment data updating instruction and updates the virtual gift fragment data corresponding to the to-be-discarded fragment identification according to the quantity of the to-be-discarded fragments.
In the present embodiment, steps S201 to S204 and steps S101 to S104 have already been explained in the first embodiment, and will not be repeated here, and the following description will be made with respect to steps S205 to S207.
In this embodiment, the user may discard the selected virtual gift fragment by interacting with the virtual gift fragment displayed in the virtual gift certificate.
Regarding step S205, the client acquires the to-be-discarded fragment identifier, the number of to-be-discarded fragments, and the current user identifier in response to the discard instruction for the virtual gift fragment, and transmits a virtual gift fragment discard request including the to-be-discarded fragment identifier, the number of to-be-discarded fragments, and the current user identifier to the server.
The discard instruction for the virtual gift fragmentation is generated based on fragmentation processing information received by the client.
In an alternative embodiment, the process of generating the discard instruction for the virtual gift fragment is as follows: the user can long press a certain virtual gift fragment displayed in the virtual gift bar to trigger the process related to the virtual gift fragment and send out a trigger instruction of the virtual gift fragment, the client responds to the trigger instruction of the virtual gift fragment to acquire interactive popup data, and the interactive popup is displayed in a live broadcast room interface according to the interactive popup data. The user selects a processing mode for the virtual gift fragment in the interactive popup, for example: discarding and inputting the number of fragments to be discarded, and receiving fragment discarding information at least comprising the identifier of the fragments to be discarded and the number of the fragments to be discarded by the client through an interactive popup window to generate a discarding instruction for the virtual gift fragments. The to-be-discarded fragment identifier is an identifier of the virtual gift fragment triggered by long-time pressing by the user.
Referring to fig. 8, fig. 8 is a schematic view of an interactive popup in a live broadcast interface according to an embodiment of the present application. The interactive popup 81 can be seen to display the processing modes of the virtual gift fragments, such as discarding, synthesizing, converting, transferring, giving away and the like. The processing manner shown in this embodiment is discarding, and the following embodiments will respectively describe the implementation of different processing manners.
Regarding step S206, the server updates the current fragmentation number corresponding to the to-be-discarded fragmentation identifier according to the to-be-discarded fragmentation number in response to the virtual gift fragmentation discarding request, and sends a first virtual gift fragmentation data updating instruction to the client.
And the current fragment number corresponding to the fragment to be discarded identifier is the number of fragments to be discarded owned by the current user.
Specifically, the server first obtains the current fragment number corresponding to the to-be-discarded fragment identifier, and then subtracts the to-be-discarded fragment number from the current fragment number corresponding to the to-be-discarded fragment identifier to obtain the updated current fragment number corresponding to the to-be-discarded fragment identifier.
In an optional embodiment, if the current fragmentation number corresponding to the updated fragmentation to be discarded identifier is 0, the server deletes the virtual gift fragmentation record corresponding to the fragmentation to be discarded identifier of the current user.
Regarding step S207, the client updates the virtual gift fragment data corresponding to the to-be-discarded fragment identifier according to the to-be-discarded fragment number in response to the first virtual gift fragment data update instruction.
Specifically, the client acquires the current fragment number corresponding to the to-be-discarded fragment identifier from the virtual gift fragment data corresponding to the to-be-discarded fragment identifier, and then subtracts the to-be-discarded fragment number from the current fragment number corresponding to the to-be-discarded fragment identifier to obtain the updated current fragment number corresponding to the to-be-discarded fragment identifier, so that the virtual gift fragment data corresponding to the to-be-discarded fragment identifier is updated.
After the virtual gift fragment data corresponding to the to-be-discarded fragment identifier is updated, the client sets the number of to-be-discarded fragments displayed in the virtual gift bar to the current fragment number corresponding to the updated to-be-discarded fragment identifier.
In an optional embodiment, if the current fragmentation number corresponding to the updated to-be-discarded fragmentation identifier is 0, the client deletes the virtual gift fragmentation data corresponding to the to-be-discarded fragmentation identifier, and the virtual gift bar will not display the to-be-discarded fragmentation.
In this embodiment, realized abandoning virtual gift piece, richened the interactive mode of user with virtual gift piece, promoted user's interactive experience.
Referring to fig. 9, fig. 9 is a flowchart illustrating a virtual gift replacing method according to a third embodiment of the present application, including the following steps:
s301: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S302: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S303: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S304: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
S305: the client responds to the synthesis instruction of the virtual gift fragments, acquires the identification of the fragments to be synthesized and the identification of the current user, and sends a virtual gift synthesis request containing the identification of the fragments to be synthesized and the identification of the current user to the server.
S306: the server responds to the virtual gift synthesizing request, and obtains the current fragment number corresponding to the fragment identification to be synthesized and the target fragment number corresponding to the fragment identification to be synthesized; the current fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized owned by the current user; the target fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized required for synthesizing the virtual gift corresponding to the fragment to be synthesized identifier.
S307: and if the current fragment number is not less than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into the virtual gifts corresponding to the fragments to be synthesized identifiers, acquires the synthesized virtual gift data, and sends a second virtual gift fragment data updating instruction to the client.
S308: the client side responds to the second virtual gift fragment data updating instruction and updates the virtual gift fragment data corresponding to the fragment identification to be synthesized according to the number of the target fragments; and acquiring the synthetic virtual gift data and adding the synthetic virtual gift data to the virtual gift bar data.
In the present embodiment, steps S301 to S304 and steps S101 to S104 have already been explained in the first embodiment, and will not be repeated here, and the description will be made with respect to steps S305 to S308.
In this embodiment, the user may synthesize the selected virtual gift fragments into corresponding virtual gifts by interacting with the virtual gift fragments displayed in the virtual gift certificate.
Regarding step S305, the client acquires the to-be-composed fragment identifier and the current user identifier in response to the composition instruction for the virtual gift fragment, and transmits a virtual gift composition request containing the to-be-composed fragment identifier and the current user identifier to the server.
The composition instruction for the virtual gift fragmentation is generated based on fragmentation processing information received by the client.
In an alternative embodiment, the process of generating the synthetic instruction for the virtual gift fragments is as follows: the user can long press a certain virtual gift fragment displayed in the virtual gift bar to trigger the process related to the virtual gift fragment and send out a trigger instruction of the virtual gift fragment, the client responds to the trigger instruction of the virtual gift fragment to acquire interactive popup data, and the interactive popup is displayed in a live broadcast room interface according to the interactive popup data. The user selects a processing mode for the virtual gift fragment in the interactive popup, for example: and synthesizing, namely receiving fragment synthesis information at least containing the identification of the fragments to be synthesized by the client through an interactive popup, and generating a synthesis instruction for the virtual gift fragments. The identification of the fragments to be synthesized is the identification of the virtual gift fragments triggered by long-time pressing of the user.
Regarding step S306, the server acquires the current fragment number corresponding to the to-be-composed fragment identifier and the target fragment number corresponding to the to-be-composed fragment identifier in response to the virtual gift composition request.
The current fragmentation number corresponding to the fragmentation identification to be synthesized is the number of fragmentation to be synthesized already owned by the current user, that is, the value of the newly added field B provided in the first embodiment, specifically, the value of the newly added field B in the virtual gift fragmentation record corresponding to the fragmentation identification to be synthesized.
The target fragment number corresponding to the to-be-synthesized fragment identifier is the number of to-be-synthesized fragments required for synthesizing the virtual gift corresponding to the to-be-synthesized fragment identifier, that is, the value of the newly added field C provided in the first embodiment, specifically, the value of the newly added field C in the virtual gift fragment record corresponding to the to-be-synthesized fragment identifier.
In step S307, if the current fragment number is not less than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into the virtual gift corresponding to the fragment to be synthesized identifier, obtains the synthesized virtual gift data, and sends a second virtual gift fragment data update instruction to the client.
And when the current fragment number is not less than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into the virtual gift corresponding to the fragment identification to be synthesized.
Specifically, in order to realize the synthesis of the virtual gift, the server subtracts the target fragment number from the current fragment number corresponding to the fragment identifier to be synthesized, so as to obtain the updated current fragment number corresponding to the fragment identifier to be synthesized. Judging whether the current fragment number corresponding to the updated fragment identifier to be synthesized is 0 or not; if yes, the server directly modifies the newly-added field A (whether the fragment is a fragment) in the virtual gift fragment record corresponding to the fragment identifier to be synthesized into a negative field, so that the fragments to be synthesized are synthesized into the corresponding virtual gift in the bottom layer; if not, the server may set the value of the newly added field B in the virtual gift fragment record corresponding to the identifier of the to-be-synthesized fragment as the updated current fragment number corresponding to the identifier of the to-be-synthesized fragment, add a new virtual gift record, and store the synthesized virtual gift information.
In an alternative embodiment, the server may also set the virtual gift as a non-expiration virtual gift.
The synthetic virtual gift data includes display data of the synthetic virtual gift and function data of the synthetic virtual gift. Wherein the display data of the composite virtual gift includes a display image, a display size, a display position, and the like of the composite virtual gift in the virtual gift box. The functional data of the composite virtual gift is used to implement interactive functions with respect to the virtual gift, including but not limited to triggering, gifting, and the like.
Regarding step S308, the client updates the virtual gift fragment data corresponding to the to-be-synthesized fragment identifier according to the target fragment number in response to the second virtual gift fragment data update instruction; and acquiring the synthetic virtual gift data and adding the synthetic virtual gift data to the virtual gift bar data.
Specifically, the client acquires the current fragment number corresponding to the fragment identifier to be synthesized from the virtual gift fragment data corresponding to the fragment identifier to be synthesized, and then subtracts the target fragment number from the current fragment number corresponding to the fragment identifier to be synthesized to obtain the updated current fragment number corresponding to the fragment identifier to be synthesized, so that the virtual gift fragment data corresponding to the fragment identifier to be synthesized is updated.
After the virtual gift fragmentation data corresponding to the to-be-synthesized fragmentation identification is updated, the client sets the number of to-be-synthesized fragments displayed in the virtual gift bar as the current fragmentation number corresponding to the updated to-be-synthesized fragmentation identification.
In an optional embodiment, if the current fragmentation number corresponding to the updated to-be-synthesized fragmentation identifier is 0, the client deletes the virtual gift fragmentation data corresponding to the to-be-synthesized fragmentation identifier, and the to-be-synthesized fragmentation will not be displayed in the virtual gift bar.
In addition, because the virtual gift is synthesized, the client needs to obtain the synthesized virtual gift data and add the synthesized virtual gift data to the virtual gift bar data, so that the synthesized virtual gift is displayed in the virtual gift bar.
In the embodiment, the virtual gift fragments are synthesized, the interaction modes of the user and the virtual gift fragments are enriched, and the interaction experience of the user is improved.
Referring to fig. 10, fig. 10 is a flowchart illustrating a method for replacing a virtual gift according to a fourth embodiment of the present application, including the following steps:
s401: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S402: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S403: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S404: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
S405: the client responds to a conversion instruction of the virtual gift fragments, acquires a first to-be-converted fragment identifier, a first to-be-converted fragment number, a second to-be-converted fragment identifier and a current user identifier, and sends a virtual gift fragment conversion request containing the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier and the current user identifier to the server.
S406: the server responds to the virtual gift fragment conversion request and updates the current fragment number corresponding to the first to-be-converted fragment identification according to the first to-be-converted fragment number; obtaining the quantity of the second fragments to be converted according to the first identification to be converted, the second identification to be converted and the quantity of the first fragments to be converted; updating the current fragment number corresponding to the second fragment identification to be converted according to the second fragment number to be converted, or adding a virtual gift fragment record corresponding to the second fragment identification to be converted according to the second fragment number to be converted; sending a third virtual gift fragment data updating instruction to the client; the current fragment quantity corresponding to the first fragment identification to be converted is the quantity of the first fragment to be converted which is owned by the current user, and the current fragment quantity corresponding to the second fragment identification to be converted is the quantity of the second fragment to be converted which is owned by the current user.
S407: the client side responds to a third virtual gift fragment data updating instruction and updates virtual gift fragment data corresponding to the first to-be-converted fragment identification according to the first to-be-converted fragment number; and updating the virtual gift fragment data corresponding to the second to-be-converted fragment identifier according to the number of the second to-be-converted fragments, or acquiring the virtual gift fragment data corresponding to the second to-be-converted fragment identifier, and adding the virtual gift fragment data corresponding to the second to-be-converted fragment identifier into the virtual gift certificate data.
In the present embodiment, steps S401 to S404 and steps S101 to S104 have already been explained in the first embodiment, and will not be repeated here, and the description will be made with respect to steps S405 to S407.
In this embodiment, the user may effect the conversion of a virtual gift fragment by interacting with the virtual gift fragments displayed in the virtual gift certificate to convert one virtual gift fragment into another virtual gift fragment.
Regarding step S405, the client, in response to the conversion instruction for the virtual gift fragments, acquires the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier, and the current user identifier, and sends a virtual gift fragment conversion request containing the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier, and the current user identifier to the server.
The above-mentioned conversion instruction for the virtual gift fragmentation is generated based on fragmentation processing information received by the client.
In an optional embodiment, a user may press a trigger for a long time to trigger a certain virtual gift fragment displayed in the virtual gift bar, trigger a process associated with the virtual gift fragment, send a trigger instruction for the virtual gift fragment, obtain the interactive popup data in response to the trigger instruction for the virtual gift fragment, and display the interactive popup in the live broadcast room interface according to the interactive popup data. The user selects a processing mode for the virtual gift fragment in the interactive popup, for example: and converting, namely receiving fragment conversion information at least comprising a first fragment identifier to be converted by the client through the interactive popup, and generating a conversion instruction for the virtual gift fragment.
And then, the client responds to a conversion instruction of the virtual gift fragment to acquire a first fragment identification to be converted, a current user identification and fragment conversion interface data, a fragment conversion interface is displayed in the client according to the fragment conversion interface data, and the client acquires the first fragment quantity to be converted and a second fragment identification to be converted through the fragment conversion interface.
The fragment conversion interface displays a virtual gift fragment list, and the virtual gift fragment list displays various virtual gift fragments capable of being converted.
The second to-be-converted shard identifier is an identifier of a virtual gift shard selected by the current user in the virtual gift shard list, that is, an identifier of a virtual gift shard that the current user wishes to be converted.
And finally, after acquiring the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier and the current user identifier, the client sends a virtual gift fragment conversion request containing the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier and the current user identifier to the server.
Regarding step S406: the server responds to the virtual gift fragment conversion request and updates the current fragment number corresponding to the first to-be-converted fragment identification according to the first to-be-converted fragment number; obtaining the quantity of the second fragments to be converted according to the first identification to be converted, the second identification to be converted and the quantity of the first fragments to be converted; updating the current fragment number corresponding to the second fragment identification to be converted according to the second fragment number to be converted, or adding a virtual gift fragment record corresponding to the second fragment identification to be converted according to the second fragment number to be converted; and sending a third virtual gift fragment data updating instruction to the client.
The current fragment quantity corresponding to the first fragment identification to be converted is the quantity of the first fragment to be converted which is owned by the current user, and the current fragment quantity corresponding to the second fragment identification to be converted is the quantity of the second fragment to be converted which is owned by the current user.
Specifically, the server first obtains the current fragment number corresponding to the first to-be-converted fragment identifier, and then subtracts the first to-be-converted fragment number from the current fragment number corresponding to the first to-be-converted fragment identifier to obtain the updated current fragment number corresponding to the first to-be-converted fragment identifier.
In an optional embodiment, if the current fragmentation number corresponding to the updated first to-be-converted fragmentation identifier is 0, the server deletes the virtual gift fragmentation record corresponding to the first to-be-converted fragmentation identifier of the current user.
And the server also obtains a second quantity of the fragments to be converted according to the first identification to be converted, the second identification of the fragments to be converted and the first quantity of the fragments to be converted. In an optional embodiment, the server may obtain a ratio between a value of the virtual gift corresponding to the first to-be-converted fragment identifier and a value of the virtual gift corresponding to the second to-be-converted fragment identifier, and multiply the ratio by the first to-be-converted fragment number to obtain the second to-be-converted fragment number. In an alternative embodiment, the second amount of fragmentation to be converted is rounded down.
After the second quantity of the fragments to be converted is obtained, the server obtains the current quantity of the fragments corresponding to the second identification of the fragments to be converted, and the second quantity of the fragments to be converted is added to the current quantity of the fragments corresponding to the second identification of the fragments to be converted, so that the updated current quantity of the fragments corresponding to the second identification of the fragments to be converted is obtained. Or when the current user does not own the second fragment to be converted, the server may add a virtual gift fragment record corresponding to the second fragment to be converted identifier according to the number of the second fragment to be converted. It can be understood that the value of the newly added field a in the virtual gift fragment record corresponding to the second to-be-converted fragment identifier is yes, and the value of the newly added field B is the second to-be-converted fragment number.
With respect to step S407, in response to the third virtual gift fragment data updating instruction, the client updates the virtual gift fragment data corresponding to the first to-be-converted fragment identifier according to the first to-be-converted fragment number; and updating the virtual gift fragment data corresponding to the second to-be-converted fragment identifier according to the number of the second to-be-converted fragments, or acquiring the virtual gift fragment data corresponding to the second to-be-converted fragment identifier, and adding the virtual gift fragment data corresponding to the second to-be-converted fragment identifier into the virtual gift certificate data.
Specifically, the client acquires the current fragment number corresponding to the first to-be-converted fragment identifier from the virtual gift fragment data corresponding to the first to-be-converted fragment identifier, and then subtracts the first to-be-converted fragment number from the current fragment number corresponding to the first to-be-converted fragment identifier to obtain the updated current fragment number corresponding to the first to-be-converted fragment identifier, so that the virtual gift fragment data corresponding to the first to-be-converted fragment identifier is updated.
After the virtual gift fragmentation data corresponding to the first to-be-converted fragmentation identification is updated, the client sets the number of the first to-be-converted fragmentation displayed in the virtual gift bar as the current fragmentation number corresponding to the updated first to-be-converted fragmentation identification.
In an optional embodiment, if the current fragmentation number corresponding to the updated first to-be-converted fragmentation identifier is 0, the client deletes the virtual gift fragmentation data corresponding to the first to-be-converted fragmentation identifier, and the virtual gift bar will not display the first to-be-converted fragmentation.
If the virtual gift fragment data corresponding to the second to-be-converted fragment identifier is stored in the client, the client acquires the current fragment number corresponding to the second to-be-converted fragment identifier from the virtual gift fragment data corresponding to the second to-be-converted fragment identifier, and then increases the second to-be-converted fragment number to the current fragment number corresponding to the second to-be-converted fragment identifier to obtain the updated current fragment number corresponding to the second to-be-converted fragment identifier, so that the virtual gift fragment data corresponding to the second to-be-converted fragment identifier is updated.
If the virtual gift fragment data corresponding to the second to-be-converted fragment identifier is not stored in the client, the client acquires the virtual gift fragment data corresponding to the second to-be-converted fragment identifier, and adds the virtual gift fragment data corresponding to the second to-be-converted fragment identifier to the virtual gift bar data, so that the second to-be-converted fragment is displayed in the virtual gift bar, and the client sets the number of the second to-be-converted fragments displayed in the virtual gift bar as the number of the second to-be-converted fragments.
In the embodiment, the conversion of the virtual gift fragments is realized, the interaction modes of the user and the virtual gift fragments are enriched, and the interaction experience of the user is improved.
Referring to fig. 11, fig. 11 is a flowchart illustrating a virtual gift replacing method according to a fifth embodiment of the present application, including the following steps:
s501: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S502: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S503: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S504: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
S505: the client responds to the virtual gift fragment transferring instruction, acquires the identification of the fragments to be transferred out, the number of the fragments to be transferred out, the target user identification and the current user identification, and sends a virtual gift fragment transferring request containing the identification of the fragments to be transferred out, the number of the fragments to be transferred out, the target user identification and the current user identification to the server.
S506: the server responds to the virtual gift fragment transferring request and updates the current fragment number corresponding to the fragment identification to be transferred of the current user according to the fragment number to be transferred; updating the current fragment number corresponding to the fragment identification to be transferred out of the target user according to the fragment number to be transferred out and the target user identification, or newly adding a virtual gift fragment record corresponding to the fragment identification to be transferred out of the target user according to the fragment number to be transferred out; and sending a fourth virtual gift fragment data updating instruction to the client.
S507: and the client responds to the fourth virtual gift fragment data updating instruction and updates the virtual gift fragment data corresponding to the to-be-rolled-out fragment identification according to the number of the to-be-rolled-out fragments.
In the present embodiment, steps S501 to S504 and steps S101 to S104 have already been explained in the first embodiment, and will not be repeated here, and the following description will be made with respect to steps S505 to S507.
In this embodiment, the user may roll out the virtual gift fragments to friends by interacting with the virtual gift fragments displayed in the virtual gift certificate.
Regarding step S505, the client, in response to the transfer instruction for the virtual gift fragments, acquires the identifier of the to-be-transferred-out fragment, the number of to-be-transferred-out fragments, the target user identifier, and the current user identifier, and sends a virtual gift fragment transfer-out request including the identifier of the to-be-transferred-out fragment, the number of to-be-transferred-out fragments, the target user identifier, and the current user identifier to the server.
The above-mentioned conversion instruction for the virtual gift fragmentation is generated based on fragmentation processing information received by the client.
In an optional embodiment, a user may press a trigger for a long time to trigger a certain virtual gift fragment displayed in the virtual gift bar, trigger a process associated with the virtual gift fragment, send a trigger instruction for the virtual gift fragment, obtain the interactive popup data in response to the trigger instruction for the virtual gift fragment, and display the interactive popup in the live broadcast room interface according to the interactive popup data. The user selects a processing mode for the virtual gift fragment in the interactive popup, for example: and (4) transferring, wherein the client receives fragment transferring information at least comprising the identifier of the fragment to be transferred through the interactive popup window, and generates a transferring instruction of the virtual gift fragment.
And then, the client responds to the transferring-out instruction of the virtual gift fragments, acquires the fragment identification to be transferred out, the current user identification and the fragment transferring-out interface data, displays a fragment transferring-out interface in the client according to the fragment transferring-out interface data, and acquires the number of the fragments to be transferred out and the target user identification through the fragment transferring-out interface.
And displaying a user list in the fragment roll-out interface, wherein the users in the user list are in friend relationship with the current user.
The target user identification is an identification of a friend selected by the current user in the user list.
And finally, after acquiring the identification of the fragments to be transferred out, the number of the fragments to be transferred out, the target user identification and the current user identification, the client sends a virtual gift fragment transfer-out request containing the identification of the fragments to be transferred out, the number of the fragments to be transferred out, the target user identification and the current user identification to the server.
Regarding step S506, the server, in response to the virtual gift fragment roll-out request, updates the current fragment number corresponding to the to-be-rolled-out fragment identifier of the current user according to the to-be-rolled-out fragment number; updating the current fragment number corresponding to the fragment identification to be transferred out of the target user according to the fragment number to be transferred out and the target user identification, or newly adding a virtual gift fragment record corresponding to the fragment identification to be transferred out of the target user according to the fragment number to be transferred out; and sending a fourth virtual gift fragment data updating instruction to the client.
Specifically, the server first obtains the current number of the fragments to be transferred of the current user, and then subtracts the number of the fragments to be transferred from the current number of the fragments to be transferred of the current user, so as to obtain the updated current number of the fragments to be transferred of the current user.
In an optional embodiment, if the updated current number of shards corresponding to the to-be-rolled-out shard identifier of the current user is 0, the server deletes the virtual gift shard record corresponding to the to-be-rolled-out shard identifier of the current user.
The server also obtains the current fragment number corresponding to the to-be-transferred-out fragment identification of the target user, and increases the to-be-transferred-out fragment number on the current fragment number corresponding to the to-be-transferred-out fragment identification of the target user to obtain the updated current fragment number corresponding to the to-be-transferred-out fragment identification of the target user. Or when the target user does not own the fragments to be transferred out, the server newly adds the virtual gift fragment records corresponding to the fragment identification to be transferred out of the target user according to the number of the fragments to be transferred out. It can be understood that, in the virtual gift fragment record corresponding to the to-be-rolled-out fragment identifier of the target user, the value of the newly added field a is yes, and the value of the newly added field B is the number of to-be-rolled-out fragments.
Regarding step S507, in response to the fourth virtual gift fragment data updating instruction, the client updates the virtual gift fragment data corresponding to the to-be-rolled-out fragment identifier according to the number of to-be-rolled-out fragments.
Specifically, the client acquires the current fragment number corresponding to the to-be-transferred fragment identifier from the virtual gift fragment data corresponding to the to-be-transferred fragment identifier, and then subtracts the to-be-transferred fragment number from the current fragment number corresponding to the to-be-transferred fragment identifier to obtain the updated current fragment number corresponding to the to-be-transferred fragment identifier, so that the virtual gift fragment data corresponding to the to-be-transferred fragment identifier is updated.
After the update of the virtual gift fragment data corresponding to the to-be-rolled-out fragment identifier, the client sets the number of to-be-rolled-out fragments displayed in the virtual gift bar as the current fragment number corresponding to the updated to-be-rolled-out fragment identifier.
In an optional embodiment, if the current number of shards corresponding to the updated to-be-rolled-out shard identifier is 0, the client deletes the virtual gift shard data corresponding to the to-be-rolled-out shard identifier, and the to-be-rolled-out shard will not be displayed in the virtual gift bar.
In the embodiment, the virtual gift fragments are transferred out, interaction modes of the user and the virtual gift fragments are enriched, close contact among friends is strengthened, and interaction experience of the user is improved.
Referring to fig. 12, fig. 12 is a flowchart illustrating a virtual gift replacing method according to a sixth embodiment of the present application, including the following steps:
s601: the server responds to a virtual gift bar display request sent by the client and acquires a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span.
S602: if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with the virtual gift fragments to obtain virtual gift fragment data.
S603: the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client.
S604: the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
S605: the client side responds to the synthetic giving instruction of the virtual gift fragments, obtains the identification of the fragments to be synthesized, the current user identification and the target user identification, and sends a synthetic giving request of the virtual gift containing the identification of the fragments to be synthesized, the current user identification and the target user identification to the server.
S606: the server responds to the virtual gift composition presentation request, and obtains the current fragment number corresponding to the fragment identifier to be synthesized and the target fragment number corresponding to the fragment identifier to be synthesized; the current fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized owned by the current user; the target fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized required for synthesizing the virtual gift corresponding to the fragment to be synthesized identifier.
S607: and if the current fragment number is smaller than the target fragment number, the server acquires the information to be paid and sends the information to be paid to the client.
S608: and the server responds to the payment success instruction of the information to be paid, synthesizes the fragments to be synthesized of the target fragment quantity into the virtual gift corresponding to the fragment identification to be synthesized, and sends a virtual gift giving instruction to the client side in the live broadcast room.
In the present embodiment, steps S601 to S604 and steps S101 to S104 have already been explained in the first embodiment, and will not be repeated here, and the description will be made with respect to steps S605 to S608.
In this embodiment, the user may synthesize the selected virtual gift fragments into corresponding virtual gifts by interacting with the virtual gift fragments displayed in the virtual gift certificate and give a gift.
Regarding step S305, the client acquires the to-be-composed fragment identifier, the current user identifier, and the target user identifier in response to the composite gifting instruction for the virtual gift fragments, and transmits a virtual gift composite gifting request including the to-be-composed fragment identifier, the current user identifier, and the target user identifier to the server.
The synthetic gifting instruction for the virtual gift fragments is generated based on fragment processing information received by the client.
In an alternative embodiment, the process of generating composite comp commands for virtual gift fragments is as follows: the user can long press a certain virtual gift fragment displayed in the virtual gift bar to trigger the process related to the virtual gift fragment and send out a trigger instruction of the virtual gift fragment, the client responds to the trigger instruction of the virtual gift fragment to acquire interactive popup data, and the interactive popup is displayed in a live broadcast room interface according to the interactive popup data. The user selects a processing mode for the virtual gift fragment in the interactive popup, for example: and in presentation, the client receives fragment synthesis information at least containing the identification of the fragments to be synthesized through the interactive popup window, and generates a synthetic presentation instruction for the virtual gift fragments. The identification of the fragments to be synthesized is the identification of the virtual gift fragments triggered by long-time pressing of the user.
And then, the client responds to the synthetic giving instruction of the virtual gift fragments, acquires the fragment identifier to be synthesized, the current user identifier and the target user identifier, and sends a virtual gift synthetic giving request containing the fragment identifier to be synthesized, the current user identifier and the target user identifier to the server.
In this embodiment, the target user identifier refers to a main broadcast identifier for creating a live broadcast room, where the live broadcast room is a live broadcast room added by a client where the current user is located.
Regarding step S606, the server acquires the current fragment number corresponding to the to-be-composed fragment identifier and the target fragment number corresponding to the to-be-composed fragment identifier in response to the virtual gift composition gifting request.
The current fragmentation number corresponding to the fragmentation identification to be synthesized is the number of fragmentation to be synthesized already owned by the current user, that is, the value of the newly added field B provided in the first embodiment, specifically, the value of the newly added field B in the virtual gift fragmentation record corresponding to the fragmentation identification to be synthesized.
The target fragment number corresponding to the to-be-synthesized fragment identifier is the number of to-be-synthesized fragments required for synthesizing the virtual gift corresponding to the to-be-synthesized fragment identifier, that is, the value of the newly added field C provided in the first embodiment, specifically, the value of the newly added field C in the virtual gift fragment record corresponding to the to-be-synthesized fragment identifier.
In step S607, if the current number of fragments is smaller than the target number of fragments, the server obtains the information to be paid and sends the information to be paid to the client.
If the current fragment number is smaller than the target fragment number, the current fragment number is not enough to be used for synthesizing the virtual gift corresponding to the fragment identification to be synthesized. Therefore, the user is required to make a shard purchase.
Specifically, the server acquires information to be paid first and sends the information to be paid to the client.
In an alternative embodiment, the server obtains the information to be paid as follows: the server obtains the ratio of the current fragment number to the target fragment number and the virtual gift value of the virtual gift corresponding to the to-be-synthesized fragment identification, and then obtains the to-be-paid information according to the ratio of the current fragment number to the target fragment number and the virtual gift value.
After the information to be paid is sent to the client, the client receives the information to be paid sent by the server, obtains payment popup window data, and displays the payment popup window in a live broadcast interface according to the payment popup window data.
The payment popup window data is used for displaying a payment popup window in a live broadcast room interface and realizing the function of the payment popup window. And the payment popup displays information to be paid and a payment confirmation control.
The spread price which needs to be supplemented can be displayed to the current user through the payment pop-up window, and the confirmation of the user to the information to be paid is responded.
And then, the client responds to a trigger instruction of the payment confirmation control and sends a payment request at least containing the current user identification and the information to be paid to the server, the server responds to the payment request sent by the client and obtains the payable information and the information to be paid corresponding to the current user identification, if the payable information meets the information to be paid, the information to be paid is deducted from the payable information, and a payment success instruction of the information to be paid is sent.
Where the payable information may refer to the amount of virtual currency within the current user account.
It can be understood that, when the payable information does not satisfy the information to be paid, the purchase of the virtual currency can be performed to realize the payment.
Regarding step S608, in response to the payment success instruction of the information to be paid, the server synthesizes the fragments to be synthesized of the target fragment amount into the virtual gift corresponding to the fragment to be synthesized identifier, and sends a virtual gift giving instruction to the client in the live broadcast room.
In an optional embodiment, after responding to the payment success instruction of the information to be paid, the server further obtains the number of fragments to be synthesized purchased by the current user, sends a fifth virtual gift fragment data updating instruction to the client, and the client responds to the fifth virtual gift fragment data updating instruction and updates the virtual gift fragment data corresponding to the fragment to be synthesized identifier according to the number of purchased fragments to be synthesized.
Specifically, the client may first obtain the current number of fragments to be synthesized corresponding to the to-be-synthesized fragment identifier in the virtual gift fragment data corresponding to the to-be-synthesized fragment identifier, add the purchased number of fragments to be synthesized to the virtual gift fragment data corresponding to the to-be-synthesized fragment identifier, obtain the current number of fragments to be updated corresponding to the to-be-synthesized fragment identifier, and complete updating of the virtual gift fragment data corresponding to the to-be-synthesized fragment identifier.
The above process is equivalent to that the server sends the fragments to be synthesized purchased by the current user to the client.
The following will describe how the server synthesizes virtual gifts, the server modifies the added field a (whether the fragment is a fragment) in the virtual gift fragment record corresponding to the fragment identifier to be synthesized to be no, and sets the added field B to be 0, so as to synthesize the fragment to be synthesized into the corresponding virtual gift in the bottom layer.
Accordingly, when the client responds to the virtual gift-giving success instruction, the client updates the virtual gift fragment data corresponding to the fragment to be synthesized according to the target fragment number. Specifically, since the fragments to be synthesized are synthesized into the corresponding virtual gift and sent out, the client deletes the virtual gift fragment data corresponding to the fragment identification to be synthesized from the virtual gift fragment data, and the virtual gift bar will not display the fragments to be synthesized any more.
In an optional embodiment, if the current fragment number is not less than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into a virtual gift corresponding to the fragment to be synthesized identifier, and sends a virtual gift giving instruction to the client in the live broadcast room. In this embodiment, the current number of fragments is sufficient, and related operations such as purchasing fragments to be synthesized are not involved, so the steps related to local synthesis are all the same as those related to fragment synthesis in the third embodiment, and reference may be made to the description of the third embodiment, which is not repeated herein.
In this embodiment, realized giving the synthesis of virtual gift piece, richened the interactive mode of user and virtual gift piece, the user purchases the virtual gift piece through the payment, can reduce the amount of money that the user gave the virtual gift, is favorable to promoting the production of live interactive action, has promoted user's live interactive enthusiasm.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a virtual gift replacement system according to a seventh embodiment of the present application, including: a server 131 and a client 132;
the server 131 is configured to obtain a current user identifier and a target virtual gift corresponding to the current user identifier in response to a virtual gift bar display request sent by the client 132; wherein the target virtual gift comprises a virtual gift having a life span;
the server 131 is configured to replace an expired virtual gift with a virtual gift fragment if the expired virtual gift exists in the target virtual gift, so as to obtain virtual gift fragment data;
the server 131 is configured to obtain virtual gift certificate data including virtual gift fragment data, and send the virtual gift certificate data to the client 132;
the client 132 is configured to receive the virtual gift bar data, and display the virtual gift bar in the live broadcast interface according to the virtual gift bar data; wherein the virtual gift box has displaced virtual gift fragments displayed therein.
The virtual gift replacing system and the virtual gift replacing method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are found in the method embodiments and are not described herein.
Please refer to fig. 14, which is a schematic structural diagram of a computer apparatus according to an eighth embodiment of the present application. As shown in fig. 14, the computer device 14 may include: a processor 140, a memory 141, and a computer program 142 stored in the memory 141 and operable on the processor 140, such as: a replacement procedure for the virtual gift; the processor 140 implements the steps of the first to sixth embodiments when executing the computer program 142.
The processor 140 may include one or more processing cores, among other things. The processor 140 is connected to various components within the computer device 14 using various interfaces and lines, and performs various functions of the computer device 14 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 141 and calling data within the memory 141, and optionally, the processor 140 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable Logic Array (PLA). The processor 140 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 140, but may be implemented by a single chip.
The Memory 141 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 141 includes a non-transitory computer-readable medium. The memory 141 may be used to store instructions, programs, code sets, or instruction sets. The memory 141 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-described method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. Memory 141 may optionally be at least one memory device located remotely from the aforementioned processor 140.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing embodiment, and a specific execution process may refer to specific descriptions of the foregoing embodiment, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (20)

1. A method of replacing a virtual gift, the method comprising the steps of:
the method comprises the steps that a server responds to a virtual gift bar display request sent by a client side, and obtains a current user identification and a target virtual gift corresponding to the current user identification; wherein the target virtual gift comprises a virtual gift having a life span;
if the expired virtual gifts exist in the target virtual gifts, the server replaces the expired virtual gifts with virtual gift fragments to obtain virtual gift fragment data;
the server acquires virtual gift certificate data containing the virtual gift fragment data and sends the virtual gift certificate data to the client;
the client receives the virtual gift bar data and displays the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift certificate displays the replaced virtual gift fragments therein.
2. The method of replacing a virtual gift of claim 1, wherein if the target virtual gift has an expired virtual gift, the server replaces the expired virtual gift with a virtual gift fragment, and before obtaining the virtual gift fragment data, the method comprises:
the server obtains a generation time of each of the target virtual gifts, a life time of each of the target virtual gifts, and a current time, and if a difference between the current time and the generation time of the target virtual gift is greater than the life time of the target virtual gift, the target virtual gift is the expired virtual gift.
3. A method for replacing a virtual gift as defined in claim 1, wherein the server replaces the expired virtual gift with a virtual gift fragment to obtain virtual gift fragment data, comprising the steps of:
the server marks the expired virtual gift as a virtual gift fragment, acquires the number of the replaced virtual gift fragments according to the expired virtual gift and a preset virtual gift replacement rule, and updates the current fragment number of the virtual gift fragments according to the number of the replaced virtual gift fragments; wherein the current shard number of the virtual gift shards is the number of the virtual gift shards already owned by the current user;
the server obtains display data of virtual gift fragments and function data of the virtual gift fragments, and obtains the virtual gift fragment data according to the display data of the virtual gift fragments, the function data of the virtual gift fragments and the updated current fragment number of the virtual gift fragments.
4. A method of permuting virtual gifts according to claim 1, wherein the method further comprises the steps of:
the server sends out overdue prompt popup window data to the client;
the client receives the overdue prompt popup data and displays the overdue prompt popup in the live broadcast room interface according to the overdue prompt popup data; wherein the expired virtual gift is displayed in the expired prompt popup.
5. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method further comprises the steps of:
the client responds to a discarding instruction of the virtual gift fragments, acquires identifiers of fragments to be discarded, the number of fragments to be discarded and the current user identifier, and sends a virtual gift fragment discarding request containing the identifiers of the fragments to be discarded, the number of the fragments to be discarded and the current user identifier to the server;
the server responds to the virtual gift fragment discarding request, updates the current fragment number corresponding to the fragment to be discarded identifier according to the fragment to be discarded number, and sends a first virtual gift fragment data updating instruction to the client; the current fragment number corresponding to the fragment to be discarded identifier is the number of fragments to be discarded owned by the current user;
and the client responds to the first virtual gift fragment data updating instruction and updates the virtual gift fragment data corresponding to the to-be-discarded fragment identification according to the to-be-discarded fragment number.
6. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method further comprises the steps of:
the client responds to a synthesis instruction of the virtual gift fragments, acquires a fragment identifier to be synthesized and the current user identifier, and sends a virtual gift synthesis request containing the fragment identifier to be synthesized and the current user identifier to the server;
the server responds to the virtual gift synthesizing request, and obtains the current fragment number corresponding to the fragment identification to be synthesized and the target fragment number corresponding to the fragment identification to be synthesized; the current fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized owned by the current user; the target fragment number corresponding to the fragment identification to be synthesized is the number of the fragments to be synthesized required by synthesizing the virtual gift corresponding to the fragment identification to be synthesized;
if the current fragment number is not smaller than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into a virtual gift corresponding to the fragment to be synthesized identifier, obtains synthesized virtual gift data, and sends a second virtual gift fragment data updating instruction to the client;
the client-side responds to the second virtual gift fragment data updating instruction and updates virtual gift fragment data corresponding to the fragment identification to be synthesized according to the target fragment number; and acquiring the synthetic virtual gift data and adding the synthetic virtual gift data to the virtual gift certificate data.
7. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method further comprises the steps of:
the client responds to a conversion instruction of the virtual gift fragments, acquires a first to-be-converted fragment identifier, a first to-be-converted fragment number, a second to-be-converted fragment identifier and the current user identifier, and sends a virtual gift fragment conversion request containing the first to-be-converted fragment identifier, the first to-be-converted fragment number, the second to-be-converted fragment identifier and the current user identifier to the server;
the server responds to the virtual gift fragment conversion request, and updates the current fragment number corresponding to the first to-be-converted fragment identification according to the first to-be-converted fragment number; obtaining a second quantity of fragments to be converted according to the first identification to be converted, the second identification of the fragments to be converted and the first quantity of the fragments to be converted; updating the current fragment number corresponding to the second fragment identifier to be converted according to the second fragment number to be converted, or adding a virtual gift fragment record corresponding to the second fragment identifier to be converted according to the second fragment number to be converted; sending a third virtual gift fragment data updating instruction to the client; the current fragment quantity corresponding to the first fragment identification to be converted is the quantity of first fragments to be converted which are owned by the current user, and the current fragment quantity corresponding to the second fragment identification to be converted is the quantity of second fragments to be converted which are owned by the current user;
the client responds to the third virtual gift fragment data updating instruction, and updates virtual gift fragment data corresponding to the first to-be-converted fragment identification according to the first to-be-converted fragment number; and updating the virtual gift fragment data corresponding to the second to-be-converted fragment identifier according to the second to-be-converted fragment number, or acquiring the virtual gift fragment data corresponding to the second to-be-converted fragment identifier, and adding the virtual gift fragment data corresponding to the second to-be-converted fragment identifier into the virtual gift certificate data.
8. The method of replacing a virtual gift of claim 7, wherein the client obtains a first to-be-converted shard identifier, a first amount of to-be-converted shards, a second to-be-converted shard identifier and the current user identifier in response to a conversion instruction for the virtual gift shard, comprising the steps of:
the client responds to a conversion instruction of the virtual gift fragment, acquires the first fragment identifier to be converted, the current user identifier and fragment conversion interface data, and displays a fragment conversion interface in the client according to the fragment conversion interface data; the fragment conversion interface is used for displaying a virtual gift fragment list;
and the client acquires the first to-be-converted fragment quantity and the second to-be-converted fragment identification through the fragment conversion interface.
9. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method further comprises the steps of:
the client responds to a transfer-out instruction of the virtual gift fragments, acquires a fragment identifier to be transferred out, the number of fragments to be transferred out, a target user identifier and the current user identifier, and sends a virtual gift fragment transfer-out request containing the fragment identifier to be transferred out, the number of fragments to be transferred out, the target user identifier and the current user identifier to the server;
the server responds to the virtual gift fragment transferring-out request, and updates the current fragment number corresponding to the fragment identification to be transferred out of the current user according to the fragment number to be transferred out; updating the current fragment number corresponding to the fragment identification to be transferred of the target user according to the fragment number to be transferred and the target user identification, or newly adding a virtual gift fragment record corresponding to the fragment identification to be transferred of the target user according to the fragment number to be transferred; sending a fourth virtual gift fragment data updating instruction to the client;
and the client responds to the fourth virtual gift fragment data updating instruction, and updates the virtual gift fragment data corresponding to the to-be-rolled-out fragment identification according to the to-be-rolled-out fragment number.
10. The method for replacing the virtual gift of claim 9 wherein the client obtains an identifier of a to-be-rolled-out gift fragment, a number of the to-be-rolled-out fragments, a target user identifier and the current user identifier in response to a rolling-out instruction for the virtual gift fragment, comprising the steps of:
the client responds to the transferring-out instruction of the virtual gift fragment, acquires the identifier of the fragment to be transferred out, the current user identifier and the fragment transferring-out interface data, and displays the fragment transferring-out interface in the client according to the fragment transferring-out interface data; a user list is displayed in the fragment roll-out interface, and users in the user list and the current user are in a friend relationship;
and the client acquires the number of the fragments to be transferred out and the target user identification through the fragment transferring-out interface.
11. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method further comprises the steps of:
the client side responds to a synthetic giving instruction of the virtual gift fragments, obtains a fragment identifier to be synthesized, the current user identifier and a target user identifier, and sends a virtual gift synthetic giving request containing the fragment identifier to be synthesized, the current user identifier and the target user identifier to the server;
the server responds to the virtual gift composition presentation request, and obtains the current fragment number corresponding to the fragment identifier to be synthesized and the target fragment number corresponding to the fragment identifier to be synthesized; the current fragment number corresponding to the fragment to be synthesized identifier is the number of fragments to be synthesized owned by the current user; the target fragment number corresponding to the fragment identification to be synthesized is the number of the fragments to be synthesized required by synthesizing the virtual gift corresponding to the fragment identification to be synthesized;
if the current fragment number is smaller than the target fragment number, the server acquires information to be paid and sends the information to be paid to the client;
and the server responds to a payment success instruction of the information to be paid, synthesizes the fragments to be synthesized of the target fragment quantity into a virtual gift corresponding to the fragment to be synthesized identifier, and sends a virtual gift giving instruction to a client side in a live broadcast room.
12. A method of replacing a virtual gift as defined in claim 11, further comprising the steps of:
if the current fragment number is not smaller than the target fragment number, the server synthesizes the fragments to be synthesized of the target fragment number into a virtual gift corresponding to the fragment to be synthesized identifier, and sends a virtual gift giving instruction to a client side in the live broadcast room.
13. The method of replacing a virtual gift as claimed in claim 11, wherein the server acquires information to be paid, comprising the steps of:
the server acquires the ratio of the current fragment number to the target fragment number and the virtual gift value of the virtual gift corresponding to the to-be-synthesized fragment identification;
and obtaining the information to be paid according to the ratio of the current fragment quantity to the target fragment quantity and the virtual gift value.
14. A method of replacing a virtual gift as claimed in claim 11, wherein said sending said information to be paid to said client comprises the steps of:
the client receives the information to be paid sent by the server, acquires payment popup data and displays the payment popup in the live broadcast room interface according to the payment popup data; the payment popup window displays the information to be paid and a payment confirmation control;
the client side responds to a trigger instruction of the payment confirmation control and sends a payment request at least containing the current user identification and the information to be paid to the server;
the server responds to the payment request sent by the client, and obtains payable information and the information to be paid corresponding to the current user identification, if the payable information meets the information to be paid, the information to be paid is deducted from the payable information, and a payment success instruction of the information to be paid is sent.
15. The method of replacing a virtual gift as recited in claim 11, wherein the server, in response to a payment success instruction for the information to be paid, further comprises the steps of:
the server acquires the quantity of the fragments to be synthesized purchased by the current user and sends a fifth virtual gift fragment data updating instruction to the client;
and the client responds to the fifth virtual gift fragment data updating instruction, and updates virtual gift fragment data corresponding to the to-be-synthesized fragment identification according to the purchased number of the to-be-synthesized fragments.
16. A method of replacing a virtual gift as defined in claim 11, further comprising the steps of:
and the client responds to a successful virtual gift giving instruction, and updates the virtual gift fragment data corresponding to the fragment identifier to be synthesized according to the number of the target fragments.
17. A method of replacing a virtual gift as claimed in any one of claims 1-4, wherein said method comprises the steps of:
the client side responds to a trigger instruction of the virtual gift fragments to obtain interactive popup data, and the interactive popup is displayed in the live broadcast room interface according to the interactive popup data; the interactive popup window is used for receiving fragment processing information and triggering the client to send a processing instruction corresponding to the fragment processing information.
18. A system for replacing a virtual gift, comprising: a server and a client;
the server is used for responding to a virtual gift bar display request sent by the client and acquiring a current user identifier and a target virtual gift corresponding to the current user identifier; wherein the target virtual gift comprises a virtual gift having a life span;
the server is used for replacing an expired virtual gift with a virtual gift fragment if the expired virtual gift exists in the target virtual gift to obtain virtual gift fragment data;
the server is used for acquiring virtual gift certificate data containing the virtual gift fragment data and sending the virtual gift certificate data to the client;
the client is used for receiving the virtual gift bar data and displaying the virtual gift bar in a live broadcast interface according to the virtual gift bar data; wherein the virtual gift certificate displays the replaced virtual gift fragments therein.
19. A computer device, comprising: processor, memory and computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 17 are implemented when the processor executes the computer program.
20. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 17.
CN202111106718.5A 2021-09-22 2021-09-22 Virtual gift replacement method, system and computer equipment Active CN113840155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111106718.5A CN113840155B (en) 2021-09-22 2021-09-22 Virtual gift replacement method, system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111106718.5A CN113840155B (en) 2021-09-22 2021-09-22 Virtual gift replacement method, system and computer equipment

Publications (2)

Publication Number Publication Date
CN113840155A true CN113840155A (en) 2021-12-24
CN113840155B CN113840155B (en) 2024-05-07

Family

ID=78960355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111106718.5A Active CN113840155B (en) 2021-09-22 2021-09-22 Virtual gift replacement method, system and computer equipment

Country Status (1)

Country Link
CN (1) CN113840155B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268812A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Live broadcast room virtual resource presenting method and device, computer equipment and storage medium
CN116800834A (en) * 2023-08-28 2023-09-22 深圳有咖互动科技有限公司 Virtual gift merging method, device, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009109949A1 (en) * 2008-03-07 2009-09-11 France Telecom Electronic gifting system
CN107124644A (en) * 2017-03-31 2017-09-01 武汉斗鱼网络科技有限公司 The methods of exhibiting and system of virtual present in a kind of webcast website
WO2017215338A1 (en) * 2016-06-17 2017-12-21 武汉斗鱼网络科技有限公司 System and method for exchanging virtual gifts using exchange code
CN111614989A (en) * 2020-05-15 2020-09-01 腾讯科技(深圳)有限公司 Gift synthesis method, device and equipment based on live broadcast and storage medium
CN113126852A (en) * 2021-05-18 2021-07-16 腾讯科技(深圳)有限公司 Dynamic message display method, related device, equipment and storage medium
CN113159868A (en) * 2021-05-18 2021-07-23 中国银行股份有限公司 Coupon recovery device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009109949A1 (en) * 2008-03-07 2009-09-11 France Telecom Electronic gifting system
WO2017215338A1 (en) * 2016-06-17 2017-12-21 武汉斗鱼网络科技有限公司 System and method for exchanging virtual gifts using exchange code
CN107124644A (en) * 2017-03-31 2017-09-01 武汉斗鱼网络科技有限公司 The methods of exhibiting and system of virtual present in a kind of webcast website
CN111614989A (en) * 2020-05-15 2020-09-01 腾讯科技(深圳)有限公司 Gift synthesis method, device and equipment based on live broadcast and storage medium
CN113126852A (en) * 2021-05-18 2021-07-16 腾讯科技(深圳)有限公司 Dynamic message display method, related device, equipment and storage medium
CN113159868A (en) * 2021-05-18 2021-07-23 中国银行股份有限公司 Coupon recovery device and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268812A (en) * 2021-12-31 2022-04-01 广州方硅信息技术有限公司 Live broadcast room virtual resource presenting method and device, computer equipment and storage medium
CN114268812B (en) * 2021-12-31 2024-01-19 广州方硅信息技术有限公司 Live broadcast room virtual resource giving method, device, computer equipment and storage medium
CN116800834A (en) * 2023-08-28 2023-09-22 深圳有咖互动科技有限公司 Virtual gift merging method, device, electronic equipment and computer readable medium
CN116800834B (en) * 2023-08-28 2023-10-27 深圳有咖互动科技有限公司 Virtual gift merging method, device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN113840155B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN100585550C (en) Systems and methods for projecting content from computing devices
WO2022048152A1 (en) Video communication cooperative control, request and feedback method and apparatus, device, and medium
CN113840155B (en) Virtual gift replacement method, system and computer equipment
CN113949892B (en) Live broadcast interaction method, system, equipment and medium based on virtual resource consumption
CN113840154B (en) Live broadcast interaction method and system based on virtual gift and computer equipment
CN109586929B (en) Conference content transmission method and device, electronic equipment and storage medium
CN114268812B (en) Live broadcast room virtual resource giving method, device, computer equipment and storage medium
CN113727130A (en) Message prompting method, system and device for live broadcast room and computer equipment
CN113573083A (en) Live wheat-connecting interaction method and device and computer equipment
CN112055252A (en) Multi-screen interaction method and device, computer readable medium and electronic equipment
CN113596504A (en) Live broadcast room virtual gift presenting method and device and computer equipment
CN113613027A (en) Live broadcast room recommendation method and device and computer equipment
CN113824984A (en) Virtual gift pipelining display method, system, device and computer equipment
CN115314727A (en) Live broadcast interaction method and device based on virtual object and electronic equipment
CN115134624A (en) Live broadcast and wheat connection matching method, system and device and electronic equipment
WO2022046664A9 (en) Electronic file presentation in a network environment
CN114666672A (en) Live broadcast fighting interaction method and system initiated by audience and computer equipment
CN102547586B (en) A kind of interactive service processing method, mobile communication terminal and system
CN111986407A (en) Interactive live broadcast shopping all-in-one machine
CN111988633A (en) Multi-independent scene live broadcast content sharing system
CN114302162B (en) Message bubble display method, system and device and computer equipment
CN114222152B (en) Virtual gift interaction method and device for urban popularization and computer equipment
CN117252668B (en) Group management method, electronic device and storage medium
CN114630189B (en) Multi-channel approach prompting method, system, device, computer equipment and medium in live broadcasting room
CN115883911A (en) Method and device for displaying gift information of live broadcast room, electronic equipment and storage medium

Legal Events

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