WO2018188444A1 - 资源的获取方法及装置、存储介质以及电子装置 - Google Patents

资源的获取方法及装置、存储介质以及电子装置 Download PDF

Info

Publication number
WO2018188444A1
WO2018188444A1 PCT/CN2018/078937 CN2018078937W WO2018188444A1 WO 2018188444 A1 WO2018188444 A1 WO 2018188444A1 CN 2018078937 W CN2018078937 W CN 2018078937W WO 2018188444 A1 WO2018188444 A1 WO 2018188444A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
terminal
interaction data
event
resource distribution
Prior art date
Application number
PCT/CN2018/078937
Other languages
English (en)
French (fr)
Inventor
王斯敏
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018188444A1 publication Critical patent/WO2018188444A1/zh

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]

Definitions

  • the embodiments of the present invention relate to the field of computers, and in particular, to a method and device for acquiring resources, a storage medium, and an electronic device.
  • resource acquisition can be performed, but resource acquisition is usually random and uncontrollable.
  • the terminal can be used to implement resource acquisition in group interaction, and can receive an instruction through a preset button on the terminal interface to obtain resources.
  • the randomness and uncertainty of the resources acquired by the account in the group are very large.
  • One of the accounts may obtain fewer resources, and sometimes the acquired resources may be more, so the controllability of resource acquisition is low. Thereby reducing the user experience.
  • the embodiment of the invention provides a method and a device for acquiring a resource, a storage medium and an electronic device, so as to at least solve the technical problem that the related technology has low controllability of resource acquisition in group interaction.
  • a method for acquiring a resource includes: receiving 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, where the first account is the first group An account in the group; obtaining the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, first The interaction data is associated with the first resource distribution event; the first interaction data is sent to the server; the first resource sent by the server in response to the first interaction data, wherein the received first resource is required to be distributed for the first resource distribution event Part or all of the total resources, and when the received first resource is a part of the total resources 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 And increase.
  • a resource acquiring apparatus comprising one or more processors, and one or more memories storing program units, wherein the program units are executed by a processor, the program units
  • the first receiving unit is configured to receive 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, where the first account is
  • the first acquisition unit is configured to acquire the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used.
  • the first interaction data is associated with the first resource distribution event
  • the first communication unit is configured to send the first interaction data to the server
  • the second receiving unit is configured to receive the server response in response to the number of times of interaction with the terminal.
  • a first resource that is sent by the first interaction data where the received first resource is a total resource that is required to be distributed by the first resource distribution event Part or all of, and upon receiving a first resource of the total resources of the first resource needed to distribute the event in the distribution section, the first resource with the increase in the number of the received data indicates a first interaction increases.
  • a storage medium is also provided.
  • a computer program is stored in the storage medium, and the computer program is configured to execute the method in the embodiment of the present invention at runtime.
  • an electronic device includes a memory and a processor, wherein the computer stores a computer program, the processor being arranged to perform the method of the embodiments of the present invention by a computer program.
  • the first indication information is received in the chat window of the first group, where the first indication information is used to indicate the first resource distribution event initiated by the first account, and the first account is the first group.
  • An account in the group obtaining the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, first The interaction data is associated with the first resource distribution event; the first interaction data is sent to the server; the first resource sent by the server in response to the first interaction data, wherein the received first resource is required to be distributed for the first resource distribution event Part or all of the total resources, and when the received first resource is a part of the total resources 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 And increase.
  • the number of times indicated by the first interaction data is controllable, thereby achieving the technical effect of improving the controllability of resource acquisition, thereby solving the related technology in the group interaction. , technical problems with low controllability of resource acquisition.
  • FIG. 1 is a schematic diagram of a hardware environment of a method for acquiring a resource according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for acquiring a resource according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for acquiring resources according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another method for acquiring a resource according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for sending 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 flowchart of another method for acquiring a resource according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of interaction of a method for acquiring a resource according to an embodiment of the present invention.
  • 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 present invention.
  • FIG. 10 is a schematic diagram of a red envelope page according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an interface for receiving a red envelope according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of acquiring interaction data generated by interaction with a terminal according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of prompt information for displaying a red envelope amount according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of receiving a red packet amount in a red envelope initiated by multiple account numbers according to an embodiment of the present invention
  • FIG. 15 is a schematic diagram of a resource acquiring apparatus according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of another resource acquiring apparatus according to an embodiment of the present invention.
  • FIG. 17 is a schematic diagram of another resource acquiring apparatus according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of another resource acquiring apparatus according to an embodiment of the present invention.
  • 19 is a block diagram showing the structure of an electronic device according to an embodiment of the present invention.
  • an embodiment of a method for acquiring a resource is provided.
  • FIG. 1 is a schematic diagram of a hardware environment of a method for acquiring a resource according to an embodiment of the present invention.
  • the server 102 is connected to the terminal 104 through a network.
  • the network includes but is not limited to a wide area network, a metropolitan area network, or a local area network.
  • the terminal 104 is not limited to a PC, a mobile phone, a tablet, or the like.
  • the method for acquiring the resource in the embodiment of the present invention may be performed by the server 102, may be performed by the terminal 104, or may be jointly performed by the server 102 and the terminal 104.
  • the method for obtaining the resource by the terminal 104 in the embodiment of the present invention may also be performed by a client installed thereon.
  • FIG. 2 is a flowchart of a method for acquiring a resource according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
  • Step S202 receiving first indication information in a chat window of the first group.
  • the first indication information is used to indicate a first resource distribution event initiated by the first account, and the first account is an account in the first group.
  • the chat window of the first group is an interaction window for event interaction of multiple accounts, and a chat window for chatting with multiple accounts on the instant messaging application, through which the message can be sent.
  • the message may also be received.
  • the message is a chat message, and the chat message includes the transmitted resource, and may also include the received resource.
  • the resource may be a virtual resource equivalent to cash.
  • the user sends a consumer utility with a traditional paper through a client corresponding to a network platform having a third-party payment capability such as an instant messaging application or a payment software.
  • the red envelopes with similar appearances can also be used for vouchers, bonds, points, traffic, virtual items, etc., and are not limited here.
  • the account number in the first group of this embodiment can initiate a resource distribution event for distributing resources, such as a red envelope event.
  • the method for receiving the resource distributed by the resource distribution event can be received by clicking the preset button of the client, for example, by clicking the "on" button on the red packet receiving interface displayed on the client, the client is installed on the terminal, or It is obtained by shaking the shaking data generated by the terminal, for example, the user receives the red envelope by constantly shaking the terminal.
  • Receiving the first indication information 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 that the first account is initiated.
  • the first resource distribution event may be displayed on a preset page in the chat window, for example, displaying a theme, a color, and an event type of the first resource distribution event on the preset page, for the first indication information Can receive touch operations.
  • the first resource distribution event initiated by the first account may be displayed by the client corresponding to each account in the first group, thereby improving the participation of the user corresponding to the multiple accounts.
  • the server before receiving the first indication information, the server records the resources that are required to be distributed by the first resource distribution event.
  • Step S204 Acquire first interaction data generated by interaction with the terminal.
  • the first interaction data generated by the interaction with the terminal is obtained, where the terminal is configured to display the chat window under the instruction of the preset instruction, for example, the preset instruction is used to open An operation instruction of the chat window, which includes an operation instruction for opening a chat window received after the black screen of the terminal, and the like.
  • the first interaction data is used to indicate the number of interactions with the terminal, and the first interaction data is associated with the first resource distribution event.
  • interacting with the terminal includes shaking the terminal, and the terminal generates shaking data during the shaking, wherein the first interaction data includes shaking data.
  • the first shaking data may be used to indicate the number of shaking obtained by the terminal after receiving the first indication information, and the first shaking data is associated with the first resource distribution event initiated by the first account
  • the resource in the first resource distribution event may be obtained by the number of times of shaking of the terminal indicated by the first shaking data, and the terminal may be a mobile terminal, for example, the terminal is a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, or the like. Terminal Equipment.
  • interacting with the terminal includes clicking a preset location of the terminal screen, and clicking data is generated during a process of clicking the preset location of the terminal screen, wherein the first interaction data includes click data.
  • the first click data may be used to indicate the number of clicks of the terminal after receiving the first indication information, and the first click data is The first resource distribution event initiated by the first account is associated with the resource in the first resource distribution event by the number of clicks of the terminal indicated by the first click data.
  • the interacting with the terminal includes long pressing the preset position of the terminal screen, and the pressing data is generated during the long pressing of the preset position of the terminal, wherein the first interaction data includes pressing data.
  • the first pressing data may be used to indicate the pressed time and the pressing force after the terminal receives the first indication information, and the first The pressing 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 by the pressed time and the pressing strength of the terminal indicated by the first pressing data.
  • interacting with the terminal comprises interacting with an energy conversion device of the terminal, the energy conversion device being a microphone disposed on the terminal.
  • the energy conversion device may convert the sound signal into an electrical signal during the sound emission to the energy conversion device of the terminal, wherein the first interaction data includes data corresponding to the electrical signal.
  • the data corresponding to the electrical signal may be used to indicate the acquired sound intensity after the terminal receives the first indication information or
  • the airflow is sized, and the data corresponding to the electrical signal is associated with the first resource distribution event initiated by the first account, and the resource in the first resource distribution event is obtained by the sound intensity or the airflow size indicated by the data corresponding to the electrical signal.
  • Step S206 sending first interaction data to the server.
  • the first interaction data is associated with the first resource distribution event.
  • the first interaction data is sent to the server, that is, the client sends the first interaction data to the server.
  • the server records the first resource distribution event and the identifier information of the first account, where the first resource distribution event corresponds to the first account.
  • Step S208 The first resource that is sent by the server in response to the first interaction data.
  • the received first resource is part or all of the total resources required for the first resource distribution event, and the received first resource is the first resource distribution event.
  • the received first resource increases as the number of times indicated by the first interaction data increases.
  • the server receives the first interaction data, and responds to the first interaction data to obtain the first resource sent to the client, where the first resource may be the first account sent to the client.
  • the first resource may be the first account sent to the client.
  • the first resource is part or all of the total resources that are required to be distributed by the first resource distribution event.
  • the received first resource increases as the number of times indicated by the first interaction data increases, that is, the more times the interaction with the terminal is performed, the more the first resource that the server sends to the client, and the user can pass the user. Try to get more resources.
  • the first resource increases according to a preset base number as the number of times indicated by the first interaction data increases.
  • the first resource distribution event is a red envelope event
  • the first resource is part or all of the total amount of red packets distributed for the red envelope event
  • the preset base amount of the issued amount is calculated according to the total amount of the red envelope, optionally, when When the total amount of the red envelope is ⁇ 0.1, the preset base of the red envelope amount to be incremented is 0.01, and when the total amount of the red envelope is ⁇ 1, the predetermined base of the red envelope amount to be incremented is 0.1.
  • the first indication information is received in the chat window of the first group by using the foregoing step S202 to the step S208, where the first indication information is used to indicate the first resource distribution event initiated by the first account, and the first account is the first group.
  • the first interaction data generated by the interaction with the terminal, the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, the first interaction data and Corresponding to the first resource distribution event; sending the first interaction data to the server; receiving, by the server, the first resource sent in response to the first interaction data, where the received first resource is in a total resource to be distributed by the first resource distribution event Part or all, and when the received first resource is part of a total resource to be distributed by the first resource distribution event, the received first resource increases as the number of times indicated by the first interaction data increases, due to reception a portion of the total resources required to be distributed by the first resource distribution event sent by the server in response to the first interaction data generated by the interaction with the terminal All,
  • step S202 after receiving the first indication information, in step S202, in response to detecting a touch operation on the first indication information in the chat window, the first prompt window is popped up in the terminal, where After the first prompt window is popped in the terminal, the first interaction data generated by interacting with the terminal is obtained.
  • FIG. 3 is a flowchart of another method for acquiring resources according to an embodiment of the present invention. As shown in FIG. 3, the method further includes:
  • Step S301 detecting a touch operation on the first indication information in the chat window.
  • the first indication information may be touch-operated, for example, the touch operation is a click operation, a double-click operation, or a preset time in an area corresponding to the first indication information. Wait for the operation. After receiving the first indication information, a touch operation on the first indication information is detected in the chat window.
  • Step S302 in response to the touch operation, popping up the first prompt window in the terminal.
  • the 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 to interact with the terminal.
  • the first resource distribution event has an event type, which can be used to indicate the manner in which the first resource is received.
  • the 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 The terminal interacts.
  • the first prompt window prompts the user to interact with the terminal by using the text information, the voice information, the icon information, and the like to prompt the user to perform the shaking operation on the terminal to obtain the first interaction data. .
  • the first prompt window is popped up in the terminal, interacting with the terminal to generate first interaction data, and acquiring the first interaction data.
  • the first prompt window may be popped up on the upper layer of the chat window, and the first prompt window may exit the interface of the terminal, for example, the first prompt window is used to indicate the exit terminal.
  • the identification button receives the touch operation, and the first window disappears at the interface of the terminal.
  • the touch operation on the first indication information is detected in the chat window, and in response to the touch operation, the first prompt window is popped up in the terminal, where the first prompt window is The event type of the first resource distribution event is displayed.
  • the first resource corresponding to the event type is received by the terminal.
  • the first prompt window is popped up in the terminal, the first interaction data generated by the interaction with the terminal is obtained. Thereby the first interaction data for indicating the number of interactions with the terminal and associated with the first resource distribution event is achieved.
  • step S204 acquiring the first interaction data generated by the interaction with the terminal includes: acquiring, after waiting for the first predetermined time, acquiring first interaction data generated by interacting with the terminal, where A predetermined time is displayed in the first prompt window in a countdown manner.
  • the touch operation is received in the chat window, and the first prompt window is popped up.
  • the first time is obtained, and when the first time reaches the first predetermined time, the first interaction data generated by the interaction with the terminal is acquired. That is, when the first timing time does not reach the first predetermined time, the interaction data generated by the interaction with the terminal cannot be acquired even if the terminal interacts with the terminal.
  • the first shaking data generated by the terminal shaking is acquired after waiting for the first preset time, thereby leaving the user time to prepare to shake the terminal, thereby improving the user experience.
  • the second indication information is received in the chat window; the second interaction data generated by the interaction with the terminal is acquired; and the second is sent to the server. Interacting data; receiving a second resource that is sent by the server in response to the second interaction data.
  • FIG. 4 is a flowchart of another method for acquiring a resource according to an embodiment of the present invention. As shown in Figure 4, the method further includes the following steps:
  • Step S401 receiving second indication information in the chat window.
  • the second indication information is used to indicate a second resource distribution event initiated by the second account, and the second account is an account in the first group.
  • the group chat of this embodiment includes a plurality of accounts. After receiving the first indication information, the 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 the second account.
  • 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 may continue 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, the other account also initiates 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, displaying a theme, a color, and a second of the second resource distribution event on the preset page.
  • the event type of the resource distribution event, and the touch operation can be received for the second indication information.
  • the second resource distribution event initiated by the second account may be displayed by the client corresponding to all the accounts in the first group, thereby improving the participation of the user corresponding to the multiple accounts.
  • the server records the resources to be distributed by the second resource distribution event before receiving the second indication information.
  • the second indication information is received in the chat window during the waiting for the first predetermined time, or may be displayed after the end of the first predetermined time in the countdown manner.
  • the second indication information is received during the interaction with the terminal.
  • Step S402 Acquire second interaction data generated by interaction with the terminal.
  • the second interaction data is associated with the second resource distribution event.
  • the second interaction data generated by the interaction with the terminal is acquired, and the second interaction data generated by the terminal after the preset time is generated, and the second interaction data is acquired.
  • the number of times of shaking obtained after receiving the second indication information, and the second interaction data is associated with the second resource distribution event initiated by the second account, and may be shaken by the terminal indicated by the second interaction data. The number of times the resource in the second resource distribution event is obtained.
  • Step S403 sending second interaction data to the server.
  • the second interaction data is associated with the second resource distribution event.
  • the second interaction data is sent to the server, that is, the client sends the second interaction data to the server.
  • the server records the second resource distribution event and the identifier information of the second account, where the second resource distribution event corresponds to the second account, the server also records the first resource distribution event and the identifier information of the first account, The first resource distribution event corresponds to the first account.
  • Step S404 the second resource that is sent by the server in response to the second interaction data.
  • the receiving server is configured to respond to the second resource that is sent by the second interaction data, where the received second resource is part of a total resource that is required to be distributed by the second resource distribution event or All, and the received second resource increases as the number of times indicated by the second interaction data increases.
  • the server receives the second interaction data and responds to the second interaction data to obtain a second resource that is sent to the client.
  • the second resource is part or all of the total resources that need to be distributed for the second resource distribution event.
  • the received second resource increases as the number of times indicated by the second interaction data increases, that is, the more times the interaction with the terminal is performed, the more the second resource that the server sends to the client, and the more the user increases the amount of work. The experience gained, thereby improving the controllability of resource acquisition.
  • the second interaction data is also associated with the first event distribution resource, that is, the second interaction data and the first event distribution resource and the second The event distribution resources are all associated, and the first resource in the first resource distribution event and the second resource in the second resource distribution event may be acquired by the number of shaking of the terminal indicated by the second interaction data.
  • the received resource is a sum of the first resource and the second resource.
  • the receiving server after receiving the first indication information, in a process of interacting with the terminal, the receiving server sends the resource in response to the interaction data to a resource allocated by the preset number of account-initiated resource distribution events. Part or all resources.
  • the embodiment limits that only a predetermined number of account-initiated resource distribution events may be acquired at the same time, for example, the predetermined number is 4, and the predetermined number of accounts may be the closest to the current time for initiating the resource distribution event.
  • the predetermined number of accounts, the sum of the received resources is the sum of the resources in the resource distribution event initiated by the received predetermined number of accounts, thereby avoiding the client in the case of receiving resources in a large number of resource distribution events, the client The problem of heavy processing tasks between the end and the server.
  • the red envelope A is sent at 9:35, the terminal has started to shake, and the red envelope amount of the received red envelope A has started to increase.
  • the red envelope B is sent at 9:36.
  • the red envelope B automatically initiates a countdown of 3 seconds. After 3 seconds, the amount of the red envelope received in the red envelope B also starts to increase. Then, the total red envelope amount received 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.
  • the embodiment receives the second indication information in the chat window after receiving the first indication information, where the second indication information is used to indicate the second resource distribution event initiated by the second account, and the second account is the first group.
  • a second interaction data generated by the interaction with the terminal the second interaction data is associated with the second resource distribution event; the second interaction data is sent to the server; and the second server sends the second interaction data in response to the second interaction data a resource, the received second resource is part or all of the total resources to be distributed by the second resource distribution event, and the received second resource increases as the number of times indicated by the second interaction data increases, thereby implementing the
  • the terminal interacts with the terminal to receive some or all of the resources that are required to be distributed by the resource distribution event initiated by the multiple accounts, thereby achieving the effect of improving the controllability of resource acquisition and improving the interest of resource acquisition.
  • step S402 acquiring the second interaction data generated by the interaction with the terminal includes: acquiring, after waiting for the second predetermined time, acquiring second interaction data generated by the interaction with the terminal, where The second predetermined time is displayed in the second prompt window popped up in the terminal in a countdown manner.
  • the embodiment After receiving the second indication information, the embodiment receives the touch operation in the chat window, and pops up the second prompt window.
  • the second timing time is obtained, and when the second timing time reaches the second predetermined time, acquiring the second interaction data generated by the interaction with the terminal. That is, when the second timing time does not reach the second predetermined time, the interaction data generated by the interaction with the terminal cannot be acquired even if the terminal interacts with the terminal.
  • the embodiment obtains the second interaction data generated by the interaction with the terminal after waiting for the second preset time, thereby leaving the user with sufficient preparation time to shake the terminal, thereby improving the user experience.
  • step S204 acquiring the first interaction data generated by the interaction with the terminal includes: acquiring, by the gyroscope of the terminal, the number of times the terminal is shaken within a predetermined time period; setting the first interaction data to include shaking The number of times and/or the frequency of shaking, wherein the frequency of shaking is obtained according to the number of shakings and the predetermined time period.
  • the terminal of the embodiment is provided with a gyroscope, and the parameters of the gyroscope include coordinate axis information and acceleration information, and the coordinate information and the acceleration information of the terminal can be obtained by the coordinate axis information and the acceleration information of the gyroscope, wherein the coordinate axis information Includes x-axis, y-axis, and z-axis information.
  • the shaking frequency of the terminal during the shaking can be judged by the magnitude of the acceleration, and the number of shaking of the terminal is counted.
  • the acceleration of the gyroscope will change, the acceleration of the terminal is obtained by the acceleration of the gyroscope, and the shaking frequency of the terminal is obtained according to the acceleration of the terminal.
  • the number of times of interaction with the terminal within a predetermined period of time is obtained by the gyroscope of the terminal.
  • the first shaking data is used to indicate the number of times the terminal is shaken, and the first shaking data may be set to include the number of shaking and/or the frequency of shaking, and the frequency of the shaking may be obtained according to the number of shaking and the predetermined time period.
  • the value of the acceleration of the gyroscope changes from 0 to 100.
  • the terminal shakes once the acceleration data of the gyroscope changes from 100 to 0, and the terminal shakes once, then the terminal is at 1
  • the number of shakings in one second is 1 and the frequency of shaking is 2 times/second.
  • the terminal of this embodiment is provided with an energy conversion device, which may be a microphone.
  • the microphone can convert the sound signal into an electrical signal, for example, converting the sound signal into voltage data, current data, etc., which is not limited herein.
  • the sound intensity of the sound signal or the size of the airflow generated by the sound signal can be determined. For example, when the user shouts or blows the microphone, the electrical signal of the microphone changes. The altered electrical signal determines the intensity of the sound emitted by the user or the amount of airflow produced.
  • the resources in the first resource distribution event are obtained by the sound intensity or the airflow size indicated by the data corresponding to the electrical signal.
  • determining the number of times the user shouts or blows the microphone according to the user's voice intensity or the generated airflow size electrical signal thereby obtaining resources in the first resource distribution event according to the number of times the user yells or blows the microphone against the microphone.
  • step S208 when the receiving server is configured to respond to the first resource that is sent by the first interaction data, the first prompt information is displayed in the second prompt window that is popped up in the terminal, where the first prompt information is displayed. Used to prompt the value of the first resource that has been obtained.
  • a second prompt window pops up in the terminal.
  • the first prompt information is displayed in the second prompt window, and the first prompt information may be text information, voice information, icon information, etc., and is used to prompt the value of the first resource that has been received.
  • the receiving server is configured to respond to the first resource and the second resource that are sent by the second interaction data
  • the first resource and the second resource are simultaneously displayed in the first prompt window that is popped up in the terminal, where the second interaction data is displayed. Associated with both the first resource distribution event and the second resource distribution event.
  • the second prompt information is displayed in the second prompt window, where the second prompt information is used to prompt the total resource.
  • the second prompt information may also be displayed in the second prompt window, where the second prompt information is used to prompt the server to record the total resources that have not been distributed yet.
  • the value of the resource is such that the user knows the allocation of the total resources required to be distributed by the current first resource distribution event to determine whether to continue shaking the terminal to acquire resources.
  • the receiving, by the receiving server, the first resource that is sent in response to the first interaction data includes: receiving, in the case that the total resource that needs to be distributed by the first resource distribution event is not distributed, receiving the first resource; In the case that the total resource distribution required for a resource distribution event is distributed, the third prompt information is displayed, wherein the third prompt information is used to prompt the distribution of the total resources required for the first resource distribution event to be distributed.
  • the first interaction data generated by the user shaking the terminal may be acquired at any time, and the first interaction data is sent to the server, and the receiving server responds to the first interaction data.
  • the first resource sent, the value of the received resource continues to increase.
  • the third prompt information is displayed, and the third prompt information may be text information of the bullet layer prompt, for example, the text information that “the resource has been shaken”. It can also be voice information, icon information, vibration information, etc., wherein the vibration information can be a terminal vibration reminder, etc., without any limitation here.
  • step S208 after receiving the first resource sent by the first interaction data, the receiving server selects an event type of the third resource distribution event in the chat window of the first group, and the third resource All or a total of the total resources to be distributed for the third resource distribution event; in the resource acquisition window corresponding to the event type popped up in the terminal, acquiring the total resource required for the third resource distribution event; sending to the server The third resource distributes the total resources required for the event to be distributed, and receives the 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 includes the following steps:
  • Step S501 selecting an event type of the third resource distribution event in the chat window of the first group.
  • the 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 the total resources required to be distributed by the third resource distributing event.
  • the resource 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 the red packet is shaken in the chat window, the red packet may also be redeemed.
  • the event type of the resource is received by the preset button. For example, when the resource distribution event is a red envelope event, the touch operation is received by the preset button as the operation mode of the spell red envelope.
  • the event type of the resource can also be a shaking terminal. For example, when the resource distribution event is a red envelope event, the resource receiving mode is a shaking mode in which the terminal is shaken.
  • the native selector is called, and the event type of the third resource distribution event is selected by the native selector, and the receiving mode of the third resource corresponding to the event type of the third resource distribution event is the terminal Interacting, the third resource is part or all of the total resources that are required to be distributed for the third resource distribution event.
  • the selected event type may be deselected, and other event types may be reselected.
  • Step S502 Acquire a total resource that is required to be distributed by the third resource distribution event.
  • the total resource required for the third resource distribution event is acquired, and the third resource is received in the chat window.
  • the indication information, wherein the third indication information is used to indicate a third resource distribution event.
  • the resource acquisition window may identify the event type by using the text information. For example, the text acquisition window displays text information indicating the event type of the third resource as the event type of the shaking terminal. After the event type of the third resource distribution event is selected in the chat window of the first group, the total resource to be distributed by the third resource distribution event is obtained in the resource acquisition window corresponding to the event type that is popped up in the terminal. Set the value of the total resource in the resource acquisition window.
  • Step S503 the total resource required for the third resource distribution event is sent to the server, and the third indication information is received in the chat window.
  • the third indication information is used to indicate the third resource distribution event.
  • the third indication information is displayed in the chat window.
  • the embodiment selects an event type of the third resource distribution event in the chat window of the first group after the receiving server responds to the first resource sent by the first interaction data, wherein the third resource corresponding to the event type is received
  • the method is to interact with the terminal, where the third resource is part or all of the total resources to be distributed by the third resource distribution event; and the third resource distribution event is obtained in the resource acquisition window corresponding to the event type popped up in the terminal.
  • the total resource to be distributed; the total resource to be distributed by the third resource distribution event is sent to the server, and the third indication information is received in the chat window, thereby achieving the purpose of sending the resource.
  • step S501 in the resource acquisition window corresponding to the event type popped up in the terminal, receiving a type switching instruction; acquiring the fourth resource distribution The total resource to be distributed by the event; the total resource to be distributed by the fourth resource distribution event is sent to the server, and the fourth indication information is received in the chat window, wherein the fourth indication information is used to indicate 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 includes the following steps:
  • Step S601 receiving a type switching instruction.
  • step S601 of the present application in the resource acquisition window corresponding to the event type popped up in the terminal, a type switching instruction is received, wherein the type switching instruction is used to switch the event type, and the switched type is obtained.
  • the type of event in the resource acquisition window corresponding to the event type popped up in the terminal, a type switching instruction is received, wherein the type switching instruction is used to switch the event type, and the switched type is obtained.
  • the type of event is the type of event type.
  • the prompt information “currently a shake red envelope and a normal red envelope” may be displayed on the red envelope page popped up by the terminal.
  • the "shake red envelope” type is a type of shaking data obtained by shaking the terminal to obtain the red envelope amount
  • the ordinary red envelope can be a spell red envelope, for example, the user clicks the "demolition" button on the terminal interaction interface to receive a A random red envelope.
  • the type of the red packet is switched to the ordinary red packet type, thereby implementing the switching of the event type of the resource distribution event.
  • Step S602 Acquire a total resource that needs to be distributed by the fourth resource distribution event.
  • the event type of the fourth resource distribution event is the event type after the handover.
  • the event type of the fourth resource distribution event is a type of the event after the switching, for example, a common red envelope type.
  • Step S603 the total resource required for the fourth resource distribution event is sent to the server, and the fourth indication information is received in the chat window.
  • the fourth indication information is used to indicate the fourth resource distribution event.
  • the fourth indication information is displayed in the chat window.
  • the type switching instruction is received, where the type switching instruction is used to switch the event type to obtain the event type after the switching; and the fourth resource distribution event is obtained.
  • the total resource to be distributed wherein the event type of the fourth resource distribution event is the type of the event after the switch; the total resource to be distributed by the fourth resource distribution event is sent to the server, and the fourth indication information is received in the chat window.
  • the fourth indication information is used to indicate the fourth resource distribution event, thereby implementing the switching of the type of the third resource distribution event, and achieving the purpose of sending the total resource required for the fourth resource distribution event to the server, and improving The effect of controllability of resource acquisition.
  • the resource distribution event is a red envelope event
  • the resource is an example of a red envelope amount.
  • FIG. 7 is a flowchart of another method for acquiring a resource according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
  • step S701 the red envelope page is entered in the chat window of the group.
  • step S702 the type of the red envelope is selected to be a red envelope type.
  • a pop-up type selection prompt window is displayed, and the type prompt window displays the type of the red envelope.
  • the type of the red envelope is a type of a red envelope, a type of a red envelope, and the like. This embodiment can select the type of red envelope to be a red envelope type.
  • Step S703 setting a red envelope amount on the red envelope amount setting page.
  • the red envelope amount setting page is displayed, and the amount of the red envelope input by the user can be received on the red envelope amount setting page.
  • the type of the red envelope can be switched.
  • Step S704 sending a red envelope with the red envelope amount set.
  • the red envelope amount is set on the red envelope amount setting page.
  • Step S705 After waiting for the preset time, acquire the shaking data generated by the shaking operation of the terminal.
  • the red envelope After sending the red envelope with the red envelope amount set, the red envelope is sent to the client corresponding to each account in the group. After waiting for the preset time, the shaking data generated by the shaking operation of the terminal is acquired, and the shaking data is used to indicate the number of times the terminal shakes, and the shaking data is associated with the red envelope event.
  • Step S706 in the process of shaking the terminal, the receiving server responds to the red packet amount sent by the shaking data.
  • the shaking data After acquiring the shaking data generated by the shaking operation of the terminal, the shaking data is sent to the server, and the server responds to the shaking data to obtain the red packet amount, and receives the red packet amount sent by the server.
  • the amount of the red envelope increases as the number of times indicated by the shaking data increases.
  • the type of the red envelope is selected as the type of the red envelope
  • the red packet amount is set on the red packet amount setting page
  • the red envelope with the red envelope amount is sent, after waiting for the preset time.
  • FIG. 8 is a schematic diagram of interaction of a method for acquiring a resource according to an embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
  • step S801 the client sends a red envelope of a red envelope type.
  • the client of this embodiment can be a social-type client, for example, a client of an instant messaging application, and sends a red packet of a red envelope type in a chat window of the group.
  • Step S802 after waiting for the preset time, the client initiates a shaking operation of the terminal.
  • the client corresponding to each account in the group can receive the indication of the red packet. After waiting for the preset time, the client corresponding to each account in the group can initiate the shaking operation of the terminal to generate shaking data.
  • Step S803 the gyroscope of the terminal calculates the shaking frequency of the terminal, and transmits the number of shaking of the terminal determined according to the terminal frequency to the server.
  • the gyroscope of the terminal calculates the shaking frequency of the terminal, and calculates the number of shaking of the terminal in the preset time period by the shaking frequency, and sends the shaking number to the server.
  • step S804 the server sends part or all of the amount in the red envelope to the client in response to the number of shaking.
  • the server After receiving the number of shakes, the server responds to the number of shakes, obtains the amount in the red envelope sent to the client, and sends it to the client corresponding to the number of shakes.
  • the client stops acquiring the amount in the red envelope.
  • the client sends a red packet of the red packet type.
  • the client initiates a shaking operation of the terminal, and the gyroscope of the terminal calculates the shaking frequency of the terminal, and sends the terminal to the server according to the terminal frequency.
  • the server responds to the number of shaking, and sends some or all of the amount in the red envelope to the client, thereby achieving the technical effect of improving the controllability of resource acquisition, thereby solving the controllability of resource acquisition in the group interaction of the related technology. Low technical issues.
  • the application environment of the embodiment of the present invention may be, but is not limited to, the reference to the application environment in the foregoing embodiment, which is not described in this embodiment.
  • An embodiment of the present invention provides an optional specific application for implementing the foregoing method for acquiring resources.
  • This embodiment is specifically illustrated by an application scenario in which the resource distribution event is a red envelope event and the resource is a red envelope amount.
  • This embodiment can be used in a social category of products that have the ability 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 present invention.
  • the "red envelope" entry identifier is selected, and the red envelope event is triggered by the "red envelope” entry identifier, and a red packet type selection window is popped up.
  • the red packet type includes a "selling red envelope” type and a "shake red envelope” type, wherein the receiving amount of the red packet amount corresponding to the "shaking red envelope” type is a shaking terminal, and the terminal may be a mobile terminal, such as
  • the terminal is a terminal device such as a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, and the like.
  • red envelope types correspond to different selection buttons
  • the native selector is adjusted, and the corresponding red envelope type is selected by the selection button.
  • the red envelope type selects the “shake red envelope” type, and the “snap red envelope” type can be cancelled by the “cancel” button.
  • FIG. 10 is a schematic diagram of a red envelope page according to an embodiment of the invention.
  • the red envelope page is entered, and the total amount of the red envelope can be set on the red envelope page, for example, the amount “100 yuan” is filled in.
  • the shake red envelope is not limited to a number, not limited to the amount.
  • the type of the red envelope can be switched. For example, the touch operation is received through the area corresponding to “currently shaking the red envelope and changing to the ordinary red envelope”, and the current “shake red envelope” type is switched to the ordinary red envelope, which can be obtained. Switch the red envelope type before the red envelope amount, or switch the red envelope type after obtaining the red envelope amount.
  • the set red packet amount is sent to the server. For example, the touch operation is received through the area corresponding to “cash money into the red envelope”, and after the payment is completed, the red envelope amount is sent to the server.
  • FIG. 11 is a schematic diagram of an interface for receiving a red envelope according to an embodiment of the present invention.
  • the chat window of the client corresponding to each account of the group receives the indication information, where the indication information is used to indicate the red envelope initiated by the first account, that is, when the first
  • an interface for receiving the red envelope is displayed, and the interface for receiving the red envelope displays the theme of the red envelope sent by the first account, for example, the theme of the red envelope is “afternoon” Tea time, everyone", shows information indicating the type of red envelope, for example, "receive red envelope shake".
  • a touch operation on the indication information is detected, for example, a click operation on the red tea bag of "afternoon tea time, everyone"; in response to the touch operation, a first prompt window pops up in the terminal, wherein, In a prompt window, the nickname corresponding to the account that issued the red envelope is displayed.
  • the theme of the red envelope is “afternoon tea time, everyone tries to shake”, showing the type of red envelope, and the receiving method of the red envelope corresponding to the red envelope type.
  • the first prompt window displays that the type of the red envelope is “shake red envelope”, and the red envelope reception mode corresponding to the “shake red envelope” type is a shaking terminal.
  • FIG. 12 is a schematic diagram of obtaining shaking data generated by shaking of a terminal according to an embodiment of the present invention.
  • the shaking data generated by the terminal shaking is acquired, and the predetermined time is displayed in a countdown manner and popped up in the terminal.
  • the first prompt window For example, a 3 second countdown "03" appears in the first prompt window.
  • the terminal can initiate a shake motion to obtain the shaking data of the terminal during the shaking process.
  • the front end may acquire parameters of the gyroscope of the terminal, such as acquiring x-axis, y-axis, z-axis information, and acceleration of the gyroscope.
  • the frequency of the terminal shaking can be determined by the magnitude of the acceleration, thereby counting the number of times the terminal is shaken. For example, if the terminal is slammed from standstill to force, the acceleration of the gyroscope will change, and the terminal will shake once. For example, the value 0 of the acceleration of the gyroscope becomes 100. At this time, the terminal is shaken once, and the acceleration value of the gyroscope is changed from 100 to 0, and then the terminal is shaken once.
  • the acceleration frequency of the gyroscope is used to calculate the shaking frequency of the terminal, and the number of times the terminal is shaken is obtained, and the number of times the terminal is shaken is transmitted to the server.
  • the server responds to the number of shaking of the terminal to send a red envelope amount to the client corresponding to the number of shakings.
  • the received red envelope amount increases according to a preset base number as the number of shakes increases.
  • the base of the amount of increase is calculated based on the total amount of the red envelope.
  • the base of the increase in the amount of the red envelope is 0.01.
  • the base of the red envelope amount is increased by 0.1.
  • FIG. 13 is a schematic diagram of prompt information for displaying a red envelope amount according to an embodiment of the present invention.
  • the user can initiate the shaking operation of the terminal at any time, and the received red envelope amount continues to increase as the number of shaking increases.
  • the amount of the currently received red envelope is displayed in the second prompt window. For example, “You have tried to shake to: 10.90 yuan”, you can also display the amount of red packets that have not been distributed in the current total red envelope amount, for example, display "red envelope existing balance: 70.10 yuan”.
  • the vibration alert of the terminal is initiated, and the bullet layer prompt information appears, and the prompt information is used to prompt the total red envelope.
  • the amount has been distributed, for example, "The red envelope has been shaken.”
  • the user can view the amount of red packets received by other accounts during the current total red envelope amount distribution process. For example, receiving touch operations through the area corresponding to “look at everyone's hand” to display the amount of red packets received by other accounts.
  • FIG. 14 is a schematic diagram of receiving a red envelope amount in a red envelope initiated by multiple account numbers according to an embodiment of the present invention. As shown in Figure 14. If there are multiple red packets of the "shake red envelope" type in the group at the same time, when the user is shaking the mobile phone, after receiving the indication information of each red envelope, after the time of receiving each red envelope is counted down for 3 seconds The amount of the red envelope initiated by the multiple accounts can be received.
  • the limitation of the embodiment can only shake the red packets initiated by the four accounts at the same time, and the total amount of the received red packets is the red envelopes initiated by the received accounts.
  • the amount of red packets received by each account is 5.20, 2.90, 2.10, 0.70, and the total amount of red envelopes received is 5.20+2.90. +2.10+0.70, that is, 10.09 yuan.
  • red packet amount in the red envelope A received by the second account has begun to increase.
  • the third account initiates red envelope C at 9:36.
  • red envelope C automatically initiates a countdown of 3 seconds
  • the second account receives the amount in red envelope C
  • the second account can still receive red envelope A.
  • the total amount shaken by the second account is the amount in the received red envelope A + the amount received in the red envelope C.
  • the user can choose to abandon the operation of shaking the terminal at any time, and after stopping the shaking of the terminal, the amount of the red envelope received by the account corresponding to the user stops increasing.
  • the account with the red envelope is displayed on the interface of the terminal.
  • the corresponding preset button can receive the red envelope amount initiated by the account of the red envelope by shaking the terminal, wherein, for the pre-emption of not receiving the touch operation If the account corresponding to the red envelope is set, the amount of the red envelope that it initiates cannot be received.
  • the embodiment limits that only a preset number of account-initiated red packets can be shaken at the same time, for example, a red envelope initiated by four accounts with a redemption time is received, and the total amount of the received red packets is received.
  • the sum of the amounts in the red packets initiated by the respective accounts corresponding to the preset buttons of the operation, for example, in the process of shaking the terminal, the received amounts in the red packets initiated by the respective accounts are: 5.20, 2.90, 2.10, 0.70, respectively.
  • the total amount of red envelopes received is: 5.20+2.90+2.10+0.70, that is, 10.09 yuan, which avoids the problem of heavy processing tasks between the client and the server when the client receives a large number of red packets, for example,
  • the client sends the shaking data of the terminal to the server, and the red packet initiated by the multiple accounts sent by the server in response to the shaking data of the terminal causes the task of processing the red packet between the client and the server to be heavy, thereby causing a problem of service crash.
  • This embodiment solves the problem that the existing red envelope lacks interest, solves the problem that the red envelope amount is not random, and achieves the effect that the user can obtain more money through his own efforts.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/R first sub-target push).
  • the data M, the disk, and the optical disk include a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in the various embodiments of the present invention.
  • the device for acquiring the resource of the resource includes one or more processors, and one or more memories storing the program unit, wherein the program unit is executed by the processor, and the program unit may include: a first receiving unit, An acquisition unit, a first transmission unit, and a second reception unit.
  • FIG. 15 is a schematic diagram of a resource acquiring apparatus according to an embodiment of the present invention.
  • the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first transmitting unit 30, and a second receiving unit 40.
  • the first receiving unit 10 is configured to receive the first indication information in the chat window of the first group, where the first indication information is used to indicate the first resource distribution event initiated by the first account, where the first account is The account number in a group.
  • the first obtaining unit 20 is configured to acquire the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate interaction with the terminal. The number of times, the first interaction data is associated with the first resource distribution event.
  • the first sending unit 30 is configured to send the first interaction data to the server.
  • the second receiving unit 40 is configured to receive, by the server, a first resource that is sent in response to the first interaction data, where the received first resource is part or all of a total resource that is required to be distributed by the first resource distribution event, and When the received first resource is a part of the total resources to be distributed by the first resource distribution event, the received first resource increases as the number of times indicated by the first interaction data increases.
  • first receiving unit 10, the first obtaining unit 20, the first sending unit 30, and the second receiving unit 40 may be run in the terminal as part of the device, and may be executed by a processor in the terminal.
  • the functions implemented by the above units may also be terminal devices such as smart phones (such as Android phones, iOS phones, etc.), tablets, PDAs, and mobile Internet devices (MID), PAD, and the like.
  • FIG. 16 is a schematic diagram of another resource acquiring apparatus according to an embodiment of the present invention.
  • the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first transmitting unit 30, and a second receiving unit 40.
  • the device further includes: a detecting unit 50 and a response unit 60, wherein the first obtaining unit 20 includes: a first acquiring module 21.
  • first receiving unit 10, the first obtaining unit 20, the first sending unit 30, and the second receiving unit 40 of this embodiment have the same functions as those of the resource acquiring apparatus of the embodiment shown in FIG. Do not repeat it.
  • 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: in response to the touch operation, pop up the first prompt window in the terminal, wherein the first prompt window displays the event type of the first resource distribution event, and the first resource corresponding to the event type To interact with the terminal.
  • the first obtaining module 21 is configured to acquire first interaction data generated by interacting with the terminal after the first prompt window is popped up in the terminal.
  • the foregoing detecting unit 50, the response unit 60, and the first obtaining module 21 may be operated in the terminal as a part of the device, and the functions implemented by the above unit and the module may be performed by a processor in the terminal.
  • FIG. 17 is a schematic diagram of another resource acquiring apparatus according to an embodiment of the present invention.
  • the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first transmitting unit 30, a second receiving unit 40, a detecting unit 50, and a response unit 60, wherein the first acquiring unit 20
  • the first acquisition module 21 is included.
  • the first obtaining unit 20 may further include: a second obtaining module 22.
  • 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 response unit 60 of the embodiment, the first acquiring module 21 and FIG. 16
  • the functions in the acquiring device of the resource of the embodiment are the same, and are not described herein.
  • the second obtaining module 22 is configured to acquire first interaction data generated by interaction with the terminal after waiting for the first predetermined time, wherein the first predetermined time is displayed in the first prompt window in a countdown manner.
  • the foregoing second obtaining module 22 may be operated in the terminal as a part of the device, and the functions implemented by the foregoing modules may be performed by a processor in the terminal.
  • FIG. 18 is a schematic diagram of another resource acquisition apparatus according to an embodiment of the present invention.
  • the apparatus may include: a first receiving unit 10, a first obtaining unit 20, a first transmitting 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 transmitting unit 90, and a fourth receiving unit 100.
  • first receiving unit 10, the first obtaining unit 20, the first sending unit 30, and the second receiving unit 40 of this embodiment have the same functions as those of the resource acquiring apparatus of the embodiment shown in FIG. Do not repeat it.
  • the third receiving unit 70 is configured to: after receiving the first indication information, receive the second indication information in the chat window, where the second indication information is used to indicate the second resource distribution event initiated by the second account, and the second The account number is the account number in the first group.
  • the second obtaining unit 80 is configured to acquire second interaction data generated by interacting with the terminal, where the second interaction data is associated with the second resource distribution event.
  • the second sending unit 90 is configured to send second interaction data to the server.
  • the fourth receiving unit 100 is configured to receive, by the server, a second resource that is sent in response to the second interaction data, where the received second resource is part or all of the total resources that are required to be distributed by the second resource distribution event, and is received.
  • the second resource that arrives increases as the number of times indicated by the second interaction data increases.
  • third receiving unit, second obtaining unit, second sending unit and fourth receiving unit may be operated in the terminal as part of the device, and may be implemented by the processor in the terminal.
  • the second obtaining unit 80 may include: a third acquiring module, configured to acquire, after waiting for a second predetermined time, second interaction data generated by interacting with the terminal, where the second predetermined time is in a countdown manner Displayed in the second prompt window popped up in the terminal.
  • the foregoing third obtaining module may be operated in the terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the terminal.
  • the first obtaining unit 20 may include: a fourth acquiring module and a setting module.
  • the fourth obtaining module is configured to acquire, by using a gyroscope of the terminal, the number of times of terminal shaking in a predetermined time period; and a setting module, configured to set the first interaction data to include a number of shaking and/or a shaking frequency, wherein the shaking The frequency is obtained according to the number of shakings and the predetermined time period.
  • the fourth acquiring module and the setting module may be operated in the terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the terminal.
  • the device may further include: a first display unit, configured to display the first prompt information in the second prompt window popped up in the terminal when the receiving server responds to the first resource sent by the first interaction data, where The first prompt information is used to prompt the value of the first resource that has been obtained currently.
  • a first display unit configured to display the first prompt information in the second prompt window popped up in the terminal when the receiving server responds to the first resource sent by the first interaction data, where The first prompt information is used to prompt the value of the first resource that has been obtained currently.
  • the first display unit may be operated in the terminal as part of the device, and the functions implemented by the above unit may be performed by a processor in the terminal.
  • the device may further include a second display unit, configured to display the second prompt information in the second prompt window when the first prompt information is displayed in the second prompt window popped up in the terminal, where the second prompt The information is used to indicate the value of the resource that has not been distributed in the total resource.
  • a second display unit configured to display the second prompt information in the second prompt window when the first prompt information is displayed in the second prompt window popped up in the terminal, where the second prompt The information is used to indicate the value of the resource that has not been distributed in the total resource.
  • the foregoing second display unit may be operated in the terminal as part of the device, and the functions implemented by the above unit may be performed by a processor in the terminal.
  • the second receiving unit 40 includes: a receiving module and a display module.
  • the receiving module is configured to receive the first resource if the total resource required for the first resource distribution event is not distributed, and the display module is configured to distribute the total resource required for the first resource distribution event
  • the third prompt information is used to prompt the distribution of the total resources required for the first resource distribution event to be distributed.
  • the foregoing receiving module and the display module may be operated in the terminal as part of the device, and the functions implemented by the above module may be performed by a processor in the terminal.
  • the apparatus may further include: a selecting unit, a third obtaining unit, and a third sending unit.
  • the selecting unit is configured to select an event type of the third resource distribution event in the chat window of the first group after the receiving server responds to the first resource sent by the first interaction data, where the event type corresponds to the third
  • the receiving mode of the resource is to interact with the terminal, the third resource is part or all of the total resources to be distributed by the third resource distribution event, and the third acquiring unit is configured to pop up the resource corresponding to the event type in the terminal.
  • the obtaining window the total resource required for the third resource distribution event is obtained;
  • the third sending unit is configured to send the total resource required for the third resource distribution event to the server, and receive the third indication information in the chat window.
  • the third indication information is used to indicate a third resource distribution event.
  • the above-mentioned selection unit, the third acquisition unit and the third transmission unit may operate in the terminal as part of the device, and the functions implemented by the above-mentioned units may be performed by a processor in the terminal.
  • the apparatus may further include: a fifth receiving unit, a fourth acquiring unit, and a fourth sending unit.
  • the fifth receiving unit is configured to: after selecting an event type of the third resource distribution event, receive a type switching instruction in a resource acquisition window corresponding to the event type that is popped up in the terminal, where the type switching instruction is used to The event type is switched to obtain the type of the event after the switching; the fourth acquiring unit is configured to obtain the total resource to be distributed by the fourth resource distribution event, where the event type of the fourth resource distribution event is the event type after the switching;
  • a fourth sending unit configured to send, to the server, the total resource that is required to be distributed by the fourth resource distribution event, and receive the fourth indication information in the chat window, where the fourth indication information is used to indicate the fourth resource distribution event.
  • the fifth receiving unit, the fourth obtaining unit and the fourth sending unit may operate in the terminal as part of the device, and the functions implemented by the above unit may be performed by a processor in the terminal.
  • first receiving unit 10 in this embodiment may be used to perform step S202 in the embodiment of the present application.
  • the first obtaining unit 20 in this embodiment may be used to perform step S204 in the embodiment of the present application.
  • the first sending unit 30 in this embodiment may be used to perform step S206 in the embodiment of the present application.
  • the second receiving unit 40 in this embodiment may be used to perform step S208 in the embodiment of the present application.
  • the first receiving unit 10 receives the first indication information in the chat window of the first group, where the first indication information is used to indicate the first resource distribution event initiated by the first account, and the first account is the first account.
  • the first interaction unit 20 obtains the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate The number of times the terminal performs the interaction, the first interaction data is associated with the first resource distribution event, the first interaction unit 30 sends the first interaction data to the server, and the second receiving unit 40 receives the first response data sent by the server in response to the first interaction data.
  • the received first resource is part or all of a total resource to be distributed by the first resource distribution event, and the received first resource is a total resource to be distributed for the first resource distribution event.
  • the portion of the received first resource increases as the number of times indicated by the first interaction data increases, since the receiving server responds to the terminal Part or all of the total resources to be distributed by the first resource distribution event sent by the generated first interaction data, and 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 interaction data increases, and the number of times indicated by the first interaction data is controllable, thereby implementing a technical effect of improving controllability of resource acquisition, thereby solving The technical problem that the related technology has low controllability of resource acquisition in group interaction.
  • the above-mentioned units and modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above embodiments. It should be noted that the foregoing module may be implemented in a hardware environment as shown in FIG. 1 as part of the device, and may be implemented by software or by hardware, where the hardware environment includes a network environment.
  • a server or a terminal for implementing the foregoing method for acquiring a resource is further provided.
  • the terminal may include one or more (only one shown in the figure) processor 191, memory 193, and transmission device 195. As shown in FIG. 19, the terminal may further include an input and output device 197.
  • the memory 193 can be used to store a computer program and a module, such as a resource acquisition method and a program instruction/module corresponding to the device in the embodiment of the present invention, and the processor 191 is configured to run the software program and the module stored in the memory 193. , thereby performing various functional applications and data processing, that is, implementing the above-described resource acquisition method.
  • Memory 193 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 193 can further include memory remotely located relative to processor 191, which can be connected to the terminal over 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 described above is for receiving or transmitting data via a network, and can also be used for data transmission between the processor and the memory. Specific examples of the above network may include a wired network and a wireless network.
  • the transmission device 195 includes a Network Interface Controller (NIC) that can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network.
  • the transmission device 195 is a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the memory 193 is optionally used to store an application.
  • the processor 191 can call the application stored in the memory 193 through the transmission device 195 to perform the following steps:
  • the first indication information is used to indicate a first resource distribution event initiated by the first account, and the first account is an account in the first group;
  • the terminal Acquiring the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, the first interaction data and the first Resource distribution events are associated;
  • the received first resource increases as the number of times indicated by the first interaction data increases.
  • the processor 191 is further configured to: after receiving the first indication information, detecting a touch operation on the first indication information in the chat window; in response to the touch operation, popping up the first prompt window in the terminal
  • the first prompt window displays the event type of the first resource distribution event, and the first resource corresponding to the event type is received by the terminal; after the first prompt window is popped up in the terminal, acquiring the interaction with the terminal The first interaction data generated.
  • the processor 191 is further configured to: after waiting for the first predetermined time, acquire first interaction data generated by interacting with the terminal, wherein the first predetermined time is displayed in the first prompt window in a countdown manner.
  • the processor 191 is further configured to: after receiving the first indication information, receive the second indication information in the chat window, where the second indication information is used to indicate the second resource distribution event initiated by the second account
  • the second account is an account in the first group; acquiring second interaction data generated by interacting with the terminal, where the second interaction data is associated with the second resource distribution event; sending the second interaction data to the server; receiving The second resource sent by the server in response to the second interaction data, wherein the received second resource is part or all of the total resources required to be distributed by the second resource distribution event, and the second resource received is the second resource
  • the received second resource increases as the number of times indicated by the second interaction data increases.
  • the processor 191 is further configured to: after waiting for a second predetermined time, acquiring second interaction data generated by interaction with the terminal, wherein the second predetermined time displays the second pop-up in the terminal in a countdown manner In the prompt window.
  • the processor 191 is further configured to: acquire a number of times of terminal shaking in a predetermined time period by using a gyroscope of the terminal; set the first interaction data to include a number of shaking and/or a frequency of shaking, wherein the frequency of the shaking is according to The number of shakings and the predetermined time period are obtained.
  • the processor 191 is further configured to: when the receiving server is configured to respond to the first resource sent by the first interaction data, display the first prompt information in the second prompt window popped up in the terminal, where the first prompt information is used by The value of the first resource that has been obtained is prompted.
  • the processor 191 is further configured to: when the first prompt information is displayed in the 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 the total The value of a resource that has not been distributed in the resource.
  • the processor 191 is further configured to: receive the first resource if the total resource required to be distributed by the first resource distribution event is not distributed; and distribute the total resource that needs to be distributed in the first resource distribution event In the case, the third prompt information is displayed, wherein the third prompt information is used to prompt the distribution of the total resources required for the first resource distribution event to be completed.
  • the processor 191 is further configured to: perform, after the receiving server responds to the first resource sent by the first interaction data, select an event type of the third resource distribution event in the chat window of the first group, where the event type The receiving mode of the corresponding third resource is to interact with the terminal, and the third resource is part or all of the total resources to be distributed by the third resource distribution event; and the resource acquiring window corresponding to the event type popped up in the terminal Obtaining a total resource that is required to be distributed by the third resource distribution event; sending the total resource required for the third resource distribution event to the server, and receiving the third indication information in the chat window, where the third indication information is used to indicate The third resource distribution event.
  • the processor 191 is further configured to: after selecting an event type of the third resource distribution event, receive a type switching instruction in the resource acquisition window corresponding to the event type popped up in the terminal, where the type switching instruction is used The event type is switched to obtain the type of the event after the switch; the total resource to be distributed by the fourth resource distribution event is acquired, wherein the event type of the fourth resource distribution event is the event type after the switch; and the fourth resource is sent to the server.
  • the total resource to be distributed is distributed, and the fourth indication information is received in the chat window, where the fourth indication information is used to indicate the fourth resource distribution event.
  • An embodiment of the present invention provides a resource acquisition solution.
  • the 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 the first account, and the first account is an account in the first group; a first interactive data generated by the terminal, wherein the terminal is configured to display a chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, the first interaction data and the first resource distribution Corresponding to the event; receiving, by the server, the first resource sent in response to the first interaction data, wherein the received first resource is part or all of the total resources required to be distributed by the first resource distribution event, and the received When a resource distributes a portion of the total resources to be distributed for the first resource distribution event, the received first resource increases as the number of times indicated by the first interaction data increases.
  • 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 interaction data generated by the interaction with the terminal, and the received first resource is the first resource distribution event
  • the received first resource increases as the number of times indicated by the first interaction data increases, and the number of times indicated by the first interaction data is controllable, thereby improving resource acquisition.
  • the technical effect of controllability further solves the technical problem that the related technology has low controllability of resource acquisition in group interaction.
  • the structure shown in FIG. 19 is merely illustrative, and the electronic device can be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (MID). Terminal equipment such as PAD.
  • Fig. 19 does not limit the structure of the above electronic device.
  • the electronic device may also include more or fewer components (such as a network interface, display device, etc.) as shown in FIG. 19, or have a different configuration than that shown in FIG.
  • Embodiments of the present invention also provide a storage medium.
  • a computer program is stored in the foregoing storage medium, wherein the computer program is set to be a method for acquiring a resource when the runtime is executed.
  • the foregoing storage medium may be located on at least one of the plurality of network devices in the network shown in the foregoing embodiment.
  • the storage medium is arranged to store program code for performing the following steps:
  • the first indication information is used to indicate a first resource distribution event initiated by the first account, and the first account is an account in the first group;
  • the terminal Acquiring the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, the first interaction data and the first Resource distribution events are associated;
  • the received first resource increases as the number of times indicated by the first interaction data increases.
  • the storage medium is further configured to store program code for performing the following steps: after receiving the first indication information, detecting a touch operation on the first indication information in the chat window; responding to the touch operation
  • the first prompt window is displayed in the terminal, where the first prompt window displays the event type of the first resource distribution event, and the first resource corresponding to the event type is received by the terminal; After the prompt window, the first interaction data generated by interacting with the terminal is obtained.
  • the storage medium is further configured to store program code for performing the following steps: after waiting for the first predetermined time, acquiring first interaction data generated by interaction with the terminal, wherein the first predetermined time is counted down The mode is displayed in the first prompt window.
  • the storage medium is further configured to store program code for performing the following steps: after receiving the first indication information, receiving second indication information in the chat window, wherein the second indication information is used to indicate a second resource distribution event initiated by the second account, the second account is an account in the first group, and the second interaction data generated by the interaction with the terminal is obtained, where the second interaction data is associated with the second resource distribution event; Transmitting, to the server, second interaction data; receiving, by the server, a second resource that is sent in response to the second interaction data, where the received second resource is part or all of a total resource that is required to be distributed by the second resource distribution event, and When the received second resource is a part of the total resources to be distributed by the second resource distribution event, the received second resource increases as the number of times indicated by the second interaction data increases.
  • the storage medium is further configured to store program code for performing the following steps: after waiting for a second predetermined time, acquiring second interaction data generated by interaction with the terminal, wherein the second predetermined time is counted down The mode is displayed in the second prompt window popped up in the terminal.
  • the storage medium is further configured to store program code for performing: obtaining, by the gyroscope of the terminal, the number of times the terminal is shaken within a predetermined period of time; setting the first interaction data to include the number of shakings and/or shaking The frequency, in which the frequency of shaking is obtained according to the number of shakings and the predetermined time period.
  • the storage medium is further configured to store program code for performing the following steps: displaying the first prompt in the second prompt window popped up in the terminal when the receiving server responds to the first resource sent by the first interaction data The information, where the first prompt information is used to prompt the value of the first resource that has been acquired.
  • the storage medium is further configured to store program code for performing the following steps: displaying the second prompt information in the second prompt window when the first prompt information is displayed in the second prompt window popped up in the terminal, wherein the second prompt information is displayed in the second prompt window, where The second prompt information is used to prompt the value of the resource that has not been distributed in the total resource.
  • the storage medium is further configured to store program code for performing the steps of: receiving the first resource if the total resource required for the first resource distribution event is not distributed; and transmitting the first resource at the first resource distribution event
  • the third prompt information is displayed, wherein the third prompt information is used to prompt the distribution of the total resources required for the first resource distribution event to be distributed.
  • the storage medium is further configured to store program code for performing the following steps: selecting the third resource distribution in the chat window of the first group after the receiving server responds to the first resource sent by the first interaction data
  • the event type of the event wherein the third resource corresponding to the event type is received by the terminal, and the third resource is part or all of the total resources required to be distributed by the third resource distribution event;
  • the resource acquisition window corresponding to the event type acquires the total resource required for the third resource distribution event to be distributed; sends the total resource required for the third resource distribution event to the server, and receives the third indication information in the chat window,
  • the third indication information is used to indicate a third resource distribution event.
  • the storage medium is further configured to store program code for performing the following steps: after selecting the event type of the third resource distribution event, in the resource acquisition window corresponding to the event type popped up in the terminal, the receiving type a switching instruction, where the type switching instruction is used to switch the event type to obtain the type of the event after the switching; and the total resource to be distributed by the fourth resource distribution event is acquired, wherein the event type of the fourth resource distribution event is the switched The event type; the total resource to be distributed by the fourth resource distribution event is sent to the server, and the fourth indication information is received in the chat window, wherein the fourth indication information is used to indicate the fourth resource distribution event.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, and a magnetic
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk a magnetic
  • magnetic A variety of media that can store program code, such as a disc or a disc.
  • the integrated unit in the above embodiment if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in the above-described computer readable storage medium.
  • the technical solution of the present invention may be embodied in the form of a software product in the form of a software product, or the whole or part of the technical solution, which is stored in a storage medium, including
  • the instructions are used to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the disclosed client may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the first indication information is received in the chat window of the first group, where the first indication information is used to indicate the first resource distribution event initiated by the first account, and the first account is the first group.
  • An account in the group obtaining the first interaction data generated by the interaction with the terminal, where the terminal is configured to display the chat window under the instruction of the preset instruction, where the first interaction data is used to indicate the number of interactions with the terminal, first The interaction data is associated with the first resource distribution event; the first interaction data is sent to the server; the first resource sent by the server in response to the first interaction data, wherein the received first resource is required to be distributed for the first resource distribution event Part or all of the total resources, and when the received first resource is a part of the total resources 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 And increase.
  • the number of times indicated by the first interaction data is controllable, thereby achieving the technical effect of improving the controllability of resource acquisition, thereby solving the related technology in the group interaction. , technical problems with low controllability of resource acquisition.

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

