A method, device, equipment and storage medium for determining coupon code

Through distributed caching technology, the problem of duplication of coupon coding is solved, the uniqueness of coding is ensured, the user experience and management efficiency is improved, and the efficient determination of coupon coding is achieved.

CN112418928BActive Publication Date: 2024-12-24CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011307764.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-19
Publication Date
2024-12-24
Estimated Expiration
2040-11-19

AI Technical Summary

Technical Problem

In the prior art, when multiple event parties hold discount activities, the coupon code may be repeated, resulting in inconsistent coding, affecting user experience and failure of write-off.

Method used

Through distributed caching technology, the target coupon code is obtained from the preset coupon code based on the promotional activity information of the event party, and distributed cache it with the activity information to ensure the uniqueness of the encoding.

Benefits of technology

It improves the accuracy of coupon coding, simplifies the use steps, avoids duplication of coding, and improves user experience and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112418928B_ABST
    Figure CN112418928B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for determining a coupon code. The method includes: in response to a coupon code acquisition instruction, acquiring a preset coupon code in a distributed cache and the preferential activity information in the coupon code acquisition instruction; acquiring a target coupon code that meets the preset acquisition requirements from the preset coupon code according to the preferential activity information; and performing distributed caching on the target coupon code and the preferential activity information to complete the determination of the coupon code. By performing distributed caching on the coupon code, the unified issuance of coupons for different preferential activities is realized, which is beneficial to the management of the coupon code, avoids code duplication, and improves the efficiency of determining the coupon code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to distributed cache technology, and more particularly to a method, apparatus, device and storage medium for determining a coupon code. Background Art

[0002] There are various promotional activities in the market. When holding promotional activities, the organizers often send coupons to customers, and the coupons are marked with coupon codes.

[0003] In the prior art, if multiple event organizers hold multiple different events, the coupons for each event need to be coded and generated from their respective database deployments. Multiple databases need to be deployed based on the event information, and each database manages the coupon codes for its own event.

[0004] Since each database is independent, coupons for different activities may have duplicate codes. For example, the coupon codes for activity A are 1 to 10, and the coupon codes for activity B are also 1 to 10. It is possible that the same customer participates in different activities and obtains the same coupon number, causing confusion in the use of coupons. The coupon codes are not unique, and the coding accuracy is low, resulting in coupon verification failure, affecting the user experience of using coupons. Summary of the invention

[0005] Embodiments of the present invention provide a method, apparatus, device and storage medium for determining a coupon code, so as to improve the accuracy of determining the coupon code.

[0006] In a first aspect, an embodiment of the present invention provides a method for determining a coupon code, the method comprising:

[0007] In response to the coupon code acquisition instruction, acquiring the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction;

[0008] According to the preferential activity information, a target coupon code that meets a preset acquisition requirement is obtained from the preset coupon codes;

[0009] The target coupon code and the preferential activity information are distributedly cached to complete the determination of the coupon code.

[0010] In a second aspect, an embodiment of the present invention further provides a device for determining a coupon code, the device comprising:

[0011] A preset code acquisition module, used to respond to a coupon code acquisition instruction and acquire the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction;

[0012] A target code acquisition module, used to acquire a target coupon code that meets a preset acquisition requirement from the preset coupon code according to the preferential activity information;

[0013] The target code cache module is used to cache the target coupon code and the preferential activity information in a distributed manner to complete the determination of the coupon code.

[0014] In a third aspect, an embodiment of the present invention further provides a device for determining a coupon code, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for determining a coupon code as described in any embodiment of the present invention is implemented.

[0015] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to perform the method for determining a coupon code as described in any embodiment of the present invention.

[0016] The embodiment of the present invention performs distributed caching of coupon codes, determines code acquisition requirements according to the preferential activity information of the event party, obtains the target coupon code from the preset coupon code, and performs distributed caching of the target coupon code and the preferential activity information. This solves the problem in the prior art that when obtaining coupons from different event parties or different preferential activities, it is necessary to obtain codes from each independent database, avoids the phenomenon that coupon codes between different activities may be repeated, and when using coupons, the corresponding activity can be directly determined without the need to determine the purpose of the coupon again according to the preferential activity information. The steps for using coupons are simple, the uniqueness of the code is guaranteed, and the management of coupons is convenient. The determination accuracy when obtaining the code is improved, and the experience of using coupons is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flowchart of a method for determining a coupon code in the first embodiment of the present invention;

