CN107153581B - Resource acquisition method and device - Google Patents

Resource acquisition method and device Download PDF

Info

Publication number
CN107153581B
CN107153581B CN201710228969.8A CN201710228969A CN107153581B CN 107153581 B CN107153581 B CN 107153581B CN 201710228969 A CN201710228969 A CN 201710228969A CN 107153581 B CN107153581 B CN 107153581B
Authority
CN
China
Prior art keywords
resource
terminal
event
resource distribution
distribution event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710228969.8A
Other languages
Chinese (zh)
Other versions
CN107153581A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710228969.8A priority Critical patent/CN107153581B/en
Publication of CN107153581A publication Critical patent/CN107153581A/en
Priority to PCT/CN2018/078937 priority patent/WO2018188444A1/en
Priority to TW107111689A priority patent/TW201837704A/en
Application granted granted Critical
Publication of CN107153581B publication Critical patent/CN107153581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a resource acquisition method and device. The method comprises the following steps: receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interaction data generated by interaction with a terminal, wherein the first interaction data is used for indicating the number of times of interaction with the terminal and is associated with a first resource distribution event; sending first interactive data to a server; and the receiving server responds to the first resource sent by the first interactive data, the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and the first resource which is part of the total resource required to be distributed by the first resource distribution event increases with the increase of the times indicated by the first interactive data. The invention solves the technical problem of low controllability of resource acquisition in group interaction in the related art.

Description