一种资源的获取方法及装置、存储介质以及电子装置。该方法包括:在第一群组的聊天窗口中接收到第一指示信息(S202),第一指示信息用于指示第一账号发起的第一资源分发事件;获取与终端进行交互所产生的第一交互数据(S204),第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;向服务器发送第一交互数据(S206);接收服务器响应于第一交互数据发送的第一资源(S208),接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且为第一资源分发事件所需分发的总资源的部分的第一资源随着第一交互数据指示的次数增加而增加。该方法解决了相关技术在群组交互中,资源获取的可控性低的技术问题。

Description

资源的获取方法及装置、存储介质以及电子装置
本申请要求于2017年04月10日提交中国专利局、优先权号为2017102289698、发明名称为“资源的获取方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及计算机领域,具体而言,涉及一种资源的获取方法及装置、存储介质以及电子装置。
背景技术
目前,在群组交互中,可以进行资源的获取,但是资源的获取通常是随机的、不可控的。
终端可以用于实现群组交互中的资源获取,可以通过终端界面上的预设按钮接收指令,以获取资源。但是群组中的帐号获取到的资源的随机性和不确定性很大,其中一个帐号有时获取到的资源可能比较少,有时获取到的资源可能比较多,因而资源获取的可控性低,从而降低了用户体验。
针对上述在在群组交互中,资源获取的可控性低的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种资源的获取方法及装置、存储介质以及电子装置,以至少解决相关技术在群组交互中,资源获取的可控性低的技术问题。
根据本发明实施例的一个方面,提供了一种资源的获取方法。该资源的获取方法包括:在第一群组的聊天窗口中接收到第一指示信息,其中, 第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;向服务器发送第一交互数据;接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。
根据本发明实施例的另一方面,还提供了一种资源的获取装置包括一个或多个处理器,以及一个或多个存储程序单元的存储器,其中,程序单元由处理器执行,该程序单元包括:第一接收单元,被设置为在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;第一获取单元,被设置为获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;第一发送单元,被设置为向服务器发送第一交互数据;第二接收单元,被设置为接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。
根据本发明实施例的另一方面,还提供了一种存储介质。该存储介质中存储有计算机程序,计算机程序被设置为运行时执行本发明实施例中的方法。
根据本发明实施例的另一方面,还提供了一种电子装置。该电子装置包括存储器和处理器,其中,存储器中存储有计算机程序,处理器被设置为通过计算机程序执行本发明实施例中的方法。
在本发明实施例中,在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;向服务器发送第一交互数据;接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。由于接收服务器响应于与终端进行交互所产生的第一交互数据而发送的第一资源分发事件所需分发的总资源中的部分或全部,且接收到的为总资源中的部分的第一资源随着第一交互数据指示的次数增加而增加,而第一交互数据指示的次数是可控的,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。
附图说明
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的一种资源的获取方法的硬件环境的示意图;
图2是根据本发明实施例的一种资源的获取方法的流程图;
图3是根据本发明实施例的另一种资源的获取方法的流程图;
图4是根据本发明实施例的另一种资源的获取方法的流程图;
图5是根据本发明实施例的一种资源的发送方法的流程图;
图6是根据本发明实施例的另一种资源的发送方法的流程图;
图7是根据本发明实施例的另一种资源的获取方法的流程图;
图8是根据本发明实施例的一种资源的获取方法的交互示意图;
图9是根据本发明实施例的一种在群组的聊天窗口中发起发红包事件的示意图;
图10是根据本发明实施例的一种发红包页面的示意图;
图11是根据本发明实施例的一种接收红包的界面的示意图;
图12是根据本发明实施例的一种获取与终端进行交互所产生的交互数据的示意图;
图13是根据本发明实施例的一种显示红包金额的提示信息的示意图;
图14是根据本发明实施例的一种接收多个帐号发起的红包中的红包金额的示意图;
图15是根据本发明实施例的一种资源的获取装置的示意图;
图16是根据本发明实施例的另一种资源的获取装置的示意图;
图17是根据本发明实施例的另一种资源的获取装置的示意图;
图18是根据本发明实施例的另一种资源的获取装置的示意图;以及
图19是根据本发明实施例的一种电子装置的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语 “第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本发明实施例的一个方面,提供了一种资源的获取方法的实施例。
可选地,在本实施例中,上述资源的获取方法可以应用于如图1所示的由服务器102和终端104所构成的硬件环境中。图1是根据本发明实施例的一种资源的获取方法的硬件环境的示意图。如图1所示,服务器102通过网络与终端104进行连接,上述网络包括但不限于:广域网、城域网或局域网,终端104并不限定于PC、手机、平板电脑等。本发明实施例的资源的获取方法可以由服务器102来执行,也可以由终端104来执行,还可以是由服务器102和终端104共同执行。其中,终端104执行本发明实施例的资源的获取方法也可以是由安装在其上的客户端来执行。
图2是根据本发明实施例的一种资源的获取方法的流程图。如图2所示,该方法可以包括以下步骤:
步骤S202,在第一群组的聊天窗口中接收到第一指示信息。
在本申请上述步骤S202提供的技术方案中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号。
在该实施例中,第一群组的聊天窗口为用于多个帐号进行事件交互的交互窗口,可以为即时通讯应用上的多个帐号进行聊天的聊天窗口,通过该聊天窗口既可以发送消息,也可以接收消息,比如,该消息为聊天消息,该聊天消息包括发送的资源,也可以包括接收到的资源。其中,资源可以为与现金等价的虚拟资源,比如,用户通过即时通讯应用或者支付软件等 具备第三方支付能力的网络平台所对应的客户端,向其他用户发送具有消费效用的、与传统纸质红包外观相似的电子红包,还可以为代金券、债券、积分、流量、虚拟物品等资源,此处不做限定。
该实施例的第一群组中的帐号都可以发起资源分发事件,该资源分发事件用于分发资源,比如,发红包事件。资源分发事件分发的资源的接收方式可以通过点击客户端的预设按钮接收到,比如,通过点击客户端上显示的红包接收界面上的“开”按钮接收到,该客户端安装在终端上,或者通过摇晃终端产生的摇晃数据得到,比如,用户通过不断摇晃终端来接收红包。
在第一群组的聊天窗口中接收到第一指示信息,也即,客户端在第一群组的聊天窗口中接收到第一指示信息,该第一指示信息用于指示第一帐号发起的第一资源分发事件,可以在聊天窗口中的预设页面进行显示,比如,在预设页面显示第一资源分发事件的主题、颜色,第一资源分发事件的事件类型,针对该第一指示信息可以接收触控操作。可选地,第一帐号发起的第一资源分发事件在第一群组中的每个帐号对应的客户端都可以显示出,从而提高多个帐号对应的用户的参与性。
可选地,在接收到第一指示信息之前,服务器记录第一资源分发事件所需分发的资源。
步骤S204,获取与终端进行交互所产生的第一交互数据。
在本申请上述步骤S204提供的技术方案中,获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,比如,预设指令为用于打开聊天窗口的操作指令,其中包括在终端黑屏之后接收到的用于打开聊天窗口的操作指令等。第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联。
可选地,与终端进行交互包括摇晃终端,终端在摇晃的过程中会产生摇晃数据,其中,第一交互数据包括摇晃数据。可选地,在接收到第一指 示信息之后,获取终端在预设时间之后,在摇晃过程中产生的第一摇晃数据,也即,客户端获取终端在预设时间之后,且在摇晃过程中产生的第一摇晃数据,该第一摇晃数据可以用于指示终端在接收到第一指示信息之后获取到的摇晃次数,并且该第一摇晃数据与第一帐号发起的第一资源分发事件相关联,可以通过第一摇晃数据所指示的终端的摇晃次数获取第一资源分发事件中的资源,终端可以为移动终端,比如,该终端为智能手机(如Android手机、iOS手机等)、平板电脑等终端设备。
可选地,与终端进行交互包括点击终端屏幕的预设位置,在点击终端屏幕的预设位置的过程中会产生点击数据,其中,第一交互数据包括点击数据。可选地,在接收到第一指示信息之后,获取在预设时间之后,在点击终端屏幕的预设位置的过程中产生的第一点击数据,也即,客户端获取终端在预设时间之后,且在点击终端屏幕的预设位置的过程中产生的第一点击数据,该第一点击数据可以用于指示终端在接收到第一指示信息之后的被点击次数,并且该第一点击数据与第一帐号发起的第一资源分发事件相关联,可以通过第一点击数据所指示的终端的被点击次数获取第一资源分发事件中的资源。
可选地,与终端进行交互包括长按终端屏幕的预设位置,在长按终端的预设位置的过程中会产生按压数据,其中,第一交互数据包括按压数据。可选地,在接收到第一指示信息之后,获取在预设时间之后,在按压终端屏幕的预设位置的过程中产生的第一按压数据,也即,客户端获取终端在预设时间之后,且在按压终端屏幕的预设位置的过程中产生的第一按压数据,该第一按压数据可以用于指示终端在接收到第一指示信息之后的被按压时间和按压力度,并且该第一按压数据与第一帐号发起的第一资源分发事件相关联,可以通过第一按压数据所指示的终端的被按压时间和按压力度获取第一资源分发事件中的资源。
可选地,与终端进行交互包括与终端的能量转换器件进行交互,该能量转换器件可以为终端上设置的麦克风。在向终端的能量转换器件发出声 音的过程中,能量转换器件可以将声音信号转换为电信号,其中,第一交互数据包括电信号对应的数据。可选地,在接收到第一指示信息之后,获取在预设时间之后,在向终端的能量转换器件发出声音的过程中产生的电信号对应的数据,也即,客户端获取终端在预设时间之后,且在向终端的能量转换器件发出声音的过程中产生的电信号对应的数据,该电信号对应的数据可以用于指示终端在接收到第一指示信息之后的获取到的声音强度或者气流大小,并且该电信号对应的数据与第一帐号发起的第一资源分发事件相关联,可以通过电信号对应的数据所指示的声音强度或者气流大小获取第一资源分发事件中的资源。
需要说明的是,上述与终端进行交互的方式仅为本发明实施例的优选实施方式,并不代表本发明实施例的与终端进行交互的方式仅为上述方式,任何可以与终端进行交互产生交互数据的方式都在本发明的保护范围之内,此处不再一一举例说明。
可选地,获取与显示有聊天窗口的终端进行交互所产生的第一交互数据,或者获取与处于黑屏状态的终端进行交互所产生的第一交互数据,此处对终端当前的运行状态不做限定。
步骤S206,向服务器发送第一交互数据。
在本申请上述步骤S206提供的技术方案中,第一交互数据与第一资源分发事件相关联。在获取与终端进行交互所产生的第一交互数据之后,向服务器发送该第一交互数据,也即,客户端向服务器发送该第一交互数据。可选地,服务器记录第一资源分发事件以及第一帐号的标识信息,该第一资源分发事件与第一帐号相对应。
步骤S208,接收服务器响应于第一交互数据发送的第一资源。
在本申请上述步骤S208提供的技术方案中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源 随着第一交互数据指示的次数增加而增加。
在向服务器发送第一交互数据之后,服务器接收第一交互数据,并对第一交互数据进行响应,得到向客户端发送的第一资源,该第一资源可以为向客户端发送的第一帐号发起的红包事件所需分发的红包金额中的部分或全部红包金额。该第一资源为第一资源分发事件所需分发的总资源中的部分资源或全部资源。接收到的第一资源随着第一交互数据指示的次数增加而增加,也即,与终端进行交互的次数越多,服务器向客户端发送的第一资源就越多,达到了用户可以通过自己努力获取更多的资源的效果。
可选地,在总资源在预设阈值内时,第一资源随着第一交互数据指示的次数增加而按照预设基数增加。比如,第一资源分发事件为红包事件,第一资源为红包事件所需分发的红包总金额中的部分或全部金额,发放的金额的预设基数根据发红包总金额计算,可选地,当红包总金额≤0.1时,分发的红包金额递增的预设基数为0.01,当红包总金额≥1时,分发的红包金额递增的预设基数为0.1。
通过上述步骤S202至步骤S208,在第一群组的聊天窗口中接收到第一指示信息,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;获取与终端进行交互所产生的第一交互数据,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;向服务器发送第一交互数据;接收服务器响应于第一交互数据发送的第一资源,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加,由于接收服务器响应于与终端进行交互所产生的第一交互数据而发送的第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加,而第一交互数据指示的次数是可 控的,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。
作为一种可选的实施方式,在步骤S202,接收到第一指示信息之后,响应于在聊天窗口中检测到对第一指示信息的触控操作,进而在终端中弹出第一提示窗口,在终端中弹出第一提示窗口之后,获取与终端进行交互所产生的第一交互数据。
图3是根据本发明实施例的另一种资源的获取方法的流程图。如图3所示,该方法还包括:
步骤S301,在聊天窗口中检测到对第一指示信息的触控操作。
在本申请上述步骤S301提供的技术方案中,对第一指示信息可以进行触控操作,比如,该触控操作为单击操作、双击操作、或者在第一指示信息对应的区域停留预设时间等操作。在接收到第一指示信息之后,在聊天窗口中检测到对第一指示信息的触控操作。
步骤S302,响应于触控操作,在终端中弹出第一提示窗口。
在本申请上述步骤S302提供的技术方案中,第一提示窗口中显示有第一资源分发事件的事件类型,该事件类型对应的第一资源的接收方式为与终端进行交互。
第一资源分发事件具有事件类型,该事件类型可以用于指示第一资源的接收方式。在检测到对第一指示信息的触控操作之后,响应于该触控操作,第一提示窗口中显示有第一资源分发事件的事件类型,该事件类型对应的第一资源的接收方式为与终端进行交互。可选地,第一提示窗口通过文字信息、语音信息、图标信息等来提示事件类型对应的第一资源的接收方式为与终端进行交互,从而提示用户对终端进行摇晃操作以获取第一交互数据。
在终端中弹出第一提示窗口之后,与终端进行交互产生第一交互数据,获取该第一交互数据。
可选定,在终端中弹出第一提示窗口之后,可以在聊天窗口的上层弹出第一提示窗口,该第一提示窗口可以退出终端的界面,比如,通过第一提示窗口中用于指示退出终端的标识按钮接收到触控操作,该第一窗口在终端的界面消失。
该实施例通过在接收到第一指示信息之后,在聊天窗口中检测到对第一指示信息的触控操作,响应于触控操作,在终端中弹出第一提示窗口,该第一提示窗口中显示有第一资源分发事件的事件类型,事件类型对应的第一资源的接收方式为与终端进行交互,在终端中弹出第一提示窗口之后,获取与终端进行交互所产生的第一交互数据,从而实现了对用于指示与终端进行交互的次数,且与第一资源分发事件相关联的第一交互数据。
作为一种可选的实施方式,步骤S204,获取与终端进行交互所产生的第一交互数据包括:在等待第一预定时间之后,获取与终端进行交互所产生的第一交互数据,其中,第一预定时间以倒计时的方式显示在第一提示窗口中。
在接收到第一指示信息之后,在聊天窗口中接收到触控操作,弹出第一提示窗口。可选地,从接收到达触控操作的时间开始计时,得到第一计时时间,当第一计时时间达到第一预定时间时,获取与终端进行交互所产生的第一交互数据。也即,当第一计时时间未达到第一预定时间时,即使与终端进行交互,也不能获取该与终端进行交互所产生的交互数据。
该实施例通过在等待第一预设定时间之后获取终端摇晃所产生的第一摇晃数据,从而留给用户时间准备去摇晃终端,进而提升了用户体验。
作为一种可选的实施方式,在步骤S202,接收到第一指示信息之后,在聊天窗口中接收到第二指示信息;获取与终端进行交互所产生的第二交互数据;向服务器发送第二交互数据;接收服务器响应于第二交互数据发送的第二资源。
图4是根据本发明实施例的另一种资源的获取方法的流程图。如图4 所示,该方法还包括以下步骤:
步骤S401,在聊天窗口中接收到第二指示信息。
在本申请上述步骤S401提供的技术方案中,第二指示信息用于指示第二帐号发起的第二资源分发事件,第二帐号为第一群组中的帐号。
该实施例的群组聊天中包括多个帐号。在接收到第一指示信息之后,在聊天窗口中接收到第二指示信息,该第二指示信息用于指示第二帐号发起的第二资源分发事件。可选地,该第二帐号与第一帐号相同,也即,在第一帐号发起第一资源分发事件之后,第一帐号可以继续发起第二资源分发事件。该第二帐号也可以与第一帐号不同,也即,在第一帐号发起第一资源事件之后,由其它帐号也相继发起第二资源分发事件。
该第二指示信息用于指示第二帐号发起的第二资源分发事件,可以在聊天窗口中的预设页面进行显示,比如,在预设页面显示第二资源分发事件的主题、颜色,第二资源分发事件的事件类型,针对该第二指示信息可以接收触控操作。可选地,第二帐号发起的第二资源分发事件在第一群组中的所有帐号对应的客户端都可以显示出,从而提高多个帐号对应的用户的参与性。
可选地,在接收到第二指示信息之前,服务器记录第二资源分发事件所需分发的资源。
可选地,在终端中弹出第一提示窗口之后,在等待第一预定时间的过程中在聊天窗口中接收到第二指示信息,也可以在第一预定时间以倒计时的方式显示结束之后,在与终端进行交互的过程中接收到第二指示信息。
步骤S402,获取与终端进行交互所产生的第二交互数据。
在本申请上述步骤S402提供的技术方案中,第二交互数据与第二资源分发事件相关联。
在聊天窗口中接收到第二指示信息之后,获取与终端进行交互所产生 的第二交互数据,可以获取终端在预设时间之后,在摇晃过程中产生的第二交互数据,该第二交互数据用于指示终端在接收到第二指示信息之后获取到的摇晃次数,并且该第二交互数据与第二帐号发起的第二资源分发事件相关联,可以通过第二交互数据所指示的终端的摇晃次数获取第二资源分发事件中的资源。
步骤S403,向服务器发送第二交互数据。
在本申请上述步骤S403提供的技术方案中,第二交互数据与第二资源分发事件相关联。在获取与终端进行交互所产生的第二交互数据之后,向服务器发送该第二交互数据,也即,客户端向服务器发送该第二交互数据。可选地,服务器记录第二资源分发事件以及第二帐号的标识信息,该第二资源分发事件和第二帐号相对应,该服务器也记录第一资源分发事件以及第一帐号的标识信息,该第一资源分发事件与第一帐号相对应。
步骤S404,接收服务器响应于第二交互数据发送的第二资源。
在本申请上述步骤S404提供的技术方案中,接收服务器响应于第二交互数据发送的第二资源,其中,接收到的第二资源为第二资源分发事件所需分发的总资源中的部分或全部,且接收到的第二资源随着第二交互数据指示的次数增加而增加。
在向服务器发送第二交互数据之后,服务器接收第二交互数据,并对第二交互数据进行响应,得到向客户端发送的第二资源。该第二资源为第二资源分发事件所需分发的总资源中的部分资源或全部资源。接收到的第二资源随着第二交互数据指示的次数增加而增加,也即,与终端进行交互的次数越多,服务器向客户端发送的第二资源就越多,为用户增加多劳多得的体验,从而提高资源获取的可控性。
可选地,在第一事件分发资源中的资源尚未发放完毕时,该第二交互数据也与第一事件分发资源相关联,也即,该第二交互数据与第一事件分发资源和第二事件分发资源都相关联,可以通过第二交互数据所指示的终 端的摇晃次数获取第一资源分发事件中的第一资源和第二资源分发事件中的第二资源。可选地,在向服务器发送第二交互数据之后,接收服务器响应于第二交互数据发送的第一资源和第二资源,则接收到的资源为第一资源和第二资源之和。
可选地,在接收到第一指示信息之后,在与终端进行交互的过程中,接收服务器响应于交互数据发送的资源为预设个数的帐号发起的资源分发事件所需分发的资源中的部分资源或全部资源。
可选地,聊天窗口中如果同时有多个帐号发起资源分发事件,在第一群组的聊天窗口中接收到多条指示信息。用户正在摇晃终端,每条指示信息在等待第一预定时间之后,即可同时接收到服务器响应与终端进行交互所产生的交互数据、下发的多个帐号发起的资源分发事件所需分发的资源中的部分资源或全部资源。可选地,该实施例限制只能同时获取预定数量的帐号发起的资源分发事件中的资源,比如,预定数量为4,该预定数量的帐号可以为发起资源分发事件的时间与当前时间最接近的预定数量的帐号,接收到的资源的总和为接收到的预定数量的帐号发起的资源分发事件中的资源之和,从而避免了客户端在接收大量资源分发事件中的资源的情况下,客户端与服务器之间的处理任务繁重的问题。
举例而言,红包A发于9:35,终端已经开始摇晃,接收到的红包A的红包金额已开始递增。红包B发于9:36,当终端正在摇晃的时候,红包B自动发起倒数3秒,在3秒之后,接收到红包B中的红包金额也开始递增。则接收到的总红包金额为接收到的红包A中的红包金额和接收到的红包B中的红包金额的总和。
该实施例通过在接收到第一指示信息之后,在聊天窗口中接收到第二指示信息,第二指示信息用于指示第二帐号发起的第二资源分发事件,第二帐号为第一群组中的帐号;获取与终端进行交互所产生的第二交互数据,第二交互数据与第二资源分发事件相关联;向服务器发送第二交互数据;接收服务器响应于第二交互数据发送的第二资源,接收到的第二资源为第 二资源分发事件所需分发的总资源中的部分或全部,且接收到的第二资源随着第二交互数据指示的次数增加而增加,从而实现了通过与终端进行交互来接收多个帐号发起的资源分发事件所需分发的资源中的部分或全部资源,从而实现了提高资源获取的可控性的效果,提高了资源获取的趣味性。
作为一种可选的实施方式,步骤S402,获取与终端进行交互所产生的第二交互数据包括:在等待第二预定时间之后,获取与终端进行交互所产生的第二交互数据,其中,第二预定时间以倒计时的方式显示在终端中弹出的第二提示窗口中。
该实施例在接收到第二指示信息之后,在聊天窗口中接收到触控操作,弹出第二提示窗口。可选地,从接收到达触控操作的时间开始计时,得到第二计时时间,当第二计时时间达到第二预定时间时,获取与终端进行交互所产生的第二交互数据。也即,当第二计时时间未达到第二预定时间时,即使与终端进行交互,也不能获取与终端进行交互所产生的交互数据。
该实施例通过在等待第二预设定时间之后获取与终端进行交互所产生的第二交互数据,从而留给用户充足的准备时间去摇晃终端,进而提升了用户体验。
作为一种可选的实施方式,步骤S204,获取与终端进行交互所产生的第一交互数据包括:通过终端的陀螺仪获取预定时间段内终端摇晃的次数;将第一交互数据设置为包括摇晃的次数和/或摇晃的频率,其中,摇晃的频率根据摇晃的次数和预定时间段得到。
该实施例的终端设置有陀螺仪,该陀螺仪的参数包括坐标轴信息和加速度信息,通过该陀螺仪的坐标轴信息和加速信息可以得到终端的坐标中信息和加速信息,其中,坐标轴信息包括x轴、y轴和z轴信息。通过获取该陀螺仪的加速度,通过加速度的大小可以判断终端在摇晃的过程中的摇晃频率,进而对终端的摇晃次数进行计数。比如,在终端从静止到用力甩一下的过程中,陀螺仪的加速度是会变的,通过陀螺仪的加速度得到终 端的加速度,进而根据终端的加速度得到终端的摇晃频率。
通过终端的陀螺仪获取预定时间段内与终端进行交互的次数。第一摇晃数据用于指示终端摇晃的次数,可以将该第一摇晃数据设置为包括摇晃的次数和/或摇晃的频率,摇晃的频率可以根据摇晃的次数和预定时间段得到。
举例而言,在1秒内,陀螺仪的加速度的数值从0变成100,这个时候计终端摇晃一次,陀螺仪的加速度数据再从100变成0,又计终端摇晃一次,则终端在1秒内的摇晃的次数为1次,摇晃的频率为2次/秒。
可选地,该实施例的终端设置有能量转换器件,该能量转换器件可以为麦克风。在用户向麦克风发出声音的过程中,麦克风可以将声音信号转换为电信号,比如,将声音信号转换为电压数据、电流数据等,此处不做限定。进一步地,通过获取麦克风的电信号,可以确定声音信号的声音强度或者由声音信号产生的气流大小,比如,当用户对着麦克风喊声或者吹气时,麦克风的电信号是会改变的,通过改变的电信号确定用户发出的声音强度或者产生的气流大小。最后通过电信号对应的数据所指示的声音强度或者气流大小获取第一资源分发事件中的资源。
可选地,根据用户声音强度或者产生的气流大小电信号确定用户对着麦克风喊声或者吹气的次数,从而根据用户对着麦克风喊声或者吹气的次数获取第一资源分发事件中的资源。
需要说明的是,上述与终端进行交互的方式仅为本发明实施例的优选实施方式,并不代表本发明实施例的与终端进行交互的方式仅为上述方式,任何可以与终端进行交互产生交互数据的方式都在本发明的保护范围之内,此处不再一一举例说明。
作为一种可选的实施方式,在步骤S208,接收服务器响应于第一交互数据发送的第一资源时,在终端中弹出的第二提示窗口中显示第一提示信息,其中,第一提示信息用于提示当前已获取到的第一资源的取值。
在接收服务器响应于第一交互数据发送的第一资源时,在终端中弹出第二提示窗口。该第二提示窗口中显示有第一提示信息,该第一提示信息可以为文字信息、语音信息、图标信息等,用于提示当前已经接收到的第一资源的取值。可选地,在接收服务器响应于第二交互数据发送的第一资源和第二资源时,在终端中弹出的第一提示窗口中同时显示第一资源和第二资源,其中,第二交互数据与第一资源分发事件和第二资源分发事件均相关联。
作为一种可选的实施方式,在终端中弹出的第二提示窗口中显示第一提示信息时,在第二提示窗口中显示第二提示信息,其中,第二提示信息用于提示总资源中尚未分发的资源的取值。
在终端中弹出的第二提示窗口中除了显示第一提示信息之外,在第二提示窗口中还可以显示第二提示信息,该第二提示信息用于提示服务器记录的总资源中尚未分发的资源的取值,从而使得用户了解当前第一资源分发事件所需分发的总资源的分配情况,以确定是否继续摇晃终端获取资源。
作为一种可选的实施方式,接收服务器响应于第一交互数据发送的第一资源包括:在第一资源分发事件所需分发的总资源未分发完毕的情况下,接收第一资源;在第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,其中,第三提示信息用于提示第一资源分发事件所需分发的总资源分发完毕。
在第一资源分发事件所需分发的总资源未分发完毕的情况下,可以随时获取用户摇晃终端所产生的第一交互数据,向服务器发送该第一交互数据,接收服务器响应于第一交互数据发送的第一资源,接收到的资源的取值继续递增。在第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,该第三提示信息可以为弹层提示的文字信息,比如,“资源已被摇完”的文字信息,也可以为语音信息、图标信息、振动信息等,其中,振动信息可以为终端振动提醒等,此处不做任何限制。
作为一种可选的实施方式,在步骤S208,接收服务器响应于第一交 互数据发送的第一资源之后,在第一群组的聊天窗口中选择第三资源分发事件的事件类型,第三资源为第三资源分发事件所需分发的总资源中的部分或全部;在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源;向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息。
图5是根据本发明实施例的一种资源的发送方法的流程图。如图5所示,该方法还包括以下步骤:
步骤S501,在第一群组的聊天窗口中选择第三资源分发事件的事件类型。
在本申请上述步骤S501提供的技术方案中,事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部。
在接收服务器响应于第一交互数据发送的第一资源之后,也可以发资源,比如,在聊天窗口中摇到红包之后,也可以发红包。资源的事件类型对应资源的接收方式为通过预设按钮接收触控操作,比如,当资源分发事件为红包事件时,通过预设按钮接收触控操作为拼手气红包的操作方式。资源的事件类型也可以对应资源的接收方式为摇晃终端,比如,当资源分发事件为红包事件时,资源的接收方式为摇晃终端为摇一摇红包的操作方式。在第一群组的聊天窗口中,调起原生选择器,通过原生选择器选择第三资源分发事件的事件类型,该第三资源分发事件的事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部。
可选地,在选择第三资源分发事件的事件类型之后,可以取消选择的事件类型,重新选取其它事件类型。
步骤S502,获取第三资源分发事件所需分发的总资源。
在本申请上述步骤S502提供的技术方案中,在终端中弹出的与事件 类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息,其中,第三指示信息用于指示第三资源分发事件。
资源获取窗口可以通过文字信息标识事件类型,比如,资源获取窗口中显示用于指示第三资源的接收方式为摇晃终端的事件类型的文字信息。在第一群组的聊天窗口中选择第三资源分发事件的事件类型之后,在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源,可以在资源获取窗口中设置总资源的取值。
步骤S503,向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息。
在本申请上述步骤S503提供的技术方案中,第三指示信息用于指示第三资源分发事件。
在获取第三资源分发事件所需分发的总资源之后,通过预设区域接收触控操作,比如,点击“塞钱进红包”对应的区域,在支付完成之后,指示向服务器发送第三资源分发事件所需分发的总资源。
在向服务器发送第三资源分发事件所需分发的总资源之后,在聊天窗口中显示第三指示信息。
该实施例通过在接收服务器响应于第一交互数据发送的第一资源之后,在第一群组的聊天窗口中选择第三资源分发事件的事件类型,其中,事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部;在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源;向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息,从而实现了发送资源的目的。
作为一种可选的实施方式,在步骤S501,选择第三资源分发事件的事件类型之后,在终端中弹出的与事件类型相对应的资源获取窗口中,接 收类型切换指令;获取第四资源分发事件所需分发的总资源;向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息,其中,第四指示信息用于指示第四资源分发事件。
图6是根据本发明实施例的另一种资源的发送方法的流程图。如图6所示,该方法还包括以下步骤:
步骤S601,接收类型切换指令。
在本申请上述步骤S601提供的技术方案中,在终端中弹出的与事件类型相对应的资源获取窗口中,接收类型切换指令,其中,类型切换指令用于对事件类型进行切换,得到切换后的事件类型。
当资源分发事件为红包事件,事件类型为摇摇红包类型时,在需要切换事件类型的情况下,可以在终端弹出的发红包页面显示提示信息“当前为摇摇红包,改为普通红包”,通过其中,“摇摇红包”类型为摇晃终端获取摇晃数据以获取红包金额的一种类型,普通红包可以为拼手气红包,比如,用户点击终端交互界面上的“拆”按钮,即可领取一个金额随机的红包。
该实施例通过提示信息接收类型切换指令,将摇摇红包类型切换为普通红包类型,从而实现对资源分发事件的事件类型的切换。
步骤S602,获取第四资源分发事件所需分发的总资源。
在本申请上述步骤S602提供的技术方案中,第四资源分发事件的事件类型为切换后的事件类型。
在接收类型切换指令之后,获取第四资源分发事件所需分发的总资源,该第四资源分发事件的事件类型为切换后的事件类型,比如,为普通红包类型。
步骤S603,向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息。
在本申请上述步骤S603提供的技术方案中,第四指示信息用于指示第四资源分发事件。
在获取第四资源分发事件所需分发的总资源之后,通过预设区域接收触控操作,比如,点击“塞钱进红包”对应的区域,指示向服务器发送第四资源分发事件所需分发的总资源。
在向服务器发送第四资源分发事件所需分发的总资源之后,在聊天窗口中显示第四指示信息。
该实施例在终端中弹出的与事件类型相对应的资源获取窗口中,接收类型切换指令,其中,类型切换指令用于对事件类型进行切换,得到切换后的事件类型;获取第四资源分发事件所需分发的总资源,其中,第四资源分发事件的事件类型为切换后的事件类型;向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息,其中,第四指示信息用于指示第四资源分发事件,从而实现了对第三资源分发事件的类型的切换,达到了向服务器发送第四资源分发事件所需分发的总资源的目的,提高了资源获取的可控性的效果。
下面结合优选的实施例对本发明的技术方案进行说明。具体以资源分发事件为红包事件,资源为红包金额进行举例说明。
图7是根据本发明实施例的另一种资源的获取方法的流程图。如图7所示,该方法包括以下步骤:
步骤S701,在群组的聊天窗口中进入发红包页面。
在群组的聊天窗口中,可以在下方的菜单栏中选择“红包”入口,该“红包”入口用于进入发红包页面的。
步骤S702,选择发红包的类型为摇摇红包类型。
在群组的聊天窗口中进入发红包页面之后,弹出类型选择提示窗口,该类型提示窗口展示红包的类型,比如,红包的类型为拼手气红包类型、 摇摇红包类型等。该实施例可以选择发红包的类型为摇摇红包类型。
步骤S703,在红包金额设置页面设置红包金额。
在选择发红包的类型为摇摇红包类型之后,弹出红包金额设置页面,可以在红包金额设置页面接收用户输入的红包金额。可选地,在设置红包金额的过程中,可以切换红包的类型。
步骤S704,发送设置好红包金额的红包。
在红包金额设置页面设置红包金额之后,发送该红包。
步骤S705,在等待预设时间之后,获取终端的摇晃操作所产生的摇晃数据。
在发送设置好红包金额的红包之后,向群组中每个帐号对应的客户端发送红包。在等待预设时间之后,获取终端的摇晃操作所产生的摇晃数据,该摇晃数据用于指示终端摇晃的次数,该摇晃数据与红包事件相关联。
步骤S706,在终端摇晃的过程中,接收服务器响应摇晃数据发送的红包金额。
在获取终端的摇晃操作所产生的摇晃数据之后,向服务器发送该摇晃数据,服务器对该摇晃数据进行响应,得到红包金额,接收服务器发送的红包金额。该红包金额随着摇晃数据指示的次数的增加而增加。
该实施例通过在群组的聊天窗口中进入发红包页面,选择发红包的类型为摇摇红包类型,在红包金额设置页面设置红包金额,发送设置好红包金额的红包,在等待预设时间之后,获取终端的摇晃操作所产生的摇晃数据,在终端摇晃的过程中,接收服务器响应摇晃数据发送的红包金额,解决了现有红包缺少趣味性、红包金额不随机的问题,用户可与通过自己努力晃动终端而获取更多的红包金额,提升了用户体验。
图8是根据本发明实施例的一种资源的获取方法的交互示意图。如图8所示,该方法包括以下步骤:
步骤S801,客户端发送摇摇红包类型的红包。
该实施例的客户端可以社交类的客户端,比如,即时通讯应用的客户端,在群组的聊天窗口中发送摇摇红包类型的红包。
步骤S802,在等待预设时间之后,客户端发起终端的摇晃操作。
在客户端发送摇摇红包类型的红包之后,群组中每个帐号对应的客户端可以接收到该红包的指示信息。在等待预设时间之后,群组中每个帐号对应的客户端都可以发起终端的摇晃操作,产生摇晃数据。
步骤S803,终端的陀螺仪计算终端的摇晃频率,向服务器发送根据终端频率确定的终端的摇晃次数。
在终端摇晃的过程中,终端的陀螺仪计算终端的摇晃频率,通过该摇晃频率计算终端在预设时间段的摇晃次数,向服务器发送该摇晃次数。
步骤S804,服务器响应摇晃次数,向客户端发送红包中的部分或全部金额。
服务器在接收到摇晃次数之后,服务器响应摇晃次数,得到向客户端发送的红包中的金额,并向与摇晃次数相对应的客户端发送。在用户要停止摇晃终端时,则客户端停止获取红包中的金额。
该实施例通过客户端发送摇摇红包类型的红包,在等待预设时间之后,客户端发起终端的摇晃操作,终端的陀螺仪计算终端的摇晃频率,向服务器发送根据终端频率确定的终端的摇晃次数,服务器响应摇晃次数,向客户端发送红包中的部分或全部金额,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。
本发明实施例的应用环境可以但不限于参照上述实施例中的应用环境,本实施例中对此不再赘述。本发明实施例提供了用于实施上述资源的获取方法的一种可选的具体应用。
该实施例具体以资源分发事件为红包事件,资源为红包金额的应用场景进行举例说明。该实施例可以用于在社交类别的产品中,该社交类别的产品具有收发红包的功能。
图9是根据本发明实施例的一种在群组的聊天窗口中发起发红包事件的示意图。如图9所示,在第一帐号登录的客户端的群组聊天窗口中,选择“红包”入口标识,通过该“红包”入口标识调起发红包事件,弹出红包类型的选择窗口,在该红包类型的选择窗口中,红包类型包括“拼手气红包”类型,“摇摇红包”类型,其中,“摇摇红包”类型对应的红包金额的接收方式为摇晃终端,该终端可以为移动终端,比如,该终端为智能手机(如Android手机、iOS手机等)、平板电脑等终端设备。
不同的红包类型对应不同的选择按钮,调起原生选择器,通过选择按钮选择对应的红包类型。在选择红包类型之后,可以通过“取消”按钮取消已经选择好的红包类型。比如,红包类型选择“摇摇红包”类型,可以通过“取消”按钮选择取消该“摇摇红包”类型。
图10是根据本发明实施例的一种发红包页面的示意图。如图10所示,在用户点击“摇摇红包”类型之后,进入发红包页面,在该发红包页面可以设置发红包的总金额,比如,填写金额“100元”。该摇摇红包不限个数,不限金额。在该红包页面,可以切换红包的类型,比如,通过“当前为摇摇红包,改为普通红包”对应的区域接收触控操作,将当前“摇摇红包”类型切换为普通红包,可以在获取红包金额之前切换红包类型,也可以在获取红包金额之后切换红包类型。
在获取红包金额之后,向服务器发送设置好的红包金额,比如,通过“塞钱进红包”对应的区域接收触控操作,在支付完成之后,将红包金额向服务器发送。
图11是根据本发明实施例的一种接收红包的界面的示意图。如图11所示,在向服务器发送红包之后,在群组的每个帐号对应的客户端的聊天窗口接收指示信息,该指示信息用于指示第一帐号发起的上述红包,也即, 当第一帐号发送的红包发送到每个聊天帐号对应的客户端的聊天窗口时,会弹出接收红包的界面,该接收红包的界面显示了第一帐号发送的红包的主题,比如,该红包的主题为“下午茶时间到,大家…”,显示了用于指示红包的类型的信息,比如,“领取红包摇一摇”。
在聊天窗口中检测到对指示信息的触控操作,比如,对“下午茶时间到,大家…”的红包的点击操作;响应于触控操作,在终端中弹出第一提示窗口,其中,第一提示窗口中显示发红包的帐号对应的昵称,比如,为饮淡茶,红包的主题全称“下午茶时间到,大家努力摇”,显示有红包的类型,与红包类型对应的红包的接收方式为摇晃终端,如图11右部分所示的第一提示窗口,该第一提示窗口显示出红包的类型为“摇摇红包”,与“摇摇红包”类型对应的红包接收方式为摇晃终端。
图12是根据本发明实施例的一种获取终端摇晃所产生的摇晃数据的示意图。如图12所示,在终端中弹出如图11所示的第一提示窗口之后,在等待预定时间之后,获取终端摇晃所产生的摇晃数据,该预定时间以倒计时的方式显示在终端中弹出的第一提示窗口中。比如,第一提示窗口中出现3秒倒数“03””,当3秒倒数完之后,终端即可发起摇一摇的动作,才能获取终端在摇晃过程中的摇晃数据。
可选地,前端可以获取终端的陀螺仪的参数,比如,获取x轴、y轴、z轴信息以及陀螺仪的加速度。其中,通过加速度的大小可以判断终端摇晃的频率,从而实现对终端摇晃的次数的计数。比如,终端从静止到用力甩一下,陀螺仪的加速度是会变的,此时计终端摇晃一次。比如,陀螺仪的加速度的数值0变成100,此时计终端摇晃一次,陀螺仪的加速度数值再从100变成0,此时再计终端摇晃一次。通过陀螺仪的加速度去计算终端的摇晃频率,得到终端摇晃的次数,将终端摇晃的次数向服务器发送。服务器响应终端的摇晃次数向与摇晃次数相对应的客户端发送红包金额。
可选地,在红包总金额在预设阈值内时,接收到的红包金额随着摇晃次数的增加而按照预设基数增加。比如,金额涨幅基数根据发红包总金额 计算,当红包总金额≤0.1时,红包金额递增的基数为0.01。当红包总金额≥1时,红包金额递增的基数为0.1。
图13是根据本发明实施例的一种显示红包金额的提示信息的示意图。如图13所示,当发出的红包中尚有未分发的红包金额时,用户可以随时发起终端的摇晃操作,则接收到的红包金额随着摇晃次数的递增而继续递增。在第二提示窗口显示当前接收到的红包的金额。比如,“您已努力摇到:10.90元”,还可以显示当前总红包金额中尚未分发的红包金额,比如,显示“红包现有余额:70.10元”。在当前总红包金额中尚未分发的红包金额为0时,比如,“红包现有余额:0.00元”时,则发起终端的振动提醒,并出现弹层提示信息,该提示信息用于提示总红包金额已经分发完毕,比如,“红包已被摇完”。用户可以查看其它帐号在当前总红包金额分发过程中接收到的红包金额,比如,通过“看看大家手气”对应的区域接收触控操作,以显示其它帐号获取到的红包金额。
图14是根据本发明实施例的一种接收多个帐号发起的红包中的红包金额的示意图。如图14所示。如果群组中同时有多个“摇摇红包”类型的红包发放,此时用户正在摇晃手机,则在接收到每个红包的指示信息之后,可以在接收到每个红包的时间倒计时3秒之后,即可接收到多个帐号发起的红包的金额,可选地,该实施例限制只能同时摇取四个帐号发起的红包,接收到的红包的总金额为接收到的各个帐号发起的红包中的金额之和,比如,在终端摇晃的过程中,接收到的各个帐号发起的红包中的金额分别为:5.20、2.90、2.10、0.70,则接收到的红包的总金额为:5.20+2.90+2.10+0.70,也即,10.09元。
举例而言,第一帐号于9:35发起红包A,群组中的第二帐号对应的用户B已经摇晃终端,则第二帐号接收到的红包A中的红包金额已开始递增。第三帐号于9:36发起红包C,当用户B正在摇晃手机的时候,红包C自动发起倒数3秒之后,第二帐号接收到红包C中的金额,该第二帐号仍然可以接收到红包A中的金额。则第二帐号摇到的总金额就是接收到的 红包A中的金额+接收到的红包C中的金额。
用户可以随时选择放弃摇晃终端的操作,停止摇晃终端之后,该用户对应的帐号接收到的红包的金额停止递增。
作为一种可选的实施方式,如果群组中同时有多个“摇摇红包”类型的红包发放,则在接收到每个红包的指示信息之后,在终端的界面上显示与发红包的帐号对应的预设按钮,通过与发红包的帐号对应的预设按钮接收到触控操作之后,可以通过摇晃终端接收该发红包的帐号发起的红包金额,其中,对于没有接收到触控操作的预设按钮对应的发红包的帐号,则不能接收到其发起的红包金额。可选地,该实施例限制只能同时摇取预设数量的帐号发起的红包,比如,摇取发红包时间靠前的四个帐号发起的红包,接收到的红包总金额为接收到触控操作的预设按钮对应的各个帐号发起的红包中的金额之和,比如,在终端摇晃的过程中,接收到的各个帐号发起的红包中的金额分别为:5.20、2.90、2.10、0.70,则接收到的红包的总金额为:5.20+2.90+2.10+0.70,也即,10.09元,避免了客户端在接收大量红包的情况下,客户端与服务器之间的处理任务繁重的问题,比如,客户端向服务器发送终端的摇晃数据,接收服务器响应于终端的摇晃数据发送的多个帐号发起的红包,导致客户端与服务器之间处理接收红包的任务繁重,进而导致服务崩溃现象发生的问题。
该实施例解决了现有红包缺少趣味性的问题,解决了红包金额不随机的问题,达到了用户可以通过自己努力获取更多的金额的效果。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当 然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/R第一子目标推送数据M、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
根据本发明实施例的另一方面,还提供了一种用于实施上述资源的获取方法的资源的获取装置。该资源的获取方法的资源的获取装置包括一个或多个处理器,以及一个或多个存储程序单元的存储器,其中,程序单元由处理器执行,该程序单元可以包括:第一接收单元、第一获取单元、第一发送单元和第二接收单元。
图15是根据本发明实施例的一种资源的获取装置的示意图。如图15所示,该装置可以包括:第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40。
第一接收单元10,被设置为在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号。
第一获取单元20,被设置为获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联。
第一发送单元30,被设置为向服务器发送第一交互数据。
第二接收单元40,被设置为接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。
此处需要说明的是,上述第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
图16是根据本发明实施例的另一种资源的获取装置的示意图。如图16所示,该装置可以包括:第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40。该装置还包括:检测单元50和响应单元60,其中,第一获取单元20包括:第一获取模块21。
需要说明的是,该实施例的第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40与图15所示实施例的资源的获取装置中的作用相同,此处不做赘述。
检测单元50,被设置为在接收到第一指示信息之后,在聊天窗口中检测到对第一指示信息的触控操作。
响应单元60,被设置为响应于触控操作,在终端中弹出第一提示窗口,其中,第一提示窗口中显示有第一资源分发事件的事件类型,事件类型对应的第一资源的接收方式为与终端进行交互。
第一获取模块21,被设置为在终端中弹出第一提示窗口之后,获取与终端进行交互所产生的第一交互数据。
此处需要说明的是,上述检测单元50、响应单元60、第一获取模块21可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元和模块实现的功能。
图17是根据本发明实施例的另一种资源的获取装置的示意图。如图17所示,该装置可以包括:第一接收单元10、第一获取单元20、第一发送单元30、第二接收单元40、检测单元50和响应单元60,其中,第一获取单元20包括:第一获取模块21。第一获取单元20还可以包括:第二获 取模块22。
需要说明的是,该实施例的第一接收单元10、第一获取单元20、第一发送单元30、第二接收单元40、检测单元50和响应单元60,第一获取模块21与图16所示实施例的资源的获取装置中的作用相同,此处不做赘述。
第二获取模块22,被设置为在等待第一预定时间之后,获取与终端进行交互所产生的第一交互数据,其中,第一预定时间以倒计时的方式显示在第一提示窗口中。
此处需要说明的是,上述第二获取模块22可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。
图18是根据本发明实施例的另一种资源的获取装置的示意图。如图18所示,该装置可以包括:第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40。该装置还可以包括:第三接收单元70、第二获取单元80、第二发送单元90和第四接收单元100。
需要说明的是,该实施例的第一接收单元10、第一获取单元20、第一发送单元30和第二接收单元40与图15所示实施例的资源的获取装置中的作用相同,此处不做赘述。
第三接收单元70,用于在接收到第一指示信息之后,在聊天窗口中接收到第二指示信息,其中,第二指示信息用于指示第二帐号发起的第二资源分发事件,第二帐号为第一群组中的帐号。
第二获取单元80,用于获取与终端进行交互所产生的第二交互数据,其中,第二交互数据与第二资源分发事件相关联。
第二发送单元90,用于向服务器发送第二交互数据。
第四接收单元100,用于接收服务器响应于第二交互数据发送的第二资源,其中,接收到的第二资源为第二资源分发事件所需分发的总资源中 的部分或全部,且接收到的第二资源随着第二交互数据指示的次数增加而增加。
此处需要说明的是,上述第三接收单元、第二获取单元、第二发送单元和第四接收单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能。
可选地,第二获取单元80可以包括:第三获取模块,用于在等待第二预定时间之后,获取与终端进行交互所产生的第二交互数据,其中,第二预定时间以倒计时的方式显示在终端中弹出的第二提示窗口中。
此处需要说明的是,上述第三获取模块可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。
可选地,第一获取单元20可以包括:第四获取模块和设置模块。其中,第四获取模块,用于通过终端的陀螺仪获取预定时间段内终端摇晃的次数;设置模块,用于将第一交互数据设置为包括摇晃的次数和/或摇晃的频率,其中,摇晃的频率根据摇晃的次数和预定时间段得到。
此处需要说明的是,上述第四获取模块和设置模块可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。
可选地,该装置还可以包括:第一显示单元,用于在接收服务器响应于第一交互数据发送的第一资源时,在终端中弹出的第二提示窗口中显示第一提示信息,其中,第一提示信息用于提示当前已获取到的第一资源的取值。
此处需要说明的是,上述第一显示单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能。
可选地,该装置还可以包括第二显示单元,用于在终端中弹出的第二提示窗口中显示第一提示信息时,在第二提示窗口中显示第二提示信息,其中,第二提示信息用于提示总资源中尚未分发的资源的取值。
此处需要说明的是,上述第二显示单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能。
可选地,第二接收单元40包括:接收模块和显示模块。其中,接收模块,用于在第一资源分发事件所需分发的总资源未分发完毕的情况下,接收第一资源;显示模块,用于在第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,其中,第三提示信息用于提示第一资源分发事件所需分发的总资源分发完毕。
此处需要说明的是,上述接收模块和显示模块可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。
可选地,该装置还可以包括:选择单元、第三获取单元和第三发送单元。其中,选择单元,用于在接收服务器响应于第一交互数据发送的第一资源之后,在第一群组的聊天窗口中选择第三资源分发事件的事件类型,其中,事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部;第三获取单元,用于在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源;第三发送单元,用于向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息,其中,第三指示信息用于指示第三资源分发事件。
此处需要说明的是,上述选择单元、第三获取单元和第三发送单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能。
可选地,该装置还可以包括:第五接收单元、第四获取单元和第四发送单元。其中,第五接收单元,用于在选择第三资源分发事件的事件类型之后,在终端中弹出的与事件类型相对应的资源获取窗口中,接收类型切换指令,其中,类型切换指令用于对事件类型进行切换,得到切换后的事件类型;第四获取单元,用于获取第四资源分发事件所需分发的总资源,其中,第四资源分发事件的事件类型为切换后的事件类型;第四发送单元, 用于向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息,其中,第四指示信息用于指示第四资源分发事件。
此处需要说明的是,上述第五接收单元、第四获取单元和第四发送单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述单元实现的功能。
需要说明的是,该实施例中的第一接收单元10可以用于执行本申请实施例中的步骤S202,该实施例中的第一获取单元20可以用于执行本申请实施例中的步骤S204,该实施例中的第一发送单元30可以用于执行本申请实施例中的步骤S206,该实施例中的第二接收单元40可以用于执行本申请实施例中的步骤S208。
该实施例通过第一接收单元10在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号,通过第一获取单元20获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联,通过第一发送单元30向服务器发送第一交互数据,通过第二接收单元40接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加,由于接收服务器响应于与终端进行交互所产生的第一交互数据而发送的第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加,而第一交互数据指示的次数是可控的,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。
此处需要说明的是,上述单元和模块与对应的步骤所实现的示例和应 用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。
根据本发明实施例的又一方面,还提供了一种用于实施上述资源的获取方法的服务器或终端。
图19是根据本发明实施例的一种电子装置的结构框图。如图19所示,该终端可以包括:一个或多个(图中仅示出一个)处理器191、存储器193、以及传输装置195。如图19所示,该终端还可以包括输入输出设备197。
其中,存储器193可用于存储计算机程序以及模块,如本发明实施例中的资源的获取方法和装置对应的程序指令/模块,处理器191被设置为通过运行存储在存储器193内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的资源的获取方法。存储器193可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器193可进一步包括相对于处理器191远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述的传输装置195用于经由一个网络接收或者发送数据,还可以用于处理器与存储器之间的数据传输。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置195包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置195为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
其中,可选地,存储器193用于存储应用程序。
处理器191可以通过传输装置195调用存储器193存储的应用程序,以执行下述步骤:
在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;
获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;
向服务器发送第一交互数据;
接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。
处理器191还用于执行下述步骤:在接收到第一指示信息之后,在聊天窗口中检测到对第一指示信息的触控操作;响应于触控操作,在终端中弹出第一提示窗口,其中,第一提示窗口中显示有第一资源分发事件的事件类型,事件类型对应的第一资源的接收方式为与终端进行交互;在终端中弹出第一提示窗口之后,获取与终端进行交互所产生的第一交互数据。
处理器191还用于执行下述步骤:在等待第一预定时间之后,获取与终端进行交互所产生的第一交互数据,其中,第一预定时间以倒计时的方式显示在第一提示窗口中。
处理器191还用于执行下述步骤:在接收到第一指示信息之后,在聊天窗口中接收到第二指示信息,其中,第二指示信息用于指示第二帐号发起的第二资源分发事件,第二帐号为第一群组中的帐号;获取与终端进行交互所产生的第二交互数据,其中,第二交互数据与第二资源分发事件相关联;向服务器发送第二交互数据;接收服务器响应于第二交互数据发送的第二资源,其中,接收到的第二资源为第二资源分发事件所需分发的总资源中的部分或全部,且在接收到的第二资源为第二资源分发事件所需分 发的总资源中的部分时,接收到的第二资源随着第二交互数据指示的次数增加而增加。
处理器191还用于执行下述步骤:在等待第二预定时间之后,获取与终端进行交互所产生的第二交互数据,其中,第二预定时间以倒计时的方式显示在终端中弹出的第二提示窗口中。
处理器191还用于执行下述步骤:通过终端的陀螺仪获取预定时间段内终端摇晃的次数;将第一交互数据设置为包括摇晃的次数和/或摇晃的频率,其中,摇晃的频率根据摇晃的次数和预定时间段得到。
处理器191还用于执行下述步骤:在接收服务器响应于第一交互数据发送的第一资源时,在终端中弹出的第二提示窗口中显示第一提示信息,其中,第一提示信息用于提示当前已获取到的第一资源的取值。
处理器191还用于执行下述步骤:在终端中弹出的第二提示窗口中显示第一提示信息时,在第二提示窗口中显示第二提示信息,其中,第二提示信息用于提示总资源中尚未分发的资源的取值。
处理器191还用于执行下述步骤:在第一资源分发事件所需分发的总资源未分发完毕的情况下,接收第一资源;在第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,其中,第三提示信息用于提示第一资源分发事件所需分发的总资源分发完毕。
处理器191还用于执行下述步骤:在接收服务器响应于第一交互数据发送的第一资源之后,在第一群组的聊天窗口中选择第三资源分发事件的事件类型,其中,事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部;在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源;向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息,其中,第三指示信息用于指示第三资源分发事件。
处理器191还用于执行下述步骤:在选择第三资源分发事件的事件类型之后,在终端中弹出的与事件类型相对应的资源获取窗口中,接收类型切换指令,其中,类型切换指令用于对事件类型进行切换,得到切换后的事件类型;获取第四资源分发事件所需分发的总资源,其中,第四资源分发事件的事件类型为切换后的事件类型;向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息,其中,第四指示信息用于指示第四资源分发事件。
采用本发明实施例,提供了一种资源的获取方案。在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。由于接收服务器响应于与终端进行交互所产生的第一交互数据而发送的第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加,而第一交互数据指示的次数是可控的,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
本领域普通技术人员可以理解,图19所示的结构仅为示意,电子装置可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。 图19其并不对上述电子装置的结构造成限定。例如,电子装置还可包括19中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图19所示不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时可以用于执行资源的获取方法。
可选地,在本实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;
获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;
向服务器发送第一交互数据;
接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在 接收到第一指示信息之后,在聊天窗口中检测到对第一指示信息的触控操作;响应于触控操作,在终端中弹出第一提示窗口,其中,第一提示窗口中显示有第一资源分发事件的事件类型,事件类型对应的第一资源的接收方式为与终端进行交互;在终端中弹出第一提示窗口之后,获取与终端进行交互所产生的第一交互数据。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在等待第一预定时间之后,获取与终端进行交互所产生的第一交互数据,其中,第一预定时间以倒计时的方式显示在第一提示窗口中。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在接收到第一指示信息之后,在聊天窗口中接收到第二指示信息,其中,第二指示信息用于指示第二帐号发起的第二资源分发事件,第二帐号为第一群组中的帐号;获取与终端进行交互所产生的第二交互数据,其中,第二交互数据与第二资源分发事件相关联;向服务器发送第二交互数据;接收服务器响应于第二交互数据发送的第二资源,其中,接收到的第二资源为第二资源分发事件所需分发的总资源中的部分或全部,且在接收到的第二资源为第二资源分发事件所需分发的总资源中的部分时,接收到的第二资源随着第二交互数据指示的次数增加而增加。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在等待第二预定时间之后,获取与终端进行交互所产生的第二交互数据,其中,第二预定时间以倒计时的方式显示在终端中弹出的第二提示窗口中。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:通过终端的陀螺仪获取预定时间段内终端摇晃的次数;将第一交互数据设置为包括摇晃的次数和/或摇晃的频率,其中,摇晃的频率根据摇晃的次数和预定时间段得到。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在接收服务器响应于第一交互数据发送的第一资源时,在终端中弹出的第二提示窗口中显示第一提示信息,其中,第一提示信息用于提示当前已获取 到的第一资源的取值。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在终端中弹出的第二提示窗口中显示第一提示信息时,在第二提示窗口中显示第二提示信息,其中,第二提示信息用于提示总资源中尚未分发的资源的取值。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在第一资源分发事件所需分发的总资源未分发完毕的情况下,接收第一资源;在第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,其中,第三提示信息用于提示第一资源分发事件所需分发的总资源分发完毕。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在接收服务器响应于第一交互数据发送的第一资源之后,在第一群组的聊天窗口中选择第三资源分发事件的事件类型,其中,事件类型对应的第三资源的接收方式为与终端进行交互,第三资源为第三资源分发事件所需分发的总资源中的部分或全部;在终端中弹出的与事件类型相对应的资源获取窗口中,获取第三资源分发事件所需分发的总资源;向服务器发送第三资源分发事件所需分发的总资源,并在聊天窗口中接收到第三指示信息,其中,第三指示信息用于指示第三资源分发事件。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在选择第三资源分发事件的事件类型之后,在终端中弹出的与事件类型相对应的资源获取窗口中,接收类型切换指令,其中,类型切换指令用于对事件类型进行切换,得到切换后的事件类型;获取第四资源分发事件所需分发的总资源,其中,第四资源分发事件的事件类型为切换后的事件类型;向服务器发送第四资源分发事件所需分发的总资源,并在聊天窗口中接收到第四指示信息,其中,第四指示信息用于指示第四资源分发事件。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
如上参照附图以示例的方式描述了根据本发明的资源的获取方法及装置、存储介质以及电子装置。但是,本领域技术人员应当理解,对于上述本发明所提出的资源的获取方法及装置、存储介质以及电子装置,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
在本发明实施例中,在第一群组的聊天窗口中接收到第一指示信息,其中,第一指示信息用于指示第一帐号发起的第一资源分发事件,第一帐号为第一群组中的帐号;获取与终端进行交互所产生的第一交互数据,其中,终端用于在预设指令的指示下显示聊天窗口,第一交互数据用于指示与终端进行交互的次数,第一交互数据与第一资源分发事件相关联;向服务器发送第一交互数据;接收服务器响应于第一交互数据发送的第一资源,其中,接收到的第一资源为第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的第一资源为第一资源分发事件所需分发的总资源中的部分时,接收到的第一资源随着第一交互数据指示的次数增加而增加。由于接收服务器响应于与终端进行交互所产生的第一交互数据而发送的第一资源分发事件所需分发的总资源中的部分或全部,且接收到的为总资源中的部分的第一资源随着第一交互数据指示的次数增加而增加,而第一交互数据指示的次数是可控的,从而实现了提高资源获取的可控性的技术效果,进而解决了相关技术在群组交互中,资源获取的可控性低的技术问题。