[0018] Figure 2 It is a flowchart of a method for determining a coupon code in Embodiment 2 of the present invention;

[0019] Figure 3 It is a flowchart of a method for determining a coupon code in Embodiment 3 of the present invention;

[0020] Figure 4 It is a structural block diagram of a device for determining a coupon code in a fourth embodiment of the present invention;

[0021] Figure 5 It is a structural diagram of a coupon code determination device in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0023] Embodiment 1

[0024] Figure 1 This is a flow chart of a method for determining a coupon code provided in the first embodiment of the present invention. This embodiment is applicable to the case where an event party determines a coupon code for distribution. The method can be executed by a device for determining a coupon code. Figure 1 As shown, the method specifically comprises the following steps:

[0025] Step 110: In response to the coupon code acquisition instruction, the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction are acquired.

[0026] Among them, the event party sends a coupon code acquisition instruction to the customer feedback system. The customer feedback system can meet the needs of producing coupons for different activities and manage different event parties and promotional activities. After launching a promotional activity, the event party can issue coupons to people. Each coupon has its own code. When using the coupon, you can just show the coupon code. If the coupon code is repeated, it will make the promotion difficult to carry out. In order to ensure that the coupon codes of different event parties and different promotional activities will not be repeated, the preset coupon code can be distributed cached. If the coupon code acquisition instruction is responded to, the preset coupon code is called, and the promotional activity information in the coupon code acquisition instruction is obtained. The coupon code can be composed of numbers and is the unique identifier of the coupon.

[0027] In this embodiment, optionally, before responding to the coupon code acquisition instruction and acquiring the preset coupon code of the distributed cache and the promotional activity information in the coupon code acquisition instruction, it also includes: storing the preset coupon code in the coding order according to the data volume storage requirement of the distributed cache.

[0028] Specifically, there are data volume requirements when performing distributed caching. For example, if the data volume requirement is to store 1,000 preset coupon codes, then the 1,000 preset coupon codes are stored in the order of the codes. The order of the preset coupon codes can be used as the key, and the preset coupon codes can be used as the value. For example, the key is 1, the value is 1221; the key is 2, and the value is 1222. The preset coupon codes do not need to be arranged in order according to their size, as long as the key and value correspond one to one. The preset coupon code is a pre-set coupon code. When issuing a coupon code, it can be selected from the preset coupon code without regenerating the code. The beneficial effect of such a setting is that the preset coupon code can be obtained according to the order of the codes, and there is no need to create the code when obtaining the coupon code. The uniqueness of the code is guaranteed by the preset code, which improves the efficiency of code acquisition.

[0029] In this embodiment, optionally, the preferential activity information includes target activity information and target preferential information, the target activity information includes the activity name, activity location, activity period, activity organizer and activity object, and the target preferential information includes the coupon validity period, coupon usage location and coupon quantity.

[0030] Specifically, the preferential activity information refers to the information involved in the preferential activities held by the event party, which may include target activity information and target preferential information. The target activity information may include the activity name, activity location, activity period, event organizer and activity object, etc. The target preferential information may include the coupon validity period, coupon usage location and coupon quantity, etc. The event party is the event organizer, and the event object refers to the person participating in the event directed by the event organizer. For example, it can be specified that only new customers of the event party can participate in the preferential activities, and the new customers are the event objects. The activity period and the coupon validity period may be different. The activity period may refer to the time limit for the customer to receive the coupon, and the coupon validity period may refer to the period for the customer to use the coupon. For example, the time when the customer can receive the coupon is from November 17 to November 27, and after the customer receives the coupon, the coupon can be used from November 17 to December 17. The beneficial effect of such a setting is that the preferential activity information of the event party is stored, which is conducive to distinguishing between preferential activities and coupons, avoiding confusion in coupon distribution, and improving the confirmation accuracy of coupon coding.

[0031] Step 120: According to the preferential activity information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes.

[0032] After obtaining the preferential activity information from the coupon code obtaining instruction, the preset obtaining requirements of the coupons to be obtained by the activity party are determined according to the preferential activity information. The preset obtaining requirements may be the quantity requirements or the arrangement sequence requirements of the coupons, etc. The coupon code that meets the preset obtaining requirements is obtained from the preset coupon codes as the target coupon code.

