CN103713895A - Data sending method and device - Google Patents

Data sending method and device Download PDF

Info

Publication number
CN103713895A
CN103713895A CN201310632777.5A CN201310632777A CN103713895A CN 103713895 A CN103713895 A CN 103713895A CN 201310632777 A CN201310632777 A CN 201310632777A CN 103713895 A CN103713895 A CN 103713895A
Authority
CN
China
Prior art keywords
data
queue
client
time
node
Prior art date
Application number
CN201310632777.5A
Other languages
Chinese (zh)
Other versions
CN103713895B (en
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 北京奇虎科技有限公司
Priority to CN201310632777.5A priority Critical patent/CN103713895B/en
Publication of CN103713895A publication Critical patent/CN103713895A/en
Application granted granted Critical
Publication of CN103713895B publication Critical patent/CN103713895B/en

Links

Abstract

The invention discloses a data sending method and device, and relates to the field of computers. The method includes acquiring distribution data to be distributed and a first time node and a second time node which are to be distributed; acquiring a total number N of the distribution data in the distribution data, and randomly determining N different time nodes i between the first time node and the second time node; corresponding each time node i to the distribution data, and placing the distribution data into data queues in sequence; after a data acquiring request from a client terminal is received, acquiring the initiate time of the request and the time node i according to the data, and determining whether or not the client terminal has the permission to acquire the distribution data according to the data queues; if so, acquiring and sending the distribution data to the client terminal according to the data queues. The method is convenient to maintain, occupation of system resources can be reduced, data performances can be further improved, and statistical efficiency can be improved in process of distribution data statistics.

Description

一种数据发送方法和装置 A data transmission method and apparatus

技术领域 FIELD

[0001] 本发明涉及计算机领域,具体涉及一种数据发送方法和装置。 [0001] The present invention relates to the computer field, particularly relates to a data transmission method and apparatus.

背景技术 Background technique

[0002] 现有技术中存在一种数据发送的方法,即一段时间的某在指定的时间点,将有限的待分配的数据的权限对客户端公开,由客户发送请求按任意顺序获取这些待分配数据,但是该种一次性全部放开权限、任意获取待分配数据的方式,对于系统来说,维持每个待分配的数据,等待符合初步要求的客户端进行提取,系统资源占用较高,影响系统性能,并且由待分配数据被任意获取,最后在系统统计哪些分配数据未发出、哪些数据已发出时,也需要遍历每个分配数据,资源占用高,速度慢、效率低。 [0002] A method of transmitting data present in the prior art, i.e. at a given point in time, the limited authority of the data to be dispensed for a period of time the disclosed client, sending a request by the client to be acquired in any order of these distribution of data, but this kind of open permissions all at once, any way to get the data to be assigned, for the system to maintain data for each to be allocated, waiting in line with the initial requirements of the client to extract higher system resource consumption, affect system performance, and the data to be assigned arbitrarily by the acquisition, the final allocation of statistical data which is not issued in the system, when what data has been sent, but also need to traverse each data distribution, high resource consumption, slow and inefficient.

[0003] 对应上述的数据发送方法,下面以一个应用场景进行说明: [0003] corresponding to the data transmission method described above, the following scenario will be described in an application:

[0004] 现在很多网站会在某些时间段进行促销等活动,可能在活动期间设置抽奖活动,现有技术中,其服务器在活动期间的指定时刻将奖品数据的发放权限完全开放,当客户端用户点击抽奖,其达到抽奖概率,则服务器则从这些奖品数据中提取一个分配给该客户端用户,到抽奖时间结束,再统计哪些奖品数据发出去了哪些没发出去,其执行过程与前述过程基本类似,因此对于系统来说,每个待分配数据相当于存在一个队列,等待符合初步要求的客户端进行提取,系统资源占用较高,影响系统性能,并且由待分配数据被任意获取,最后在系统统计哪些分配数据未发出、哪些数据已发出时,也需要遍历每个分配数据,资源占用高,速度慢、效率低;并且其奖品数据可能在瞬间就发放完,剩余时间就没有可发的奖品数据。 [0004] Now many sites will be at some time promotions and other activities, may be set in a raffle during the event, the prior art, which will be issued rights prize data server is fully open at a given moment during the event, when a client the user clicks on the lottery, lottery probability it reaches the server to extract data from these prizes a user assigned to the client, to the end of the draw period, then the statistical data which prizes sent out what did not go through that process and the implementation of the above process substantially similar, so for the system, corresponding to the presence of data to be assigned to each queue, waiting for the client meet the requirements of the initial extract, high occupancy of system resources, affect system performance, and the data are arbitrarily assigned to be acquired, and finally What data is not sent in the allocation system statistics, what data has been sent, but also need to traverse each data distribution, high resource consumption, slow and inefficient; and that prize data might finish in an instant payment, the remaining time will not be made prize data.

发明内容 SUMMARY

[0005] 鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种数据发送和相应的一种数据发送方法。 [0005] In view of the above problems, the present invention is proposed in order to overcome the above problems provides a data of the above problems or at least one of transmission and a data transmission method corresponding partially solved.

[0006] 依据本发明的一个方面,提供了本发明公开了一种数据发送方法,包括: [0006] According to an aspect of the present invention, there is provided according to the present invention discloses a data transmission method, comprising:

[0007] 获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0007] allocation data acquired to be dispensed, and a first time and the second time the node node to be dispensed;

[0008] 获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i; [0008] The data in obtaining distribution data of the total number N assigned randomly determined number N of mutually different node i time between a first time and the second time the node node;

[0009] 将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0009] Each node i and the time corresponding to the allocation data, and sequentially allocating the data into the data queue;

[0010] 当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0010] When the client receives the data acquisition request, acquires the node initiating time and the time point i according to the data request, determining whether the client queue have permission obtaining distribution data according to the data;

[0011] 当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 [0011] When the client includes the rights, the queue allocated acquired data to the client according to the data.

[0012] 可选的,所述按序将分配数据放入数据队列中包括: [0012] Optionally, the data is allocated sequentially into the data queue comprises:

[0013] 根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0013] The authority attribute assignment data in the data queue belongs permission attribute node order chronological allocation data storage.

[0014] 可选的,根据分配数据的属性,在所属属性的数据队列中按时间节点顺序将分配数据进行存放包括: [0014] Alternatively, according to the attribute allocation data, in their respective data queue attribute node order time storage allocation data comprises:

[0015] 将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0015] The distribution data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0016] 将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0016] The distribution data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0017] 可选的,还包括: [0017] Optionally, further comprising:

[0018] 当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; [0018] When the client receives the data acquisition request, extracting a data record allocation table records the acquired client according to the request;

[0019] 当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; [0019] acquired allocation data includes issuing authority attribute can not be repeated when the recording client, the client is prohibited current queue allocation data from the data acquisition;

[0020] 当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 [0020] When the recording data assigned to the client issuing authority includes a non-repeating properties not acquired, allows the client queue currently assigned data according to the acquired data.

[0021] 可选的,还包括: [0021] Optionally, further comprising:

[0022] 当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0022] When the client receives the data acquisition request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0023] 可选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限包括: [0023] Alternatively, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes acquiring rights according to the data allocation data comprises :

[0024] 基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0024] Based on the time point corresponding to the data queue, determining whether the initiation time point reaches or exceeds the time a node I;

[0025] 如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0025] If at any time does not reach node i, it is determined that the client does not have permission to get the data queue allocation data;

[0026] 如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 [0026] If a time reaches or exceeds the node i, it is determined that the client includes obtaining permission data queue discharge head allocation data.

[0027] 可选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限之前还包括: Before [0027] Alternatively, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes acquiring data according to the permission assignment data Also includes:

[0028] 为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0028] The client randomly assigned a probability value when the probability value does not meet the threshold requirement, then disable the client queue allocation data from the data acquisition.

[0029] 可选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限之前还包括: Before [0029] Alternatively, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes acquiring data according to the permission assignment data Also includes:

[0030] 判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 The number of data [0030] Analyzing the client sent the acquisition request exceeds a threshold; if exceeded, blocks the client queue allocation data from the data acquisition.

[0031] 本发明还公开了一种数据发送装置,包括: [0031] The present invention also discloses a data transmitting apparatus, comprising:

[0032] 数据获取模块,适于获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0032] The data acquisition module adapted to acquire allocation data to be dispensed, and a first time to a second node and a time to be dispensed node;

[0033] 打点模块,适于获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ; [0033] RBI module, it adapted to obtain the total number of distribution data in the distribution data N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0034] 队列存放模块,适于将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0034] queue storage module, adapted to each node i and the time corresponding to the allocation data, and sequentially allocating the data into the data queue;

[0035] 权限分析模块,适于当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0035] Analysis permission module adapted to receive the data when the client acquisition request, acquires initiation time point and the time point i according to the data request, determining whether the client queue have permission obtaining distribution data according to the data;

[0036] 数据发送模块,适于当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 [0036] The data transmission module adapted to when the client have the rights, the queue allocated acquired data to the client according to the data.

[0037] 可选的,所述队列存放模块包括: [0037] Optionally, the queue storage module comprises:

[0038] 属性队列存放模块,适于根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0038] The properties of the queue storage module, adapted to assign rights attribute data, in the data queue belongs permission attribute node order chronological allocation data storage.

[0039] 可选的,所述属性队列存放模块包括: [0039] Alternatively, the properties of the queue storage module comprises:

[0040] 第一队列存放模块,适于将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0040] The first queue storage module, adapted to allocate data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0041] 第二队列存放模块,适于将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0041] The second queue storage module adapted to assign data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0042] 可选的,还包括: [0042] Optionally, further comprising:

[0043] 记录提取模块,适于当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; [0043] record extraction module, adapted to the client after receiving the data acquisition request, acquires the extracted recording data according to the allocation table allocation record to the request of the client;

[0044] 第一权限分析模块,适于当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; [0044] The first rights analyzing module, adapted to assign the acquired data includes issuing authority attribute can not be repeated when the recording client, the client is prohibited current queue allocation data from the data acquisition;

[0045] 第二权限分析模块,适于当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 [0045] The second permission analyzing module, adapted to record when the client can not be repeated allocation data includes issuing authority attribute is not acquired, allows the client queue currently assigned data according to the acquired data.

[0046] 可选的,还包括: [0046] Optionally, further comprising:

[0047] 完毕判断模块,适于当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0047] completion determining module, adapted to receive the data after obtaining the client request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0048] 可选的,所述权限分析模块包括: [0048] Optionally, the privilege analysis module comprises:

[0049] 时间点判断模块,适于基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0049] The time point determining module, adapted based on the time data corresponding to the node of the queue, it is judged whether the initiation point of time reaches or exceeds the time a node I;

[0050] 第一队列数据判断模块,适于如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0050] a first queue data determining module, if does not reach at any time is adapted to node i, it is determined that the client does not have permission to get the data queue allocation data;

[0051] 第二队列数据判断模块,适于如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 [0051] The second queue data determining module, adapted if the time reaches or exceeds a node i, it is determined that the client includes obtaining permission data queue discharge head allocation data.

[0052] 可选的,所述权限分析模块还包括: [0052] Optionally, the privilege analysis module further comprises:

[0053] 第三权限分析模块,适于为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0053] The third analyzing module authority, the client is adapted to assign a probability of a random value, when the probability value does not meet the threshold requirement, then disable the client queue allocation data from the data acquisition.

[0054] 可选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限时还包括: When [0054] Alternatively, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes acquiring data according to the permission assignment data Also includes:

[0055] 第四权限分析模块,适于判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 [0055] Fourth authority analyzing module, adapted to send the client determines the number of data acquisition request exceeds a threshold; If so, the client is prohibited queue allocation data from the data acquisition. [0056] 根据本发明的一种数据发送方法可以将获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i,然后将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中,当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限,当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端,由此解决了对于系统来说,维持每个待分配的数据,等待符合初步要求的客户端进行提取,系统资源占用较高,影响系统性能,并且由待分配数据被任意获取,最后在系统统计哪些分配数据未发出、哪些数据已发出时,也需要遍历每个分配数据,资源占用高,速度慢、效率低的问题取得了在分 [0056] N may be the total number of allocation data acquired in the data distribution method of transmitting data according to one of the present invention, N is determined mutually different random time between node i node a first time and the second time the node, each node i is then time corresponding to the allocated data, and sequentially allocating the data into the data queue, when the client receives the data acquisition request, acquires the request initiation time point and the time point i according to the data, determining whether the client queue includes acquiring data according to the permission assignment data, when the client is provided with the rights, the queue allocated acquired data to the client based on the data, thereby solving for the system to maintain each of the data to be assigned, waiting for client complies with the requirements of the initial extraction, higher occupancy of system resources, affect system performance, and the data to be assigned to any acquisition, the final allocation of statistical data which is not issued in the system, what data has been sent when, also you need to traverse each distribution data, high resource consumption, slow, inefficient problem made in points 数据时方便维护、降低系统资源的占用、提高数据性能,在最后统计分配数据时,降低系统资源的占用、提高统计效率的有益效果。 Convenient data maintenance, reducing system resources, improve data performance in the final statistical distribution of data, reduce system resources and improve beneficial effects of statistical efficiency.

[0057] 上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。 [0057] The above description is only an overview of the technical solution of the present invention, in order to more fully understood from the present invention, but may be implemented in accordance with the contents of the specification, and in order to make the aforementioned and other objects, features and advantages of the present invention can be more apparent from the following specific embodiments cite Patent of the present invention.

附图说明 BRIEF DESCRIPTION

[0058] 通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。 [0058] By reading the following detailed description of preferred embodiments Hereinafter, a variety of other advantages and benefits to those of ordinary skill in the art will become apparent. 附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。 The drawings are only for purposes of illustrating a preferred embodiment and are not to be considered limiting of the present invention. 而且在整个附图中,用相同的参考符号表示相同的部件。 But throughout the drawings, like parts with the same reference symbols. 在附图中: In the drawings:

[0059] 图1示出了根据本发明一个实施例的一种数据发送方法的流程示意图; [0059] FIG. 1 shows a schematic flow of a data sending method according to an embodiment of the present invention;

[0060] 图2示出了根据本发明一个实施例的一种数据发送方法的流程示意图; [0060] FIG. 2 shows a schematic flow of a data sending method according to an embodiment of the present invention;

[0061] 图2a示出了根据本发明一个实施例的上传后的奖品列表示例; [0061] Figure 2a shows a prize after uploading embodiment of the exemplary embodiment of the present invention, the list;

[0062] 图2b示出了根据本发明一个实施例的上传奖品数据界面示例; [0062] Figure 2b shows an example of a data interface according to one embodiment of the prize upload the present invention;

[0063] 图3示出了根据本发明一个实施例的一种数据发送装置的结构示意图; [0063] FIG. 3 shows a schematic configuration according to one embodiment of a data transmitting apparatus of the present invention;

[0064] 图4示出了根据本发明一个实施例的一种数据发送装置的结构示意图。 [0064] FIG. 4 shows a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention is embodiment a.

具体实施方式 Detailed ways

[0065] 下面将参照附图更详细地描述本公开的示例性实施例。 [0065] The following exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 While the exemplary embodiment shows an exemplary embodiment of the present disclosure in the drawings, it should be understood that the present disclosure may be implemented embodiments and should not be set forth herein to limit in various forms. 相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Rather, these embodiments are able to more thorough understanding of the present disclosure, and the scope of the present disclosure can be completely conveying to those skilled in the art.

[0066] 实施例一 [0066] Example a

[0067] 参照图1,其示出了本发明一种数据发送方法的流程示意图,具体可以包括: [0067] Referring to FIG. 1, which shows a flow diagram of a data transmission method of the present invention specifically include:

[0068] 步骤102,获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0068] Step 102, the data acquiring dispensing be dispensed, and a first time to a second node and a time to be dispensed node;

[0069] 在本发明实施例中,以在网络平台中发放奖品数据的应用场景为例进行说明,则所述的分配数据则可为奖品数据,本发明不对具体的应用场景加以限制。 [0069] In an embodiment of the present invention, the payment of prizes to application scenario data network platform is described as an example, the data can be allocated to the prize data, not to limit specific application scenario of the present invention.

