CN106599142B - Data resource receiving method and device - Google Patents

Data resource receiving method and device Download PDF

Info

Publication number
CN106599142B
CN106599142B CN201611108806.8A CN201611108806A CN106599142B CN 106599142 B CN106599142 B CN 106599142B CN 201611108806 A CN201611108806 A CN 201611108806A CN 106599142 B CN106599142 B CN 106599142B
Authority
CN
China
Prior art keywords
data
resource
data resources
terminal
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611108806.8A
Other languages
Chinese (zh)
Other versions
CN106599142A (en
Inventor
郭蕊
莫一民
梁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611108806.8A priority Critical patent/CN106599142B/en
Publication of CN106599142A publication Critical patent/CN106599142A/en
Priority to PCT/CN2017/094361 priority patent/WO2018024137A1/en
Priority to US16/194,154 priority patent/US11153237B2/en
Priority to US17/382,222 priority patent/US11595330B2/en
Application granted granted Critical
Publication of CN106599142B publication Critical patent/CN106599142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for receiving data resources, which comprises the following steps: a first terminal receives a plurality of data resources sent by a data server; controlling a plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources; detecting clicking operation aiming at a plurality of dynamically displayed data resources, and counting the number of clicked data resources in the data resources; and sending the number of the clicked data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal. By adopting the embodiment of the invention, the communication among users is promoted by dynamically displaying the data resources, and the frequency of data transfer is improved.

Description

Data resource receiving method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a data resource receiving method and apparatus.
Background
With the continuous development of science and technology, users can send chat information to each other through the instant messaging tool, and can also transfer data to each other through the instant messaging tool. In the prior art, if a first terminal needs to transfer data to a second terminal, a data transfer function of an instant messaging tool may be first opened, then a data transfer size is input, and the data transfer size is sent to a data server after a user of the first terminal confirms, the data server transfers data resources from a resource account of the first terminal to the second terminal according to the data transfer size, and the user of the second terminal can receive the data resources sent by the first terminal after clicking data transfer information. However, the data transfer in the prior art has a single expression form, and cannot promote user communication.
Disclosure of Invention
The embodiment of the invention provides a data resource receiving method and device. The data resources can be dynamically displayed, the communication among users is promoted, and the data transfer frequency is improved.
The embodiment of the invention provides a data resource receiving method, which comprises the following steps:
a first terminal receives a plurality of data resources sent by a data server;
the first terminal controls the data resources to slide in from a first edge of a display interface and points to a second edge opposite to the first edge to slide so as to dynamically display the data resources;
the first terminal detects clicking operation aiming at the plurality of dynamically displayed data resources and counts the number of clicked data resources in the plurality of data resources;
and the first terminal sends the number of the clicked data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
Accordingly, an embodiment of the present invention provides a data resource receiving apparatus, including:
the resource receiving module is used for receiving a plurality of data resources sent by the data server;
the resource display module is used for controlling the data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the data resources;
the data counting module is used for detecting the clicking operation aiming at the plurality of dynamically displayed data resources and counting the number of clicked data resources in the plurality of data resources;
and the data sending module is used for sending the number of the clicked data resources to the data server so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
Accordingly, another data resource receiving apparatus is provided in an embodiment of the present invention, including an interface circuit, a memory, and a processor, where the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory, and is configured to perform the following operations:
receiving a plurality of data resources sent by a data server;
controlling the plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources;
detecting clicking operation aiming at the plurality of dynamically displayed data resources, and counting the number of clicked data resources in the plurality of data resources;
and sending the number of the clicked data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
By implementing the embodiment of the invention, the first terminal receives a plurality of data resources sent by the data server; controlling a plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources; detecting clicking operation aiming at a plurality of dynamically displayed data resources, and counting the number of clicked data resources in the data resources; and sending the number of the clicked data resources to the data server so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal, thereby promoting communication among users by dynamically displaying the data resources and improving the frequency of data transfer.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a first embodiment of a method for receiving data resources according to the present invention;
FIG. 2 is a schematic diagram of a display of a data resource according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another data resource provided by an embodiment of the present invention;
fig. 4 is a flowchart of a second embodiment of a method for receiving data resources according to the present invention;
fig. 5 is a schematic structural diagram of a receiving apparatus of data resources according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another receiving apparatus for data resources according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for receiving data resources according to a first embodiment of the present invention. As shown in the figure, the method in the embodiment of the present invention includes:
s101, a first terminal receives a plurality of data resources sent by a data server, the data resources are randomly generated by the data server according to a received resource limit sent by a second terminal, the data resources comprise valid data resources and invalid data resources, or the data resources are generated by the data server according to a received resource limit and a received resource number sent by the second terminal, and the resource number comprises an invalid resource number and an valid resource number.
In the specific implementation, the second terminal can open the instant messaging client, select a 'data resource sending' function option at the instant messaging client, acquire a resource limit and a resource number input by a user, and send the resource limit and the resource number to the data server, after the data server receives the resource limit and the resource number, the data server can calculate a tie value by dividing the resource limit by the resource number to serve as the resource size of each data resource, or randomly distribute the resource size of each data resource according to the resource limit and the resource number, and after the resource size distribution of the data resources is completed, send a plurality of data resources to the first terminal.
Or the second terminal acquires the resource limit input by the user and sends the resource limit to the data server, and the data server randomly generates a plurality of data resources after receiving the resource limit, wherein the generated data resources comprise effective data resources and invalid data resources, and the sum of the resource size of the effective resource data is equal to the size of the resource limit input by the user.
Or the second terminal acquires the resource limit and the resource number input by the user, the resource number comprises an invalid resource number and an effective resource number, and sends the resource limit and the resource number to the data server, and the data server generates a plurality of data resources with the same or different resource sizes according to the effective resource number and the resource limit and generates data resources corresponding to the invalid resource number.
S102, the first terminal controls the data resources to slide in from a first edge of a display interface and points to a second edge opposite to the first edge to slide so as to dynamically display the data resources.
In a specific implementation, the plurality of data resources may be controlled to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding within a preset time range. The preset time range may be 2 seconds or 3 seconds, but is not limited thereto, the first edge may be an upper edge of the display interface, or may also be a left edge of the display interface, and correspondingly, the second edge may be a lower edge of the display interface, or may also be a right edge of the display interface.
Or when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate; keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate. The first coordinate may be an abscissa, and the second coordinate may be an ordinate.
Optionally, the first terminal may start timing after receiving the plurality of data resources sent by the data server, and start to slide in from the first edge of the display interface when the waiting time exceeds the preset interval time. As a further alternative, the remaining waiting time may be displayed on the display interface to remind the user to prepare to click on the data resource, wherein the preset interval time may include 5 seconds or 10 seconds, but is not limited to the above value.
For example, as shown in fig. 2, the plurality of data resources respectively start to slide down from the upper edge of the display interface at different times, and all slide into the display interface from the upper edge of the display interface within a preset time range. Moreover, the data resource may slide to the lower edge linearly at a constant speed, may slide to the lower edge linearly at an accelerated speed, or may slide to the lower edge in a curved line, but the sliding manner of the data resource is not limited to this. Wherein the glide speed or the glide acceleration may be preset.
S103, the first terminal detects clicking operations aiming at the plurality of dynamically displayed data resources and counts the number of clicked data resources in the plurality of data resources;
for example, as shown in fig. 3, in the process of sliding the plurality of data resources from the first edge to the second edge, counting is started from 0, if the user clicks on a data resource, the count value is increased by 1, if the user does not click on a data resource, no statistics is performed until the data resource is completely displayed on the display interface, and finally, the number of all clicked data resources is counted.
Optionally, when it is detected that a target data resource of the plurality of data resources is not clicked, the target data resource may be controlled to slide out from the second edge.
Optionally, the plurality of data resources include valid data resources and invalid data resources, and the number of the clicked valid data resources and the number of the clicked invalid data resources may be counted respectively, where the valid data resources are data resources that need to be added, and the invalid data resources are data resources that need to be deducted.
S104, the first terminal sends the number of the clicked data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
In a specific implementation, if the resource size of each data resource allocated by the data server is the same, the data server may determine, as the data transfer size, a product obtained by multiplying the number of the clicked data domain resources by the resource size of each data resource, and if the resource size of the data resource allocated by the data server randomly is large, the data server may first determine the resource size of each clicked data resource, then calculate the sum of the resource sizes of all the clicked data resources as the data transfer size, and perform data transfer to the first terminal according to the data transfer size.
Optionally, the number of the clicked valid data resources and the number of the clicked invalid data resources may be sent to the data server, after the data server receives the number of the clicked valid data resources and the number of the clicked invalid data resources, a difference obtained by subtracting the number of the clicked invalid data resources from the number of the clicked valid data resources is calculated, and then a product of the difference and a resource size of each data resource is used as the data transfer size.
For example, the second terminal firstly opens a WeChat 'Red packet' function, after the user selects 'Tianjiang Red packet', the user is prompted to input 'Red packet amount' and 'Red packet number', the 'Red packet amount' and the 'Red packet number' are sent to the data server, after the data server receives the 'Red packet amount' and the 'Red packet number', the size of each Red packet is calculated, a plurality of Red packets are sent to the first terminal, after the first terminal receives the plurality of 'Red packets', the 'Red packets' are controlled to be randomly displayed on an X coordinate, and certain accelerated simulation free fall is adopted for descending from the sky according to the Y coordinate; and simultaneously controlling within 200 milliseconds, randomly generating a plurality of red packets, adding 1 to the count value if the user clicks the red packet, subtracting 1 from the count value if the user clicks the icons with other colors by mistake, not counting the count value if the user does not click the red packet, and finally transferring the corresponding amount of money to the first terminal according to the count value obtained by statistics.
In the embodiment of the invention, a first terminal receives a plurality of data resources sent by a data server; controlling a plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources; detecting clicking operation aiming at a plurality of dynamically displayed data resources, and counting the number of clicked data resources in the data resources; and sending the number of the clicked data resources to the data server so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal, thereby promoting communication among users by dynamically displaying the data resources and improving the frequency of data transfer.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of a method for receiving data resources according to the present invention. As shown in the figure, the method in the embodiment of the present invention includes:
s401, the second terminal sends the resource limit or the resource limit and the resource number to the data server.
S402, the data server randomly generates a plurality of data resources according to the resource limit, wherein the data resources comprise effective data resources and invalid data resources; or generating a plurality of data resources according to the resource limit and the resource number, wherein the resource number comprises the number of invalid resources and the number of valid resources.
S403, the data server sends a resource generation confirmation message to the second terminal, wherein the resource generation confirmation message carries the resource identifiers of the plurality of data resources.
S404, the second terminal sends a confirmation indication message to the data server, the confirmation indication message carries the terminal identifier of the first terminal, the terminal identifier of the second terminal and the resource identifier of the data resource, and stores a plurality of data resources, the terminal identifier of the first terminal, the terminal identifier of the second terminal and the resource identifier of the data resource.
S405, the data server sends a data receiving prompt message to the first terminal.
S406, the first terminal sends a receiving confirmation message to the data server, wherein the receiving confirmation message carries the terminal identification of the first terminal.
S407, the data server transmits the plurality of data resources to the first terminal.
In a specific implementation, before the data server sends the plurality of data resources to the first terminal, whether the storage time of the data resources in the data server exceeds a preset time length, whether a user of the first terminal has received the data resources, or whether the user of the first terminal has a receiving qualification according to the terminal identifier of the first terminal may be checked, and if the storage time of the data resources in the data server does not exceed the preset time length, and it is determined that the user of the first terminal has not received the data resources and the user of the first terminal has the receiving qualification, the plurality of data resources are sent to the first terminal.
S408, the first terminal controls the plurality of data resources to slide in from a first edge of the display interface and points to a second edge opposite to the first edge to slide so as to dynamically display the plurality of data resources.
In a specific implementation, the plurality of data resources may be controlled to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding within a preset time range. The preset time range may be 2 seconds or 3 seconds, but is not limited thereto, the first edge may be an upper edge of the display interface, or may also be a left edge of the display interface, and correspondingly, the second edge may be a lower edge of the display interface, or may also be a right edge of the display interface.
Or when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate; keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate. The first coordinate may be an abscissa, and the second coordinate may be an ordinate.
Optionally, the first terminal may start timing after receiving the plurality of data resources sent by the data server, and start to slide in from the first edge of the display interface when the waiting time exceeds the preset interval time. As a further alternative, the remaining waiting time may be displayed on the display interface to remind the user to prepare to click on the data resource, wherein the preset interval time may include 5 seconds or 10 seconds, but is not limited to the above value.
For example, as shown in fig. 2, the plurality of data resources respectively start to slide down from the upper edge of the display interface at different times, and all slide into the display interface from the upper edge of the display interface within a preset time range. Moreover, the data resource can slide to the lower edge linearly at a constant speed, can also slide to the lower edge linearly at an accelerated speed, can also slide to the lower edge in a curved line, and the sliding mode of the data resource is not limited to this. Wherein the glide speed or the glide acceleration may be preset.
S409, the first terminal detects clicking operations aiming at the plurality of dynamically displayed data resources and counts the number of clicked data resources in the plurality of data resources;
for example, as shown in fig. 3, in the process of sliding the plurality of data resources from the first edge to the second edge, counting is started from 0, if the user clicks on a data resource, the count value is increased by 1, if the user does not click on a data resource, no statistics is performed until the data resource is completely displayed on the display interface, and finally, the number of all clicked data resources is counted.
Optionally, when it is detected that a target data resource of the plurality of data resources is not clicked, the target data resource may be controlled to slide out from the second edge.
Optionally, the plurality of data resources include valid data resources and invalid data resources, and the number of the clicked valid data resources and the number of the clicked invalid data resources may be counted respectively, where the valid data resources are data resources that need to be added, and the invalid data resources are data resources that need to be deducted.
S410, the first terminal sends the number of the clicked data resources to the data server.
In a specific implementation, the number of the clicked valid data resources and the number of the clicked invalid data resources may be sent to the data server
S411, the data server determines the data transfer size according to the number of the clicked data resources.
In a specific implementation, if the resource size of each data resource allocated by the data server is the same, the data server may determine, as the data transfer size, a product obtained by multiplying the number of the clicked data domain resources by the resource size of each data resource, and if the resource size of the data resource allocated by the data server randomly is large, the data server may first determine the resource size of each clicked data resource, then calculate the sum of the resource sizes of all the clicked data resources as the data transfer size, and perform data transfer to the first terminal according to the data transfer size.
Optionally, the number of the clicked valid data resources and the number of the clicked invalid data resources may be sent to the data server, after the data server receives the number of the clicked valid data resources and the number of the clicked invalid data resources, a difference obtained by subtracting the number of the clicked invalid data resources from the number of the clicked valid data resources is calculated, and then a product of the difference and a resource size of each data resource is used as the data transfer size.
S412, the data server returns the data transfer size to the first terminal.
S413, the first terminal displays the data transfer size.
For example, the second terminal firstly opens a WeChat 'Red packet' function, after the user selects 'Tianjiang Red packet', the user is prompted to input 'Red packet amount' and 'Red packet number', the 'Red packet amount' and the 'Red packet number' are sent to the data server, after the data server receives the 'Red packet amount' and the 'Red packet number', the size of each Red packet is calculated, a plurality of Red packets are sent to the first terminal, after the first terminal receives the plurality of 'Red packets', the 'Red packets' are controlled to be randomly displayed on an X coordinate, and certain accelerated simulation free fall is adopted for descending from the sky according to the Y coordinate; and simultaneously controlling within 200 milliseconds, randomly generating a plurality of red packets, adding 1 to the count value if the user clicks the red packet, subtracting 1 from the count value if the user clicks the icons with other colors by mistake, not counting the count value if the user does not click the red packet, and finally transferring the corresponding amount of money to the first terminal according to the count value obtained by statistics.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data resource receiving device according to an embodiment of the present invention. As shown in the figures, the apparatus in the embodiment of the present invention includes:
the resource receiving module 501 is configured to receive a plurality of data resources sent by a data server, where the plurality of data resources are randomly generated by the data server according to a received resource quota sent by a second terminal, the plurality of data resources include valid data resources and invalid data resources, or the plurality of data resources are generated by the data server according to a received resource quota and a resource number sent by the second terminal, and the resource number includes an invalid resource number and a valid resource number.
In the specific implementation, the second terminal can open the instant messaging client, select a 'data resource sending' function option at the instant messaging client, acquire a resource limit and a resource number input by a user, and send the resource limit and the resource number to the data server, after the data server receives the resource limit and the resource number, the data server can calculate a tie value by dividing the resource limit by the resource number to serve as the resource size of each data resource, or randomly distribute the resource size of each data resource according to the resource limit and the resource number, and after the resource size distribution of the data resources is completed, send a plurality of data resources to the first terminal.
Or the second terminal acquires the resource limit input by the user, then sends the resource limit to the data server, and after the data server receives the resource limit, the data server randomly generates a plurality of data resources, wherein the generated data resources comprise effective data resources and invalid data resources, and the sum of the resource size of the effective resource data is equal to the size of the resource limit input by the user.
Or the second terminal acquires the resource limit and the resource number input by the user, the resource number comprises an invalid resource number and an effective resource number, and sends the resource limit and the resource number to the data server, and the data server generates a plurality of data resources with the same or different resource sizes according to the effective resource number and the resource limit and generates data resources corresponding to the invalid resource number.
A resource display module 502, configured to control the plurality of data resources to slide in from a first edge of a display interface and to slide towards a second edge opposite to the first edge, respectively, so as to dynamically display the plurality of data resources;
in a specific implementation, the plurality of data resources may be controlled to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding within a preset time range. The preset time range may be 2 seconds or 3 seconds, but is not limited thereto, the first edge may be an upper edge of the display interface, or may also be a left edge of the display interface, and correspondingly, the second edge may be a lower edge of the display interface, or may also be a right edge of the display interface.
Or when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate; keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate. The first coordinate may be an abscissa, and the second coordinate may be an ordinate.
Optionally, the first terminal may start timing after receiving the plurality of data resources sent by the data server, and start to slide in from the first edge of the display interface when the waiting time exceeds the preset interval time. As a further alternative, the remaining waiting time may be displayed on the display interface to remind the user to prepare to click on the data resource, wherein the preset interval time may include 5 seconds or 10 seconds, but is not limited to the above value.
For example, as shown in fig. 2, the plurality of data resources respectively start to slide down from the upper edge of the display interface at different times, and all slide into the display interface from the upper edge of the display interface within a preset time range. Moreover, the data resource can slide to the lower edge linearly at a constant speed, can also slide to the lower edge linearly at an accelerated speed, can also slide to the lower edge in a curved line, and the sliding mode of the data resource is not limited to this. Wherein the glide speed or the glide acceleration may be preset.
A data statistics module 503, configured to detect a click operation on the dynamically displayed multiple data resources, and count the number of clicked data resources in the multiple data resources;
for example, as shown in fig. 3, in the process of sliding the plurality of data resources from the first edge to the second edge, counting is started from 0, if the user clicks on a data resource, the count value is increased by 1, if the user does not click on a data resource, no statistics is performed until the data resource is completely displayed on the display interface, and finally, the number of all clicked data resources is counted.
Optionally, when it is detected that a target data resource of the plurality of data resources is not clicked, the target data resource may be controlled to slide out from the second edge.
Optionally, the plurality of data resources include valid data resources and invalid data resources, and the number of the clicked valid data resources and the number of the clicked invalid data resources may be counted respectively, where the valid data resources are data resources that need to be added, and the invalid data resources are data resources that need to be deducted.
A data sending module 504, configured to send the number of the clicked data resources to the data server, so that the data server determines a data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
In a specific implementation, if the resource size of each data resource allocated by the data server is the same, the data server may determine, as the data transfer size, a product obtained by multiplying the number of the clicked data domain resources by the resource size of each data resource, and if the resource size of the data resource allocated by the data server randomly is large, the data server may first determine the resource size of each clicked data resource, then calculate the sum of the resource sizes of all the clicked data resources as the data transfer size, and perform data transfer to the first terminal according to the data transfer size.
Optionally, the number of the clicked valid data resources and the number of the clicked invalid data resources may be sent to the data server, after the data server receives the number of the clicked valid data resources and the number of the clicked invalid data resources, a difference obtained by subtracting the number of the clicked invalid data resources from the number of the clicked valid data resources is calculated, and then a product of the difference and a resource size of each data resource is used as the data transfer size.
For example, the second terminal firstly opens a WeChat 'Red packet' function, after the user selects 'Tianjiang Red packet', the user is prompted to input 'Red packet amount' and 'Red packet number', the 'Red packet amount' and the 'Red packet number' are sent to the data server, after the data server receives the 'Red packet amount' and the 'Red packet number', the size of each Red packet is calculated, a plurality of Red packets are sent to the first terminal, after the first terminal receives the plurality of 'Red packets', the 'Red packets' are controlled to be randomly displayed on an X coordinate, and certain accelerated simulation free fall is adopted for descending from the sky according to the Y coordinate; and simultaneously controlling within 200 milliseconds, randomly generating a plurality of red packets, adding 1 to the count value if the user clicks the red packet, subtracting 1 from the count value if the user clicks the icons with other colors by mistake, not counting the count value if the user does not click the red packet, and finally transferring the corresponding amount of money to the first terminal according to the count value obtained by statistics.
In the embodiment of the invention, a first terminal receives a plurality of data resources sent by a data server; controlling a plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources; detecting clicking operation aiming at a plurality of dynamically displayed data resources, and counting the number of clicked data resources in the data resources; and sending the number of the clicked data resources to the data server so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal, thereby promoting communication among users by dynamically displaying the data resources and improving the frequency of data transfer.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another data resource receiving device according to an embodiment of the present invention. As shown, the apparatus may include: at least one processor 601, e.g. a CPU, at least one communication interface 602, at least one memory 603, at least one bus 606. Bus 606 is used, among other things, to enable communications among the components. The communication interface 602 of the apparatus in the embodiment of the present invention is a wired transmission port, and may also be a wireless device, for example, including an antenna apparatus, for performing signaling or data communication with other node devices. The memory 603 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 603 may optionally be at least one storage device located remotely from the processor 601. A set of program code is stored in the memory 603 and the processor 601 is used to call the program code stored in the memory for performing the following operations:
receiving a plurality of data resources sent by a data server, wherein the plurality of data resources are generated by the data server according to the received resource limit and the number of resources sent by a second terminal;
controlling the plurality of data resources to slide in from a first edge of a display interface and point to a second edge opposite to the first edge to dynamically display the plurality of data resources;
detecting clicking operation aiming at the plurality of dynamically displayed data resources, and counting the number of clicked data resources in the plurality of data resources;
and sending the number of the clicked data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked data resources and returns the data transfer size to the first terminal.
Wherein, the processor 601 is further configured to perform the following operation steps:
and controlling the plurality of data resources to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding within a preset time range.
Wherein, the processor 601 is further configured to perform the following operation steps:
when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate;
keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate.
Wherein, the processor 601 is further configured to perform the following operation steps:
when detecting that a target data resource in the plurality of data resources is not clicked, controlling the target data resource to slide out from the second edge.
Wherein, the processor 601 is further configured to perform the following operation steps:
respectively counting the number of the clicked effective data resources and the number of the clicked invalid data resources;
and sending the number of the clicked effective data resources and the number of the clicked invalid data resources to the data server, so that the data server determines the data transfer size according to the number of the clicked effective data resources and the number of the clicked invalid data resources.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The content downloading method, the related device and the system provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the embodiment of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A data resource receiving method, the method comprising:
the second terminal sends the resource limit and the resource number to the data server through the instant messaging client;
the data server generates a plurality of data resources according to the resource limit and the resource number, wherein the resource number comprises an invalid data resource number and an effective data resource number, the effective data resource is a data resource which needs to be added after being clicked, and the invalid data resource is a data resource which needs to be deducted after being clicked;
the data server sends a resource generation confirmation message to the second terminal, wherein the resource generation confirmation message carries the resource identifiers of the plurality of data resources;
the second terminal sends a confirmation indication message to the data server, carries the terminal identifier of the first terminal, the terminal identifier of the second terminal and the resource identifiers of the multiple data resources, and stores the multiple data resources, the terminal identifier of the first terminal, the terminal identifier of the second terminal and the resource identifiers of the multiple data resources;
the data server sends the plurality of data resources to the first terminal;
the first terminal receives the plurality of data resources sent by the data server through an instant messaging client;
the first terminal controls the plurality of data resources to respectively start to slide downwards from the upper edge of the display interface to the lower edge of the display interface at different moments, and all the data resources slide into the display interface from the upper edge within a preset time range;
the first terminal detects clicking operations aiming at the plurality of dynamically displayed data resources and respectively counts the number of clicked effective data resources and the number of clicked invalid data resources;
and the first terminal sends the number of the clicked effective data resources and the number of the clicked invalid data resources to the data server, so that the data server calculates a difference value obtained by subtracting the number of the clicked effective data resources from the number of the clicked invalid data resources, the product of the difference value and the resource size of each data resource is used as a data transfer size, and the data transfer size is returned to the first terminal.
2. The method of claim 1, wherein the method further comprises:
and controlling the plurality of data resources to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding in the preset time range.
3. The method of claim 1, wherein the method further comprises:
when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate;
keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate.
4. The method of claim 2 or 3, wherein after detecting the click operation on the dynamically exposed plurality of data resources, the method further comprises:
when detecting that a target data resource in the plurality of data resources is not clicked, controlling the target data resource to slide out from the second edge.
5. The method according to any one of claims 1 to 3, wherein the plurality of data resources are randomly generated by the data server according to the received resource quota transmitted by the second terminal.
6. A data resource receiving apparatus, characterized in that the apparatus is configured as a first terminal,
the second terminal sends the resource limit and the resource number to the data server through the instant messaging client;
generating a plurality of data resources by the data server according to the resource limit and the resource number, wherein the resource number comprises an invalid data resource number and an effective data resource number, the effective data resource is a data resource which needs to be increased after being clicked, and the invalid data resource is a data resource which needs to be deducted after being clicked;
sending a resource generation confirmation message to the second terminal by the data server, wherein the resource generation confirmation message carries the resource identifiers of the plurality of data resources;
sending, by the second terminal, a confirmation indication message to the data server, carrying the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the resource identifiers of the plurality of data resources, and storing the plurality of data resources, the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the resource identifiers of the plurality of data resources;
transmitting, by the data server, the plurality of data resources to the first terminal;
the device comprises:
the resource receiving module is used for receiving the plurality of data resources sent by the data server through an instant messaging client;
the resource display module is used for controlling the plurality of data resources to respectively start to slide downwards from the upper edge of a display interface to the lower edge of the display interface at different moments and to completely slide into the display interface from the upper edge within a preset time range;
the data counting module is used for detecting the clicking operation aiming at the plurality of dynamically displayed data resources and respectively counting the number of the clicked effective data resources and the number of the clicked invalid data resources;
and the data sending module is used for sending the number of the clicked effective data resources and the number of the clicked invalid data resources to the data server so that the data server calculates a difference value obtained by subtracting the number of the clicked effective data resources from the number of the clicked invalid data resources, the product of the difference value and the resource size of each data resource is used as a data transfer size, and the data transfer size is returned to the first terminal.
7. The apparatus of claim 6, wherein the resource display module is specifically configured to:
and controlling the plurality of data resources to slide in from a first edge of the display interface and point to a second edge opposite to the first edge to accelerate sliding in the preset time range.
8. The apparatus of claim 6, wherein the resource display module is specifically configured to:
when the plurality of data resources are detected to respectively slide in from the first edge of the display interface, randomly allocating the coordinate position of each data resource, wherein the coordinate position comprises a first coordinate and a second coordinate;
keeping the first coordinate unchanged and sliding each of the data resources in a coordinate direction of the second coordinate.
9. The apparatus of claim 7 or 8, wherein the resource display module is further configured to control a target data resource of the plurality of data resources to slide out from the second edge when detecting that the target data resource is not clicked.
10. The apparatus according to any one of claims 6-8, wherein the plurality of data resources are randomly generated by the data server according to the received resource quota transmitted by the second terminal.
11. A data resource receiving apparatus, characterized in that the apparatus is configured as a first terminal,
the second terminal sends the resource limit and the resource number to the data server through the instant messaging client;
generating a plurality of data resources by the data server according to the resource limit and the resource number, wherein the resource number comprises an invalid data resource number and an effective data resource number, the effective data resource is a data resource which needs to be increased after being clicked, and the invalid data resource is a data resource which needs to be deducted after being clicked;
sending a resource generation confirmation message to the second terminal by the data server, wherein the resource generation confirmation message carries the resource identifiers of the plurality of data resources;
sending, by the second terminal, a confirmation indication message to the data server, carrying the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the resource identifiers of the plurality of data resources, and storing the plurality of data resources, the terminal identifier of the first terminal, the terminal identifier of the second terminal, and the resource identifiers of the plurality of data resources;
transmitting, by the data server, the plurality of data resources to the first terminal;
the apparatus includes an interface circuit, a memory, and a processor, wherein the memory stores a set of program code therein, and the processor is configured to call the program code stored in the memory for performing the following:
receiving the plurality of data resources sent by the data server through an instant messaging client;
controlling the plurality of data resources to respectively start to slide downwards from the upper edge of a display interface to the lower edge of the display interface at different moments, and all the data resources slide into the display interface from the upper edge within a preset time range;
detecting clicking operations aiming at the plurality of dynamically displayed data resources, and respectively counting the number of clicked effective data resources and the number of clicked invalid data resources;
and sending the number of the clicked effective data resources and the number of the clicked invalid data resources to the data server, so that the data server calculates a difference obtained by subtracting the number of the clicked effective data resources from the number of the clicked invalid data resources, takes the product of the difference and the resource size of each data resource as a data transfer size, and returns the data transfer size to the first terminal.
12. A computer-readable storage medium characterized in that the computer-readable storage medium stores a program for executing the method according to any one of claims 1 to 5.
CN201611108806.8A 2016-08-04 2016-12-06 Data resource receiving method and device Active CN106599142B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201611108806.8A CN106599142B (en) 2016-12-06 2016-12-06 Data resource receiving method and device
PCT/CN2017/094361 WO2018024137A1 (en) 2016-08-04 2017-07-25 Information processing method, apparatus and device, and storage medium
US16/194,154 US11153237B2 (en) 2016-08-04 2018-11-16 Information processing method, apparatus, device and storage medium
US17/382,222 US11595330B2 (en) 2016-08-04 2021-07-21 Information processing method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108806.8A CN106599142B (en) 2016-12-06 2016-12-06 Data resource receiving method and device

Publications (2)

Publication Number Publication Date
CN106599142A CN106599142A (en) 2017-04-26
CN106599142B true CN106599142B (en) 2021-07-27

Family

ID=58596464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108806.8A Active CN106599142B (en) 2016-08-04 2016-12-06 Data resource receiving method and device

Country Status (1)

Country Link
CN (1) CN106599142B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018024137A1 (en) 2016-08-04 2018-02-08 腾讯科技(深圳)有限公司 Information processing method, apparatus and device, and storage medium
CN107465600A (en) * 2017-08-17 2017-12-12 郑州市润合网络科技有限公司 The method for pushing and system of chat message
CN107833029B (en) * 2017-11-16 2021-06-11 创新先进技术有限公司 Resource transfer method and device, and red packet sending method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787762A (en) * 2016-02-24 2016-07-20 杨晟志 Network business interaction system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787762A (en) * 2016-02-24 2016-07-20 杨晟志 Network business interaction system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
双11"红包雨"活动规则 红包雨时间、使用规则等;中国站长站;《站长之家》;20151109;第1-2页 *

Also Published As

Publication number Publication date
CN106599142A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US10425368B2 (en) Information processing method, user equipment, server, and computer-readable storage medium
CN109246229B (en) Method and device for distributing resource acquisition request
CN106850402B (en) Message transmission method and device
CN106599142B (en) Data resource receiving method and device
US10931605B2 (en) Event processing method and apparatus
CN105096137A (en) Method for sharing resources, server and terminal device
CN107819870A (en) Increment pulling data method, apparatus, storage medium, terminal device and server
CN111459690B (en) Data receiving and transmitting control method and device, mobile terminal and storage medium
CN105307284B (en) A kind of accidental access method and user equipment
WO2018188444A1 (en) Resource acquisition method and device, storage medium and electronic device
CN104541536B (en) Method, user equipment and base station for detecting device to device signals
CN108335088B (en) Virtual resource transfer method, device and storage medium
CN107734556B (en) Data transfer control method and Related product
CN104363581B (en) A kind of the determination method and relevant device of associated terminal
CN112134779B (en) Network information processing method, device, system, client and readable storage medium
CN107222618A (en) Terminal screenshotss method and device
CN107734180B (en) Information processing method
CN107295412B (en) Data processing method, device and system
CN113452604A (en) Service data processing method and device
CN109729061A (en) Message treatment method, device, equipment and readable storage medium storing program for executing
CN110035399B (en) Message transmission method and related equipment
CN111494938A (en) Speed measuring method and device, storage medium and electronic device
CN108271212B (en) Resource selection mechanism determination method and device
CN111178856A (en) Data processing method, mobile terminal and computer-readable storage medium
CN106488537B (en) Sending method, device and mobile terminal

Legal Events

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