[0033] In this embodiment, optionally, based on the promotion information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes, including: obtaining the target discount information in the promotion information; determining the number of coupons to be obtained based on the target discount information; and obtaining the target coupon code that is consistent with the number of coupons from the preset coupon codes.

[0034] Specifically, the target discount information is obtained from the discount information, and the preset acquisition requirements are determined according to the target discount information. The preset acquisition requirements can be the number of coupons. The number of coupons to be obtained is determined, and the coupon codes of these numbers are obtained from the preset coupon codes as the target coupon codes. For example, if the number of coupons is 100, 100 coupon codes are to be obtained. The beneficial effect of such a setting is that the target coupon code can be obtained by only knowing the required number of coupons, and there is no need to determine the code based on other discount information. Different discount activities or different activity parties want to obtain coupon codes, which can be obtained from the preset coupon codes in the distributed cache, reducing the process of distinguishing different discount activities or different activity parties, avoiding duplication of coupon codes in different activities, ensuring the uniqueness of the coupon code, and improving the accuracy of code determination.

[0035] In this embodiment, optionally, obtaining a target coupon code that is consistent with the coupon quantity from the preset coupon code includes: determining a first target coupon code according to a coding sequence of the preset coupon codes; and obtaining a target coupon code that is consistent with the coupon quantity starting from the first target coupon code according to the coupon quantity.

[0036] Specifically, each time the target coupon code is obtained from the preset coupon code, it can be obtained from the first one of the current preset coupon codes, and the preset coupon code currently ranked first is the first target coupon code. Determine the number of coupons, start from the first target coupon code, obtain the preset coupon code that is consistent with the number of coupons, and the preset coupon codes obtained are all target coupon codes, and the target coupon codes include the first target coupon code. For example, there are 1000 preset coupon codes in total, the first 100 preset coupon codes have been obtained, and the current preset coupon codes are the 101st to the 1000th. If the number of coupons required is 100, then the preset coupon code ranked 101st is the first target coupon code, and from 101 to 200 are all target coupon codes. The obtained target coupon code can be removed from the queue of preset coupon codes. The beneficial effect of such a setting is that according to the code order, the target coupon code can be obtained in sequence, avoiding code acquisition conflicts and ensuring the uniqueness of the code. For different promotional activities, it is only necessary to start from the current first preset coupon code to obtain, thereby improving the efficiency and accuracy of code determination.

[0037] Step 130: Distribute and cache the target coupon code and the promotion information to complete the determination of the coupon code.

[0038] Among them, after obtaining the target coupon code, the target coupon code and the corresponding promotion information are distributedly cached, with the target coupon code as the key and the promotion information as the value. After saving, the coupon code is determined and the event organizer obtains the required coupon.

[0039] In this embodiment, the target coupon code and the preferential activity information are optionally distributedly cached, including: determining an association relationship between the target coupon code and the preferential activity information; and distributing the target coupon code and the preferential activity information according to the association relationship.

[0040] Specifically, the target coupon code is obtained based on the number of coupons. After obtaining the target coupon code, the preferential activity information corresponding to the information of the number of coupons is determined, and the target coupon code is associated with the preferential activity information. According to the association between the target coupon code and the preferential activity information, the target coupon code and the preferential activity information are distributed cached, with the target coupon code as the key and the preferential activity information as the value. The beneficial effect of such a setting is that the target coupon code and the preferential activity information are distributed cached, which is conducive to obtaining the preferential activity information according to the target coupon code. When using the coupon, there is no need to enter the preferential activity information again for confirmation, which improves the accuracy of coupon use, reduces the operation steps of coupon use, does not need to repeatedly obtain activity data, and avoids confusion between coupons and preferential activities, so that coupons and preferential activities correspond one to one, improve the efficiency of coupon use, and enhance the user experience of using coupons. The preset coupon code can be supplemented as needed to improve the flexibility of coupon code setting.