[0070] 比如网络平台设置了N个奖项,则技术人员上传N个奖项的奖品数据,然后设置待分配的时间段,该时间段由第一时间节点和第二时间节点确定,比如2013-9-3023:592013-10-300:00。 [0070] For example, a network platform is provided awards N, N the art awards prizes to upload data, and then set the time period to be dispensed, the period of time determined by the time a first node and a second node of time, such as 2013-9 -3023: 592013-10-300: 00. [0071] 步骤104,获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i; [0071] Step 104, acquiring the total number of distribution data in the distribution data N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0072] 在获取到奖品数据和第一时间节点timel和第二时间节点time2后,获取奖品数 [0072] After obtaining the prize data node and a first time and a second time timel node time2, the number of acquired prize

据的总个数N,在timel和time2之间随机选择N个互不相同的时间节点ti (i=l, 2,3......N),在本发明实施例中,可随机均匀的选择N个互不相同的时间节点。 According to the total number N, and between timel time2 N randomly selected nodes mutually different time ti (i = l, 2,3 ...... N), in the embodiment of the present invention may be a random selecting the N homogeneous mutually different time node.

[0073] 步骤106,将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0073] Step 106, each time the node i and the corresponding allocation data, and sequentially allocating the data into the data queue;

[0074] 将N奖品数据分别对应一个时间节点,该对应可随机对应,也可按奖品等级逐级对应,然后将对应时间节点的奖品数据按时间先后顺序存入数据队列中。 [0074] The N prize data corresponding to a time node, respectively, which correspond to the corresponding randomly, in accordance with their levels corresponding to the prize, and the prize data corresponding to the time of the node stored in chronological data queue. 在本发明实施例中,可将奖品的标识存入队列中。 In an embodiment of the present invention, prizes may be stored in a queue identifier.

[0075] 优选的,所述按序将分配数据放入数据队列中包括: [0075] Preferably, the sequentially assigned data into the data queue comprises:

[0076] A12,根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0076] A12, according to the authority attribute assignment data in the data queue belongs permission attribute node order chronological allocation data storage.

[0077] 在实际中,奖品数据可设置权限属性,比如不可重复发放权限属性,即针对该奖品数据,服务器只能将该类奖品数据给同一客户端用户发放一次,同一客户端只可以获取一个该种奖品个数。 [0077] In practice, the prize data sets permissions properties, such properties can not repeat issuance of authority, i.e., the data for a prize, a prize server only the categories of data to the same client issuing a user, the same client can only obtain a the number of rewards. 比如可重复发放权限属性,即针对该奖品数据,服务器可以重复发放给同一客户端用户,同一客户端只可以获取多个该种奖品个数。 Grant such permission attributes may be repeated, i.e., the data for a prize, may be repeatedly issued to the same server client user, the client can only obtain the same plurality of kinds of the number of prizes. 另外,可重复发放权限属性中还可设置多种可重复发放属性,比如可重复发放2次、3次等,针对每种属性设置一个队列。 Further, repeated issuing authority attribute may also be provided more repeated issuing attribute, such as payment can be repeated two, three second-class, a property is set for each queue.

[0078] 进一步的,根据分配数据的属性,在所属属性的数据队列中按时间节点顺序将分配数据进行存放包括: [0078] Further, according to the attribute allocation data, in their respective data queue attribute node order time storage allocation data comprises:

[0079] 步骤A22,将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0079] Step A22, the allocation data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0080] 比如设置Ml张优惠券、M2张电影票为可重复发放权限,那么服务器可针对同一ID发送多个优惠券,同一ID也可重复获取优惠券、电影票,即可将该类奖品数据按对应的时间节点i的先后顺序放入可重复发放队列,即第一数据队列。 [0080] coupons such as setting Ml, M2 movie tickets for the re-issuing authority, the server can send multiple coupons for the same ID, the same ID can also get coupons repeat, movie tickets, to the class prizes data corresponding to the time sequential order of the node i can be repeated issuing into the queue, i.e. the first data queue.

[0081] 步骤A24,将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0081] Step A24, the allocation data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0082] 比如设置M3台手机为可重复发放权限,那么服务器只能针对同一ID发送I个优惠券,同一ID也只能获取I台手机,即可将该类奖品数据或者时间节点i按对应的时间节点i的先后顺序放入不可重复发放队列,即第二数据队列。 [0082] Mobile station M3 is provided such as to be repeated issuing authority, the server can send a coupon for the same I ID, the same ID can be acquired I cell phone, or to the class prize data corresponding to the time point i by time into the sequence of node i can not repeat issuance of queues, i.e. a second data queue.

[0083] 当然本申请中还可能存在其他权限属性的奖品数据,可相应的构建数据队列,将相应权限属性的奖品数据或者时间节点放入对应的数据队列中。 [0083] Of course the present application also may be other prizes authority attribute data, may be constructed corresponding data queue, or the time the prize data corresponding node into the corresponding authority attribute data queue.

[0084] 步骤108,当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0084] Step 108, after receiving the client data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes a permission obtaining distribution data according to the data;

[0085] 比如用户在客户端中点击抽奖,客户端接收到该点击抽奖的动作后,生成数据获取请求,将所述数据获取请求发送给服务器,服务器接收到所述数据获取请求后,即可分析所述数据获取请求的发起时间点。 After [0085] For example, the user clicks on the draw in the client, the client receives the click operation of the draw, generating a data acquisition request, the data acquisition request to the server, the server receives the data acquisition request, to analysis of the data acquisition time point of initiating the request. 在本发明实施例中,可在客户端侧封装数据获取请求时将其当前系统时间作为发起时间点封装在内,由服务器侧进行解析;也可由服务器侧在接收到所述数据获取请求时,将接收时刻作为发起时间点。 In an embodiment of the present invention, the encapsulated data at the client side when the acquisition request to the current system time as the initiation time point of the inner package, parsed by the server; can also be the server side receives the data acquisition request, the reception time as launching point of time. [0086] 然后将发起时间点与数据队列对应的时间节点进行比较,判断客户端是否具备根据所述数据队列获取分配数据的权限。 [0086] and then the launching point of time corresponding to time data queue node, and determines whether the client queue includes acquiring data according to the permission assignment data.

[0087] 优选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限之前还包括: Before [0087] Preferably, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes acquiring data according to the permissions assigned data further include:

[0088]步骤A26,为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0088] Step A26, the client randomly assigned a probability value when the probability value does not meet the threshold requirement, then disable the client queue allocation data from the data acquisition.

[0089] 本步骤可以理解为计算客户端的中奖概率。 [0089] The present step can be understood as the probability of winning the computation client. 比如当服务器接收到抽奖请求后,执行抽奖概率脚本,计算一抽奖概率分配给该客户端用户,如果满足概率则允许进入步骤108。 For example when the lottery server receives the request, the script performs probability lottery, a lottery probability calculation assigned to the client user, if the probability allowed to enter step 108 is satisfied.

[0090] 优选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限时还包括: [0090] Preferably, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes a permission obtaining distribution data from the data Shihai include:

[0091] 步骤A28,判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 [0091] Step A28, determining the number of data acquisition request sent by the client exceeds a threshold value; if exceeded, blocks the client queue allocation data from the data acquisition.

[0092] 可以理解本步骤为用户抽奖次数,当用户点击抽奖的次数超过阈值(比如3次),则不允许其进入步骤108,如果未超过阈值,则允许其进入步骤108。 [0092] In this step, the user will be understood that the lottery number, the number of times when the user clicks on the draw exceeds the threshold value (for example, three times), it proceeds to step 108 is not allowed, if the threshold is not exceeded, it proceeds to step 108 is allowed.

[0093] 优选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限包括 [0093] Preferably, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes allocation data in accordance with the acquired rights data comprises

[0094] 步骤A31,基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0094] Step A31, based on the time data corresponding to the node of the queue, it is judged whether the initiation time point reaches or exceeds the time a node I;

[0095] 或者队列从排头开始有奖品数据“奖品1、奖品2”,其对应的“tl、t2……”的时间节点。 [0095] The queue starts from the head or prizes data "a prize, the prize 2", the corresponding "tl, t2 ......" node of the time.

[0096] 步骤A32,如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0096] Step A32, if time does not reach any node i, it is determined that the client does not have permission to get the data queue allocation data;

[0097] 比如用户在tl时间节点之前t0时刻点击抽奖,由于队列中所有数据均大于t0,则用户无法获取数据队列中任何奖品数据。 [0097] For example, the user clicks the draw time t0 before the time point tl, since all data in the queue is greater than t0, the user can not obtain any prize data queue.

