CN111784393B - Electronic coupon issuing method and device - Google Patents

Electronic coupon issuing method and device Download PDF

Info

Publication number
CN111784393B
CN111784393B CN202010611833.7A CN202010611833A CN111784393B CN 111784393 B CN111784393 B CN 111784393B CN 202010611833 A CN202010611833 A CN 202010611833A CN 111784393 B CN111784393 B CN 111784393B
Authority
CN
China
Prior art keywords
electronic
ticket
groups
coupons
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010611833.7A
Other languages
Chinese (zh)
Other versions
CN111784393A (en
Inventor
周黄鹤
廖江亮
杨惠宝
毛婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010611833.7A priority Critical patent/CN111784393B/en
Publication of CN111784393A publication Critical patent/CN111784393A/en
Application granted granted Critical
Publication of CN111784393B publication Critical patent/CN111784393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90348Query processing by searching ordered data, e.g. alpha-numerically ordered data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a method and a device for issuing an electronic ticket. The method comprises the following steps: generating electronic coupons with different denominations according to the acquired activity rules, and storing the electronic coupons in a distributed cache; sorting the electronic coupons in the distributed cache by using the random number; grouping the ordered electronic coupons by using a shuffling algorithm to obtain a plurality of coupon groups, and sequentially storing the coupon groups into a physical table; and generating sharing links corresponding to the ticket groups one by one, and randomly issuing the electronic tickets in the ticket groups by using the sharing links. The invention groups the denominations based on the shuffling algorithm and the distributed caching technology, and the denominations are all disordered before the physical storage of the electronic ticket, and all the denominations are physically and randomly stored in the database table, so that the electronic ticket can be efficiently and randomly issued when being picked.

Description

Electronic coupon issuing method and device
Technical Field
The present invention relates to the field of electronic coupon issuing technologies, and in particular, to a method and an apparatus for issuing an electronic coupon.
Background
Electronic coupons are an important means for the development, acquisition and adhesion of enterprises in the Internet era, and particularly the current economic situation is severe, the external needs are soft, the internal needs are insufficient, and governments in various places stimulate economy by issuing a large number of electronic consumer coupons. But the electronic ticket is ensured to be issued fairly, orderly, uniformly and safely against the risks of external attacks such as various 'wool parties', and the functions of assisting marketing and stimulating consumption are fully exerted, so that the electronic ticket is always a difficult problem in the field of electronic tickets.
Conventional electronic ticket randomization algorithms, which generate electronic tickets in different rule sequences under various denomination rules, may result in issuing electronic tickets, which are difficult to balance in denomination randomization and ticket capturing efficiency.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a method and a device for issuing electronic coupons, which ensure that the electronic coupons can be issued efficiently and randomly when being picked up.
To achieve the above object, an embodiment of the present invention provides a method, including:
generating electronic coupons with different denominations according to the acquired activity rules, and storing the electronic coupons in a distributed cache;
sorting the electronic coupons in the distributed cache by using the random number;
grouping the ordered electronic coupons by using a shuffling algorithm to obtain a plurality of coupon groups, and sequentially storing the coupon groups into a physical table;
and generating sharing links corresponding to the ticket groups one by one, and randomly issuing the electronic tickets in the ticket groups by using the sharing links.
Optionally, in an embodiment of the present invention, the generating the electronic coupons of different denominations according to the acquired activity rules includes: generating electronic coupons of denominations and corresponding number of denominations according with activity rules
Optionally, in an embodiment of the present invention, grouping the sorted electronic coupons using a shuffling algorithm to obtain a plurality of coupon groups includes: generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group; and selecting the electronic coupons by using the shuffling random numbers, and sequentially placing the electronic coupons at the tail positions of the coupon groups.
Optionally, in an embodiment of the present invention, the generating a sharing link corresponding to the ticket group one-to-one, and the randomly issuing the electronic ticket in the ticket group by using the sharing link includes: generating a sharing link corresponding to the ID of the ticket group; and positioning the corresponding ticket group by using the sharing link, and randomly issuing the electronic ticket in the corresponding ticket group.
The embodiment of the invention also provides an electronic ticket issuing device, which comprises:
the electronic ticket generating module is used for generating electronic tickets with different denominations according to the acquired activity rules and storing the electronic tickets in the distributed cache;
the electronic ticket ordering module is used for ordering the electronic tickets in the distributed cache by using the random number;
the electronic ticket storage module is used for grouping the ordered electronic tickets by using a shuffling algorithm to obtain a plurality of ticket groups, and sequentially storing the ticket groups into a physical table;
and the electronic ticket issuing module is used for generating sharing links corresponding to the ticket groups one by one, and randomly issuing the electronic tickets in the ticket groups by utilizing the sharing links.
Optionally, in an embodiment of the present invention, the electronic ticket generating module is specifically configured to generate electronic tickets with denominations and corresponding numbers of denominations according to the rules of activities.
Optionally, in an embodiment of the present invention, the electronic ticket storage module includes: the random number unit is used for generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group; and the electronic ticket grouping unit is used for selecting electronic tickets by using the shuffling random numbers and sequentially placing the electronic tickets at the tail positions of the ticket groups.
Optionally, in an embodiment of the present invention, the electronic ticket issuing module includes: a link generation unit configured to generate a sharing link corresponding to the ID of the ticket group; and the random issuing unit is used for positioning the corresponding ticket group by utilizing the sharing link and randomly issuing the electronic ticket in the corresponding ticket group.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the program.
The present invention also provides a computer readable storage medium storing a computer program for executing the above method.
The invention groups the denominations based on the shuffling algorithm and the distributed caching technology, and the denominations are all disordered before the physical storage of the electronic ticket, and all the denominations are physically and randomly stored in the database table, so that the electronic ticket can be efficiently and randomly issued when being picked.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for issuing an electronic ticket according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the denomination distribution of an electronic ticket according to an embodiment of the present invention;
FIG. 3 is a flow chart of a process for generating a coupon set in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart of an electronic ticket issuing process in an embodiment of the present invention;
FIG. 5 is a flowchart of an electronic ticket issuing process according to an embodiment of the present invention;
fig. 6 is a schematic structural view of an electronic ticket issuing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a method and a device for issuing an electronic ticket.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The electronic coupons traditionally generated in the order of the electronic coupon rules are also ordered in their storage in the table. Each time a random electronic ticket is received, the ticket needs to be received randomly in all the ticket pools, and the ticket receiving efficiency is low because the number of the tickets is large in the base number. If the pool of coupons is narrowed (e.g., 500 coupons are first delineated and then randomly fetched therein), there is an imbalance in denomination due to the physical sequential storage of the records.
In order to solve the problem that the electronic ticket cannot be efficiently and randomly issued when being picked up, as shown in fig. 1, an embodiment of the present invention provides a flowchart of an electronic ticket issuing method, where the method includes:
step S1, generating electronic coupons with different denominations according to the acquired activity rules, and storing the electronic coupons in a distributed cache.
Specifically, the method is used for generating electronic coupons with different denominations and numbers according to the activity rules in advance, for example, there is one activity, and there are 3 kinds of regular electronic coupons. 4 ten thousand of 5-yuan denominations, 5000 of 20-yuan denominations and 800 of 50-yuan denominations are distributed as shown in figure 2. Electronic coupons of different denominations generated according to the activity rules are not written into the physical table immediately, but stored into the distributed cache.
And S2, sorting the electronic coupons in the distributed cache by using the random number.
The electronic ticket records in the cache are identified by using random numbers, and then are ordered according to the random numbers.
And step S3, grouping the ordered electronic coupons by using a shuffling algorithm to obtain a plurality of coupon groups, and sequentially storing the coupon groups into a physical table.
Wherein the electronic coupons ordered by random number are grouped sequentially, for example 5 electronic coupons per group, using a shuffling algorithm. And storing the grouped electronic coupons into an electronic coupon physical table according to the sequence of the groups.
And S4, generating sharing links corresponding to the ticket groups one by one, and randomly issuing the electronic tickets in the ticket groups by using the sharing links.
Specifically, when the ticket is to be acquired, after the internet social platform shares the links, one link corresponds to one ticket group, and the associated ticket is positioned through the group ID, and one ticket is randomly taken out.
As one embodiment of the present invention, generating electronic coupons of different denominations according to the acquired campaign rules includes: and generating the electronic coupons with the denominations and the corresponding number of the denominations according with the rules of the activities. The distribution of the electronic coupons generated by the activity rules is shown in fig. 2.
As an embodiment of the present invention, as shown in fig. 3, grouping the ordered electronic coupons using a shuffling algorithm, the grouping comprising:
and S31, generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group.
Wherein, before step S31, a red package group ID is first associated with the electronic coupons that have been sorted by random numbers (such as associating 5 electronic coupons with each coupon group), and then a number of shuffled random numbers corresponding to the number of electronic coupons are generated, for example, 1-5 random numbers are generated.
And S32, selecting the electronic coupons by using the shuffling random numbers, and sequentially placing the electronic coupons at the last position of the coupon group.
Specifically, the card is taken out of the group of cards according to the shuffled random number generated in step S31, and the taken-out card is placed at the final position. Taking 5 electronic coupons associated with each coupon group as an example, repeating the step S31 and the step S32 for 5 times, and achieving the purpose of randomly storing the electronic coupons according to the requirement of a shuffling algorithm.
As an embodiment of the present invention, as shown in fig. 4, generating a sharing link corresponding to the ticket group one-to-one, and randomly issuing the electronic ticket in the ticket group by using the sharing link includes:
step S41, generating a sharing link corresponding to the ID of the ticket group.
Wherein, a shared link corresponds to a coupon group, and the associated coupon is positioned through the group ID.
And S42, positioning the corresponding ticket group by using the sharing link, and randomly issuing the electronic ticket in the corresponding ticket group.
After sharing the links by the Internet social platform, randomly taking out one coupon in the corresponding coupon group through the sharing links.
In a specific embodiment of the present invention, as shown in fig. 5, when electronic coupons are pre-generated in batch, electronic coupons of different denominations generated in a rule are not written into a physical table immediately, but are stored in a distributed cache. The electronic ticket records in the cache are identified using the random numbers and then sorted according to the random numbers. The electronic coupons sorted by random number are grouped in sequence using a shuffling algorithm. And storing the grouped electronic coupons into an electronic coupon physical table according to the sequence of the groups. When the ticket is taken, after the internet social platform shares the links, one link corresponds to one ticket group, the associated ticket is positioned through the group ID, and one ticket is randomly taken out.
In addition, the social platform distributes an electronic coupon to the winning user by sharing the coupon links (the rear ends of the coupon links correspond to a grouped coupon group), and the sharing links are obtained first. If the electronic coupons associated in the group are completely picked up, prompting the users who rob the coupons through the links again that the link red packages are completely robbed. According to the invention, through grouping and distributed caching technology based on a shuffling algorithm, electronic coupons with different denominations are randomly and physically stored in the table, so that the coupon capturing efficiency is ensured, and the denomination is ensured to be random.
The invention groups the denominations based on the shuffling algorithm and the distributed caching technology, and the denominations are all disordered before the physical storage of the electronic ticket, and all the denominations are physically and randomly stored in the database table, so that the electronic ticket can be efficiently and randomly issued when being picked.
Fig. 6 is a schematic structural view of an electronic ticket issuing apparatus according to an embodiment of the present invention, wherein the apparatus includes:
the electronic ticket generating module 10 is configured to generate electronic tickets with different denominations according to the acquired activity rules, and store the electronic tickets in a distributed cache.
Specifically, the method is used for generating electronic coupons with different denominations and numbers according to the activity rules in advance, for example, there is one activity, and there are 3 kinds of regular electronic coupons. 4 ten thousand of 5 yuan denomination, 5000 of 20 yuan denomination and 800 of 50 yuan denomination. Electronic coupons of different denominations generated according to the activity rules are not written into the physical table immediately, but stored into the distributed cache.
The electronic ticket ordering module 20 is configured to order the electronic tickets in the distributed cache by using the random number.
The electronic ticket records in the cache are identified by using random numbers, and then are ordered according to the random numbers.
The electronic ticket storage module 30 is configured to group the sorted electronic tickets by using a shuffling algorithm to obtain a plurality of ticket groups, and store the ticket groups in the physical table in sequence.
Wherein the electronic coupons ordered by random number are grouped sequentially, for example 5 electronic coupons per group, using a shuffling algorithm. And storing the grouped electronic coupons into an electronic coupon physical table according to the sequence of the groups.
And the electronic ticket issuing module 40 is configured to generate sharing links corresponding to the ticket groups one by one, and randomly issue the electronic tickets in the ticket groups by using the sharing links.
Specifically, when the ticket is to be acquired, after the internet social platform shares the links, one link corresponds to one ticket group, and the associated ticket is positioned through the group ID, and one ticket is randomly taken out.
As one embodiment of the present invention, the electronic ticket generating module is specifically configured to generate electronic tickets with denominations and corresponding numbers of denominations according to the rules of activity.
As one embodiment of the present invention, an electronic ticket storage module includes: the random number unit is used for generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group; and the electronic ticket grouping unit is used for selecting electronic tickets by using the shuffling random numbers and sequentially placing the electronic tickets at the tail positions of the ticket groups.
As one embodiment of the present invention, an electronic ticket issuing module includes: a link generation unit configured to generate a sharing link corresponding to the ID of the ticket group; and the random issuing unit is used for positioning the corresponding ticket group by utilizing the sharing link and randomly issuing the electronic ticket in the corresponding ticket group.
The invention also provides the electronic ticket issuing device based on the same application conception as the electronic ticket issuing method. Since the principle of the electronic ticket issuing device for solving the problem is similar to that of an electronic ticket issuing method, the implementation of the electronic ticket issuing device can refer to the implementation of the electronic ticket issuing method, and the repetition is omitted.
The invention groups the denominations based on the shuffling algorithm and the distributed caching technology, and the denominations are all disordered before the physical storage of the electronic ticket, and all the denominations are physically and randomly stored in the database table, so that the electronic ticket can be efficiently and randomly issued when being picked.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the program.
The present invention also provides a computer readable storage medium storing a computer program for executing the above method.
As shown in fig. 7, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, a power supply 170. It is noted that the electronic device 600 need not include all of the components shown in fig. 7; in addition, the electronic device 600 may further include components not shown in fig. 7, to which reference is made to the related art.
As shown in fig. 7, the central processor 100, sometimes also referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 100 receives inputs and controls the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 100 can execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides an input to the central processor 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, or the like. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. Memory 140 may also be some other type of device. Memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage 142, the application/function storage 142 for storing application programs and function programs or a flow for executing operations of the electronic device 600 by the central processor 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. A communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and to receive audio input from the microphone 132 to implement usual telecommunication functions. The audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 130 is also coupled to the central processor 100 so that sound can be recorded locally through the microphone 132 and so that sound stored locally can be played through the speaker 131.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (8)

1. A method of issuing an electronic ticket, the method comprising:
generating electronic coupons with different denominations according to the acquired activity rules, and storing the electronic coupons in a distributed cache;
sorting the electronic coupons in the distributed cache by using the random number;
grouping the ordered electronic coupons by using a shuffling algorithm to obtain a plurality of coupon groups, and sequentially storing the coupon groups into a physical table;
generating sharing links corresponding to the ticket groups one by one, and randomly issuing the electronic tickets in the ticket groups by using the sharing links;
wherein the grouping of the ordered electronic coupons using a shuffling algorithm, the obtaining a plurality of coupon groups comprises:
generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group;
and selecting the electronic coupons by using the shuffling random numbers, and sequentially placing the electronic coupons at the tail positions of the coupon groups.
2. The method of claim 1, wherein generating electronic coupons of different denominations based on the acquired campaign rules comprises: and generating the electronic coupons with the denominations and the corresponding number of the denominations according with the rules of the activities.
3. The method of claim 1, wherein the generating a sharing link in one-to-one correspondence with the group of coupons, the randomly issuing electronic coupons in the group of coupons using the sharing link comprises:
generating a sharing link corresponding to the ID of the ticket group;
and positioning the corresponding ticket group by using the sharing link, and randomly issuing the electronic ticket in the corresponding ticket group.
4. An electronic ticket issuing apparatus, characterized in that the apparatus comprises:
the electronic ticket generating module is used for generating electronic tickets with different denominations according to the acquired activity rules and storing the electronic tickets in the distributed cache;
the electronic ticket ordering module is used for ordering the electronic tickets in the distributed cache by using the random number;
the electronic ticket storage module is used for grouping the ordered electronic tickets by using a shuffling algorithm to obtain a plurality of ticket groups, and sequentially storing the ticket groups into a physical table;
the electronic ticket issuing module is used for generating sharing links corresponding to the ticket groups one by one and randomly issuing the electronic tickets in the ticket groups by utilizing the sharing links;
wherein, the electronic ticket storage module includes:
the random number unit is used for generating shuffling random numbers according to the number of the electronic coupons contained in the coupon group;
and the electronic ticket grouping unit is used for selecting electronic tickets by using the shuffling random numbers and sequentially placing the electronic tickets at the tail positions of the ticket groups.
5. The apparatus of claim 4, wherein the electronic ticket generation module is specifically configured to generate electronic tickets having denominations and corresponding numbers of denominations according to the rules of activity.
6. The apparatus of claim 4, wherein the electronic ticket issuing module comprises:
a link generation unit configured to generate a sharing link corresponding to the ID of the ticket group;
and the random issuing unit is used for positioning the corresponding ticket group by utilizing the sharing link and randomly issuing the electronic ticket in the corresponding ticket group.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 3 when executing the program.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 3.
CN202010611833.7A 2020-06-30 2020-06-30 Electronic coupon issuing method and device Active CN111784393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010611833.7A CN111784393B (en) 2020-06-30 2020-06-30 Electronic coupon issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010611833.7A CN111784393B (en) 2020-06-30 2020-06-30 Electronic coupon issuing method and device

Publications (2)

Publication Number Publication Date
CN111784393A CN111784393A (en) 2020-10-16
CN111784393B true CN111784393B (en) 2024-02-02

Family

ID=72760318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010611833.7A Active CN111784393B (en) 2020-06-30 2020-06-30 Electronic coupon issuing method and device

Country Status (1)

Country Link
CN (1) CN111784393B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485676A (en) * 2021-07-08 2021-10-08 上海通联金融服务有限公司 Method and system for randomly generating credit card number

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966214A (en) * 2015-06-29 2015-10-07 百度在线网络技术(北京)有限公司 Electronic ticket interaction method and device
CN105407036A (en) * 2015-10-28 2016-03-16 小米科技有限责任公司 Red envelope sending method and device
CN107392640A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and device for handling electronic ticket link
CN107862549A (en) * 2017-11-03 2018-03-30 北京翰宁智能科技有限责任公司 A kind of reward voucher put-on method and system
CN109542395A (en) * 2018-11-23 2019-03-29 苏州好玩友网络科技有限公司 Lottery information determines method, apparatus, equipment and storage medium
CN110033317A (en) * 2019-03-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of electronic ticket distribution method and system based on block chain
CN110503484A (en) * 2019-08-27 2019-11-26 中国工商银行股份有限公司 Electronic ticket data matching method and device based on distributed caching
CN111026758A (en) * 2019-12-11 2020-04-17 易点生活电子商务有限公司 Electronic ticket issuing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170364936A1 (en) * 2016-06-15 2017-12-21 CouponCo Ltd. Computer-implemented electronic coupon system and methods using a blockchain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966214A (en) * 2015-06-29 2015-10-07 百度在线网络技术(北京)有限公司 Electronic ticket interaction method and device
CN105407036A (en) * 2015-10-28 2016-03-16 小米科技有限责任公司 Red envelope sending method and device
CN107392640A (en) * 2017-04-28 2017-11-24 阿里巴巴集团控股有限公司 A kind of method and device for handling electronic ticket link
CN107862549A (en) * 2017-11-03 2018-03-30 北京翰宁智能科技有限责任公司 A kind of reward voucher put-on method and system
CN109542395A (en) * 2018-11-23 2019-03-29 苏州好玩友网络科技有限公司 Lottery information determines method, apparatus, equipment and storage medium
CN110033317A (en) * 2019-03-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of electronic ticket distribution method and system based on block chain
CN110503484A (en) * 2019-08-27 2019-11-26 中国工商银行股份有限公司 Electronic ticket data matching method and device based on distributed caching
CN111026758A (en) * 2019-12-11 2020-04-17 易点生活电子商务有限公司 Electronic ticket issuing method and device

Also Published As

Publication number Publication date
CN111784393A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN105654320A (en) Two-dimensional code-based data analysis anti-counterfeiting traceability marketing management method and system
US11043068B2 (en) Interactive application processing method and apparatus, and storage medium
CN112949760A (en) Model precision control method and device based on federal learning and storage medium
CN105487760A (en) Method and device for displaying message and electronic equipment
CN111784393B (en) Electronic coupon issuing method and device
CN107393534A (en) Voice interactive method and device, computer installation and computer-readable recording medium
CN110347848A (en) A kind of PowerPoint management method and device
CN109245878A (en) A kind of new block generation method, equipment and the readable storage medium storing program for executing of block chain
CN106527695A (en) Method and device for information output
CN110647311A (en) Uncontrollable random number generation method and system
CN107948054A (en) Instant communication method and device, computer installation and computer-readable recording medium
CN111402058A (en) Data processing method, device, equipment and medium
WO2023273150A1 (en) Ar collection method, and terminal, device and storage medium
WO2005032673A3 (en) Gaming system using single player-identification card for performing multiple functions
CN112799943B (en) Service system automatic test method and device
CN105868344A (en) Information processing method and electronic equipment
CN110324364A (en) A kind of offline lottery drawing method and electric terminal
CN107819937A (en) A kind of memo information based reminding method and device, terminal and readable storage medium storing program for executing
CN107948177A (en) Verify the generation method and device of questionnaire
CN109493037A (en) Assets distributing method, device and storage medium based on DAG structure
CN115131078A (en) Sequential consumption point integrating method and system based on certificate model
CN108170403A (en) Data screening method and apparatus
CN115205009A (en) Account opening business processing method and device based on virtual technology
KR20190105275A (en) Apparatus and method for preventing lotto event participation information forgery
CN115018314A (en) Queuing information processing method, device, system and storage medium

Legal Events

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