[0041] The technical solution of this embodiment is to distribute and cache the coupon code, determine the code acquisition requirements according to the preferential activity information of the event party, obtain the target coupon code from the preset coupon code, and distribute and cache the target coupon code and the preferential activity information. It solves the problem in the prior art that when obtaining coupons of different event parties or different preferential activities, it is necessary to obtain codes from each independent database, avoid the phenomenon that coupon codes between different activities may be repeated, and when using the coupon, the corresponding activity can be directly determined without the need to determine the purpose of the coupon again according to the preferential activity information. The steps for using the coupon are simple, the code is guaranteed to be unique, and the coupon management is convenient, the determination accuracy when obtaining the code is improved, and the coupon usage experience is improved.

[0042] Embodiment 2

[0043] Figure 2 This is a flow chart of a method for determining a coupon code provided by Embodiment 2 of the present invention. This embodiment is further optimized based on the above embodiment. This method can be executed by a device for determining a coupon code. Figure 2 As shown, the method specifically comprises the following steps:

[0044] Step 210: In response to the coupon code acquisition instruction, obtain the preferential activity information in the coupon code acquisition instruction.

[0045] The event organizer issues a coupon code acquisition instruction, which includes promotional event information. The promotional event information may include target event information and target promotion information. For example, the promotional event information may include the identity information of the event organizer and the quantity information of the coupons.

[0046] Step 220: Determine whether the activity organizer has the authority to obtain the coupon based on the target activity information in the preferential activity information.

[0047] Among them, the target activity information in the preferential activity information is obtained. The target activity information is information related to the activity organizer, for example, it may include the name of the activity organizer, the name of the activity, the location of the activity, and the duration of the activity, etc. According to the target activity information, it is determined whether the activity organizer has the authority to obtain the coupon. For example, according to the target activity information, it can be checked whether the target activity has been filed in the background. If it has been filed, the coupon code can be obtained.

[0048] In this embodiment, optionally, determining whether the activity organizer has the authority to obtain coupons based on the target activity information in the preferential activity information includes: obtaining activity organizer information from the target activity information in the preferential activity information; and determining whether the activity organizer has the authority to obtain coupons based on the activity organizer information.

[0049] Specifically, relevant information of the event organizer is obtained from the target event information. For example, identity information such as the name or code of the event organizer can be obtained. According to the event organizer information, determine whether the event organizer has the authority to obtain coupons. You can check whether the identity information of the event organizer is registered in the background. The event organizer needs to register in the background before holding the event to obtain the qualification to receive coupons. Compare the identity information of the event organizer with the registration information in the background to determine whether the event organizer has registered. If the event organizer is registered, he has the authority to obtain coupons. The beneficial effect of such a setting is to prevent the event organizer from obtaining coupon codes at will, improve the rigor of coupon issuance, and avoid economic losses.

[0050] Step 230: If yes, call the preset coupon code in the distributed cache.

[0051] If it is determined that the activity organizer has the authority to obtain the coupon, the preset coupon code that has been distributed cached is called to facilitate determining the target coupon code from the preset coupon codes.

[0052] In this embodiment, optionally, after determining whether the activity organizer has the authority to obtain coupons based on the target activity information in the preferential activity information, it also includes: if it is determined that the activity organizer does not have the authority to obtain coupons, an identity check message is sent to the activity organizer to remind the activity organizer to activate the coupon acquisition authority.

[0053] Specifically, if it is determined that the event organizer does not have the authority to obtain coupons, the preset coupon code cannot be called, and a prompt message is sent to the event organizer, prompting the event organizer to perform an identity check to confirm whether it has not opened the coupon acquisition authority. The beneficial effect of this setting is that it can remind the event organizer who does not have the authority to open the authority, so as to obtain the coupon code, thereby improving the efficiency and accuracy of coupon code acquisition.

[0054] Step 240: According to the preferential activity information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes.

[0055] Step 250: Distribute and cache the target coupon code and the promotion information to complete the determination of the coupon code.

[0056] The embodiment of the present invention performs distributed caching of coupon codes, and determines whether the activity party has the authority to obtain the codes according to the preferential activity information of the activity party. If so, the target coupon code is obtained from the preset coupon code according to the code acquisition requirements, and the target coupon code and the preferential activity information are distributedly cached. This prevents coupons from being obtained at will, solves the problem in the prior art that when obtaining coupons from different activity parties or different preferential activities, it is necessary to obtain codes from each independent database, and avoids the phenomenon that coupon codes between different activities may be repeated. When using coupons, the corresponding activities can be directly determined without the need to determine the purpose of the coupons again according to the preferential activity information. The steps for using coupons are simple, the uniqueness of the codes is guaranteed, and the management of coupons is convenient. The determination accuracy when obtaining codes is improved, and the experience of using coupons is enhanced.