[0098] 步骤A34,如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限; [0098] Step A34, if reached or exceeded a time node i, it is determined that the client includes obtaining data permissions assigned data queue discharge head;

[0099] 如果用户在[tl,t2)区间中点击抽奖,则判断数据队列中tl之前是否还有奖品,实际上没有,用户可抽取奖品I。 [0099] If the user [tl, T2) Click lottery interval, it is determined whether there is data in the queue before the prize tl, virtually no, the user can extract the prize I.

[0100] 如果用户在[t2,t3)区间点击抽奖,则判断数据队列中t2之前是否还有奖品,如果tl的奖品I未被抽中,则队列中还有tl的奖品1,则为该用户分配奖品1,如果tl的奖品被抽中,则队列中不存在tl的奖品I 了,则为该用户分配奖品2。 [0100] If the user is [t2, t3) draw click interval, it is determined whether there is previous data queue T2 prize, the prize if I tl not drawn, also in the queue prizes tl 1, compared with the prizes allocated user 1, if prizes are drawn tl, tl in the queue does not exist I prize, the prize distribution compared to the user 2.

[0101] 其他情况以此类推。 [0101] Other cases and so on.

[0102] 另外,还包括: [0102] Moreover, further comprising:

[0103] 步骤A36,当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0103] Step A36, when the client receives the data acquisition request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0104] 即数据队列中所有的奖品数据被发放完毕,则新的客户端用户即使中奖也无法获取奖品数据,则服务器会客户端分配数据已发放完毕。 [0104] That is all prizes are distributed queue data is completed, the new client user can not even get the winning prize data, the server assigned to the client data has been issued is completed.

[0105] 步骤110,当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述 [0105] Step 110, when the client have the rights, the queue based on the acquired data to the data distribution

客户端。 Clients.

[0106] 当判断该用户能够获取数据队列中的奖品后,则根据所述数据队列获取分配数据,发送给所述客户端。 [0106] When determining that the user can acquire the prize data queue, the queue allocation data acquired according to the data sent to the client. 比如当数据队列中存储的是分配数据的标识时,则根据所述标识提取实际的奖品信息发送给客户端用户。 For example, when the data stored in the queue is assigned identification data is extracted according to the identification information to send the actual prize client user. 在实际中,比如用户抽中了优惠券,则可从数据表中提取优惠码发送给客户端用户;比如用户抽中了手机,则将验证码和奖品信息发送给客户端客户。 In practice, such as user drawn a coupon, discount code can be extracted from the data table is sent to the client user; such as user drawn the phone, send code to the client information and prizes will verify the customer.

[0107] 在本发明实施例中,可从数据队列排头开始获取相应的分配数据,发送给客户端,然后将发送的分配数据从队列中剔除。 [0107] In an embodiment of the present invention, can begin acquiring data from the queue corresponding discharge head assignment data sent to the client, and then assign the data transmitted removed from the queue.

[0108] 在本发明实施例中,可将待分配的分配数据的标识放入数据队列,与实际存储的待分配数据进行对应。 Identifying allocation of the data [0108] In an embodiment of the present invention, may be dispensed into the data queue, the correspondence with the distribution of the data to be actually stored. 在发送分配数据时,根据分配数据标识从数据库中提取分配数据发送给客户端。 When transmission data is allocated, according to the distribution identifier extracting data assigned to the client data sent from the database.

[0109] 本发明实施例可以将获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i,然后将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中,当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限,当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端,由此解决了对于系统来说,维持每个待分配的数据,等待符合初步要求的客户端进行提取,系统资源占用较高,影响系统性能,并且由待分配数据被任意获取,最后在系统统计哪些分配数据未发出、哪些数据已发出时,也需要遍历每个分配数据,资源占用高,速度慢、效率低的问题取得了在分配数据时方便维护 [0109] Embodiments of the present invention may be acquired total number N of said allocation data distribution data, to determine the N mutually different random time between node i node a first time and the second time the node, then each of the time node i and the corresponding allocation data, and sequentially allocating the data into the data queue, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, to determine whether the client includes according to the data queue permission obtaining distribution data, when the client have the rights, the queue allocated acquired data to the client based on the data, thereby solving for the system, to be dispensed to maintain each data, wait in line with the requirements of the client preliminary extraction, higher occupancy of system resources, affect system performance, and the data to be assigned to any acquisition, the final allocation of statistical data which is not issued in the system, when what data has been sent, but also need to traverse each allocation data, high resource consumption, slow, inefficient problem made easy maintenance in the distribution of data 降低系统资源的占用、提高数据性能,在最后统计分配数据时,降低系统资源的占用、提高统计效率的有益效果。 Reduce the usage of system resources, improve data performance in the final statistical distribution of data, reduce system resources and improve beneficial effects of statistical efficiency.

[0110] 实施例二 [0110] Second Embodiment

[0111] 参照图2,其示出了本发明一种数据发送方法的流程示意图,具体可以包括: [0111] Referring to Figure 2, which shows a flow diagram of a data transmission method of the present invention specifically include:

[0112] 步骤202,服务器获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0112] Step 202, the server acquires allocation data to be dispensed, and a first time to a second node and a time to be dispensed node;

[0113] 如图2a本发明可设置活动时间段,然后设奖品分配时间段,比如特供机周年活动的活动日期定为2013-6-19 23:55至2013-7-6 00:00,而发放日期定为2013-6-22 23:55至2013-7-4 00:00,发放时间定为8时至22时。 [0113] The present invention may be provided as shown in FIG 2a active period, and then set the prize allocation period, such as date of the event is special for the machine as anniversary 2013-6-19 2013-7-6 23:55 to 00:00, The release date set at 2013-6-22 2013-7-4 23:55 to 00:00 release is scheduled for 8:00 to 22:00.

[0114] 在本发明实施例中,对于网络平台发放奖品数据,可首先上传奖品数据以及发送时间。 [0114] In an embodiment of the present invention, the network data internet payment of prizes, a prize may first upload data and a transmission time. 如图2a,其为上传后获得的奖品列表,总共包括4个等级的奖品。 FIG. 2a, which is a list of prizes obtained after uploading, comprising a total of four levels of prizes. 在奖品列表中还可进行奖品数据的编辑和删除工作。 In the list of prizes can also edit and delete work data in prizes. 如图2b为上传奖品数据界面示例的截图,技术人员可通过图2b的接口上传待分配数据,如图所示奖品数据指奖品的附加数据如优惠码等,文件格式可为csv格式,行数和奖品数量相等并且一一对应,每行最多三个字段,字段名称为infol, info2, info3,字段之间用“,”隔开;奖品描述中含有掩码,如#drawdesc#,#infol#,用户抽中奖后会被替换成实际的信息,返回给用户。 Figure 2b is an example of uploading data interface theme prize, the art can be uploaded via the interface of FIG. 2b distribution data, as shown in FIG prize data refers to additional data, such as the prize discount codes, csv file format may be a format, the number of lines number of prizes and equal and correspond, in each line of three fields, field name is infol, info2, info3, between fields with "," separated; prize description contained masks, such as #drawdesc #, # infol # the user will be replaced with the actual pumping winning information returned to the user.

[0115] 在本发明实施例中,如果调整了活动的开始时间,开始时间以前随机确定的时间节点自动无效,只要时间节点没有过,都可以随意重新调整发放密度和发放时间段,可以保证不会多发或者漏发,极大的简便了运营的工作。 [0115] In the embodiment of the present invention, if the adjustment of the start time, time node start time previously determined randomly deactivated automatically, as long as the time the node is not too, can be freely re-adjust the grant density and distribution period, can ensure that no hair will be more or omission, great simple work operations.

[0116] 步骤204,服务器获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ; [0116] Step 204, the server acquires the total number of distribution data in the distribution data N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0117] 步骤206,服务器将每个时间节点i与分配数据进行对应,将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列;将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0117] Step 206, the server each time the node i and the allocation data corresponding to the distribution data includes issuing authority attribute may be repeated, in chronological order of nodes allocated data into a first data queue; issuing authority will have unrepeatable assigned attribute data, in chronological order assigned node data into the second data queue.