Resource acquisition method and device
Technical Field
The invention relates to the field of computers, in particular to a resource acquisition method and device.
Background
Currently, in group interaction, resource acquisition can be performed, but resource acquisition is generally random and uncontrollable.
The terminal can be used for realizing resource acquisition in group interaction, and can receive instructions through a preset button on a terminal interface so as to acquire resources. However, the randomness and uncertainty of the resources acquired by the accounts in the group are large, and the resources acquired by one account may be less, so that the controllability of the resource acquisition is low, and the user experience is reduced.
In view of the above-mentioned problem of low controllability of resource acquisition in group interaction, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring resources, which are used for at least solving the technical problem of low controllability of resource acquisition in group interaction in the related art.
According to an aspect of an embodiment of the present invention, a method for acquiring a resource is provided. The resource acquisition method comprises the following steps: receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event; sending first interactive data to a server; and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data.
According to another aspect of the embodiment of the invention, a device for acquiring resources is also provided. The resource acquisition device comprises: receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event; sending first interactive data to a server; and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data.
In the embodiment of the invention, first indication information is received in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event; sending first interactive data to a server; and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data. The receiving server responds to the first interactive data generated by interaction with the terminal to send part or all of the total resources required to be distributed by the first resource distribution event, and the received part of the total resources are increased along with the increase of the times indicated by the first interactive data, so that the technical effect of improving the controllability of resource acquisition is achieved, and the technical problem of low controllability of resource acquisition in group interaction in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram of a hardware environment for a method of acquiring resources according to an embodiment of the invention;
FIG. 2 is a flow chart of a method for acquiring resources according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for acquiring resources according to an embodiment of the invention;
FIG. 4 is a flow chart of another method for acquiring resources according to an embodiment of the invention;
fig. 5 is a flowchart of a method for transmitting a resource according to an embodiment of the present invention;
fig. 6 is a flowchart of another method for transmitting a resource according to an embodiment of the present invention;
FIG. 7 is a flow chart of another method for acquiring resources according to an embodiment of the invention;
FIG. 8 is an interaction diagram of a resource acquisition method according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of initiating a red envelope rejection event in a chat window of a group in accordance with embodiments of the invention;
FIG. 10 is a schematic diagram of a red packet-containing page according to an embodiment of the invention;
FIG. 11 is a schematic diagram of an interface for receiving red packets, in accordance with an embodiment of the present invention;
fig. 12 is a schematic diagram of acquiring interaction data generated by interacting with a terminal according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating a prompt to display the amount of a red envelope, according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of receiving the amount of a red envelope in a red envelope initiated by a plurality of accounts, in accordance with an embodiment of the present invention;
FIG. 15 is a diagram of an apparatus for acquiring resources according to an embodiment of the present invention;
FIG. 16 is a schematic diagram of another apparatus for acquiring resources according to an embodiment of the invention;
FIG. 17 is a schematic diagram of another apparatus for acquiring resources according to an embodiment of the invention;
FIG. 18 is a schematic diagram of another apparatus for acquiring resources according to an embodiment of the invention; and
fig. 19 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, an embodiment of a method for acquiring a resource is provided.
Alternatively, in this embodiment, the resource obtaining method may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. Fig. 1 is a schematic diagram of a hardware environment of a resource acquisition method according to an embodiment of the present invention. As shown in fig. 1, a server 102 is connected to a terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The resource acquisition method according to the embodiment of the present invention may be executed by the server 102, the terminal 104, or both the server 102 and the terminal 104. The terminal 104 may execute the resource obtaining method according to the embodiment of the present invention by a client installed thereon.
Fig. 2 is a flowchart of a resource acquisition method according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
in step S202, first indication information is received in a chat window of a first group.
In the technical solution provided in the foregoing step S202 of the present application, first indication information is received in a chat window of a first group, where the first indication information is used to indicate a first resource distribution event initiated by a first account, and the first account is an account in the first group.
The chat window of the first group is an exchange window for event interaction of multiple accounts, and may be a chat window for chat of multiple accounts on the instant messaging application, and the chat window may send or receive a message, for example, the message is a chat message, and may send or receive a resource. The resource may be a virtual resource equivalent to cash, for example, the user sends an electronic red envelope similar to the appearance of a conventional paper red envelope, which has a consuming utility, to other users through an instant messaging application or a network platform with a third party payment capability, such as a payment treasure, or may be a resource such as a voucher, a bond, a point, a flow rate, a virtual article, and the like, which is not limited herein.
The accounts in the first group of this embodiment may all initiate a resource distribution event for distributing resources, such as a red packet-emitting event. The receiving mode of the resource distributed by the resource distribution event can be received by clicking a preset button of the client or obtained by shaking data generated by shaking the terminal.
The first indication information is received in the chat window of the first group, that is, the client receives the first indication information in the chat window of the first group, where the first indication information is used to indicate a first resource distribution event initiated by the first account, and may be displayed on a preset page in the chat window, for example, a theme and a color of the first resource distribution event are displayed on the preset page, an event type of the first resource distribution event is displayed on the preset page, and a touch operation may be received for the first indication information. Optionally, the first resource distribution event initiated by the first account may be displayed on the client corresponding to each account in the first group, so as to improve the participation of the users corresponding to the multiple accounts.
Optionally, before receiving the first indication information, the server records the resource required to be distributed by the first resource distribution event.
Step S204, first interaction data generated by interaction with the terminal is obtained.
In the technical solution provided in the foregoing step S204 of the present application, first interaction data generated by interaction with a terminal is obtained, where the terminal is configured to display a chat window under an instruction of a preset instruction, for example, the preset instruction is first instruction information, the chat window is displayed when the terminal receives the first instruction information, or an operation instruction for opening the chat window and the like received after the terminal is in a black screen. The first interaction data is used for indicating the number of interactions with the terminal, and the first interaction data is associated with the first resource distribution event.
Optionally, interacting with the terminal includes shaking the terminal, and the terminal generates shaking data during shaking, wherein the first interaction data includes shaking data. Optionally, after receiving the first indication information, first shake data generated by the terminal in a shaking process after a preset time is acquired, that is, the client acquires the first shake data generated by the terminal in a shaking process after the preset time, where the first shake data may be used to indicate a number of shakes acquired by the terminal after receiving the first indication information, and the first shake data is associated with a first resource distribution event initiated by a first account, a resource in the first resource distribution event may be acquired by the number of shakes of the terminal indicated by the first shake data, and the terminal may be a mobile terminal, for example, a mobile phone.
Optionally, the interacting with the terminal includes clicking a preset position of a terminal screen, and click data is generated in the process of clicking the preset position of the terminal screen, where the first interaction data includes the click data. Optionally, after receiving the first indication information, first click data generated in a process of clicking a preset position of a terminal screen after a preset time is acquired, that is, the client acquires first click data generated in a process of clicking the preset position of the terminal screen after the preset time, the first click data may be used to indicate a number of times that the terminal is clicked after receiving the first indication information, and the first click data is associated with a first resource distribution event initiated by a first account, and a resource in the first resource distribution event may be acquired by the number of times that the terminal is clicked indicated by the first click data.
Optionally, the interacting with the terminal includes long-pressing a preset position of a terminal screen, and the pressing data is generated in the process of long-pressing the preset position of the terminal, wherein the first interactive data includes the pressing data. Optionally, after receiving the first indication information, first press data generated in the process of pressing the preset position of the terminal screen after the preset time is acquired, that is, the client acquires the first press data generated in the process of pressing the preset position of the terminal screen after the preset time, the first press data may be used for indicating the pressed time and the pressing force degree of the terminal after receiving the first indication information, and the first press data is associated with the first resource distribution event initiated by the first account, and the resource in the first resource distribution event may be acquired through the pressed time and the pressing force degree of the terminal indicated by the first press data.
Optionally, interacting with the terminal includes interacting with an energy conversion device of the terminal, which may be a microphone provided on the terminal. In the process of emitting sound to the energy conversion device of the terminal, the energy conversion device may convert the sound signal into an electrical signal, wherein the first interaction data includes data corresponding to the electrical signal. Optionally, after receiving the first indication information, data corresponding to an electrical signal generated in a process of making a sound to an energy conversion device of the terminal after a preset time is acquired, that is, the client acquires data corresponding to an electrical signal generated in a process of making a sound to an energy conversion device of the terminal after the preset time, the data corresponding to the electrical signal may be used to indicate acquired sound intensity or airflow size of the terminal after receiving the first indication information, and the data corresponding to the electrical signal is associated with a first resource distribution event initiated by a first account, and a resource in the first resource distribution event may be acquired through the sound intensity or airflow size indicated by the data corresponding to the electrical signal.
It should be noted that the above-mentioned manner of interacting with the terminal is only a preferred implementation manner of the embodiment of the present invention, and the manner of interacting with the terminal that does not represent the embodiment of the present invention is only the above-mentioned manner, and any manner that can interact with the terminal to generate the interaction data is within the protection scope of the present invention, and is not illustrated herein.
Optionally, first interaction data generated by interacting with a terminal on which a chat window is displayed is acquired, or first interaction data generated by interacting with a terminal in a black screen state is acquired, where a current operation state of the terminal is not limited.
Step S206, the first interactive data is sent to the server.
In the technical solution provided by step S206 described above, the first interactive data is sent to the server.
The first interaction data is associated with a first resource distribution event. After first interactive data generated by interaction with a terminal is obtained, the first interactive data is sent to a server, namely, the client sends the first interactive data to the server. Optionally, the server records a first resource distribution event and identification information of the first account, where the first resource distribution event corresponds to the first account.
Step S208, receiving the first resource sent by the server in response to the first interactive data.
In the technical solution provided in the foregoing step S208 of the present application, the receiving server responds to the first resource sent by the first interactive data, where the received first resource is part or all of the total resources required to be distributed by the first resource distribution event, and when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource increases as the number of times indicated by the first interactive data increases.
After the first interactive data is sent to the server, the server receives the first interactive data and responds to the first interactive data to obtain a first resource sent to the client, wherein the first resource can be part or all of the red envelope amount required to be distributed in the red envelope event initiated by the first account sent to the client. The first resource is part of or all of the total resources required to be distributed by the first resource distribution event. The received first resource increases with the number of times indicated by the first interaction data, that is, the more times the terminal interacts with, the more first resources the server sends to the client.
Optionally, when the total resource is within the preset threshold, the first resource increases by a preset base as the number of times indicated by the first interaction data increases. For example, the first resource distribution event is a red packet event, the first resource is part or all of the total amount of the red packets required to be distributed by the red packet event, the preset cardinal number of the distributed amount is calculated according to the total amount of the red packets, when the total amount of the red packets is less than or equal to 0.1, the preset cardinal number of the distributed amount of the red packets increased progressively is 0.01, and when the total amount of the red packets is greater than or equal to 1, the preset cardinal number of the distributed amount of the red packets increased progressively is 0.1.
Through the steps S202 to S208, first indication information is received in the chat window of the first group, where the first indication information is used to indicate a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event; sending first interactive data to a server; the receiving server responds to the first resource sent by the first interactive data, the received first resource is part or all of total resources required to be distributed by the first resource distribution event, when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the number of times indicated by the first interactive data, the received first resource is part or all of the total resources required to be distributed by the first resource distribution event sent by the receiving server in response to the first interactive data generated by interacting with the terminal, and when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the number of times indicated by the first interactive data, thereby realizing the technical effect of improving the controllability of resource acquisition and further solving the problem of the related technology in group interaction, the controllability of resource acquisition is low.
As an optional implementation manner, in step S202, after receiving the first indication information, in response to detecting a touch operation on the first indication information in the chat window, a first prompt window is popped up in the terminal, and after popping up the first prompt window in the terminal, first interaction data generated by interacting with the terminal is acquired.
Fig. 3 is a flowchart of another resource acquisition method according to an embodiment of the present invention. As shown in fig. 3, the method further comprises:
step S301, a touch operation on the first indication information is detected in the chat window.
In the technical solution provided in the foregoing step S301 of the present application, a touch operation on the first indication information is detected in the chat window.
Touch operation can be performed on the first indication information, for example, single-click operation, double-click operation, or operation of staying for a preset time in an area corresponding to the first indication information. After the first indication information is received, touch operation on the first indication information is detected in the chat window.
Step S302, responding to the touch operation, and popping up a first prompt window in the terminal.
In the technical solution provided in the foregoing step S302 of the present application, in response to a touch operation, a first prompt window is popped up in a terminal, where an event type of a first resource distribution event is displayed in the first prompt window, and a receiving manner of a first resource corresponding to the event type is interaction with the terminal.
The first resource distribution event has an event type that may be used to indicate a manner of receipt of the first resource. After the touch operation on the first indication information is detected, responding to the touch operation, and displaying an event type of a first resource distribution event in a first prompt window, wherein a receiving mode of a first resource corresponding to the event type is interaction with the terminal. Optionally, the first prompt window may further prompt the user to shake the terminal to acquire the first interactive data by prompting the receiving mode of the first resource corresponding to the event type through the text message to interact with the terminal.
And after a first prompt window is popped up in the terminal, interacting with the terminal to generate first interactive data, and acquiring the first interactive data.
After the first prompt window pops up in the terminal, the first prompt window may pop up on an upper layer of the chat window, and the first prompt window may exit from the interface of the terminal, for example, when a touch operation is received through an identification button in the first prompt window, which is used to indicate that the terminal exits, the first window disappears on the interface of the terminal.
In the embodiment, after the first indication information is received, a touch operation on the first indication information is detected in the chat window, in response to the touch operation, a first prompt window is popped up in the terminal, an event type of a first resource distribution event is displayed in the first prompt window, the first resource corresponding to the event type is received in a manner of interacting with the terminal, and after the first prompt window is popped up in the terminal, first interaction data generated by interacting with the terminal is acquired, so that the first interaction data which is used for indicating the number of times of interacting with the terminal and is associated with the first resource distribution event is obtained.
As an optional implementation manner, in step S204, acquiring first interaction data generated by interacting with the terminal includes: and after waiting for first preset time, acquiring first interaction data generated by interaction with the terminal, wherein the first preset time is displayed in a first prompt window in a countdown mode.
After the first indication information is received, touch operation is received in the chat window, and a first prompt window pops up. Optionally, timing is started from the time when the touch operation is received, so as to obtain first timing time, and when the first timing time reaches first preset time, first interaction data generated by interaction with the terminal is obtained. That is, when the first timing time does not reach the first predetermined time, even if the terminal is interacted with, the interaction data generated by the interaction with the terminal cannot be acquired.
This embodiment is through obtaining the terminal and shaking produced first shaking data after waiting for first preset time to leave for user's time and prepare to go to shake the terminal, and then promoted user experience.
As an alternative embodiment, in step S202, after receiving the first indication information, receiving second indication information in the chat window; acquiring second interactive data generated by interaction with the terminal; sending the second interactive data to the server; and receiving a second resource sent by the server in response to the second interactive data.
Fig. 4 is a flowchart of another resource acquisition method according to an embodiment of the present invention. As shown in fig. 4, the method further comprises the steps of:
in step S401, the second instruction information is received in the chat window.
In the technical solution provided in the foregoing step S401 of the present application, second indication information is received in the chat window, where the second indication information is used to indicate a second resource distribution event initiated by a second account, and the second account is an account in the first group.
The group chat includes a plurality of accounts. After receiving the first indication information, second indication information is received in the chat window, and the second indication information is used for indicating a second resource distribution event initiated by a second account. Optionally, the second account is the same as the first account, that is, after the first account initiates the first resource distribution event, the first account continues to initiate the second resource distribution event. The second account may also be different from the first account, that is, after the first account initiates the first resource event, other accounts also successively initiate the second resource distribution event.
The second indication information is used to indicate a second resource distribution event initiated by the second account, and may be displayed on a preset page in the chat window, for example, a theme and a color of the second resource distribution event are displayed on the preset page, an event type of the second resource distribution event is displayed, and a touch operation may be received for the second indication information. Optionally, the second resource distribution event initiated by the second account may be displayed on the clients corresponding to all accounts in the first group, so as to improve the participation of the users corresponding to multiple accounts.
Optionally, before receiving the second indication information, the server records the resource required to be distributed by the second resource distribution event.
Optionally, after the first prompt window pops up in the terminal, the second indication information is received in the chat window in the process of waiting for the first predetermined time, or the second indication information may be received in the process of interacting with the terminal after the display of the first predetermined time in a countdown manner is ended.
Step S402, second interactive data generated by interaction with the terminal is obtained.
In the technical solution provided by step S402 above, second interaction data generated by interacting with the terminal is obtained, where the second interaction data is associated with a second resource distribution event.
After the second indication information is received in the chat window, second interaction data generated by interaction with the terminal is acquired, the second interaction data generated by the terminal in the shaking process after the terminal is in the preset time can be acquired, the second interaction data is used for indicating the shaking times acquired by the terminal after the terminal receives the second indication information, the second interaction data is associated with a second resource distribution event initiated by a second account, and resources in the second resource distribution event can be acquired through the shaking times of the terminal indicated by the second interaction data.
Optionally, when the resource in the first event distribution resource is not already released, the second interaction data is also related to the first event distribution resource, that is, the second interaction data is related to both the first event distribution resource and the second event distribution resource, and the resource in the first resource distribution event can be obtained through the shake number of the terminal indicated by the second interaction data.
Step S403, sending the second interactive data to the server.
In the technical solution provided in the foregoing step S403 of the present application, the second interactive data is sent to the server.
The second interaction data is associated with a second resource distribution event. After second interactive data generated by interaction with the terminal is obtained, the second interactive data is sent to the server, namely, the client sends the second interactive data to the server. Optionally, the server records a second resource distribution event and identification information of a second account, where the second resource distribution event corresponds to the second account, and the server also records a first resource distribution event and identification information of a first account, where the first resource distribution event corresponds to the first account.
Step S404, receiving a second resource sent by the server in response to the second interactive data.
In the technical solution provided by step S404 of the present application, the receiving server responds to the second resource sent by the second interactive data, where the received second resource is part or all of the total resources required to be distributed by the second resource distribution event, and the received second resource increases as the number of times indicated by the second interactive data increases.
And after the second interactive data is sent to the server, the server receives the second interactive data and responds to the second interactive data to obtain a second resource sent to the client. The second resource is part of or all of the total resources required to be distributed by the second resource distribution event. The received second resource is increased along with the increase of the times indicated by the second interaction data, that is, the more times of interaction with the terminal, the more the server sends the second resource to the client, and the more labor-intensive experience is added for the user.
Optionally, the second interaction data is related to both the first event distribution resource and the second event distribution resource when the resource in the first event distribution resource has not been completely issued. After the second interactive data is sent to the server, the first resource and the second resource sent by the server in response to the second interactive data are received, and the received resource is the sum of the first resource and the second resource.
Optionally, after receiving the first indication information, in the process of interacting with the terminal, the receiving server responds to the resource sent by the interactive data and is part or all of the resources that need to be distributed for the resource distribution event initiated by the preset number of accounts.
Optionally, if there are multiple accounts initiating the resource distribution event in the chat window at the same time, multiple pieces of indication information are received in the chat window of the first group. When a user shakes the terminal, each piece of indication information can simultaneously receive part of or all of the resources required to be distributed by the resource distribution event initiated by a plurality of accounts, wherein the interaction data generated by the server responding to the interaction with the terminal is received after waiting for the first preset time.
For example, red envelope a was issued from 9:35, the terminal has started shaking and the amount of the received red envelope a has started to increment. Red packet B was issued from 9: when the terminal is shaking, red envelope B automatically starts to count down for 3 seconds, and after 3 seconds, the amount of red envelope received in red envelope B also starts to increment. The received total red envelope amount is the sum of the red envelope amount in the received red envelope a and the red envelope amount in the received red envelope B.
In the embodiment, after receiving the first indication information, second indication information is received in the chat window, where the second indication information is used to indicate a second resource distribution event initiated by a second account, and the second account is an account in the first group; acquiring second interactive data generated by interaction with the terminal, wherein the second interactive data is associated with a second resource distribution event; sending the second interactive data to the server; the receiving server responds to the second resource sent by the second interactive data, the received second resource is part or all of total resources required to be distributed by the second resource distribution event, and the received second resource is increased along with the increase of the times indicated by the second interactive data, so that the purpose of receiving part or all of the resources required to be distributed by the resource distribution event initiated by a plurality of accounts through interaction with the terminal is achieved, the effect of improving the controllability of resource acquisition is achieved, and the interestingness of resource acquisition is improved.
As an optional implementation manner, in step S402, the acquiring second interaction data generated by interacting with the terminal includes: and after waiting for a second preset time, acquiring second interaction data generated by interaction with the terminal, wherein the second preset time is displayed in a second prompt window popped up in the terminal in a countdown mode.
And after receiving the second indication information, receiving touch operation in the chat window, and popping up a second prompt window. Optionally, timing is started from the time when the touch operation is received, so as to obtain second timing time, and when the second timing time reaches second preset time, second interaction data generated by interaction with the terminal is acquired. That is, when the second timing time does not reach the second predetermined time, even if the terminal is interacted with, the interactive data generated by the interaction with the terminal cannot be acquired.
According to the embodiment, the first interactive data generated by interaction with the terminal is acquired after the second preset time is waited for, so that sufficient preparation time is reserved for a user to shake the terminal, and the user experience is further improved.
As an optional implementation manner, in step S204, acquiring first interaction data generated by interacting with the terminal includes: acquiring the shaking times of the terminal in a preset time period through a gyroscope of the terminal; the first interaction data is set to include the number of shakes and/or the frequency of shakes, wherein the frequency of shakes is obtained according to the number of shakes and a predetermined period of time.
The terminal is provided with a gyroscope, parameters of the gyroscope comprise coordinate axis information and acceleration information, and coordinate axis information and acceleration information of the terminal can be obtained through the coordinate axis information and the acceleration information of the gyroscope, wherein the coordinate axis information comprises x-axis information, y-axis information and z-axis information. By acquiring the acceleration of the gyroscope, the shaking frequency of the terminal in the shaking process can be judged according to the acceleration, and then the shaking times of the terminal are counted. For example, during the process that the terminal is swung by force from a stationary state, the acceleration of the gyroscope is changed, the acceleration of the terminal is obtained through the acceleration of the gyroscope, and the shaking frequency of the terminal is further obtained according to the acceleration of the terminal.
And acquiring the number of times of interaction with the terminal in a preset time period through a gyroscope of the terminal. The first shaking data, which is used to indicate the number of times the terminal is shaken, may be set to include the number of times of shaking and/or the frequency of shaking, which may be obtained according to the number of times of shaking and a predetermined period of time.
For example, the acceleration of the gyroscope changes from 0 to 100 in 1 second, at which time the meter terminal is shaken once. When the acceleration data of the gyroscope is changed from 100 to 0 and the terminal is shaken once again, the number of shaking of the terminal in 1 second is 1 and the frequency of shaking is 2/second.
Optionally, the terminal of this embodiment is provided with an energy conversion device, which may be a microphone. During the process of emitting sound to the microphone by the user, the microphone may convert the sound signal into an electrical signal, for example, convert the sound signal into voltage data, current data, and the like, which is not limited herein. Further, by acquiring the electric signal of the microphone, the sound intensity of the sound signal or the air flow generated by the sound signal can be determined, for example, when the user speaks or blows to the microphone, the electric signal of the microphone changes, and the sound intensity sent by the user or the air flow generated by the user is determined by the changed electric signal. And finally, acquiring the resource in the first resource distribution event through the sound intensity or the air flow indicated by the data corresponding to the electric signal.
Optionally, the number of times that the user yels or blows towards the microphone is determined according to the sound intensity of the user or the generated air flow magnitude, so that the resource in the first resource distribution event is acquired according to the number of times that the user yels or blows towards the microphone.
It should be noted that the above-mentioned manner of interacting with the terminal is only a preferred implementation manner of the embodiment of the present invention, and the manner of interacting with the terminal that does not represent the embodiment of the present invention is only the above-mentioned manner, and any manner that can interact with the terminal to generate the interaction data is within the protection scope of the present invention, and is not illustrated herein.
As an optional implementation manner, in step S208, when receiving the first resource sent by the server in response to the first interactive data, displaying first prompt information in a second prompt window popped up in the terminal, where the first prompt information is used to prompt a value of the first resource that has been currently acquired.
And when receiving the first resource sent by the server in response to the first interactive data, popping up a second prompt window in the terminal. First prompt information is displayed in the second prompt window, and the first prompt information can be character information and is used for prompting the value of the first resource which is received currently. Optionally, when receiving the first resource and the second resource sent by the server in response to the second interactive data, the first resource and the second resource are simultaneously displayed in a first prompt window popped up in the terminal, where the second interactive data is associated with both the first resource distribution event and the second resource distribution event.
As an optional implementation manner, when the first prompt information is displayed in a second prompt window popped up in the terminal, the second prompt information is displayed in the second prompt window, where the second prompt information is used to prompt a value of a resource that is not yet distributed in the total resources.
Besides the first prompt information, second prompt information can be displayed in a second prompt window popped up in the terminal, and the second prompt information is used for prompting the value of the undistributed resource in the total resources recorded by the server, so that the user can know the distribution condition of the total resources required to be distributed by the current first resource distribution event, and whether the terminal is shaken to obtain the resources or not is determined.
As an optional implementation manner, the receiving the first resource sent by the server in response to the first interactive data includes: under the condition that the total resources required to be distributed by the first resource distribution event are not completely distributed, receiving the first resources; and displaying third prompt information under the condition that the total resources required to be distributed of the first resource distribution event are completely distributed, wherein the third prompt information is used for prompting that the total resources required to be distributed of the first resource distribution event are completely distributed.
Under the condition that the total resources required to be distributed by the first resource distribution event are not completely distributed, first interactive data generated by shaking the terminal by the user can be acquired at any time, the first interactive data are sent to the server, the first resources sent by the server in response to the first interactive data are received, and the values of the received resources are continuously increased. And displaying third prompt information under the condition that the total resource required to be distributed by the first resource distribution event is completely distributed, wherein the third prompt information can be character information prompted by a popup layer, such as 'the resource is shaken out', or vibration information, such as terminal vibration prompt.
As an optional implementation manner, in step S208, after receiving the first resource sent by the server in response to the first interactive data, selecting an event type of a third resource distribution event in the chat window of the first group, where the third resource is part or all of the total resources required to be distributed by the third resource distribution event; acquiring total resources required to be distributed by a third resource distribution event in a resource acquisition window corresponding to the event type popped up in the terminal; and sending the total resource required to be distributed by the third resource distribution event to the server, and receiving third indication information in the chat window.
Fig. 5 is a flowchart of a method for transmitting a resource according to an embodiment of the present invention. As shown in fig. 5, the method further comprises the steps of:
step S501, an event type of the third resource distribution event is selected in the chat window of the first group.
In the technical solution provided in step S501 of the present application, an event type of a third resource distribution event is selected in a chat window of the first group, where a receiving manner of the third resource corresponding to the event type is to interact with the terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event.
After receiving the first resource sent by the server in response to the first interaction data, the resource may also be sent, for example, after panning to a red packet in the chat window, the red packet may also be sent. The receiving mode of the resource corresponding to the event type of the resource is to receive the touch operation through a preset button, for example, when the resource distribution event is a red envelope event, the receiving mode of the touch operation through the preset button is an operation mode of assembling a hand-qi red envelope. The event type of the resource may also be a shaking terminal corresponding to the receiving mode of the resource, for example, when the resource distribution event is a red packet event, the receiving mode of the resource is an operating mode in which the shaking terminal shakes a red packet. And in the chat window of the first group, invoking an original selector, and selecting an event type of a third resource distribution event through the original selector, wherein the receiving mode of a third resource corresponding to the event type of the third resource distribution event is interaction with the terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event.
Alternatively, after selecting the event type of the third resource distribution event, the selected event type may be deselected and the other event types may be reselected.
Step S502, acquiring a total resource required to be distributed by the third resource distribution event.
In the technical solution provided in the foregoing step S502 of the present application, in a resource obtaining window corresponding to an event type popped up in a terminal, obtaining total resources required to be distributed for a third resource distribution event, and receiving third indication information in a chat window, where the third indication information is used for indicating the third resource distribution event.
The resource obtaining window may identify the event type through text information, for example, text information indicating that the receiving manner of the third resource is the event type of the shaking terminal is displayed in the resource obtaining window. After the event type of the third resource distribution event is selected in the chat window of the first group, the total resource required to be distributed by the third resource distribution event is acquired in the resource acquisition window corresponding to the event type popped up in the terminal, and the value of the total resource can be set in the resource acquisition window.
Step S503, sending the total resource required to be distributed by the third resource distribution event to the server, and receiving the third indication information in the chat window.
In the technical solution provided in the foregoing step S503 of the present application, the total resource required to be distributed by the third resource distribution event is sent to the server, and third indication information is received in the chat window, where the third indication information is used for indicating the third resource distribution event.
After the total resources required to be distributed by the third resource distribution event are acquired, a touch operation is received through a preset area, for example, an area corresponding to 'insert money into a red envelope' is clicked, and after payment is completed, the total resources required to be distributed by the third resource distribution event are indicated to be sent to the server.
And after the total resource required to be distributed by the third resource distribution event is sent to the server, displaying third indication information in the chat window, wherein the third indication information is used for indicating the initiated third resource distribution event.
In the embodiment, after receiving a first resource sent by a server in response to first interactive data, an event type of a third resource distribution event is selected in a chat window of a first group, wherein the third resource corresponding to the event type is received in a manner of interacting with a terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event; acquiring total resources required to be distributed by a third resource distribution event in a resource acquisition window corresponding to the event type popped up in the terminal; and sending the total resource required to be distributed by the third resource distribution event to the server, and receiving the third indication information in the chat window, thereby realizing the purpose of sending the resource.
As an optional implementation manner, in step S501, after selecting an event type of the third resource distribution event, in a resource acquisition window corresponding to the event type popped up in the terminal, a type switching instruction is received; acquiring total resources required to be distributed by a fourth resource distribution event; and sending the total resource required to be distributed by a fourth resource distribution event to the server, and receiving fourth indication information in the chat window, wherein the fourth indication information is used for indicating the fourth resource distribution event.
Fig. 6 is a flowchart of another method for transmitting a resource according to an embodiment of the present invention. As shown in fig. 6, the method further comprises the steps of:
step S601, a type switching instruction is received.
In the technical solution provided in the foregoing step S601 of the present application, a type switching instruction is received in a resource acquisition window corresponding to an event type popped up in a terminal, where the type switching instruction is used to switch the event type, so as to obtain a switched event type.
When the resource distribution event is a red packet event and the event type is a shaking red packet type, a prompt message 'shaking red packet is currently displayed on a red packet page popped up by the terminal and is changed into a common red packet', wherein the 'shaking red packet' type is a type for obtaining shaking data by a shaking terminal to obtain the amount of the red packet, the common red packet can be a hand-sharing red packet, and for example, a user clicks a 'tear-down' button on an interactive interface of the terminal to obtain a red packet with random amount.
And receiving a type switching instruction through the prompt message, and switching the shaking red packet type into a common red packet type, thereby realizing the switching of the event type of the resource distribution event.
Step S602, total resources required to be distributed for the fourth resource distribution event are acquired.
In the technical solution provided in the foregoing step S602 of the present application, a total resource required to be distributed by a fourth resource distribution event is obtained, where an event type of the fourth resource distribution event is a switched event type.
After receiving the type switching instruction, acquiring a total resource required to be distributed by a fourth resource distribution event, where the event type of the fourth resource distribution event is a switched event type, for example, a common red packet type.
Step S603, sending the total resource required to be distributed by the fourth resource distribution event to the server, and receiving the fourth instruction information in the chat window.
In the technical solution provided in the foregoing step S603 of the present application, the total resource required to be distributed for the fourth resource distribution event is sent to the server, and fourth indication information is received in the chat window, where the fourth indication information is used for indicating the fourth resource distribution event.
After the total resources required to be distributed by the fourth resource distribution event are acquired, a touch operation is received through a preset area, for example, an area corresponding to "insert money into a red envelope" is clicked, and the total resources required to be distributed by the fourth resource distribution event are indicated to be sent to the server.
And after the total resource required to be distributed by the fourth resource distribution event is sent to the server, displaying fourth indication information in the chat window, wherein the fourth indication information is used for indicating the initiated fourth resource distribution event.
In the embodiment, a type switching instruction is received in a resource acquisition window corresponding to an event type and popped up in a terminal, wherein the type switching instruction is used for switching the event type to obtain a switched event type; acquiring total resources required to be distributed by a fourth resource distribution event, wherein the event type of the fourth resource distribution event is the event type after switching; and sending the total resources required to be distributed by the fourth resource distribution event to the server, and receiving fourth indication information in the chat window, wherein the fourth indication information is used for indicating the fourth resource distribution event, so that the type of the third resource distribution event is switched, the purpose of sending the total resources required to be distributed by the fourth resource distribution event to the server is achieved, and the controllability of resource acquisition is improved.
Example 2
The technical solution of the present invention will be described below with reference to preferred embodiments. Specifically, the resource distribution event is a red packet event, and the resource is a red packet amount for example.
Fig. 7 is a flowchart of another resource acquisition method according to an embodiment of the present invention. As shown in fig. 7, the method comprises the steps of:
step S701, enter a red packet page in the chat window of the group.
In the chat window of the group, a "red envelope" entry for entering a red envelope page may be selected in the lower menu bar.
Step S702, selecting the red packet type as the shaking red packet type.
After entering a red packet-making page in a chat window of the group, popping up a type selection prompt window, wherein the type prompt window displays the type of the red packet, such as a hand-made-up red packet type, a shaking red packet type and the like. The red packet type is selected to be a rock red packet type.
Step S703, setting the red envelope amount on the red envelope amount setting page.
After the red packet type is selected as the rock red packet type, a red packet amount setting page is popped up, and the red packet amount input by the user can be received on the red packet amount setting page. Alternatively, the type of the red envelope may be switched in setting the amount of the red envelope.
Step S704, the red packet with the set red packet amount is sent.
And after the red envelope amount is set on the red envelope amount setting page, sending the red envelope.
In step S705, shake data generated by a shake operation of the terminal is acquired after waiting for a preset time.
And after the red packet with the set red packet amount is sent, sending the red packet to the client corresponding to each account in the group. And after waiting for the preset time, acquiring shaking data generated by shaking operation of the terminal, wherein the shaking data is used for indicating the number of times that the terminal shakes, and the shaking data is associated with the red packet event.
Step S706, in the shaking process of the terminal, receiving the red packet amount sent by the server responding to the shaking data.
After acquiring shaking data generated by shaking operation of the terminal, sending the shaking data to the server, responding the shaking data by the server to obtain the money of the red packet, and receiving the money of the red packet sent by the server. The red-envelope amount increases as the number of shake data indications increases.
This embodiment is through getting into red packet page in the chat window of group, the type of selecting to give out red packet is the red packet type of rocking, set up the page at red packet amount of money and set up red packet amount of money, send the red packet that sets up red packet amount of money, after waiting for the preset time, acquire the produced data of rocking of the operation of rocking of terminal, at the in-process that the terminal rocks, receiving server response rocks the red packet amount of money that data send, it lacks the interest to have solved current red packet, the problem that red packet amount of money is not random, the user can with rock the terminal through oneself and acquire more red packet amounts of money, user experience has been promoted.
Fig. 8 is an interaction diagram of a resource acquisition method according to an embodiment of the present invention. As shown in fig. 8, the method comprises the steps of:
step S801, the client sends a red packet of a shaking red packet type.
The client may send a rock red envelope type red envelope in a chat window of a group with a social-type client, such as a client of an instant messaging application.
Step S802, after waiting for the preset time, the client initiates shaking operation of the terminal.
After the client sends the red packet of the type of the rocking red packet, the client corresponding to each account in the group may receive the indication information of the red packet. After waiting for the preset time, the client may initiate a shaking operation of the terminal, generating shaking data.
And step S803, the gyroscope of the terminal calculates the shaking frequency of the terminal and sends the shaking frequency of the terminal determined according to the terminal frequency to the server.
In the shaking process of the terminal, a gyroscope of the terminal calculates the shaking frequency of the terminal, the shaking times of the terminal in a preset time period are calculated through the shaking frequency, and the shaking times are sent to a server.
And step S804, the server responds to the shaking times and sends part or all of money in the red packet to the client.
And after the server receives the shaking times, the server responds to the shaking times to obtain the money amount in the red packet sent to the client and sends the money amount to the client corresponding to the shaking times. And when the user wants to stop shaking the terminal, the client stops acquiring the amount of money in the red packet.
According to the method, the client sends the red packet of the shaking red packet type, after waiting for the preset time, the client initiates shaking operation of the terminal, the gyroscope of the terminal calculates shaking frequency of the terminal, shaking times of the terminal determined according to the terminal frequency are sent to the server, the server responds to the shaking times and sends part or all of money in the red packet to the client, so that the technical effect of improving controllability of resource acquisition is achieved, and the technical problem that controllability of resource acquisition is low in group interaction in related technologies is solved.
Example 3
The application environment of the embodiment of the present invention may refer to the application environment in the above embodiments, but is not described herein again. The embodiment of the invention provides an optional specific application for implementing the resource acquisition method.
The embodiment specifically exemplifies an application scenario in which the resource distribution event is a red packet event and the resource is a red packet amount. This embodiment may be used in a product in a social category that has the functionality to send and receive red packets.
Fig. 9 is a schematic diagram of initiating a red envelope event in a chat window of a group according to an embodiment of the invention. As shown in fig. 9, in the group chat window of the client logged in by the first account, a "red packet" entry identifier is selected, a red packet event is called up through the "red packet" entry identifier, and a red packet type selection window is popped up, where in the red packet type selection window, the red packet type includes a "hand-spelling red packet" type and a "shaking red packet" type, where a red packet amount corresponding to the "shaking red packet" type is received by a shaking terminal, and the terminal may be a mobile terminal, for example, a mobile phone.
And the different red packet types correspond to different selection buttons, the original selector is called up, and the corresponding red packet types are selected through the selection buttons. After selecting the red packet type, the red packet type that has been selected can be canceled by a "cancel" button. For example, the red packet type selects the "rock red packet" type, which can be selected to be cancelled by the "cancel" button.
Fig. 10 is a schematic diagram of a red packet-containing page according to an embodiment of the invention. As shown in fig. 10, after the user clicks on the "rock red pack" type, a red pack page is entered where the total amount of red packs, e.g., "100 dollars," may be set. The number and the amount of the red packets are not limited. In the red packet page, the type of the red packet may be switched, for example, by receiving a touch operation in a region corresponding to "the red packet is currently shaken and is changed to a normal red packet", the type of the "red packet is shaken and is switched to a normal red packet, the type of the red packet may be switched before the amount of the red packet is obtained, or the type of the red packet may be switched after the amount of the red packet is obtained.
After obtaining the money amount of the red envelope, sending the set money amount of the red envelope to the server, for example, receiving touch operation through an area corresponding to 'money is stuffed into the red envelope', and after payment is completed, sending the money amount of the red envelope to the server.
FIG. 11 is a schematic diagram of an interface for receiving red packets, according to an embodiment of the invention. As shown in fig. 11, after sending the red packet to the server, receiving, at the chat window of the client corresponding to each account of the group, indication information for indicating that the red packet is initiated by the first account, that is, when the red packet sent by the first account is sent to the chat window of the client corresponding to each chat account, a red packet receiving interface is popped up, where the red packet receiving interface displays the subject of the red packet sent by the first account, for example, the subject of the red packet is "time to arrive at noon tea, everyone …", and displays information for indicating the type of the red packet, for example, "pick up red packet and pan".
Detecting a touch operation on the indication information in the chat window, for example, a click operation on a red packet of 'arrive at noon tea, everyone …'; responding to the touch operation, popping up a first prompt window in the terminal, wherein the type of the red packet is displayed in the first prompt window, the receiving mode of the red packet corresponding to the type of the red packet is the shaking terminal, as shown in the right part of fig. 11, the first prompt window displays that the type of the red packet is the shaking red packet, and the receiving mode of the red packet corresponding to the type of the shaking red packet is the shaking terminal.
Fig. 12 is a schematic diagram of acquiring shake data generated by shaking of a terminal according to an embodiment of the present invention. As shown in fig. 12, after the first prompt window shown in fig. 11 is popped up in the terminal, shake data generated by shaking the terminal is acquired after waiting for a predetermined time, which is displayed in a countdown manner in the first prompt window popped up in the terminal. For example, 3 seconds of the end "03" appears in the first prompt window, and after the 3 seconds of the end, the terminal can initiate a shake motion to acquire shake data of the terminal in the shake process.
Optionally, the front end may obtain parameters of a gyroscope of the terminal, such as obtaining x-axis, y-axis, z-axis information, and acceleration of the gyroscope. The frequency of shaking of the terminal can be judged according to the acceleration, and therefore the number of times of shaking of the terminal is counted. For example, when the terminal is swung from rest to force, the acceleration of the gyroscope changes, and the meter terminal shakes once. For example, the value 0 of the acceleration of the gyroscope becomes 100, and the meter terminal is shaken once. The acceleration value of the gyroscope again changes from 100 to 0, at which point the terminal again shakes once. And calculating the shaking frequency of the terminal through the acceleration of the gyroscope to obtain the shaking times of the terminal, and sending the shaking times of the terminal to the server. And the server responds to the shaking times of the terminal and sends the red packet amount to the client corresponding to the shaking times.
Optionally, when the total amount of the red packets is within the preset threshold, the amount of the received red packets increases according to a preset base as the shaking times increase. For example, the base number of the increase of the amount is calculated according to the total amount of the red packet, and when the total amount of the red packet is less than or equal to 0.1, the base number of the increase of the amount of the red packet is 0.01. When the total amount of the red packet is more than or equal to 1, the base number of the increment of the amount of the red packet is 0.1.
Fig. 13 is a schematic diagram of a prompt message for displaying the amount of the red envelope according to an embodiment of the present invention. As shown in fig. 13, when there is an undistributed red envelope amount in the issued red envelope, the user may initiate the shake operation of the terminal at any time, and the received red envelope amount continues to increase as the number of shakes increases. And displaying the amount of the currently received red packet in a second prompt window. For example, "you have struggled to roll: 10.90 yuan ", can also display the red envelope amount which is not distributed in the current total red envelope amount, such as" current balance of red envelope: 70.10 yuan. When the red envelope amount that has not been distributed in the current total red envelope amount is 0, for example, "the current balance of the red envelope: and when the number of the red envelope is 0.00 yuan, initiating vibration reminding of the terminal, and displaying a bullet layer prompt message which is used for prompting that the total red envelope amount is distributed completely, for example, the red envelope is shaken up. The user can check the red packet amount received by other accounts in the current total red packet amount distribution process, for example, touch operation is received through an area corresponding to 'seeing the hands of people' so as to display the red packet amount acquired by other accounts.
Fig. 14 is a schematic diagram of receiving the amount of a red envelope in a red envelope initiated by a plurality of accounts according to an embodiment of the present invention. As shown in fig. 14. If a plurality of red packets of the type of "rock red packets" are issued in the group at the same time, and the user is shaking the mobile phone at this time, after receiving the indication information of each red packet, after counting down for 3 seconds, the money amounts of the red packets initiated by a plurality of accounts can be received at the same time, optionally, this embodiment limits that only the red packets initiated by four accounts can be simultaneously rocked, and the total money amount of the received red packets is the sum of the money amounts of the received red packets initiated by each account, for example, in the process of shaking the terminal, the money amounts of the received red packets initiated by each account are respectively: 5.20, 2.90, 2.10, 0.70, the total amount of the received red envelope is: 5.20+2.90+2.10+0.70, i.e., 10.09 yuan.
For example, the first account initiates the red envelope a at 9:35, and the user B corresponding to the second account in the group shakes the terminal, so that the amount of the red envelope received by the second account in the red envelope a starts to increase incrementally. The third account is in 9: 36 initiating a red envelope C, when the user B is shaking the mobile phone, the red envelope C automatically initiates that the amount in the red envelope C is received by the second account after the last 3 seconds, and the second account can still receive the amount in the red envelope a. The total amount of money shaken by the second account is the sum of the amount in the received red envelope a + the amount in the received red envelope C.
The user can choose to abandon the operation of shaking the terminal at any time, and after the shaking of the terminal is stopped, the amount of money of the red packet received by the account corresponding to the user stops increasing.
As an optional implementation manner, if a plurality of red packets of a "rock red packet" type are issued simultaneously in a group, after indication information of each red packet is received, a preset button corresponding to an account of the red packet is displayed on an interface of a terminal, after a touch operation is received through the preset button corresponding to the account of the red packet, the amount of the red packet initiated by the account of the red packet can be received by shaking the terminal, wherein for the account of the red packet corresponding to the preset button which does not receive the touch operation, the amount of the red packet initiated by the account of the red packet cannot be received. Optionally, in this embodiment, it is limited that only red packets initiated by a preset number of accounts can be simultaneously shaken, for example, red packets initiated by four accounts before the time of shaking the red packets are shaken, and the total amount of the received red packets is the sum of the amounts of the red packets initiated by the accounts corresponding to the preset button that receives the touch operation, for example, in the process of shaking the terminal, the amounts of the received red packets initiated by the accounts are respectively: 5.20, 2.90, 2.10, 0.70, the total amount of the received red envelope is: 5.20+2.90+2.10+0.70, that is, 10.09 yuan, the problem that the processing task between the client and the server is heavy when the client receives a large number of red packets is avoided, for example, the client sends shaking data of the terminal to the server, and the receiving server receives red packets initiated by a plurality of accounts in response to the shaking data of the terminal, so that the task of processing and receiving the red packets between the client and the server is heavy, and further the service collapse phenomenon is caused.
The embodiment solves the problem that the prior red packet lacks interest, solves the problem that the amount of the red packet is not random, and achieves the effect that a user can try to obtain more amounts of money by himself.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/R first sub-object push data M, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 4
According to the embodiment of the invention, the resource acquisition device for implementing the resource acquisition method is also provided. Fig. 15 is a schematic diagram of an apparatus for acquiring resources according to an embodiment of the present invention. As shown in fig. 15, the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first sending unit 30 and a second receiving unit 40.
A first receiving unit 10, configured to receive first indication information in a chat window of a first group, where the first indication information is used to indicate a first resource distribution event initiated by a first account, and the first account is an account in the first group.
The first obtaining unit 20 is configured to obtain first interaction data generated by interacting with a terminal, where the terminal is configured to display a chat window under an instruction of a preset instruction, the first interaction data is used to indicate a number of times of interacting with the terminal, and the first interaction data is associated with a first resource distribution event.
A first sending unit 30, configured to send the first interaction data to the server.
A second receiving unit 40, configured to receive a first resource sent by the server in response to the first interactive data, where the received first resource is part or all of a total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource increases as the number of times indicated by the first interactive data increases.
Fig. 16 is a schematic diagram of another resource acquisition apparatus according to an embodiment of the present invention. As shown in fig. 16, the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first sending unit 30 and a second receiving unit 40. The device also includes: a detection unit 50 and a response unit 60, wherein the first acquisition unit 20 comprises: a first acquisition module 21.
It should be noted that, the first receiving unit 10, the first obtaining unit 20, the first sending unit 30, and the second receiving unit 40 in this embodiment are the same as the resource obtaining apparatus in the embodiment shown in fig. 15, and are not described herein again.
The detecting unit 50 is configured to detect a touch operation on the first indication information in the chat window after receiving the first indication information.
The response unit 60 is configured to pop up a first prompt window in the terminal in response to the touch operation, where an event type of the first resource distribution event is displayed in the first prompt window, and a receiving manner of the first resource corresponding to the event type is to interact with the terminal.
The first obtaining module 21 is configured to obtain first interaction data generated by interacting with the terminal after a first prompt window pops up in the terminal.
Fig. 17 is a schematic diagram of another resource acquisition apparatus according to an embodiment of the present invention. As shown in fig. 17, the apparatus may include: a first receiving unit 10, a first acquiring unit 20, a first transmitting unit 30, a second receiving unit 40, a detecting unit 50 and a responding unit 60, wherein the first acquiring unit 20 comprises: a first acquisition module 21. The first acquiring unit 20 may further include: a second acquisition module 22.
It should be noted that, in the first receiving unit 10, the first obtaining unit 20, the first sending unit 30, the second receiving unit 40, the detecting unit 50 and the responding unit 60 of this embodiment, the first obtaining module 21 has the same function as the resource obtaining apparatus in the embodiment shown in fig. 16, and details are not repeated here.
And a second obtaining module 22, configured to obtain first interaction data generated by interacting with the terminal after waiting for a first predetermined time, where the first predetermined time is displayed in the first prompt window in a countdown manner.
Fig. 18 is a schematic diagram of another resource acquisition apparatus according to an embodiment of the present invention. As shown in fig. 18, the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first sending unit 30 and a second receiving unit 40. The apparatus may further include: a third receiving unit 70, a second obtaining unit 80, a second sending unit 90 and a fourth receiving unit 100.
It should be noted that, the first receiving unit 10, the first obtaining unit 20, the first sending unit 30, and the second receiving unit 40 in this embodiment are the same as the resource obtaining apparatus in the embodiment shown in fig. 15, and are not described herein again.
The third receiving unit 70 is configured to receive second indication information in the chat window after receiving the first indication information, where the second indication information is used to indicate a second resource distribution event initiated by a second account, and the second account is an account in the first group.
A second obtaining unit 80, configured to obtain second interaction data generated by interacting with the terminal, where the second interaction data is associated with a second resource distribution event.
And a second sending unit 90, configured to send the second interaction data to the server.
A fourth receiving unit 100, configured to receive a second resource sent by the server in response to the second interactive data, where the received second resource is part or all of a total resource that needs to be distributed by the second resource distribution event, and the received second resource increases as the number of times indicated by the second interactive data increases.
The second obtaining unit 80 may include: and the third acquisition module is used for acquiring second interaction data generated by interaction with the terminal after waiting for second preset time, wherein the second preset time is displayed in a second prompt window popped up in the terminal in a countdown mode.
The first acquiring unit 20 may include: the device comprises a fourth acquisition module and a setting module. The fourth acquisition module is used for acquiring the shaking times of the terminal in a preset time period through a gyroscope of the terminal; the setting module is used for setting the first interaction data to comprise the shaking times and/or the shaking frequency, wherein the shaking frequency is obtained according to the shaking times and the preset time period.
Optionally, the apparatus may further include: and the first display unit is used for displaying first prompt information in a second prompt window popped up in the terminal when receiving the first resource sent by the server in response to the first interactive data, wherein the first prompt information is used for prompting the value of the first resource which is acquired currently.
Optionally, the apparatus may further include a second display unit, configured to display second prompt information in a second prompt window popped up in the terminal when the first prompt information is displayed in the second prompt window, where the second prompt information is used to prompt a value of a resource that is not yet distributed in the total resources.
Optionally, the second receiving unit 40 includes: the device comprises a receiving module and a display module. The receiving module is used for receiving the first resource under the condition that the total resource required to be distributed by the first resource distribution event is not completely distributed; and the display module is used for displaying third prompt information under the condition that the total resources required to be distributed by the first resource distribution event are completely distributed, wherein the third prompt information is used for prompting that the total resources required to be distributed by the first resource distribution event are completely distributed.
Optionally, the apparatus may further include: the device comprises a selection unit, a third acquisition unit and a third sending unit. The selection unit is used for selecting an event type of a third resource distribution event in a chat window of the first group after receiving a first resource sent by the server in response to the first interactive data, wherein the receiving mode of the third resource corresponding to the event type is interaction with the terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event; a third obtaining unit, configured to obtain, in a resource obtaining window corresponding to an event type popped up in the terminal, a total resource to be distributed by a third resource distribution event; and a third sending unit, configured to send, to the server, the total resource required to be distributed by a third resource distribution event, and receive third indication information in the chat window, where the third indication information is used to indicate the third resource distribution event.
Optionally, the apparatus may further include: a fifth receiving unit, a fourth acquiring unit and a fourth transmitting unit. The fifth receiving unit is configured to receive a type switching instruction in a resource acquisition window corresponding to an event type popped up in the terminal after the event type of the third resource distribution event is selected, where the type switching instruction is used to switch the event type to obtain a switched event type; a fourth obtaining unit, configured to obtain a total resource required to be distributed by a fourth resource distribution event, where an event type of the fourth resource distribution event is a switched event type; and a fourth sending unit, configured to send, to the server, the total resource required to be distributed by a fourth resource distribution event, and receive fourth indication information in the chat window, where the fourth indication information is used to indicate the fourth resource distribution event.
It should be noted that the first receiving unit 10 in this embodiment may be configured to execute step S202 in embodiment 1 of this application, the first obtaining unit 20 in this embodiment may be configured to execute step S204 in embodiment 1 of this application, the first sending unit 30 in this embodiment may be configured to execute step S206 in embodiment 1 of this application, and the second receiving unit 40 in this embodiment may be configured to execute step S208 in embodiment 1 of this application.
In the embodiment, first indication information is received in a chat window of a first group through a first receiving unit 10, where the first indication information is used to indicate a first resource distribution event initiated by a first account, where the first account is an account in the first group, first interaction data generated by interaction with a terminal is acquired through a first acquiring unit 20, where the terminal is used to display the chat window under the instruction of a preset instruction, the first interaction data is used to indicate the number of times of interaction with the terminal, the first interaction data is associated with the first resource distribution event, the first interaction data is sent to a server through a first sending unit 30, the first resource sent by the server in response to the first interaction data is received through a second receiving unit 40, where the received first resource is part or all of total resources required to be distributed by the first resource distribution event, and when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data, because the receiving server responds to the first interactive data generated by interacting with the terminal to send part or all of the total resources required to be distributed by the first resource distribution event, and when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data, the technical effect of improving the controllability of resource acquisition is achieved, and the technical problem of low controllability of resource acquisition in group interaction in related technologies is solved.
It should be noted here that the above units and modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the above embodiment 1. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
Example 5
According to the embodiment of the invention, the invention also provides a server or a terminal for implementing the resource acquisition method.
Fig. 19 is a block diagram of a terminal according to an embodiment of the present invention. As shown in fig. 19, the terminal may include: one or more processors 191 (only one of which is shown), a memory 193, and a transmission device 195. As shown in fig. 19, the terminal may further include an input-output device 197.
The memory 193 may be used for storing software programs and modules, such as program instructions/modules corresponding to the resource obtaining method and apparatus in the embodiment of the present invention, and the processor 191 executes various functional applications and data processing by running the software programs and modules stored in the memory 193, that is, implements the resource obtaining method. The memory 193 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 193 may further include memory located remotely from the processor 191, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 195 is used for receiving or transmitting data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 195 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 195 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Among them, the memory 193 is used to store, in particular, an application program.
The processor 191 may invoke an application stored in the memory 193 through the transmission device 195 to perform the following steps:
receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group;
acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event;
sending first interactive data to a server;
and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data.
The processor 191 is further configured to perform the following steps: after receiving the first indication information, detecting touch operation on the first indication information in a chat window; responding to touch operation, popping up a first prompt window in the terminal, wherein the event type of a first resource distribution event is displayed in the first prompt window, and the receiving mode of a first resource corresponding to the event type is interaction with the terminal; after a first prompt window pops up in the terminal, first interaction data generated by interaction with the terminal are obtained.
The processor 191 is further configured to perform the following steps: and after waiting for first preset time, acquiring first interaction data generated by interaction with the terminal, wherein the first preset time is displayed in a first prompt window in a countdown mode.
The processor 191 is further configured to perform the following steps: after receiving the first indication information, receiving second indication information in the chat window, wherein the second indication information is used for indicating a second resource distribution event initiated by a second account, and the second account is an account in the first group; acquiring second interactive data generated by interaction with the terminal, wherein the second interactive data is associated with a second resource distribution event; sending the second interactive data to the server; and receiving a second resource sent by the server in response to the second interactive data, wherein the received second resource is part or all of the total resource required to be distributed by the second resource distribution event, and when the received second resource is part of the total resource required to be distributed by the second resource distribution event, the received second resource is increased along with the increase of the times indicated by the second interactive data.
The processor 191 is further configured to perform the following steps: and after waiting for a second preset time, acquiring second interaction data generated by interaction with the terminal, wherein the second preset time is displayed in a second prompt window popped up in the terminal in a countdown mode.
The processor 191 is further configured to perform the following steps: acquiring the shaking times of the terminal in a preset time period through a gyroscope of the terminal; the first interaction data is set to include the number of shakes and/or the frequency of shakes, wherein the frequency of shakes is obtained according to the number of shakes and a predetermined period of time.
The processor 191 is further configured to perform the following steps: and when receiving a first resource sent by the server in response to the first interactive data, displaying first prompt information in a second prompt window popped up in the terminal, wherein the first prompt information is used for prompting the value of the first resource which is acquired currently.
The processor 191 is further configured to perform the following steps: and when the first prompt information is displayed in a second prompt window popped up in the terminal, displaying second prompt information in the second prompt window, wherein the second prompt information is used for prompting the value of the undistributed resource in the total resources.
The processor 191 is further configured to perform the following steps: under the condition that the total resources required to be distributed by the first resource distribution event are not completely distributed, receiving the first resources; and displaying third prompt information under the condition that the total resources required to be distributed of the first resource distribution event are completely distributed, wherein the third prompt information is used for prompting that the total resources required to be distributed of the first resource distribution event are completely distributed.
The processor 191 is further configured to perform the following steps: after receiving a first resource sent by a server in response to first interactive data, selecting an event type of a third resource distribution event in a chat window of a first group, wherein the receiving mode of the third resource corresponding to the event type is interaction with a terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event; acquiring total resources required to be distributed by a third resource distribution event in a resource acquisition window corresponding to the event type popped up in the terminal; and sending the total resource required to be distributed by the third resource distribution event to the server, and receiving third indication information in the chat window, wherein the third indication information is used for indicating the third resource distribution event.
The processor 191 is further configured to perform the following steps: after selecting the event type of the third resource distribution event, receiving a type switching instruction in a resource acquisition window corresponding to the event type popped up in the terminal, wherein the type switching instruction is used for switching the event type to obtain the switched event type; acquiring total resources required to be distributed by a fourth resource distribution event, wherein the event type of the fourth resource distribution event is the event type after switching; and sending the total resource required to be distributed by a fourth resource distribution event to the server, and receiving fourth indication information in the chat window, wherein the fourth indication information is used for indicating the fourth resource distribution event.
The embodiment of the invention provides a resource acquisition scheme. Receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group; acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event; and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data. The method comprises the steps that a receiving server responds to first interactive data generated by interaction with a terminal to send part or all of total resources required to be distributed by a first resource distribution event, and when the received first resources are part of the total resources required to be distributed by the first resource distribution event, the received first resources are increased along with the increase of the number of times indicated by the first interactive data, so that the technical effect of improving the controllability of resource acquisition is achieved, and the technical problem that the controllability of resource acquisition is low in group interaction in the related technology is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 19 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 19 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 19, or have a different configuration than shown in fig. 19.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 6
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing the resource acquisition method.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group;
acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying a chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with a first resource distribution event;
sending first interactive data to a server;
and receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of the total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource is increased along with the increase of the times indicated by the first interactive data.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after receiving the first indication information, detecting touch operation on the first indication information in a chat window; responding to touch operation, popping up a first prompt window in the terminal, wherein the event type of a first resource distribution event is displayed in the first prompt window, and the receiving mode of a first resource corresponding to the event type is interaction with the terminal; after a first prompt window pops up in the terminal, first interaction data generated by interaction with the terminal are obtained.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and after waiting for first preset time, acquiring first interaction data generated by interaction with the terminal, wherein the first preset time is displayed in a first prompt window in a countdown mode.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after receiving the first indication information, receiving second indication information in the chat window, wherein the second indication information is used for indicating a second resource distribution event initiated by a second account, and the second account is an account in the first group; acquiring second interactive data generated by interaction with the terminal, wherein the second interactive data is associated with a second resource distribution event; sending the second interactive data to the server; and receiving a second resource sent by the server in response to the second interactive data, wherein the received second resource is part or all of the total resource required to be distributed by the second resource distribution event, and when the received second resource is part of the total resource required to be distributed by the second resource distribution event, the received second resource is increased along with the increase of the times indicated by the second interactive data.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and after waiting for a second preset time, acquiring second interaction data generated by interaction with the terminal, wherein the second preset time is displayed in a second prompt window popped up in the terminal in a countdown mode.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring the shaking times of the terminal in a preset time period through a gyroscope of the terminal; the first interaction data is set to include the number of shakes and/or the frequency of shakes, wherein the frequency of shakes is obtained according to the number of shakes and a predetermined period of time.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and when receiving a first resource sent by the server in response to the first interactive data, displaying first prompt information in a second prompt window popped up in the terminal, wherein the first prompt information is used for prompting the value of the first resource which is acquired currently.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and when the first prompt information is displayed in a second prompt window popped up in the terminal, displaying second prompt information in the second prompt window, wherein the second prompt information is used for prompting the value of the undistributed resource in the total resources.
Optionally, the storage medium is further arranged to store program code for performing the steps of: under the condition that the total resources required to be distributed by the first resource distribution event are not completely distributed, receiving the first resources; and displaying third prompt information under the condition that the total resources required to be distributed of the first resource distribution event are completely distributed, wherein the third prompt information is used for prompting that the total resources required to be distributed of the first resource distribution event are completely distributed.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after receiving a first resource sent by a server in response to first interactive data, selecting an event type of a third resource distribution event in a chat window of a first group, wherein the receiving mode of the third resource corresponding to the event type is interaction with a terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event; acquiring total resources required to be distributed by a third resource distribution event in a resource acquisition window corresponding to the event type popped up in the terminal; and sending the total resource required to be distributed by the third resource distribution event to the server, and receiving third indication information in the chat window, wherein the third indication information is used for indicating the third resource distribution event.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after selecting the event type of the third resource distribution event, receiving a type switching instruction in a resource acquisition window corresponding to the event type popped up in the terminal, wherein the type switching instruction is used for switching the event type to obtain the switched event type; acquiring total resources required to be distributed by a fourth resource distribution event, wherein the event type of the fourth resource distribution event is the event type after switching; and sending the total resource required to be distributed by a fourth resource distribution event to the server, and receiving fourth indication information in the chat window, wherein the fourth indication information is used for indicating the fourth resource distribution event.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be 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, units or modules, and may be in an electrical or other form.
The 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 foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for acquiring resources is characterized by comprising the following steps:
receiving first indication information in a chat window of a first group, wherein the first indication information is used for indicating a first resource distribution event initiated by a first account, and the first account is an account in the first group;
acquiring first interactive data generated by interaction with a terminal, wherein the terminal is used for displaying the chat window under the instruction of a preset instruction, the first interactive data is used for indicating the number of times of interaction with the terminal, and the first interactive data is associated with the first resource distribution event;
sending the first interactive data to a server;
receiving a first resource sent by the server in response to the first interactive data, wherein the received first resource is part or all of total resources required to be distributed by the first resource distribution event, and when the received first resource is part of the total resources required to be distributed by the first resource distribution event, the received first resource increases according to a preset base number along with the increase of the number of times indicated by the first interactive data, and the preset base number is set as the first base number when the remaining amount of the total resources is greater than or equal to a first threshold; the preset cardinality is set to a second cardinality smaller than the first cardinality, in a case where the remaining amount of the total resources is less than or equal to a second threshold.
2. The method of claim 1,
after receiving the first indication information, the method further comprises: detecting touch operation on the first indication information in the chat window; responding to the touch operation, popping up a first prompt window in the terminal, wherein an event type of the first resource distribution event is displayed in the first prompt window, and the receiving mode of the first resource corresponding to the event type is interaction with the terminal;
the acquiring the first interaction data generated by interacting with the terminal comprises: and after a first prompt window pops up in the terminal, acquiring the first interactive data generated by interaction with the terminal.
3. The method of claim 2, wherein obtaining the first interaction data generated by interacting with the terminal comprises:
and after waiting for first preset time, acquiring the first interaction data generated by interaction with the terminal, wherein the first preset time is displayed in the first prompt window in a countdown mode.
4. The method of claim 1, wherein after receiving the first indication information, the method further comprises:
receiving second indication information in the chat window, wherein the second indication information is used for indicating a second resource distribution event initiated by a second account, and the second account is an account in the first group;
acquiring second interactive data generated by interaction with the terminal, wherein the second interactive data is associated with the second resource distribution event;
sending the second interaction data to the server;
and receiving a second resource sent by the server in response to the second interactive data, wherein the received second resource is part or all of the total resource required to be distributed by the second resource distribution event, and when the received second resource is part of the total resource required to be distributed by the second resource distribution event, the received second resource increases with the increase of the number of times indicated by the second interactive data.
5. The method of claim 4, wherein obtaining the second interaction data generated by interacting with the terminal comprises:
and after waiting for second preset time, acquiring second interaction data generated by interaction with the terminal, wherein the second preset time is displayed in a second prompt window popped up in the terminal in a countdown mode.
6. The method according to any one of claims 1 to 5, wherein obtaining the first interaction data generated by interacting with a terminal comprises:
acquiring the shaking times of the terminal in a preset time period through a gyroscope of the terminal;
setting the first interaction data to comprise the number of shakes and/or the frequency of the shakes, wherein the frequency of the shakes is obtained according to the number of shakes and the predetermined time period.
7. The method of any of claims 1 to 5, wherein upon receiving the first resource sent by the server in response to the first interaction data, the method further comprises:
and displaying first prompt information in a second prompt window popped up in the terminal, wherein the first prompt information is used for prompting the value of the first resource which is acquired currently.
8. The method according to claim 7, wherein when the first prompt message is displayed in a second prompt window popped up in the terminal, the method further comprises:
and displaying second prompt information in the second prompt window, wherein the second prompt information is used for prompting the value of the undistributed resource in the total resources.
9. The method of any of claims 1 to 5, wherein receiving the first resource sent by the server in response to the first interaction data comprises:
under the condition that the total resources required to be distributed by the first resource distribution event are not completely distributed, receiving the first resources;
and displaying third prompt information under the condition that the total resources required to be distributed of the first resource distribution event are completely distributed, wherein the third prompt information is used for prompting that the total resources required to be distributed of the first resource distribution event are completely distributed.
10. The method of claim 1, wherein after receiving the first resource sent by the server in response to the first interaction data, the method further comprises:
selecting an event type of a third resource distribution event in the chat window of the first group, wherein the receiving mode of the third resource corresponding to the event type is interaction with the terminal, and the third resource is part or all of total resources required to be distributed by the third resource distribution event;
acquiring total resources required to be distributed by the third resource distribution event in a resource acquisition window corresponding to the event type and popped up in the terminal;
and sending the total resource required to be distributed by the third resource distribution event to the server, and receiving third indication information in the chat window, wherein the third indication information is used for indicating the third resource distribution event.
11. The method of claim 10, wherein after selecting the event type for the third resource distribution event, the method further comprises:
receiving a type switching instruction in a resource acquisition window corresponding to the event type popped up in the terminal, wherein the type switching instruction is used for switching the event type to obtain a switched event type;
acquiring total resources required to be distributed by a fourth resource distribution event, wherein the event type of the fourth resource distribution event is the switched event type;
and sending the total resource required to be distributed by the fourth resource distribution event to the server, and receiving fourth indication information in the chat window, wherein the fourth indication information is used for indicating the fourth resource distribution event.
12. An apparatus for acquiring a resource, comprising:
a first receiving unit, configured to receive first indication information in a chat window of a first group, where the first indication information is used to indicate a first resource distribution event initiated by a first account, and the first account is an account in the first group;
a first obtaining unit, configured to obtain first interaction data generated by interacting with a terminal, where the terminal is configured to display the chat window under an instruction of a preset instruction, the first interaction data is used to indicate a number of times of interacting with the terminal, and the first interaction data is associated with the first resource distribution event;
the first sending unit is used for sending the first interactive data to a server;
a second receiving unit, configured to receive a first resource sent by the server in response to the first interactive data, where the received first resource is part or all of a total resource required to be distributed by the first resource distribution event, and when the received first resource is part of the total resource required to be distributed by the first resource distribution event, the received first resource increases according to a preset base number as the number of times indicated by the first interactive data increases, and when a remaining amount of the total resource is greater than or equal to a first threshold, the preset base number is set as the first base number; the preset cardinality is set to a second cardinality smaller than the first cardinality, in a case where the remaining amount of the total resources is less than or equal to a second threshold.
13. The apparatus of claim 12,
the device further comprises: the detection unit is used for detecting touch operation on the first indication information in the chat window after the first indication information is received; a response unit, configured to pop up a first prompt window in the terminal in response to the touch operation, where an event type of the first resource distribution event is displayed in the first prompt window, and a receiving manner of the first resource corresponding to the event type is to interact with the terminal;
the first acquisition unit includes: the first obtaining module is used for obtaining the first interactive data generated by interaction with the terminal after a first prompt window is popped up in the terminal.
14. The apparatus of claim 13, wherein the first obtaining unit comprises:
and the second acquisition module is used for acquiring the first interaction data generated by interaction with the terminal after waiting for first preset time, wherein the first preset time is displayed in the first prompt window in a countdown mode.
15. The apparatus of claim 12, further comprising:
a third receiving unit, configured to receive second indication information in the chat window after receiving the first indication information, where the second indication information is used to indicate a second resource distribution event initiated by a second account, and the second account is an account in the first group;
a second obtaining unit, configured to obtain second interaction data generated by interacting with the terminal, where the second interaction data is associated with the second resource distribution event;
a second sending unit, configured to send the second interactive data to the server;
a fourth receiving unit, configured to receive a second resource sent by the server in response to the second interactive data, where the received second resource is part or all of a total resource required to be distributed by the second resource distribution event, and when the received second resource is part of the total resource required to be distributed by the second resource distribution event, the received second resource increases as the number of times indicated by the second interactive data increases.
CN201710228969.8A 2017-04-10 2017-04-10 Resource acquisition method and device Active CN107153581B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710228969.8A CN107153581B (en) 2017-04-10 2017-04-10 Resource acquisition method and device
PCT/CN2018/078937 WO2018188444A1 (en) 2017-04-10 2018-03-14 Resource acquisition method and device, storage medium and electronic device
TW107111689A TW201837704A (en) 2017-04-10 2018-04-02 Method and device for acquiring resource, computer readable storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710228969.8A CN107153581B (en) 2017-04-10 2017-04-10 Resource acquisition method and device