[0057] Embodiment 3

[0058] Figure 3 This is a flow chart of a method for determining a coupon code provided by Embodiment 3 of the present invention. This embodiment is further optimized based on the above embodiment. This method can be executed by a device for determining a coupon code. Figure 3 As shown, the method specifically comprises the following steps:

[0059] Step 310: In response to the coupon code acquisition instruction, obtain the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction.

[0060] Step 320: According to the preferential activity information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes.

[0061] Step 330: Distribute and cache the target coupon code and the promotion information to complete the determination of the coupon code.

[0062] Step 340: Mark the target coupon code in the distributed cache as an issued coupon, and save the status mark.

[0063] Among them, a status mark can be added to the preset coupon code of the distributed cache, and the status mark can indicate the current status of the coupon code, for example, the status mark can be not obtained, obtained, issued, and cancelled. Before the preset coupon code is obtained, it can be marked as "not obtained". If the preset coupon code is determined to be the target coupon code, the target coupon code is removed from the queue of the preset coupon code and distributed cached in the queue of the issued coupon code, and the target coupon code is marked as "issued", and the status mark of the target coupon code is saved.

[0064] In this embodiment, optionally, after the target coupon code and the promotional activity information are distributedly cached, the method further includes: in response to the user's coupon redemption instruction, obtaining the coupon code of the coupon to be redeemed; comparing the coupon code of the coupon to be redeemed with the coupon code of the issued coupon in the distributed cache; determining whether the coupon to be redeemed is an issued coupon based on the comparison result; if so, determining the activity participated by the user based on the promotional activity information associated with the coupon code of the coupon to be redeemed; marking the issued coupon corresponding to the coupon to be redeemed as redeemed, and saving the status mark.

[0065] Specifically, the user refers to the user of the customer feedback system, which may refer to the staff of the event organizer. The event organizer obtains the coupon code and issues the coupon to the customer for use. After the customer receives the coupon, the customer information and the preferential activity information are cached together with the coupon code in a distributed manner, that is, the user's identity information and preferential activity information can be obtained through the coupon code. The customer can present the coupon code to the event organizer for verification. After the customer presents the coupon code, the coupon code is the coupon code to be verified. The user inputs the coupon code to be verified to the customer feedback system through different channels and issues a coupon verification instruction. If the user's coupon verification instruction is responded to, the coupon code of the coupon to be verified is obtained. The coupon code of the coupon to be verified is compared with the target coupon code marked as "issued". If the coupon code of the coupon to be verified belongs to the target coupon code "issued", it is determined that the coupon to be verified is a coupon that has been issued. If it is determined that the coupon to be verified is a coupon that has been issued, the activity in which the user participates and the identity information of the user are determined based on the preferential activity information associated with the coupon code of the coupon to be verified. Without the need for users to manually input relevant promotional information, promotional activities can be directly determined, and the user's identity can be verified to determine whether the user meets the requirements for using the coupon to be redeemed. For example, the user's identity information can be compared with the activity object information in the promotional information. The activity object information can specify that the activity object is an old user. Based on the user's identity information, it can be determined whether the user is an old user. After determining the use of the coupon to be redeemed, the status mark of the coupon to be redeemed is updated to "redeemed" and the status mark is saved. The beneficial effect of such a setting is that the status of the coupon code can be marked in real time to avoid repeated use of coupons with the same code, and by querying the promotional information associated with the coupon to be redeemed, the target promotional activity can be quickly determined without repeatedly obtaining activity data, thereby improving the accuracy and efficiency of coupon use.

[0066] In this embodiment, optionally, after determining whether the coupon to be cancelled is an issued coupon, the method further includes: if it is determined that the coupon to be cancelled is not an issued coupon, issuing coupon verification information for the user to confirm the coupon to be cancelled.