[0118] 步骤208,客户端发送获取数据请求到服务器; [0118] Step 208, the client sends a data acquisition request to the server;

[0119] 数据获取请求可包括用户ID、密码等身份信息,可包括点击抽奖的发起时间点,还可包括当前抽奖次数等。 [0119] data acquisition request may include a user ID, password and other identification information may include the launching point of time click on the draw, also including the current lottery number of times.

[0120] 步骤210,服务器接收所述数据获取请求,验证客户端身份是否合法;如果合法进入步骤212,如果不合法进入步骤216 ; [0120] Step 210, the server receives the data acquisition request, the identity legality authentication client; proceeds to step 212, if valid, proceeds to step 216 if not legal;

[0121] 比如用户ID和密码是否正确等身份信息验证。 [0121] For example, a user ID and password are correct and other identity verification.

[0122] 步骤212,服务器验证客户端的抽奖次数是否超过阈值,如果未超过,则进入步骤214,如果超过,进入步骤216; [0122] Step 212, the number of lottery server authenticates the client exceeds a threshold, and if not exceeded, the process proceeds to step 214, if it exceeds proceeds to step 216;

[0123] 步骤214,服务器基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ;如果达到或者超过的一时间节点i,进入步骤218 ;如果未达到任何时间节点i,则进入步骤216 ; [0123] Step 214, the server based on the time data corresponding to the node of the queue, it is judged whether the initiation time point reaches or exceeds the time a node I; if the time reaches or exceeds a node i, proceeds to step 218; if does not reach at any time node i, the process proceeds to step 216;

[0124] 步骤216,则确定所述客户端不具备获取数据队列的分配数据的权限; [0124] Step 216, it is determined that the client does not have permission to get the data queue allocation data;

[0125] 步骤218,则确定所述客户端具备获取数据队列排头的分配数据的权限; [0125] Step 218, it is determined that the client includes obtaining data permissions assigned data queue discharge head;

[0126] 还可通知客户端未能获取分配数据。 [0126] also inform the client fails to obtain distribution data. 本发明可根据实际情况进行通知,比如抽奖次数不够,奖品已经抽完,身份信息错误等等。 The present invention can be carried out according to the actual situation notification, such as sweepstakes often enough, the prize has been smoked, the identity of wrong information and so on.

[0127] 步骤220,当客户端具备所述权限,根据所述数据队列获取分配数据发送给所述客户端,并将队列中被发送的分配数据剔除。 [0127] Step 220, when the client is provided with the permissions assigned queue acquired data to the client according to the data, excluding data and allocating a queue to be sent.

[0128] 本实施例各步骤原理与实施例一介绍的步骤原理类似,在此不再详述。 [0128] Example embodiments of the present principles and the steps of the step of the principles described embodiment a similar embodiment, not described in detail herein.

[0129] 实施例三 [0129] Example three

[0130] 参照图3,其示出了一种数据发送装置的结构示意图,包括: [0130] Referring to Figure 3, which shows a schematic structure of a data transmitting apparatus, comprising:

[0131] 数据获取模块302,适于获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0131] Data acquisition module 302, adapted to obtain allocation data to be dispensed, and a first time to a second node and a time to be dispensed node;

[0132] 打点模块304,适于获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ; [0132] RBI module 304, adapted to obtain the total number of distribution data in the distribution data N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0133] 队列存放模块306,适于将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0133] queue storage module 306, adapted to each node i and the time corresponding to the allocation data, and sequentially allocating the data into the data queue;

[0134] 权限分析模块308,适于当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0134] Permissions analysis module 308, adapted to receive the data when the client acquisition request, the Acquisition Point initiates the request time and the time point i based on the data, the client determines whether the queue includes acquiring data according to the permission assignment data ;

[0135] 数据发送模块310,适于当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 [0135] Data transmission module 310, when the client is adapted to have the rights, the queue allocation data in accordance with the acquired data to the client.

[0136] 优选的,所述队列存放模块包括: [0136] Preferably, the queue storage module comprises:

[0137] 属性队列存放模块,适于根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0137] properties of the queue storage module, adapted to assign rights attribute data, in the data queue belongs permission attribute node order chronological allocation data storage.

[0138] 优选的,所述属性队列存放模块包括: [0138] Preferably, the properties of the queue storage module comprises:

[0139] 第一队列存放模块,适于将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0139] a first queue storage module, adapted to allocate data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0140] 第二队列存放模块,适于将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0140] The second queue storage module adapted to assign data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0141] 优选的,还包括: [0141] Preferably, further comprising:

[0142] 记录提取模块,适于当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; [0142] record extraction module, adapted to the client after receiving the data acquisition request, acquires the extracted recording data according to the allocation table allocation record to the request of the client;

[0143] 第一权限分析模块,适于当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; [0143] The first privilege analysis module adapted to assign the acquired data includes issuing authority attribute can not be repeated when the recording client, the client is prohibited current queue allocation data from the data acquisition;

[0144] 第二权限分析模块,适于当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 [0144] The second permission analyzing module, adapted to record when the client can not be repeated allocation data includes issuing authority attribute is not acquired, allows the client queue currently assigned data according to the acquired data.

[0145] 优选的,还包括: [0145] Preferably, further comprising:

[0146] 完毕判断模块,适于当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0146] completion determining module, adapted when the client receives the data acquisition request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0147] 优选的,所述权限分析模块包括: [0147] Preferably, the permission analysis module comprises:

[0148] 时间点判断模块,适于基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0148] time point determining module, adapted based on the time data corresponding to the node of the queue, it is judged whether the initiation point of time reaches or exceeds the time a node I;

[0149] 第一队列数据判断模块,适于如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0149] a first queue data determining module, if does not reach at any time is adapted to node i, it is determined that the client does not have permission to get the data queue allocation data;

[0150] 第二队列数据判断模块,适于如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 [0150] The second queue data determining module, adapted if the time reaches or exceeds a node i, it is determined that the client includes obtaining permission data queue discharge head allocation data.

[0151] 优选的,所述权限分析模块还包括: [0151] Preferably, the privilege analysis module further comprises:

[0152] 第三权限分析模块,适于为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0152] The third analyzing module authority, the client is adapted to assign a probability of a random value, when the probability value does not meet the threshold requirement, then disable the client queue allocation data from the data acquisition.

[0153] 优选的,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限时还包括: [0153] Preferably, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the queue includes a permission obtaining distribution data from the data Shihai include:

[0154] 第四权限分析模块,适于判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 [0154] Fourth authority analyzing module, adapted to send the client determines the number of data acquisition request exceeds a threshold; If so, the client is prohibited queue allocation data from the data acquisition.

[0155] 实施例四 [0155] Fourth Embodiment

[0156] 参照图4,其示出了一种数据发送系统的结构示意图,包括: [0156] Referring to Figure 4, which shows a schematic structural diagram of a data transmission system, comprising:

[0157] 服务器和客户端: [0157] servers and clients:

[0158] 所述服务器400包括: [0158] The server 400 comprises:

[0159] 数据获取模块402,获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0159] Data acquisition module 402 acquires allocation data to be dispensed, and a first time to a second node and a time to be dispensed node;

[0160] 打点模块404,适于获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ;[0161] 队列存放模块406,适于将每个时间节点i与分配数据进行对应,将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列;将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列; [0160] RBI module 404, adapted to obtain the total number N of said allocation data distribution data, to determine the N mutually different random time between node i and a second node the first time the time node; [0161] queue holds module 406, adapted to each node i and the time allocation data corresponding to the data includes rights assigned attributes may be repeated grant chronological sequence of assigning the node data into a first data queue; issuing authority will have the property of non-repeatable allocation data, in chronological order of nodes allocated data into a second data queue;

[0162] 第一验证模块408,适于接收所述数据获取请求,验证客户端身份是否合法; [0162] The first authentication module 408, adapted to receive said data acquisition request, the identity legality authentication client;

[0163] 第二验证模块410,验证客户端的抽奖次数是否超过阈值; [0163] The second verification module 410 to verify the number of lottery client exceeds a threshold;

[0164] 时间判断模块412,适于基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0164] time determining module 412, adapted based on the time data corresponding to the node of the queue, it is judged whether the initiation time point reaches or exceeds the time a node I;