Claims (17)

  1. 一种资源的获取方法,包括:
    在第一群组的聊天窗口中接收到第一指示信息,其中,所述第一指示信息用于指示第一帐号发起的第一资源分发事件,所述第一帐号为所述第一群组中的帐号;
    获取与终端进行交互所产生的第一交互数据,其中,所述终端用于在预设指令的指示下显示所述聊天窗口,所述第一交互数据用于指示与所述终端进行交互的次数,所述第一交互数据与所述第一资源分发事件相关联;
    向服务器发送所述第一交互数据;
    接收所述服务器响应于所述第一交互数据发送的第一资源,其中,接收到的所述第一资源为所述第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的所述第一资源为所述第一资源分发事件所需分发的总资源中的部分时,接收到的所述第一资源随着所述第一交互数据指示的次数增加而增加。
  2. 根据权利要求1所述的方法,其中,
    在接收到所述第一指示信息之后,所述方法还包括:在所述聊天窗口中检测到对所述第一指示信息的触控操作;响应于所述触控操作,在所述终端中弹出第一提示窗口,其中,所述第一提示窗口中显示有所述第一资源分发事件的事件类型,所述事件类型对应的所述第一资源的接收方式为与所述终端进行交互;
    获取与所述终端进行交互所产生的所述第一交互数据包括:在所述终端中弹出第一提示窗口之后,获取与所述终端进行交互所产生的所述第一交互数据。
  3. 根据权利要求2所述的方法,其中,获取与所述终端进行交互所产生的所述第一交互数据包括:
    在等待第一预定时间之后,获取与所述终端进行交互所产生的所述第一交互数据,其中,所述第一预定时间以倒计时的方式显示在所述第一提示窗口中。
  4. 根据权利要求1所述的方法,其中,在接收到所述第一指示信息之后,所述方法还包括:
    在所述聊天窗口中接收到第二指示信息,其中,所述第二指示信息用于指示第二帐号发起的第二资源分发事件,所述第二帐号为所述第一群组中的帐号;
    获取与所述终端进行交互所产生的第二交互数据,其中,所述第二交互数据与所述第二资源分发事件相关联;
    向所述服务器发送所述第二交互数据;
    接收所述服务器响应于所述第二交互数据发送的第二资源,其中,接收到的所述第二资源为所述第二资源分发事件所需分发的总资源中的部分或全部,且在接收到的所述第二资源为所述第二资源分发事件所需分发的总资源中的部分时,接收到的所述第二资源随着所述第二交互数据指示的次数增加而增加。
  5. 根据权利要求4所述的方法,其中,获取与所述终端进行交互所产生的所述第二交互数据包括:
    在等待第二预定时间之后,获取与所述终端进行交互所产生的所述第二交互数据,其中,所述第二预定时间以倒计时的方式显示在所述终端中弹出的第二提示窗口中。
  6. 根据权利要求1至5中任意一项所述的方法,其中,获取与所述终端进行交互所产生的所述第一交互数据包括:
    通过所述终端的陀螺仪获取预定时间段内所述终端摇晃的次数;
    将所述第一交互数据设置为包括所述摇晃的次数和/或所述摇晃的频率,其中,所述摇晃的频率根据所述摇晃的次数和所述预定时间 段得到。
  7. 根据权利要求1至5中任意一项所述的方法,其中,在接收所述服务器响应于所述第一交互数据发送的所述第一资源时,所述方法还包括:
    在所述终端中弹出的第二提示窗口中显示第一提示信息,其中,所述第一提示信息用于提示当前已获取到的所述第一资源的取值。
  8. 根据权利要求7所述的方法,其中,在所述终端中弹出的第二提示窗口中显示所述第一提示信息时,所述方法还包括:
    在所述第二提示窗口中显示第二提示信息,其中,所述第二提示信息用于提示所述总资源中尚未分发的资源的取值。
  9. 根据权利要求1至5中任意一项所述的方法,其中,接收所述服务器响应于所述第一交互数据发送的所述第一资源包括:
    在所述第一资源分发事件所需分发的总资源未分发完毕的情况下,接收所述第一资源;
    在所述第一资源分发事件所需分发的总资源分发完毕的情况下,显示第三提示信息,其中,所述第三提示信息用于提示所述第一资源分发事件所需分发的总资源分发完毕。
  10. 根据权利要求1所述的方法,其中,在接收所述服务器响应于所述第一交互数据发送的所述第一资源之后,所述方法还包括:
    在所述第一群组的聊天窗口中选择第三资源分发事件的事件类型,其中,所述事件类型对应的第三资源的接收方式为与所述终端进行交互,所述第三资源为所述第三资源分发事件所需分发的总资源中的部分或全部;
    在所述终端中弹出的与所述事件类型相对应的资源获取窗口中,获取所述第三资源分发事件所需分发的总资源;
    向所述服务器发送所述第三资源分发事件所需分发的总资源,并在所述聊天窗口中接收到第三指示信息,其中,所述第三指示信息用 于指示所述第三资源分发事件。
  11. 根据权利要求10所述的方法,其中,在选择所述第三资源分发事件的事件类型之后,所述方法还包括:
    在所述终端中弹出的与所述事件类型相对应的资源获取窗口中,接收类型切换指令,其中,所述类型切换指令用于对所述事件类型进行切换,得到切换后的事件类型;
    获取第四资源分发事件所需分发的总资源,其中,所述第四资源分发事件的事件类型为所述切换后的事件类型;
    向所述服务器发送所述第四资源分发事件所需分发的总资源,并在所述聊天窗口中接收到第四指示信息,其中,所述第四指示信息用于指示所述第四资源分发事件。
  12. 一种资源的获取装置,包括一个或多个处理器,以及一个或多个存储程序单元的存储器,其中,所述程序单元由所述处理器执行,所述程序单元包括:
    第一接收单元,被设置为在第一群组的聊天窗口中接收到第一指示信息,其中,所述第一指示信息用于指示第一帐号发起的第一资源分发事件,所述第一帐号为所述第一群组中的帐号;
    第一获取单元,被设置为获取与终端进行交互所产生的第一交互数据,其中,所述终端用于在预设指令的指示下显示所述聊天窗口,所述第一交互数据用于指示与所述终端进行交互的次数,所述第一交互数据与所述第一资源分发事件相关联;
    第一发送单元,被设置为向服务器发送所述第一交互数据;
    第二接收单元,被设置为接收所述服务器响应于所述第一交互数据发送的第一资源,其中,接收到的所述第一资源为所述第一资源分发事件所需分发的总资源中的部分或全部,且在接收到的所述第一资源为所述第一资源分发事件所需分发的总资源中的部分时,接收到的所述第一资源随着所述第一交互数据指示的次数增加而增加。
  13. 根据权利要求12所述的装置,其中,
    所述程序单元还包括:检测单元,被设置为在接收到所述第一指示信息之后,在所述聊天窗口中检测到对所述第一指示信息的触控操作;响应单元,用于响应于所述触控操作,在所述终端中弹出第一提示窗口,其中,所述第一提示窗口中显示有所述第一资源分发事件的事件类型,所述事件类型对应的所述第一资源的接收方式为与所述终端进行交互;
    所述第一获取单元包括:第一获取模块,被设置为在所述终端中弹出第一提示窗口之后,获取与所述终端进行交互所产生的所述第一交互数据。
  14. 根据权利要求13所述的装置,其中,所述第一获取单元包括:
    第二获取模块,被设置为在等待第一预定时间之后,获取与所述终端进行交互所产生的所述第一交互数据,其中,所述第一预定时间以倒计时的方式显示在所述第一提示窗口中。
  15. 根据权利要求12所述的装置,其中,所述程序单元还包括:
    第三接收单元,被设置为在接收到所述第一指示信息之后,在所述聊天窗口中接收到第二指示信息,其中,所述第二指示信息用于指示第二帐号发起的第二资源分发事件,所述第二帐号为所述第一群组中的帐号;
    第二获取单元,被设置为获取与所述终端进行交互所产生的第二交互数据,其中,所述第二交互数据与所述第二资源分发事件相关联;
    第二发送单元,被设置为向所述服务器发送所述第二交互数据;
    第四接收单元,被设置为接收所述服务器响应于所述第二交互数据发送的第二资源,其中,接收到的所述第二资源为所述第二资源分发事件所需分发的总资源中的部分或全部,且在接收到的所述第二资源为所述第二资源分发事件所需分发的总资源中的部分时,接收到的所述第二资源随着所述第二交互数据指示的次数增加而增加。
  16. 一种存储介质,其中,所述存储介质中存储有计算机程序,所述计算机程序被设置为运行时执行所述权利要求1至11任一项中所述的方法。
  17. 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至11任一项中所述的方法。