Publications (2)

Publication Number Publication Date
CN107153581A CN107153581A (en) 2017-09-12
CN107153581B true CN107153581B (en) 2022-04-26

Family

ID=59793708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710228969.8A Active CN107153581B (en) 2017-04-10 2017-04-10 Resource acquisition method and device

Country Status (3)

Country Link
CN (1) CN107153581B (en)
TW (1) TW201837704A (en)
WO (1) WO2018188444A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153581B (en) * 2017-04-10 2022-04-26 腾讯科技(深圳)有限公司 Resource acquisition method and device
CN108830724B (en) * 2018-04-12 2023-04-14 平安科技(深圳)有限公司 Resource data packet processing method and terminal equipment
CN109246225A (en) * 2018-09-25 2019-01-18 上海掌门科技有限公司 Method is provided and got to a kind of resource allocation
CN110996180B (en) * 2019-12-17 2021-05-28 李昱颉 Network live broadcast chatting method, system and server
CN113344555A (en) * 2020-02-18 2021-09-03 阿里巴巴集团控股有限公司 Method, device and system for acquiring virtual resources, storage medium and processor
CN112891941A (en) * 2021-03-25 2021-06-04 腾讯科技(深圳)有限公司 Virtual resource processing method and device, storage medium and electronic equipment
CN115253286A (en) * 2021-04-30 2022-11-01 腾讯科技(深圳)有限公司 Processing method and device of virtual resource package, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020851A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Mobile terminal control method and device
CN106302111A (en) * 2016-08-04 2017-01-04 财付通支付科技有限公司 A kind of information processing method, terminal and server
CN106331305A (en) * 2015-07-02 2017-01-11 天脉聚源(北京)科技有限公司 Method and system for customizing shake function of WeChat
CN106339865A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Electronic resource acquisition method based on mobile terminal and the mobile terminal
CN106445243A (en) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 Touch responding device and method for intelligent equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227963A1 (en) * 2014-02-12 2015-08-13 Turn Inc. Systems, methods, and apparatus for budget allocation
CN105117250B (en) * 2015-08-24 2019-03-29 联想(北京)有限公司 A kind of compatibility processing method and electronic equipment
CN106161635B (en) * 2016-07-20 2019-01-29 腾讯科技(北京)有限公司 Information processing method, terminal and server
CN107153581B (en) * 2017-04-10 2022-04-26 腾讯科技(深圳)有限公司 Resource acquisition method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331305A (en) * 2015-07-02 2017-01-11 天脉聚源(北京)科技有限公司 Method and system for customizing shake function of WeChat
CN106020851A (en) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 Mobile terminal control method and device
CN106302111A (en) * 2016-08-04 2017-01-04 财付通支付科技有限公司 A kind of information processing method, terminal and server
CN106339865A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Electronic resource acquisition method based on mobile terminal and the mobile terminal
CN106445243A (en) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 Touch responding device and method for intelligent equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络红包营销策略研究——以腾讯和阿里巴巴为例;马晓林;《中国优秀硕士学位论文全文数据库经济与管理科学辑》;20170215;第J157-372页 *