[0165] 第一权限分析模块414,适于如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0165] Analysis module 414 first authority, if does not reach at any time is adapted to node i, it is determined that the client does not have permission to get the data queue allocation data;

[0166] 第二权限分析模块416,适于如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限; [0166] The second permission analysis module 416, adapted to time a node is reached or exceeded i, it is determined that the client includes obtaining data permissions assigned data queue discharge head;

[0167] 数据发送模块418,适于当客户端具备所述权限,根据所述数据队列获取分配数据发送给所述客户端,并将队列中被发送的分配数据剔除。 [0167] Data transmission module 418, when the client is adapted to have the authority to transmit data queue allocated acquiring the data according to the client, and reject allocation data queue is transmitted.

[0168] 所述客户端500包括: [0168] The client 500 comprises:

[0169] 请求发送模块502,适于客户端发送获取数据请求到服务器。 [0169] request sending module 502, adapted to obtain the client sends a data request to the server.

[0170] 在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。 [0170] The algorithms and displays are not provided, the virtual system or other device inherently related to any particular computer. 各种通用系统也可以与基于在此的示教一起使用。 Various general-purpose systems may also be used with the teachings herein based. 根据上面的描述,构造这类系统所要求的结构是显而易见的。 According to the above description, the configuration of such a system requires a structure will be apparent. 此外,本发明也不针对任何特定编程语言。 Further, the present invention is not to any particular programming language. 应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。 It should be appreciated that a variety of programming languages ​​may be utilized to achieve the present invention described herein, the above description and specific language is made to the disclosure of preferred embodiments of the present invention.

[0171] 在此处所提供的说明书中,说明了大量具体细节。 [0171] In the description provided herein, numerous specific details are described. 然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。 However, it can be understood that the embodiments of the present invention may be practiced without these specific details. 在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In some examples, not shown in detail in well-known methods, structures and techniques, so as not to obscure the understanding of this description.

[0172] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0172] Similarly, it should be understood that the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects in the description of exemplary embodiments of the present invention, various features of the invention are sometimes grouped into a single together embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。 However, the methods disclosed herein should not be interpreted as reflecting an intention: that the claimed invention requires more features than in each of the claims expressly recited. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 More specifically, as reflected in the book as the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. 因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Thus, the claims following the specific embodiments are hereby incorporated into this Detailed Description explicitly, with each claim itself as a separate embodiment of the present invention.

[0173] 本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 [0173] Those skilled in the art can understand may be made to change adaptively embodiment device module and provided them with one or more devices different from this embodiment of the. 可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。 The embodiments may be modules or units into one module or component or components or units, and in addition they can be divided into a plurality of sub-modules or sub-units or sub-assemblies. 除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。 Any method other than such features and / or process, or at least some of the units are mutually exclusive, any combination of the present specification (including the accompanying claims, abstract and drawings) All of the features disclosed in, or disclosed herein and such All process units or equipment combination. 除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Unless expressly stated otherwise, each feature of the present specification (including the accompanying claims, abstract and drawings) may be provided by the same disclosed, characterized equivalents or similar purpose may be substituted.

[0174] 此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。 [0174] Moreover, those skilled in the art will appreciate that although in some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant in the present within the scope of the invention and form different embodiments. 例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 For example, in one embodiment any forth in the following claims, it may be claimed in any combination used.

[0175] 本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。 Each member [0175] embodiment of the present invention may be implemented in hardware, or as software modules running on one or more processors, or in a combination thereof. 本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP )来实现根据本发明实施例的数据发送设备中的一些或者全部部件的一些或者全部功能。 Those skilled in the art will appreciate that a microprocessor may be used or a digital signal processor (DSP) in practice to implement some or all of the functions of the data transmission device according to some or all of the components of the embodiment according to the present invention. 本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。 The present invention may also be implemented as a part or all of the device or apparatus programs for performing the methods described herein (e.g., computer programs and computer program products). 这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。 Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. 这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。 Such signals can be downloaded from the Internet website, or provided on a carrier signal, or in any other form.

[0176] 应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 [0176] It should be noted that the embodiments of the present invention, the above-described embodiments illustrate rather than limit the invention, and those skilled in the art without departing from the scope of the appended claims may be devised alternative embodiments. 在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。 In the claims, should not be limited by any reference signs located claimed configured to claims between parentheses. 单词“包含”不排除存在未列在权利要求中的元件或步骤。 The word "comprising" does not exclude the presence of elements or steps not listed in the appended claims. 位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。 Preceding an element of the word "a" or "an" does not exclude the presence of a plurality of such elements. 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。 The present invention by means of hardware comprising several distinct elements, and by means of a suitably programmed computer implemented. 在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。 Unit claims enumerating several means, several of these means may be embodied by the same item of hardware. 单词第一、第二、以及第三等的使用不表示任何顺序。 Word of the first, second, and third, etc. does not denote any order. 可将这些单词解释为名称。 These words can be interpreted as names.

[0177] 本发明公开了Al、一种数据发送方法,包括: [0177] The present invention discloses Al, a data transmitting method, comprising:

[0178] 获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0178] allocation data acquired to be dispensed, and a first time and the second time the node node to be dispensed;

[0179] 获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i; [0179] obtaining distribution data of the data distribution in the total number of N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0180] 将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0180] Each node i and the time corresponding to the allocation data, and sequentially allocating the data into the data queue;

[0181] 当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0181] When the client receives the data acquisition request, acquires the node initiating time and the time point i according to the data request, determining whether the client queue have permission obtaining distribution data according to the data;

[0182] 当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 [0182] When the client includes the rights, the queue allocated acquired data to the client according to the data.

[0183] A2、如Al所述的方法,其特征在于,所述按序将分配数据放入数据队列中包括: [0183] A2, Al The method of claim, wherein the sequentially assigned data into a data queue comprises:

[0184] 根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0184] The authority attribute assignment data in the data queue belongs permission attribute node order chronological allocation data storage.

[0185] A3、如A2所述的方法,其特征在于,根据分配数据的属性,在所属属性的数据队列中按时间节点顺序将分配数据进行存放包括: Method [0185] A3, as recited in A2, wherein the distribution of data according to the attributes in the attribute belongs to a data queue in chronological order of the node storing allocation data comprises:

[0186] 将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0186] The distribution data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0187] 将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0187] The distribution data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0188] A4、如A3所述的方法,其特征在于,还包括: [0188] A4, as the method A3, characterized in that, further comprising:

[0189] 当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; [0189] When the client receives the data acquisition request, extracting a data record allocation table records the acquired client according to the request;

[0190] 当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; [0190] acquired allocation data includes issuing authority attribute can not be repeated when the recording client, the client is prohibited current queue allocation data from the data acquisition;

[0191] 当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 [0191] When the recording data assigned to the client issuing authority includes a non-repeating properties not acquired, allows the client queue currently assigned data according to the acquired data.

[0192] A5、如Al所述的方法,其特征在于,还包括: [0192] A5, Al method as in claim 1, characterized in that, further comprising:

[0193] 当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0193] When the client receives the data acquisition request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0194] A6、如Al所述的方法,其特征在于,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限包括: [0194] A6, Al method as in claim 1, characterized in that, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, to determine whether the client is provided according to the said data queue permission obtaining distribution data comprises:

[0195] 基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0195] Based on the time point corresponding to the data queue, determining whether the initiation time point reaches or exceeds the time a node I;

[0196] 如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0196] If at any time does not reach node i, it is determined that the client does not have permission to get the data queue allocation data;

[0197] 如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 [0197] If a time reaches or exceeds the node i, it is determined that the client includes obtaining permission data queue discharge head allocation data.

[0198] A7、如Al至A6其中之一所述的方法,其特征在于,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限之前还包括: [0199] 为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0198] A7, Al to A6 of the method according to one wherein, wherein, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the data queue includes a terminal according to further comprising, prior to obtaining rights of distribution data: [0199] the client randomly assigned a probability value when the probability value does not meet the threshold requirement, the client queue is prohibited according to the data acquired distribution data.

[0200] A8、如Al至A6其中之一所述的方法,其特征在于,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限之前还包括: [0200] A8, Al to A6 of the method according to one wherein, wherein, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines before determining whether the end of authorities have allocated data according to the acquired data further comprises:

[0201] 判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 The number of data [0201] Analyzing the client sent the acquisition request exceeds a threshold; if exceeded, blocks the client queue allocation data from the data acquisition.