[0067] Specifically, if the coupon code of the coupon to be cancelled does not belong to the target coupon code of "issued", it is determined that the coupon to be cancelled is not an issued coupon. If it is determined that the coupon to be cancelled is not an issued coupon, the coupon to be cancelled cannot be used, and a coupon verification message can be issued to remind the user to re-verify the coupon to be cancelled to avoid using the coupon incorrectly. The beneficial effect of such a setting is that the use of the coupon can be effectively confirmed, the use of counterfeit coupons can be avoided, the accuracy of coupon use can be improved, and economic losses can be avoided.

[0068] The embodiment of the present invention distributes and caches the coupon code, determines the code acquisition requirements according to the preferential activity information of the event party, obtains the target coupon code from the preset coupon code, and distributes and caches the target coupon code and the preferential activity information. By marking the status of the coupon code, effective management of the coupon code is achieved. The problem in the prior art that when obtaining coupons from different event parties or different preferential activities, it is necessary to obtain the code from each independent database, and the phenomenon that the coupon codes between different activities may be repeated is avoided. When using the coupon, the corresponding activity can be directly determined without the need to determine the purpose of the coupon again according to the preferential activity information. The coupon use steps are simple, the code is guaranteed to be unique, and the coupon management is convenient. The determination accuracy when obtaining the code is improved, and the coupon use experience is improved.

[0069] Embodiment 4

[0070] Figure 4 This is a structural block diagram of a device for determining a coupon code provided in the fourth embodiment of the present invention, which can execute a method for determining a coupon code provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the device specifically includes:

[0071] The preset code acquisition module 401 is used to respond to the coupon code acquisition instruction and acquire the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction;

[0072] The target code acquisition module 402 is used to acquire a target coupon code that meets the preset acquisition requirements from the preset coupon codes according to the preferential activity information;

[0073] The target code cache module 403 is used to cache the target coupon code and the preferential activity information in a distributed manner to complete the determination of the coupon code.

[0074] Optionally, the device further comprises:

[0075] The coding storage module is used to store the preset coupon code in coding order according to the data volume storage requirement of the distributed cache before obtaining the preset coupon code of the distributed cache and the preferential activity information in the coupon code obtaining instruction in response to the coupon code obtaining instruction.

[0076] Optionally, the promotional activity information includes target activity information and target promotional information, the target activity information includes the activity name, activity location, activity period, activity organizer and activity object, and the target promotional information includes the coupon validity period, coupon usage location and coupon quantity.

[0077] Optionally, the preset code acquisition module 401 includes:

[0078] An information acquisition unit, configured to respond to a coupon code acquisition instruction and acquire the preferential activity information in the coupon code acquisition instruction;

[0079] The authority determination unit is used to determine whether the activity organizer has the authority to obtain the coupon according to the target activity information in the preferential activity information;

[0080] The code calling unit is used to call the preset coupon code of the distributed cache if yes.

[0081] Optionally, the permission determination unit is specifically used to:

[0082] Obtaining the event organizer information from the target event information of the preferential event information;

[0083] According to the event organizer information, determine whether the event organizer has the authority to obtain the coupon.

[0084] Optionally, the device further comprises:

[0085] The identity reminder module is used to determine whether the event organizer has the authority to obtain coupons based on the target event information in the preferential event information. If it is determined that the event organizer does not have the authority to obtain coupons, an identity check message is sent to the event organizer to remind the event organizer to activate the coupon acquisition authority.

[0086] Optionally, the target code acquisition module 402 includes:

[0087] A preferential information determination unit, used to obtain target preferential information in preferential activity information;

[0088] A quantity determination unit, used to determine the quantity of coupons to be obtained according to the target discount information;

[0089] The coupon code acquisition unit is used to acquire a target coupon code that is consistent with the coupon quantity from the preset coupon codes.

[0090] Optional, coupon code acquisition unit, specifically used for:

[0091] Determine the first target coupon code according to the coding sequence of the preset coupon codes;

[0092] According to the coupon quantity, target coupon codes that match the coupon quantity are obtained starting from the first target coupon code.

[0093] Optionally, the target encoding cache module 403 is specifically used for:

[0094] Determine the association between the target coupon code and the promotion information;

[0095] According to the association relationship, the target coupon code and promotion information are distributed cached.

[0096] Optionally, the device further comprises:

[0097] The status marking module is used to mark the target coupon code in the distributed cache as an issued coupon and save the status mark.

[0098] Optionally, the device further comprises:

[0099] A coupon code acquisition module to be redeemed, used to obtain the coupon code of the coupon to be redeemed in response to the user's coupon redemption instruction;

[0100] A code comparison module, used to compare the coupon code of the coupon to be redeemed with the coupon code of the issued coupon in the distributed cache;

[0101] A coupon determination module, used to determine whether the coupon to be redeemed is an issued coupon based on the comparison result;

[0102] an activity determination module, for determining the activity that the user participates in based on the preferential activity information associated with the coupon code of the coupon to be redeemed;

[0103] The marking saving module is used to mark the issued coupons corresponding to the coupons to be cancelled as cancelled and save the status markings.

[0104] Optionally, the device further comprises:

[0105] The verification information sending module is used to send coupon verification information for the user to confirm the coupon to be cancelled after determining whether the coupon to be cancelled is an issued coupon. If it is determined that the coupon to be cancelled is not an issued coupon, the verification information is sent.

[0106] The embodiment of the present invention performs distributed caching of coupon codes, determines code acquisition requirements according to the preferential activity information of the event party, obtains the target coupon code from the preset coupon code, and performs distributed caching of the target coupon code and the preferential activity information. This solves the problem in the prior art that when obtaining coupons from different event parties or different preferential activities, it is necessary to obtain codes from each independent database, avoids the phenomenon that coupon codes between different activities may be repeated, and when using coupons, the corresponding activity can be directly determined without the need to determine the purpose of the coupon again according to the preferential activity information. The steps for using coupons are simple, the uniqueness of the code is guaranteed, and the management of coupons is convenient. The determination accuracy when obtaining the code is improved, and the experience of using coupons is enhanced.

[0107] Embodiment 5

[0108] Figure 5 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 500 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0109] like Figure 5 As shown, the computer device 500 is in the form of a general computing device. The components of the computer device 500 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 connecting different system components (including the system memory 502 and the processing unit 501).

[0110] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0111] Computer device 500 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 500, including volatile and non-volatile media, removable and non-removable media.

[0112] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Computer device 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 via one or more data medium interfaces. The memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.

[0113] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in the memory 502, such program modules 507 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods of the embodiments described herein.

[0114] The computer device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the computer device 500, and / or any device that enables the computer device 500 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 511. Furthermore, the computer device 500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 512. Figure 5 As shown, the network adapter 512 communicates with other modules of the computer device 500 via the bus 503. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with computer device 500, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0115] The processing unit 501 executes various functional applications and data processing by running the program stored in the system memory 502, for example, a method for determining a coupon code provided in an embodiment of the present invention, including:

[0116] In response to the coupon code acquisition instruction, acquiring the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction;

[0117] According to the preferential activity information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes;

[0118] The target coupon code and the promotion information are distributed and cached to complete the determination of the coupon code.

[0119] Embodiment 6

[0120] Embodiment 6 of the present invention further provides a storage medium containing computer executable instructions, on which a computer program is stored. When the program is executed by a processor, a method for determining a coupon code provided in the embodiment of the present invention is implemented, including:

[0121] In response to the coupon code acquisition instruction, acquiring the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction;

[0122] According to the preferential activity information, a target coupon code that meets the preset acquisition requirements is obtained from the preset coupon codes;

[0123] The target coupon code and the promotion information are distributed and cached to complete the determination of the coupon code.

[0124] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0125] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0126] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0127] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0128] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for determining a coupon code, characterized in that: include: In response to the coupon code acquisition instruction, the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction are acquired; wherein the preset coupon code is composed of numbers and is the unique identifier of the coupon; the preferential activity information includes target activity information and target preferential information, the target activity information includes the activity name, activity location, activity period, activity organizer and activity object, and the target preferential information includes the coupon validity period, coupon usage location and coupon quantity; According to the preferential activity information, the preset acquisition requirements of the target coupon code to be acquired are determined, and the target coupon code that meets the preset acquisition requirements is acquired from the preset coupon code; the preset acquisition requirements include coupon quantity requirements and / or arrangement sequence number requirements; The target coupon code and the preferential activity information are distributedly cached to complete the determination of the coupon code, including: determining the association between the target coupon code and the preferential activity information; and according to the association, the target coupon code and the preferential activity information are distributedly cached.