PCT/CN2018/078937 2017-04-10 2018-03-14 资源的获取方法及装置、存储介质以及电子装置 WO2018188444A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710228969.8 2017-04-10
CN201710228969.8A CN107153581B (zh) 2017-04-10 2017-04-10 资源的获取方法和装置

Publications (1)

Publication Number Publication Date
WO2018188444A1 true WO2018188444A1 (zh) 2018-10-18

Family

ID=59793708

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078937 WO2018188444A1 (zh) 2017-04-10 2018-03-14 资源的获取方法及装置、存储介质以及电子装置

Country Status (3)

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

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153581B (zh) * 2017-04-10 2022-04-26 腾讯科技(深圳)有限公司 资源的获取方法和装置
CN108830724B (zh) * 2018-04-12 2023-04-14 平安科技(深圳)有限公司 一种资源数据包处理方法及终端设备
CN109246225A (zh) * 2018-09-25 2019-01-18 上海掌门科技有限公司 一种资源分配、发放及领取方法
CN110996180B (zh) * 2019-12-17 2021-05-28 李昱颉 一种网络直播聊天方法、系统及服务器
CN113344555A (zh) * 2020-02-18 2021-09-03 阿里巴巴集团控股有限公司 虚拟资源的获取方法、装置、系统、存储介质和处理器
CN112891941A (zh) * 2021-03-25 2021-06-04 腾讯科技(深圳)有限公司 虚拟资源的处理方法和装置、存储介质及电子设备
CN115253286A (zh) * 2021-04-30 2022-11-01 腾讯科技(深圳)有限公司 虚拟资源包的处理方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117250A (zh) * 2015-08-24 2015-12-02 联想(北京)有限公司 一种兼容性处理方法及电子设备
CN106161635A (zh) * 2016-07-20 2016-11-23 腾讯科技(北京)有限公司 信息处理方法、终端及服务器
CN106302111A (zh) * 2016-08-04 2017-01-04 财付通支付科技有限公司 一种信息处理方法、终端及服务器
CN106445243A (zh) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 智能设备的触摸响应装置和方法
CN107153581A (zh) * 2017-04-10 2017-09-12 腾讯科技(深圳)有限公司 资源的获取方法和装置

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
CN106331305A (zh) * 2015-07-02 2017-01-11 天脉聚源(北京)科技有限公司 一种微信自定义摇一摇功能的方法和系统
CN106020851A (zh) * 2016-06-27 2016-10-12 乐视控股(北京)有限公司 一种移动终端的控制方法及装置
CN106339865B (zh) * 2016-09-12 2018-07-03 广东欧珀移动通信有限公司 基于移动终端的电子资源获取方法及移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117250A (zh) * 2015-08-24 2015-12-02 联想(北京)有限公司 一种兼容性处理方法及电子设备
CN106161635A (zh) * 2016-07-20 2016-11-23 腾讯科技(北京)有限公司 信息处理方法、终端及服务器
CN106302111A (zh) * 2016-08-04 2017-01-04 财付通支付科技有限公司 一种信息处理方法、终端及服务器
CN106445243A (zh) * 2016-11-07 2017-02-22 深圳Tcl数字技术有限公司 智能设备的触摸响应装置和方法
CN107153581A (zh) * 2017-04-10 2017-09-12 腾讯科技(深圳)有限公司 资源的获取方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TIAN: "The design and implementation of mobile E-commerce (Convenient Discount) System based on Android", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE- CHINA MSTER'S THESES, no. 11, 15 November 2015 (2015-11-15), pages 45 - 48, ISSN: 1674-0246 *