Also Published As

Publication number Publication date
CN107153581A (en) 2017-09-12
WO2018188444A1 (en) 2018-10-18
TW201837704A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN107153581B (en) Resource acquisition method and device
US10880398B2 (en) Information updating/exchange method, apparatus, and server
CN104519124B (en) A kind of distribution method and device of virtual resource
US20150310567A1 (en) Method and device for providing online gifting
CN110781421B (en) Virtual resource display method and related device
CN107025713B (en) The implementation method and device of electronic voting in instant messaging group chat scene
JP6492198B2 (en) Information processing method, terminal, and computer storage medium
JP6974458B2 (en) Game server and method for generating context-aware game information
CN111901225B (en) Message prompting method and device, storage medium and electronic device
CN106302111B (en) Information processing method, terminal and server
CN113242308B (en) Information pushing method, device, equipment and storage medium
CN106775625A (en) Screenshot picture sharing method and device and electronic equipment
CN108335088B (en) Virtual resource transfer method, device and storage medium
CN111950670A (en) Virtual interaction task execution method and device, storage medium and electronic device
CN114518918A (en) Data processing method, device, equipment and storage medium
CN108288152B (en) Interaction method, terminal and storage medium for sharing information
CN112187624B (en) Message reply method and device and electronic equipment
CN109847340A (en) A kind of information processing method, device, equipment and medium
CN111752429B (en) Information display method, information display device, electronic equipment and medium
CN113158081A (en) User relationship construction method and device, electronic equipment and storage medium
JP7026994B2 (en) Message exchange methods and devices, computer programs, electronic devices
CN106411681B (en) Information processing method, initiating device, server and participating device
CN111010335A (en) Chat expression sending method and device, electronic equipment and medium
CN102694747B (en) Instant messaging realizes the method and system of comment operation
CN113813599B (en) Virtual character control method and device, storage medium and electronic equipment

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