2. The method according to claim 1, characterized in that Before obtaining the preset coupon code in the distributed cache and the preferential activity information in the coupon code obtaining instruction in response to the coupon code obtaining instruction, the method further includes: According to the data volume storage requirement of the distributed cache, the preset coupon codes are stored in the coding order.

3. The method according to claim 1, characterized in that In response to the coupon code acquisition instruction, the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction are acquired, including: In response to the coupon code acquisition instruction, acquiring the preferential activity information in the coupon code acquisition instruction; Determining whether the event organizer has the authority to obtain the coupon based on the target event information in the preferential event information; If so, the preset coupon code of the distributed cache is called.

4. The method according to claim 3, characterized in that Determining whether the activity organizer has the authority to obtain the coupon according to the target activity information in the preferential activity information includes: Acquire the event organizer information from the target event information of the preferential event information; According to the activity organizer information, it is determined whether the activity organizer has the authority to obtain the coupon.

5. The method according to claim 3, characterized in that: After determining whether the activity organizer has the authority to obtain the coupon according to the target activity information in the preferential activity information, the method further includes: If it is determined that the event organizer does not have the authority to obtain the coupon, an identity check message is sent to the event organizer to remind the event organizer to activate the coupon acquisition authority.

6. The method according to claim 1, characterized in that According to the preferential activity information, obtaining a target coupon code that meets the preset acquisition requirements from the preset coupon codes includes: Obtain target discount information from the discount activity information; Determine the number of coupons to be obtained according to the target discount information; A target coupon code consistent with the coupon quantity is obtained from the preset coupon code.

7. The method according to claim 6, characterized in that Acquiring a target coupon code consistent with the coupon quantity from the preset coupon code includes: Determining a first target coupon code according to the coding sequence of the preset coupon codes; According to the coupon quantity, target coupon codes consistent with the coupon quantity are acquired starting from the first target coupon code.

8. The method according to claim 1, characterized in that: After the target coupon code and the preferential activity information are distributedly cached, the method further includes: The target coupon code in the distributed cache is marked as an issued coupon, and the status mark is saved.

9. The method according to claim 8, characterized in that After the target coupon code and the preferential activity information are distributedly cached, the method further includes: In response to a user's coupon redemption instruction, obtaining a coupon code of the coupon to be redeemed; Comparing the coupon code of the coupon to be redeemed with the coupon code of the issued coupon in the distributed cache; According to the comparison result, determining whether the coupon to be cancelled is an issued coupon; If yes, determining the activity that the user participates in based on the preferential activity information associated with the coupon code of the coupon to be redeemed; The issued coupon corresponding to the coupon to be cancelled is marked as cancelled, and the status mark is saved.

10. The method according to claim 9, characterized in that After determining whether the coupon to be redeemed is an issued coupon, the method further includes: If it is determined that the coupon to be cancelled is not an issued coupon, coupon verification information is sent for the user to confirm the coupon to be cancelled.

11. A device for determining a coupon code, characterized in that: include: A preset code acquisition module, used to respond to a coupon code acquisition instruction, acquire the preset coupon code in the distributed cache and the preferential activity information in the coupon code acquisition instruction; wherein the preset coupon code is composed of numbers and is the unique identifier of the coupon; the preferential activity information includes target activity information and target preferential information, the target activity information includes the activity name, activity location, activity period, activity organizer and activity object, and the target preferential information includes the coupon validity period, coupon usage location and coupon quantity; A target code acquisition module, used to acquire a target coupon code that meets preset acquisition requirements from the preset coupon codes according to the preferential activity information; the preset acquisition requirements include coupon quantity requirements and / or arrangement sequence number requirements; A target code caching module, used for distributing and caching the target coupon code and the preferential activity information to complete the determination of the coupon code; The target code cache module is specifically used to determine the association relationship between the target coupon code and the preferential activity information; according to the association relationship, the target coupon code and the preferential activity information are distributedly cached.

12. A device for determining a coupon code, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for determining the coupon code according to any one of claims 1 to 10 is implemented.

13. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, the computer executable instructions are used to perform the coupon code determination method according to any one of claims 1 to 10.