[0202] 本发明还公开了B9、一种数据发送装置,包括: [0202] The present invention also discloses B9, a data transmitting apparatus, comprising:

[0203] 数据获取模块,适于获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; [0203] Data acquisition module adapted to acquire allocation data to be dispensed, and a first time to a second node and a time to be dispensed node;

[0204] 打点模块,适于获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ; [0204] RBI module, it adapted to obtain the total number of distribution data in the distribution data N, N mutually different random determination of the time point i between the first time and the second time the node node;

[0205] 队列存放模块,适于将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; [0205] queue storage module, adapted to each node i and the time corresponding to the allocation data, and sequentially allocating the data into the data queue;

[0206] 权限分析模块,适于当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; [0206] Analysis permission module adapted to receive the data when the client acquisition request, acquires initiation time point and the time point i according to the data request, determining whether the client queue have permission obtaining distribution data according to the data;

[0207] 数据发送模块,适于当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 [0207] Data transmission module when the client is adapted to have the rights, the queue data to the allocated acquisition client, according to the data.

[0208] BlO^n B9所述的装置,其特征在于,所述队列存放模块包括: BlO ^ n apparatus according to B9 [0208], wherein said queue storage module comprises:

[0209] 属性队列存放模块,适于根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 [0209] properties of the queue storage module, adapted to assign rights attribute data, in the data queue belongs permission attribute node order chronological allocation data storage.

[0210] B11、如BlO所述的装置,其特征在于,所述属性队列存放模块包括: [0210] B11, as BlO the apparatus, characterized in that the properties of the queue storage module comprises:

[0211] 第一队列存放模块,适于将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; [0211] a first queue storage module, adapted to allocate data includes issuing authority attribute may be repeated, in chronological order of nodes assigned a first data into the data queue;

[0212] 第二队列存放模块,适于将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 [0212] The second queue storage module adapted to assign data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.

[0213] B12、如Bll所述的装置,其特征在于,还包括: [0213] B12, Bll apparatus as claimed, characterized by further comprising:

[0214] 记录提取模块,适于当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; [0214] record extraction module, adapted to the client after receiving the data acquisition request, acquires the extracted recording data according to the allocation table allocation record to the request of the client;

[0215] 第一权限分析模块,适于当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; [0215] The first privilege analysis module adapted to assign the acquired data includes issuing authority attribute can not be repeated when the recording client, the client is prohibited current queue allocation data from the data acquisition;

[0216] 第二权限分析模块,适于当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 [0216] The second permission analyzing module, adapted to record when the client can not be repeated allocation data includes issuing authority attribute is not acquired, allows the client queue currently assigned data according to the acquired data.

[0217] B13、如B9所述的装置,其特征在于,还包括: [0217] B13, apparatus as described B9, characterized by further comprising:

[0218] 完毕判断模块,适于当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 [0218] completion determining module, adapted when the client receives the data acquisition request, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.

[0219] B14、如B9所述的装置,其特征在于,所述权限分析模块包括: [0219] B14, The apparatus of claim B9, wherein the privilege analysis module comprises:

[0220] 时间点判断模块,适于基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; [0220] time point determining module, adapted based on the time data corresponding to the node of the queue, it is judged whether the initiation point of time reaches or exceeds the time a node I;

[0221] 第一队列数据判断模块,适于如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; [0221] a first queue data determining module, if does not reach at any time is adapted to node i, it is determined that the client does not have permission to get the data queue allocation data;

[0222] 第二队列数据判断模块,适于如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 [0222] The second queue data determining module, adapted if the time reaches or exceeds a node i, it is determined that the client includes obtaining permission data queue discharge head allocation data.

[0223] B15、如B9至B14其中之一所述的装置,其特征在于,所述权限分析模块还包括: [0223] B15, B9 through B14 as one of the means, wherein the analysis module further comprises permission:

[0224] 第三权限分析模块,适于为客户端随机分配一概率数值,当所述概率数值不符合阈值要求,则禁止该客户端根据所述数据队列获取分配数据。 [0224] The third analyzing module authority, the client is adapted to assign a probability of a random value, when the probability value does not meet the threshold requirement, then disable the client queue allocation data from the data acquisition.

[0225] B16、如B9至B14其中之一所述的装置,其特征在于,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限时还包括: [0225] B16, B9 through B14 wherein apparatus as recited in one, wherein, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, the client determines whether the end of the queue have permission obtaining distribution data based on the data it further includes:

[0226] 第四权限分析模块,适于判断客户端发送的数据获取请求的次数是否超过阈值;如果超过,则禁止该客户端根据所述数据队列获取分配数据。 [0226] Fourth authority analyzing module, adapted to send the client determines the number of data acquisition request exceeds a threshold; If so, the client is prohibited queue allocation data from the data acquisition.

Claims (10)

1.一种数据发送方法,包括: 获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点; 获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i; 将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; 当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; 当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 1. A data transmission method, comprising: acquiring allocation data to be dispensed, and a first time to a second node and a time to be dispensed node; obtaining the total number N of distribution data in the distribution data, at a first time and a second node randomly determining the time between the two mutually different nodes N time node i; i each time the node corresponding to the allocation data, and sequentially allocating the data into the data queue; when the client receives the data acquisition request , according to the data acquisition request initiation time point and the time point i, the client determines whether the queue includes acquiring data according to the permission assignment data; when the client is provided with the rights, the queue assignment data acquired according to the data transmission to the client.
2.如权利要求1所述的方法,其特征在于,所述按序将分配数据放入数据队列中包括: 根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 2. The method according to claim 1, wherein the sequentially assigned data into the data queue comprising: the authority attribute assignment data, in chronological order of nodes in the data queue allocated permission attribute belongs data storage.
3.如权利要求2所述的方法,其特征在于,根据分配数据的属性,在所属属性的数据队列中按时间节点顺序将分配数据进行存放包括: 将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; 将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 3. The method according to claim 2, characterized in that the allocation data according to the attribute, the attribute belongs to a data queue in chronological order of the node storing allocation data comprises: assigning data includes attributes may be repeated issuing authority, sequentially assigning node chronological data into a first data queue; the allocation data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.
4.如权利要求3所述的方法,其特征在于,还包括: 当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; 当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; 当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 4. The method according to claim 3, characterized in that, further comprising: after receiving the client data acquisition request, acquires the extracted recording data according to the allocation table allocation records the client request; recording when the client has retrieving the allocation data can not be repeated issuing authority attribute is prohibited client queue currently assigned data according to the acquired data; when the recording data assigned to the client issuing authority includes a non-repeating properties not acquired, the data is allowed according to the current client obtaining distribution data queue.
5.如权利要求1所述的方法,其特征在于,还包括: 当接收到客户端的数据获取请求后,如果所述数据队列中的分配数据发放完毕,则提示客户端分配数据已发放完毕。 5. The method according to claim 1, characterized in that, further comprising: after receiving the data acquisition request to the client, if the allocation data in the data queue grant is completed, the client is prompted to allocate data is issued is finished.
6.如权利要求1所述的方法,其特征在于,所述当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限包括: 基于对应所述数据队列的时间节点,判断发起时间点是否达到或者超过的一时间节点i ; 如果未达到任何时间节点i,则确定所述客户端不具备获取数据队列的分配数据的权限; 如果达到或者超过的一时间节点i,则确定所述客户端具备获取数据队列排头的分配数据的权限。 6. The method according to claim 1, wherein, when the client receives the data acquisition request, acquires the request initiation time point and the time point i based on the data, to determine whether the client is provided according to the data queue permission obtaining distribution data comprising: a time-based data corresponding to the node of the queue, it is judged whether the initiation time point reaches or exceeds the time a node I; if does not reach at any time node i, it is determined that the client does not have the Get rights data queue allocation data; node is reached or exceeded a time i, it is determined that the client includes obtaining permission data queue discharge head allocation data.
7.一种数据发送装置,包括: 数据获取模块,适于获取待分配的分配数据,以及待分配的第一时间节点和第二时间节点;打点模块,适于获取所述分配数据中分配数据的总数N,在第一时间节点和第二时间节点之间随机确定N个互不相同的时间节点i ; 队列存放模块,适于将每个时间节点i与分配数据进行对应,并按序将分配数据放入数据队列中; 权限分析模块,适于当接收到客户端的数据获取请求后,根据所述数据获取请求的发起时间点和时间节点i,确定客户端是否具备根据所述数据队列获取分配数据的权限; 数据发送模块,适于当客户端具备所述权限,则根据所述数据队列获取分配数据发送给所述客户端。 A data transmitting apparatus, comprising: a data acquisition module adapted to acquire allocation data to be dispensed, and a first time to a second node and a time to be dispensed node; RBI module adapted to obtain the allocation data allocation data the total number of N, randomly determined time between the first node and the second time the node N mutually different time node i; queue storage module, adapted to each node i and the time data corresponding to the allocation, and the sequential allocating the data into the data queue; permission analysis module, adapted to receive the data when the client acquisition request, requesting the initiation time point of acquiring the time and node i according to the data to determine whether the client includes obtaining from the data queue permission assignment data; and a data transmission module adapted to when the client have the rights, the queue allocation data in accordance with the acquired data to the client.
8.如权利要求7所述的装置,其特征在于,所述队列存放模块包括: 属性队列存放模块,适于根据分配数据的权限属性,在所属权限属性的数据队列中按时间节点顺序将分配数据进行存放。 8. The apparatus according to claim 7, wherein said queue storage module comprising: a queue to store attributes module adapted according to the permissions assigned attribute data, in chronological order of nodes in the data queue allocated permission attribute belongs data storage.
9.如权利要求8所述的装置,其特征在于,所述属性队列存放模块包括: 第一队列存放模块,适于将具备可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第一数据队列; 第二队列存放模块,适于将具备不可重复发放权限属性的分配数据,按时间节点顺序将分配数据放入第二数据队列。 9. The apparatus according to claim 8, characterized in that the properties of the queue storage module comprises: a first queue storage module, adapted to allocate the reusable data includes issuing authority attribute, time data is allocated sequentially discharge the node into the first data queue; second queue storage module adapted to assign data includes issuing authority attribute can not be repeated, in chronological order assigned node data into the second data queue.
10.如权利要求9所述的装置,其特征在于,还包括: 记录提取模块,适于当接收到客户端的数据获取请求后,根据所述请求提取分配记录表中该客户端的分配数据获取记录; 第一权限分析模块,适于当记录客户端已获取具备不可重复发放权限属性的分配数据,则禁止当前客户端根据所述数据队列获取分配数据; 第二权限分析模块,适于当记录客户端未获取具备不可重复发放权限属性的分配数据,则允许当前客户端根据所述数据队列获取分配数据。 10. The apparatus according to claim 9, characterized in that, further comprising: recording an extraction module, adapted when the client receives the data acquisition request, acquires the extracted recording data according to the allocation table allocation record to the request of the client ; first rights analyzing module, adapted to record when the client is retrieving the allocation data can not be repeated issuing authority attribute is prohibited client queue currently assigned data according to the acquired data; and a second privilege analysis module adapted to record when the client end is not acquired allocation data includes issuing authority attribute can not be repeated, allowing the client queue currently assigned data according to the acquired data.
CN201310632777.5A 2013-11-29 2013-11-29 A data transmission method and apparatus CN103713895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310632777.5A CN103713895B (en) 2013-11-29 2013-11-29 A data transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310632777.5A CN103713895B (en) 2013-11-29 2013-11-29 A data transmission method and apparatus

