TW201909077A - Method and device for transmitting electronic ticket - Google Patents
Method and device for transmitting electronic ticket Download PDFInfo
- Publication number
- TW201909077A TW201909077A TW107117183A TW107117183A TW201909077A TW 201909077 A TW201909077 A TW 201909077A TW 107117183 A TW107117183 A TW 107117183A TW 107117183 A TW107117183 A TW 107117183A TW 201909077 A TW201909077 A TW 201909077A
- Authority
- TW
- Taiwan
- Prior art keywords
- electronic ticket
- electronic
- sending
- ticket
- mark
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0235—Discounts or incentives, e.g. coupons or rebates constrained by time limit or expiration date
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0222—During e-commerce, i.e. online transactions
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本發明係相關於資料庫技術領域,尤其相關於一種發送電子票券的方法及裝置。The invention relates to the technical field of database, and in particular to a method and device for sending electronic tickets.
在向使用者發送電子票券(如彩票)的業務場景下,伺服器向請求領取電子票券的使用者發送電子票券。一般而言,在一個發送週期內,伺服器發送給每個使用者的電子票券應當是唯一的,也即各使用者在一個發送週期內分別領取到的電子票券都是不同。 實際應用中,為滿足上述要求,對儲存的每個電子票券進行標記,以標明每個電子票券的狀態是已被發送或未被發送。舉例來說,針對每個電子票券,當該電子票券未被發送時,該電子票券的標記為T,當該電子票券被發送時,該電子票券的標記即被修改為F。 基於現有技術,需要更為有效的發送電子票券的方法。In a business scenario where an electronic ticket (such as a lottery ticket) is sent to a user, the server sends the electronic ticket to the user who requests to receive the electronic ticket. Generally speaking, within one sending cycle, the electronic tickets sent by the server to each user should be unique, that is, the electronic tickets received by each user in one sending cycle are different. In practical applications, in order to meet the above requirements, each stored electronic ticket is marked to indicate whether the status of each electronic ticket has been sent or not. For example, for each electronic ticket, when the electronic ticket is not sent, the mark of the electronic ticket is T, and when the electronic ticket is sent, the mark of the electronic ticket is modified to F . Based on the existing technology, a more effective method of sending electronic tickets is needed.
本說明書實施例提供一種發送電子票券的方法及裝置,以解決現有的發送電子票券的方法存在的浪費伺服器資源的問題。 為解決上述技術問題,本說明書實施例是這樣實現的: 本說明書實施例提供的一種發送電子票券的方法,包括: 接收使用者發送的領取請求; 根據所述領取請求,確定所述領取請求對應的發送週期,並確定所述發送週期對應的可用標識; 從儲存的各電子票券中,確定出標記為所述可用標識的電子票券; 從確定出的電子票券中選擇電子票券發送給所述使用者,並修改選擇的電子票券的標記;修改後的標記不是所述發送週期對應的可用標識,且是後續的發送週期對應的可用標識。 本說明書實施例提供的一種發送電子票券的裝置,包括: 接收模組,接收使用者發送的領取請求; 第一確定模組,根據所述領取請求,確定所述領取請求對應的發送週期,並確定所述發送週期對應的可用標識; 第二確定模組,從儲存的各電子票券中,確定出標記為所述可用標識的電子票券; 發送修改模組,從確定出的電子票券中選擇電子票券發送給所述使用者,並修改選擇的電子票券的標記;修改後的標記不是所述發送週期對應的可用標識,且是後續的發送週期對應的可用標識。 本說明書實施例提供的一種電子票券發送設備,包括一個或多個處理器及記憶體,所述記憶體儲存有程式,並且被配置成由所述一個或多個處理器執行以下步驟: 接收使用者發送的領取請求; 根據所述領取請求,確定所述領取請求對應的發送週期,並確定所述發送週期對應的可用標識; 從儲存的各電子票券中,確定出標記為所述可用標識的電子票券; 從確定出的電子票券中選擇電子票券發送給所述使用者,並修改選擇的電子票券的標記;修改後的標記不是所述發送週期對應的可用標識,且是後續的發送週期對應的可用標識。 由以上本說明書實施例提供的技術方案可見,在本說明書實施例中,一方面,每個發送週期有其對應的可用標識,在每個發送週期內,唯有標記為該發送週期對應的可用標識的電子票券,才能夠被發送給使用者;另一方面,在一個發送週期內,被發送的電子票券的標記會被修改,修改後的標記不再是當前發送週期對應的可用標識,卻是後續的發送週期對應的可用標識。如此一來,在每個發送週期結束後,無需浪費伺服器資源對各電子票券對應的標記進行重置或重新產生各電子票券,而是在後續的發送週期內對各電子票券進行重複使用,從而提升了發送電子票券的效率。Embodiments of the present specification provide a method and apparatus for sending electronic tickets to solve the problem of wasting server resources in the existing method for sending electronic tickets. To solve the above technical problems, the embodiments of the present specification are implemented as follows: A method for sending electronic tickets provided by the embodiments of the present specification includes: receiving a collection request sent by a user; According to the collection request, determining the collection request Corresponding sending cycle, and determine the available identification corresponding to the sending cycle; Determine the electronic ticket marked as the available identification from the stored electronic tickets; Select the electronic ticket from the determined electronic tickets Send to the user and modify the mark of the selected electronic ticket; the modified mark is not an available mark corresponding to the sending cycle, but an available mark corresponding to the subsequent sending cycle. An apparatus for sending electronic tickets provided by an embodiment of this specification includes: a receiving module to receive a pickup request sent by a user; a first determining module to determine a sending cycle corresponding to the pickup request according to the pickup request, And determine the available identification corresponding to the sending cycle; the second determination module, from each stored electronic ticket, determine the electronic ticket marked as the available identification; send the modification module, from the determined electronic ticket The electronic ticket selected in the coupon is sent to the user, and the mark of the selected electronic ticket is modified; the modified mark is not an available identifier corresponding to the sending cycle, but an available identifier corresponding to the subsequent sending cycle. An electronic ticket sending device provided by an embodiment of the present specification includes one or more processors and a memory, the memory stores a program, and is configured to be executed by the one or more processors to perform the following steps: receive Pick-up request sent by the user; According to the pick-up request, determine the sending cycle corresponding to the pick-up request, and determine the available identification corresponding to the sending cycle; Determine the marked as available from each stored electronic ticket The marked electronic ticket; selects the electronic ticket from the determined electronic ticket and sends it to the user, and modifies the mark of the selected electronic ticket; the modified mark is not an available mark corresponding to the sending cycle, and It is the available identifier corresponding to the subsequent sending cycle. It can be seen from the technical solutions provided by the above embodiments of the present specification that, in the embodiments of the present specification, on the one hand, each transmission cycle has its corresponding available identifier, and within each transmission cycle, only the marked as available for the corresponding transmission cycle Only marked electronic tickets can be sent to users; on the other hand, within a sending cycle, the mark of the sent electronic ticket will be modified, and the modified mark is no longer an available mark corresponding to the current sending cycle , Is the available identifier corresponding to the subsequent sending cycle. In this way, after the end of each sending cycle, there is no need to waste server resources to reset the mark corresponding to each electronic ticket or to regenerate each electronic ticket, but to each electronic ticket in the subsequent sending cycle Repeated use improves the efficiency of sending electronic tickets.
如先前技術所述,現有的發送電子票券的方法為了確保在一個發送週期內每次發送給使用者的電子票券是唯一的,採用了對每個電子票券進行標記的方式,例如,將未被發送的電子票券標記為T,將已被發送的電子票券標記為F,從而使得標記為F的電子票券不會被再次發送。 但是,採用這種標記方式會導致耗費的伺服器資源過多。舉例來說,假設在第一個發送週期內,伺服器將100個電子票券發送完畢,這100個電子票券的標記都已經由T被修改成F,那麼在下一個發送週期內,由於伺服器僅會選擇標記為T的電子票券發送,這100個標記為F的電子票券是無法被發送的。因此,在現有的發送電子票券的方法中,每個發送週期結束後,需要對各電子票券的標記進行重置或重新產生標記為T的各電子票券,而這會耗費過多的伺服器資源,影響伺服器發送電子票券的效率。 而本說明書一個或多個實施例的核心思想是針對每個發送週期,設置該發送週期對應的可用標識,並且,在每個發送週期內,未被發送的電子票券的標記是當前發送週期對應的可用標識,而被發送的電子票券的標記會被修改,修改後的標記不是當前發送週期對應的可用標識,卻是後續的發送週期對應的可用標識。伺服器通過執行上述發送規則,可以無需在每個發送週期結束後重置各電子票券的標記,也無需重新產生標記為T的各電子票券。 為了使熟悉該技術領域的人員更好地理解本發明中的技術方案,下面將結合本說明書一個或多個實施例中的附圖,對本說明書實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本說明書實施例,在該技術領域中具有通常知識者在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明保護的範圍。 以下結合附圖,詳細說明本發明各實施例提供的技術方案。 圖1是本說明書實施例提供的階梯數值設置方法流程圖,包括以下步驟: S100:接收使用者發送的領取請求。 在本說明實施例中,伺服器可接收使用者通過通信設備(可上網的電腦、手機等)發送的針對電子票券的領取請求,以此觸發向所述使用者發送電子票券的操作。其中,各電子票券是由伺服器產生並儲存的。電子票券具體可以是電子獎券、電子票據、電子口令等。 S102:根據所述領取請求,確定所述領取請求對應的發送週期,並確定所述發送週期對應的可用標識。 在本說明書實施例中,伺服器可以根據所述領取請求中包含的使用者發送領取請求的時間,確定所述領取請求對應的發送週期,也即確定當前的發送週期。在本說明一個或多個實施例的場景下,伺服器週期性地發送電子票券,在一個發送週期內,各使用者領取到的電子票券都是不同的。 此外,所述領取請求中也可以包含使用者指定的時間,此種情況下,伺服器確定的所述領取請求對應的發送週期不一定是當前的發送週期,也可以是使用者指定的其他發送週期,伺服器可以待使用者指定的其他發送週期開始後,再開始執行後續步驟S104~S106。總之,伺服器可以根據使用者發送的領取請求,確定所述使用者想要領取電子票券的時機,從而在相應的發送週期內向所述使用者發送電子票券。 伺服器確定領取請求對應的發送週期後,可以繼續確定所述發送週期對應的可用標識。此處需要說明的是,伺服器可以預先針對每個發送週期,設置該發送週期對應的可用標識。一個發送週期對應的可用標識可以不止一個,可用標識可以是數值,也可以是文字或其他符號。各發送週期分別對應的可用標識是不同的。 S104:從儲存的各電子票券中,確定出標記為所述可用標識的電子票券。 在本說明書實施例中,伺服器在儲存的各電子票券中,確定標記為所述發送週期對應的可用標識的電子票券。可見,唯有標記為當前發送週期對應的可用標識的電子票券才能夠在當前發送週期內被發送。 此處需要說明的是,在第一個發送週期開始之前,即初始化時,伺服器可以將每個電子票券的標記設置為第一個發送週期對應的可用標識。 S106:從確定出的電子票券中選擇電子票券發送給所述使用者,並修改選擇的電子票券的標記。 在本說明書實施例中,伺服器可以從標記為所述發送週期對應的可用標識的電子票券中選擇至少一個電子票券發送給所述使用者,並修改被發送的電子票券的標記,使修改後的標記不是所述發送週期(也就是當前發送週期)對應的可用標識,且是後續的發送週期對應的可用標識。 如圖1所示的發送電子票券的方法,一方面,由於在當前發送週期內,每個被發送的電子票券的標記都會被修改,修改後的標記不是當前發送週期對應的可用標識,而唯有標記為當前發送週期對應的可用標識的電子票券才能夠在當前發送週期內被發送,因此,在當前發送週期內,同一個電子票券不會被重複發送。另一方面,在當前發送週期內,針對每個被發送的電子票券,修改後的該電子票券的標記是後續的發送週期對應的可用標識,因此,伺服器可以在各發送週期內重複使用各電子票券,而無需在每個發送週期結束後都重置各電子票券的標記或重新產生各電子票券。 以下針對發送週期對應的可用標識,進行具體說明。 實例一 可以針對相鄰的兩個發送週期,將第一個發送週期對應的可用標識設置為T,在第一個發送週期內,未被發送的電子票券的標記為T,被發送的電子票券的標記被修改為F;將第二個發送週期對應的可用標識設置為F,在第二個發送週期內,未被發送的電子票券的標記為F,被發送的電子票券的標記被修改為T。當然,也可以將第一個發送週期對應的可用標識設置為1,將第二個發送週期對應的可用標識設置為0。總之,針對相鄰的兩個發送週期,第一個發送週期內被發送的電子票券的標記為第二個發送週期對應的可用標識,第二個發送週期內被發送的電子票券的標記為第一個發送週期對應的可用標識,如圖2所示。 實例二 一般而言,發送週期具有先後順序,伺服器通過對各發送週期進行編號。此種情況下,倘若各發送週期的編號按各發送週期的先後順序依次遞增,伺服器可以將小於所述發送週期的編號的每個數值確定為所述發送週期對應的可用標識。如此一來,在步驟S106中,可以針對被選擇發送的每個電子票券,將不小於當前發送週期的編號且小於下一個發送週期的編號的任一數值,作為修改後的該電子票券的標記。 例如,發送週期的編號為20170720,那麼編號為20170720的發送週期對應的可用標識可以是小於20170720的每個數值,-10000、0.5、30等數值皆可。因此,只要某個電子票券的標記為小於20170720的數值,就可以在編號為20170720的發送週期內被發送。該電子票券被發送後,倘若下一個發送週期的編號為20170820,那麼被修改後該電子票券的標記X,滿足條件20170820>X≥20170720即可。
S100‧‧‧步驟S100‧‧‧Step
S102‧‧‧步驟S102‧‧‧Step
S104‧‧‧步驟S104‧‧‧Step
S106‧‧‧步驟S106‧‧‧Step
301‧‧‧接收模組301‧‧‧Receiving module
302‧‧‧第一確定模組302‧‧‧ First confirmation module
303‧‧‧第二確定模組303‧‧‧ second confirmation module
304‧‧‧發送修改模組304‧‧‧Send modification module
305‧‧‧預處理模組305‧‧‧Pretreatment module
為了更清楚地說明本說明書實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明中記載的一些實施例,對在該技術領域中具有通常知識者而言,在不付出創造性勞動性的前提下,還可以根據這些附圖獲得其他的圖式。 圖1是本說明書實施例提供的一種發送電子票券的方法流程圖; 圖2是本說明書實施例中發送週期對應可用標識的示意圖; 圖3是本說明書實施例提供的一種發送電子票券的裝置示意圖; 圖4是本說明書實施例提供的一種電子票券發送設備示意圖。In order to more clearly explain the embodiments of the specification or the technical solutions in the prior art, the following will briefly introduce the drawings used in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only Some embodiments described in the invention, for those with ordinary knowledge in this technical field, can also obtain other drawings based on these drawings without paying any creative labor. FIG. 1 is a flowchart of a method for sending electronic tickets provided by an embodiment of the present specification; FIG. 2 is a schematic diagram of an available identifier corresponding to a sending cycle in the embodiment of the present specification; FIG. 3 is a method of sending an electronic ticket provided by an embodiment of the present specification Device schematic diagram; FIG. 4 is a schematic diagram of an electronic ticket sending device provided by an embodiment of this specification.
Claims (13)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710605521.3 | 2017-07-24 | ||
CN201710605521.3A CN107527228B (en) | 2017-07-24 | 2017-07-24 | Method and device for sending electronic ticket |
??201710605521.3 | 2017-07-24 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201909077A true TW201909077A (en) | 2019-03-01 |
TWI707289B TWI707289B (en) | 2020-10-11 |
Family
ID=60679967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107117183A TWI707289B (en) | 2017-07-24 | 2018-05-21 | Method and device for sending electronic tickets |
Country Status (3)
Country | Link |
---|---|
CN (2) | CN111489202B (en) |
TW (1) | TWI707289B (en) |
WO (1) | WO2019019957A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111489202B (en) * | 2017-07-24 | 2023-05-23 | 创新先进技术有限公司 | Method and device for sending electronic ticket |
CN117591625B (en) * | 2024-01-18 | 2024-04-12 | 之江实验室 | Data storage method and device, storage medium and electronic equipment |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2487875B1 (en) * | 2011-02-14 | 2021-08-25 | Quotient Technology Inc. | Identifier-based coupon distribution |
JP2014527252A (en) * | 2011-09-15 | 2014-10-09 | クーポンズドットコム インコーポレイテッド | Distribution of digital promotions based on checkout |
CN103679504B (en) * | 2013-11-15 | 2017-12-01 | 北京奇虎科技有限公司 | Distribute the method and device of electronic bill |
CN103593793A (en) * | 2013-11-15 | 2014-02-19 | 胡泽民 | Advertising box, method for distributing electronic tickets through advertising box and system of method |
JP5628463B1 (en) * | 2014-03-27 | 2014-11-19 | 楽天株式会社 | COUPON MANAGEMENT DEVICE, COUPON MANAGEMENT METHOD, PROGRAM, AND RECORDING MEDIUM |
CN106156228B (en) * | 2015-04-24 | 2020-01-10 | 腾讯科技(深圳)有限公司 | Resource distribution system, resource distribution method and resource pickup method |
CN104966214B (en) * | 2015-06-29 | 2019-11-26 | 百度在线网络技术(北京)有限公司 | A kind of exchange method and device of electronic ticket |
CN106487872B (en) * | 2015-08-24 | 2020-03-27 | 阿里巴巴集团控股有限公司 | Method and device for providing discount coupons and method for distributing and receiving virtual resources |
JP2018533774A (en) * | 2015-10-27 | 2018-11-15 | ベイジン ディディ インフィニティ テクノロジー アンド ディベロップメント カンパニー リミティッド | System and method for delivering a message |
CN106934646A (en) * | 2015-12-31 | 2017-07-07 | 阿里巴巴集团控股有限公司 | The method and apparatus that electronic coupons are delivered in marketing activity |
CN105956879A (en) * | 2016-04-29 | 2016-09-21 | 北京小米移动软件有限公司 | Method, device and system for sending electronic ticket |
CN111489202B (en) * | 2017-07-24 | 2023-05-23 | 创新先进技术有限公司 | Method and device for sending electronic ticket |
-
2017
- 2017-07-24 CN CN202010291744.9A patent/CN111489202B/en active Active
- 2017-07-24 CN CN201710605521.3A patent/CN107527228B/en active Active
-
2018
- 2018-05-21 TW TW107117183A patent/TWI707289B/en active
- 2018-07-20 WO PCT/CN2018/096487 patent/WO2019019957A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN107527228B (en) | 2020-03-27 |
TWI707289B (en) | 2020-10-11 |
CN107527228A (en) | 2017-12-29 |
CN111489202B (en) | 2023-05-23 |
WO2019019957A1 (en) | 2019-01-31 |
CN111489202A (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018177250A1 (en) | Block chain based data processing method and device | |
CN111756550B (en) | Block chain consensus method and device | |
TWI680656B (en) | Data processing method and equipment based on blockchain | |
TWI660274B (en) | Data processing method and equipment based on blockchain | |
TWI709933B (en) | Virtual card opening method, system, payment system and card issuing system | |
TWI694342B (en) | Data cache method, device and system | |
CN107392611A (en) | A kind of method and device for sending Transaction Information and common recognition checking | |
WO2019196551A1 (en) | Payment process configuration and execution method, apparatus and device | |
WO2021238996A1 (en) | Resource processing method, apparatus and device | |
TWI700905B (en) | Data processing method, device and equipment | |
CN107578338B (en) | Service publishing method, device and equipment | |
TW201939356A (en) | Code-scanning image recognition method, apparatus and device | |
WO2019047775A1 (en) | Method, apparatus and device for processing web application package | |
TW201918878A (en) | Task execution method and apparatus | |
TWI707289B (en) | Method and device for sending electronic tickets | |
CN109345221A (en) | The checking method and device of resource circulation | |
TWI710993B (en) | Business processing method, device and equipment, and storage medium | |
EP3211541A1 (en) | Method and apparatus for determining directory category and automatic categorization method and apparatus | |
TW201926173A (en) | Resource transfer verification method and apparatus, and electronic payment verification method and apparatus | |
CN111124708B (en) | Microservice-oriented batch reasoning method, server and computer readable storage medium | |
CN107943923B (en) | Telegram code database construction method, telegram code identification method and device | |
CN114201086B (en) | Information display method and device | |
CN107645541B (en) | Data storage method and device and server | |
CN111880922A (en) | Processing method, device and equipment for concurrent tasks | |
CN113011165B (en) | Method, device, equipment and medium for identifying blocked keywords |