Also Published As

Publication number Publication date
CN107153581A (zh) 2017-09-12
TW201837704A (zh) 2018-10-16
CN107153581B (zh) 2022-04-26

Similar Documents

Publication Publication Date Title
WO2018188444A1 (zh) 资源的获取方法及装置、存储介质以及电子装置
US11962861B2 (en) Live streaming room red packet processing method and apparatus, and medium and electronic device
US10861107B2 (en) Interaction system and method, client, and background server
JP6892447B2 (ja) インスタントメッセージングアプリケーションにおける通信のための方法及びシステム
JP6324495B2 (ja) チャットインターフェースでのゲーム実現の方法、装置および端末機器
JP7267435B2 (ja) 絵文字応答表示方法、装置、端末機器及びサーバ
AU2018421189B2 (en) Method for quickly opening application or application function, and terminal
EP3120231B1 (en) Dismissing notifications in response to a presented notification
US10931605B2 (en) Event processing method and apparatus
WO2018113648A1 (zh) 动画播放方法、装置、客户端、视频直播系统以及存储介质
KR101973718B1 (ko) 정보 처리 방법, 클라이언트 및 서버
CN110035004B (zh) 一种用户名片分享方法、好友添加方法和相关装置
WO2017140278A1 (zh) 一种资源分享的方法和装置
JP6492198B2 (ja) 情報処理方法および端末、ならびにコンピュータ記憶媒体
CN103473027A (zh) 一种通讯终端分屏多任务交互方法及通讯终端
CN107728885A (zh) 多任务的控制方法、装置、移动终端及存储介质
WO2017166464A1 (zh) 一种信息交互的方法及终端
CN110781421B (zh) 一种虚拟资源展示的方法以及相关装置
CN106339947A (zh) 基于聊天群进行业务操作、获取群成员信息的方法及装置
TW201541331A (zh) 即時訊息(二)
CN108335088B (zh) 一种虚拟资源转移方法、装置及存储介质
WO2023216948A1 (zh) 互动信息的显示方法、装置及设备
CN106302111A (zh) 一种信息处理方法、终端及服务器
WO2021135684A1 (zh) 直播间互动方法、装置、可读介质及电子设备
CN106161635B (zh) 信息处理方法、终端及服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18784629

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18784629

Country of ref document: EP

Kind code of ref document: A1