Publications (2)

Publication Number Publication Date
CN103713895A true CN103713895A (en) 2014-04-09
CN103713895B CN103713895B (en) 2017-12-05

Family

ID=50406902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310632777.5A CN103713895B (en) 2013-11-29 2013-11-29 A data transmission method and apparatus

Country Status (1)

Country Link
CN (1) CN103713895B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966205A (en) * 2014-12-15 2015-10-07 深圳市腾讯计算机系统有限公司 Object draw-off method and apparatus
CN106302710A (en) * 2016-08-12 2017-01-04 广州华多网络科技有限公司 Application processing method and system
CN107124619A (en) * 2017-04-28 2017-09-01 暴风集团股份有限公司 User interaction method and user interaction platform in live video
CN109033391A (en) * 2018-07-31 2018-12-18 北京嘀嘀无限科技发展有限公司 Data synchronization method between multiple data centers, system and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050119046A1 (en) * 2003-10-28 2005-06-02 Aruze Corp. Game system and gaming management method
CN102063678A (en) * 2011-01-05 2011-05-18 北京凯铭风尚网络技术有限公司 Method and device for distributing gifts to net friends on line
CN102254379A (en) * 2010-05-20 2011-11-23 中国银联股份有限公司 Bill receiving platform, bill receiving terminal system, and bank card consumption transaction system and use thereof
CN103019649A (en) * 2012-11-29 2013-04-03 北京奇虎科技有限公司 Information providing method and device
CN103049860A (en) * 2011-10-17 2013-04-17 成都蓉奥科技有限公司 Presentation popularizing method based on social game
CN103078843A (en) * 2012-12-13 2013-05-01 中国电子科技集团公司第十五研究所 Method and device for mass data sharing of multistage deployment system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050119046A1 (en) * 2003-10-28 2005-06-02 Aruze Corp. Game system and gaming management method
CN102254379A (en) * 2010-05-20 2011-11-23 中国银联股份有限公司 Bill receiving platform, bill receiving terminal system, and bank card consumption transaction system and use thereof
CN102063678A (en) * 2011-01-05 2011-05-18 北京凯铭风尚网络技术有限公司 Method and device for distributing gifts to net friends on line
CN103049860A (en) * 2011-10-17 2013-04-17 成都蓉奥科技有限公司 Presentation popularizing method based on social game
CN103019649A (en) * 2012-11-29 2013-04-03 北京奇虎科技有限公司 Information providing method and device
CN103078843A (en) * 2012-12-13 2013-05-01 中国电子科技集团公司第十五研究所 Method and device for mass data sharing of multistage deployment system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966205A (en) * 2014-12-15 2015-10-07 深圳市腾讯计算机系统有限公司 Object draw-off method and apparatus
CN106302710A (en) * 2016-08-12 2017-01-04 广州华多网络科技有限公司 Application processing method and system
CN106302710B (en) * 2016-08-12 2019-05-07 广州华多网络科技有限公司 Application processing method and system
CN107124619A (en) * 2017-04-28 2017-09-01 暴风集团股份有限公司 User interaction method and user interaction platform in live video
CN109033391A (en) * 2018-07-31 2018-12-18 北京嘀嘀无限科技发展有限公司 Data synchronization method between multiple data centers, system and computer readable medium

Also Published As

Publication number Publication date
CN103713895B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US20080162707A1 (en) Time Based Permissioning
CN103051630B (en) Based on the open method authorized third-party application platform, device and system
US9130927B2 (en) Single certificate service system and operational method thereof
JP2017528844A (en) Management of change events of the devices in the enterprise system
CN103167465B (en) An embedded uicc card activation processing method and apparatus
CN103748555B (en) Rapid provisioning of virtual machines in the cloud-based multidimensional user request mode
JP2015528168A (en) Method and apparatus for provisioning prior to the authentication token to the mobile application
US9342554B2 (en) Techniques to generate mass push notifications
EP2682863A1 (en) Installing applications remotely
CN102387023A (en) Charging method and system used for cloud computing
CN101803330A (en) Method, system and computer program for balancing the access to shared resources with credit-based tokens
JP6067132B2 (en) Method of processing a request for digital services
CN103747028B (en) Ways to grant temporary root user privileges
CN102841846A (en) Software testing method, device and system based on Hadoop
CN104780167B (en) One kind of account sign-in and terminal
US20150371031A1 (en) Method, system, and authentication device
CN102737065B (en) Method and apparatus for acquiring data
CN104301875B (en) Message processing method and apparatus
CN102056188B (en) Data generation method, data transmission method and related equipment
CN104468637B (en) Download the kinds of methods and equipment as well as installation of the client
CN103533002A (en) Data processing method and system
CN102231716B (en) Instant communication service login method
CN102880956B (en) Payment server and payment gateway integration methods
US9053306B2 (en) Authentication system, authentication server, service providing server, authentication method, and computer-readable recording medium
JP2016521932A (en) Terminal identification method, as well as how to register a machine identification code, system and apparatus

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01