CN117078301A - Coupon processing method and device based on blockchain and computer equipment - Google Patents

Coupon processing method and device based on blockchain and computer equipment Download PDF

Info

Publication number
CN117078301A
CN117078301A CN202310823655.8A CN202310823655A CN117078301A CN 117078301 A CN117078301 A CN 117078301A CN 202310823655 A CN202310823655 A CN 202310823655A CN 117078301 A CN117078301 A CN 117078301A
Authority
CN
China
Prior art keywords
coupon
user
information
blockchain
instruction
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.)
Pending
Application number
CN202310823655.8A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310823655.8A priority Critical patent/CN117078301A/en
Publication of CN117078301A publication Critical patent/CN117078301A/en
Pending legal-status Critical Current

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/23Updating
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/0225Avoiding frauds

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Game Theory and Decision Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a coupon processing method, a coupon processing device, a coupon processing computer device, a coupon processing storage medium and a coupon processing computer program product based on a blockchain, and relates to the technical field of big data. The method comprises the following steps: generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag; sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message; acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information; and uploading the coupon retrieval information to a user coupon blockchain. By adopting the method, the security of coupon processing can be improved.

Description

Coupon processing method and device based on blockchain and computer equipment
Technical Field
The present application relates to the field of big data technology, and in particular, to a blockchain-based coupon processing method, a blockchain-based coupon processing device, a blockchain-based coupon processing computer device, a blockchain-based coupon processing storage medium, and a blockchain-based coupon processing computer program product.
Background
With the rapid development of economy and the wide application of mobile payment, coupons become the main angles of mobile payment gradually, and the coupons are important means for merchants to attract customers and improve the return rate of customers. By providing coupons to customers, customers can be caused to use the coupons in commodity transactions to offset a portion of the cash, thereby attracting customer consumption.
Currently, coupons are typically managed by a centralized management approach, i.e., the coupons are stored in a traditional database such as MySQL, oracel, etc., that is hosted by a centralized management party. However, this way often has the phenomenon that the centralized manager, database manager or technician in charge of the database can tamper with the data (including but not limited to deletion, addition and modification) at will, so that the user data information is not guaranteed, and the security of the current coupon processing is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a blockchain-based coupon processing method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the security of coupon processing.
In a first aspect, the present application provides a blockchain-based coupon processing method. The method comprises the following steps:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag;
sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message;
Acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information;
and uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the uploading the coupon retrieval information to a user coupon blockchain includes:
performing service verification on the coupon retrieval information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
and if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the user coupon blockchain includes at least one blockchain node, and the uploading the coupon retrieval information to the user coupon blockchain includes:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
In one embodiment, the target feature includes a location feature, and the generating the coupon issuing instruction based on the obtained target feature includes:
determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
In one embodiment, the method further comprises:
receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier;
and positioning a user coupon blockchain corresponding to the user identification, and sending the coupon use information to the user coupon blockchain.
In one embodiment, the sending the coupon usage information to the user coupon blockchain includes:
Transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
and receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
In a second aspect, the present application also provides a blockchain-based coupon processing device. The device comprises:
the coupon issuing module is used for generating a coupon issuing instruction based on the obtained target characteristics, wherein the coupon issuing instruction comprises coupon information and a user tag;
the sending module is used for sending the coupon information to a user to be acquired corresponding to the user tag through a 5G message;
the coupon retrieval module is used for acquiring a coupon retrieval instruction triggered by the to-be-retrieved user based on the coupon information, wherein the coupon retrieval instruction comprises coupon retrieval information;
and the uploading blockchain module is used for uploading the coupon retrieval information to a user coupon blockchain.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag; sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message; acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information; and uploading the coupon retrieval information to a user coupon blockchain.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag; sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message; acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information; and uploading the coupon retrieval information to a user coupon blockchain.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag; sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message; acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information; and uploading the coupon retrieval information to a user coupon blockchain.
According to the block chain-based coupon processing method, the block chain-based coupon processing device, the computer equipment, the storage medium and the computer program product, firstly, a coupon issuing instruction is generated based on the obtained target characteristics, the aim of accurately issuing coupons is fulfilled, and the accuracy of issuing the coupons is improved; the coupon information is sent to the user to be picked up corresponding to the user tag through the 5G message, compared with the traditional short message service, the method has the advantages that the function is simple, the experience is limited, the media formats supported by the 5G message are more, the expression forms are more abundant, the diversified requirements of the user can be met, the user experience is improved, and the intelligence of coupon processing is further improved; and finally, acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, and uploading the coupon acquisition information to a user coupon blockchain.
Drawings
FIG. 1 is an application scenario diagram of a blockchain-based coupon processing method in one embodiment;
FIG. 2 is a flow diagram of a blockchain-based coupon processing method in one embodiment;
FIG. 3 is a schematic diagram of a business verification process in one embodiment;
FIG. 4 is a block chain consensus flow diagram in one embodiment;
FIG. 5 is a schematic diagram of a user tag generation flow in one embodiment;
FIG. 6 is a block chain flow diagram of coupon use information upload in one embodiment;
FIG. 7 is a flow chart of update result generation in one embodiment;
FIG. 8 is a block diagram of a architecture of a blockchain-based coupon processing device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The coupon processing method based on the blockchain provided by the embodiment of the disclosure can be applied to an application environment shown in fig. 1. Wherein the executing entity may be control server 102, control server 102 may be in communication connection with user coupon blockchain 104 and user terminal 106 for data transmission, wherein control server 102 may include coupon processing server 108 and 5G message server 110, coupon processing server 104 may be configured to generate and send coupon issuing instructions to 5G message server 110, and send received coupon retrieval information to user coupon blockchain 104,5G message server 110 may be configured to send coupon issuing instructions to user terminal 106, and to send coupon usage information to user coupon blockchain 104 for updating.
Specifically, the coupon processing server 104 generates a coupon issuing instruction based on the obtained target feature, sends the coupon issuing instruction to the 5G message server 110,5G, the message server 110 sends the coupon information to the user terminal 106 of the user to be obtained corresponding to the user tag in the form of a 5G message according to the coupon information and the user tag carried in the instruction, receives the coupon receiving instruction returned by the user terminal 106, and sends the coupon receiving information carried in the instruction to the coupon processing server 108, the coupon processing server 108 uploads the coupon receiving information to the user coupon block chain 104 for storage, in addition, when receiving the coupon using instruction returned by the user terminal 106, the 5G message server 110 directly sends the coupon using information carried in the instruction to the user coupon block chain 104, and the user coupon block chain 104 can update the coupon information, and the user coupon block chain 104 can also send the updated coupon information to the coupon processing server 104 for data backup. And the block chain is used for storing the coupon information, so that the security of coupon processing is ensured.
In one embodiment, as shown in fig. 2, a blockchain-based coupon processing method is provided, and in this embodiment, the method includes the following steps:
step S202, generating a coupon issuing instruction based on the obtained target feature.
In order to further improve the accuracy of coupon issuing, the coupon issuing instruction in the embodiment may be generated based on the obtained target feature, so that the coupon is ensured to be issued to the adaptive user, and the utilization rate of the coupon is improved. The target feature may be used to characterize a basic feature or attribute of coupon issuance; the coupon issuing instruction may be an instruction to issue a coupon to a pending user.
As one example, the target feature may be a location feature that may be used to characterize the location characteristics of coupon issuance.
As an example, the coupon issuing instructions may include coupon information, which may include information of a coupon type, a coupon usage scenario, a coupon amount, a coupon expiration date, a coupon identification, and the like, and a user tag, which may be a tag obtained after user representation and behavior analysis of a target user.
As one example, the user tags may include portrayal tags, which may be obtained by portraying the user of the target user, and behavior tags, which may be obtained by analyzing historical coupon records of the target user.
Specifically, the coupon processing server may first obtain the location feature of the coupon issue, and perform user portrait and behavior analysis on the target user according to the location feature, so as to obtain the portrait tag and behavior tag of the target user, and further generate a coupon issue instruction according to the portrait tag, the behavior tag and the coupon information, so as to issue the coupon information to the adapted to-be-acquired user.
And step S204, sending the coupon information to the user to be picked up corresponding to the user tag through a 5G message.
Compared with the traditional short message service, the method has the advantages that the function is simple, the experience is limited, the media formats supported by the 5G message are more, the expression forms are more abundant, the diversified requirements of users can be met, the experience of the users is improved, and the intelligence of coupon processing is further improved, wherein the carrier of the 5G message is a 5G message server.
Specifically, after generating the coupon issuing instruction, the coupon processing server transmits the coupon issuing instruction to the 5G message server to instruct the 5G message server to transmit the coupon information, and the 5G message server may determine a corresponding user to be obtained according to the user tag carried in the coupon issuing instruction and transmit the coupon information carried in the coupon issuing instruction to the user to be obtained.
As an example, considering that at present, each financial industry issues coupons through channels such as mobile banking APP and micro banking public number, and the channels all require user registration information and system authentication and then acquire coupons, the whole process is too complicated, so the 5G message server in this embodiment may also write coupon information into a control link and send the coupon information to a user terminal of a user to be taken in a form of a 5G message, where the control link may be a button link, such as an "immediate taking" button, a picture link or a text link, and the user to be taken can complete taking of coupons only by clicking the control link, so that taking of coupons is more convenient and the participation of the user is further improved.
Step S206, acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information.
The instruction for retrieving the coupon may be an instruction for retrieving the coupon by the user to be retrieved, and may include information of retrieving the coupon, such as retrieving time of the coupon, type of the retrieved coupon, usage scenario of the retrieved coupon, amount of the retrieved coupon, validity period of the retrieved coupon, and identification of the retrieved coupon.
Specifically, after the user to be led clicks the control link corresponding to the coupon to be led, a coupon leading instruction containing the coupon leading information can be generated, the user terminal sends the coupon leading instruction to the 5G message server, the 5G message server sends the coupon leading instruction to the coupon processing server, and the coupon processing server sends the coupon leading information to the user coupon blockchain for recording of the user coupon blockchain.
It should be noted that, since the coupon processing server is a server that generates a coupon issuing instruction, in order to ensure the accuracy of data in the coupon processing server, the coupon acquisition information may be stored and updated synchronously in the coupon processing server and the blockchain, so as to avoid the problem that the coupon processing server issues errors due to the fact that the coupon data is not updated in time, and improve the accuracy of coupon issuing.
Step S208, uploading the coupon retrieval information to a user coupon blockchain.
Where blockchain refers to an intelligent peer-to-peer network that uses a distributed database to identify, propagate, and document information. The blockchain technology is based on a decentralised peer-to-peer network, and combines a cryptography principle, time sequence data and a consensus mechanism by using an open source program, so that continuity and persistence of each node in a distributed database are ensured, information can be verified and traced in real time, but is difficult to tamper and cannot be shielded, and the blockchain forms a sharing system with high privacy, high efficiency and safety; the user coupon blockchain may refer to a coupon blockchain corresponding to the to-be-obtained user, wherein the user and the coupon blockchain may have a one-to-one relationship, that is, each user may have a dedicated blockchain for storing coupon information that the user obtains and uses, and the user and the coupon blockchain may be associated through a user identifier.
Specifically, after receiving the coupon retrieval instruction sent by the 5G message server, the coupon processing server sends the coupon retrieval information to a user coupon blockchain corresponding to the user to be retrieved, and the user coupon blockchain links the coupon retrieval information after completing service verification and consensus verification of the coupon retrieval information.
As one example, the coupon retrieval information may also include a user identification, and the coupon processing server determines a corresponding user coupon blockchain based on the user identification, thereby uploading the coupon retrieval information into the user coupon blockchain.
In the embodiment, firstly, a coupon issuing instruction is generated based on the obtained target characteristics, so that the aim of accurately issuing coupons is fulfilled, and the accuracy of issuing the coupons is improved; the coupon information is sent to the user to be picked up corresponding to the user tag through the 5G message, compared with the traditional short message service, the method has the advantages that the function is simple, the experience is limited, the media formats supported by the 5G message are more, the expression forms are more abundant, the diversified requirements of the user can be met, the user experience is improved, and the intelligence of coupon processing is further improved; and finally, acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, and uploading the coupon acquisition information to a user coupon blockchain.
In one embodiment, as shown in FIG. 3, the uploading the coupon retrieval information to a user coupon blockchain includes:
step S302, carrying out service verification on the coupon acquisition information.
And step S304, if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
The service check may be used to verify whether the coupon retrieval information is correct, and may include a coupon type check, a coupon issue time check, and a coupon number check.
As one example, coupon types may include a coupon, a discount coupon, a gift certificate.
Specifically, all the coupon information issued at this time can be written in advance in the coupon processing server, when the coupon information sent by the 5G message server is received, the coupon type, the coupon issuing time and the coupon number in the coupon information are obtained, and the coupon type, the coupon issuing time and the coupon number are compared with the pre-stored coupon type, the pre-stored coupon issuing time and the pre-stored coupon number to detect whether the coupon belongs to the issued coupon or not, so that the wrong coupon information is avoided being stored; considering that the coupon numbers have the condition of repeated numbers, in the embodiment, when the coupon type verification, the coupon issuing time verification and the coupon number verification are all verified, the coupon retrieval information is uploaded to the user coupon block chain, so that the accuracy of the coupon information uploaded to the user coupon block chain is further ensured.
In the embodiment, the coupon information uploaded to the user coupon block chain is ensured to be accurate by multiple verification of the coupon information, so that the accuracy of coupon processing is improved.
In one embodiment, as shown in FIG. 4, the user coupon blockchain includes at least one blockchain node, and the uploading the coupon retrieval information to the user coupon blockchain includes:
step S402, broadcasting the coupon retrieval information to each blockchain node, and obtaining a consensus verification result of each blockchain node on the coupon retrieval information.
And step S404, if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon block chain.
Wherein, the blockchain node can be a consensus node in the blockchain, and the consensus node can be used as a verifier to perform consensus verification on the coupon acquisition information so as to finish information update; the consensus verification result may be a verification result common to the coupon retrieval information by each consensus node, and may include verification pass and verification fail.
Specifically, the coupon processing server sends the coupon retrieval information to the user coupon blockchain system, any consensus node in the user coupon blockchain system receives the coupon retrieval information and broadcasts the coupon retrieval information to other consensus nodes, the broadcast content is that the coupon retrieval information is stored in the user coupon blockchain, and the other consensus nodes verify the coupon retrieval information, so that the authenticity and the validity of the coupon retrieval information are verified. The user coupon blockchain system stores the coupon retrieval information into the blockchain when the other consensus nodes pass verification.
In the embodiment, the coupon retrieval information is subjected to consensus verification by using the consensus nodes so as to verify the authenticity and legality of the coupon retrieval information, and when each consensus node passes the verification, the coupon retrieval information can be stored in a user coupon block chain, so that the security of coupon information storage is ensured.
In one embodiment, as shown in fig. 5, the generating a coupon issuing instruction based on the obtained target feature includes:
step S502, determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels.
Wherein the target feature may include a location feature that may be used to characterize a range of coupon issuance, such as a business, city, region, etc. of coupon issuance; the pictographic tags may be used to characterize the attribute tags of the targeted user for coupon retrieval, such as the level of interest in coupon retrieval, the preference for the type of coupon retrieval, the usage of the retrieved coupon, etc.
Specifically, the coupon processing server may obtain the position feature of the present coupon issue in advance, so as to determine the present coupon issue range, and perform user portrayal on all the target users in the present coupon issue range, so as to obtain portrayal labels of all the target users.
As an example, the coupon processing server may obtain user features of all target users first, and input the user features into a user portrait model to obtain portrait labels of the target users, where the user portrait model may be a labeled user model abstracted based on attribute data of the users, such as age, gender, region, etc., and the user portrait model may be a neural network model, a multi-label learning model, etc.
Step S504, generating corresponding behavior labels based on the obtained historical coupon records of the target users.
The historical coupon record can refer to historical acquisition data and historical use data of a target user aiming at coupons; the behavior tags may include coupon pickup frequency, coupon usage frequency, number of coupon clicks, number of coupon forwards, etc.
Specifically, the historical acquisition data and the historical use data of the target user for the coupons can be acquired from the coupon processing server or the user terminal, and the historical acquisition data and the historical use data are input into a preset behavior analysis model to input corresponding behavior labels.
As one example, the behavioral analysis model may be a behavioral event analysis model, a funnel analysis model, a click analysis model, or the like.
And S506, the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets the coupon issuing index is judged.
And step S508, if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
The coupon issuing index may be a requirement index of a pointer on a user to be taken for issuing the coupon, for example, the object of issuing the coupon is a user participating in a commodity activity corresponding to the coupon, or a user with high coupon taking frequency in a week or a month, or a young user, or all users in the coupon issuing range, etc., and the coupon issuing index may be set according to actual application conditions, which is not limited herein.
Specifically, the coupon processing server may write in the coupon issuing index in advance, detect whether the portrait tag and the behavior tag of the target user meet the coupon issuing index, so as to issue the coupon information to the target user that meets the coupon issuing index, that is, the to-be-obtained user, and not issue the coupon information to the target user that does not meet the coupon issuing index.
In this embodiment, the portrait tag is obtained by performing user portrait on the target user within the coupon issuing range, and the behavior tag is obtained by analyzing the historical coupon record of the target user, so as to determine whether the portrait tag and the behavior tag meet the coupon issuing index, and if so, a coupon issuing instruction is generated based on the coupon information, the portrait tag and the behavior tag. The purpose of precisely issuing coupons is achieved.
In one embodiment, as shown in fig. 6, the method further comprises:
step S602, receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier.
Step S604, locating a user coupon block chain corresponding to the user identification, and sending the coupon use information to the user coupon block chain.
The coupon using instruction may be used to represent using information of the user to be taken on the coupon, and may include coupon using information and a user identifier, where the coupon using information may include information such as a using time of the coupon to be used, a using scene of the coupon to be used, a type of the coupon to be used, a issuing time of the coupon to be used, a number of the coupon to be used, and the user identifier may be a user terminal number, a user account, a user name, and other identifiers capable of representing a user identity.
Specifically, the 5G message server receives the coupon using instruction sent by the user terminal, analyzes the coupon using instruction to obtain coupon using information and a user identifier, so that the corresponding user coupon block chain is positioned according to the corresponding relation between the user identifier and the user coupon block chain, the coupon using information is sent to the user coupon block chain, the user coupon block chain updates the originally stored coupon information based on the coupon using information, and the coupon using information can be sent to the coupon processing server for synchronous updating.
In the embodiment, the use scene of the coupons is considered, the user coupon blockchain can store the coupon retrieval information and update the coupon retrieval information according to the coupon use information, so that the coupon information stored in the blockchain is ensured to be real-time and accurate, and the user can inquire at any time.
In one embodiment, as shown in FIG. 7, the sending the coupon usage information to the user coupon blockchain includes:
and step S702, transmitting a coupon information updating instruction to the user coupon block chain through a 5G message.
The coupon information updating instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon using information, and updated contents can be coupon states, coupon using time, coupon using places and the like. It can be understood that the coupon information may be all the coupon information issued this time, such as the number of uncombusted coupons issued this time, and the updating of the user coupon blockchain may be not only updating the coupon information corresponding to the coupon usage information, but also updating all the coupon information, such as the number of uncombusted coupons issued this time is 100, and the coupon usage information may indicate that one coupon is approved, then the number of uncombusted coupons may be updated to 99, and the state of the coupon corresponding to the coupon usage information may be updated to approved coupons.
Step S704, receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
Specifically, after the user coupon block chain completes the coupon information updating based on the coupon information updating instruction, an updating result can be generated, if the updating result is successful, the updating is ended, if the updating result is failed, a request signal for secondary updating is sent to the 5G message server, so that the 5G message server is requested to resend the coupon use information, and secondary updating is carried out.
In the embodiment, a mode of judging whether secondary updating is needed or not according to the updating result returned by the user coupon blockchain is adopted, so that the aim of ensuring that the coupon information can be updated in time is fulfilled.
In one embodiment, the control server may be a banking system server, the coupon processing server may be a credit card consumption full coupon processing server, and the user coupon blockchain may be a user credit card consumption full coupon blockchain. Specifically, the credit card consumption full-subtracting ticket processing server generates a coupon issuing instruction based on the obtained target feature, sends the coupon issuing instruction to the 5G message server, the 5G message server sends the credit card consumption full-subtracting ticket to a user terminal of a credit card user corresponding to the user tag in the form of a 5G message according to the credit card consumption full-subtracting ticket information and the user tag carried in the instruction, receives a credit card consumption full-subtracting ticket receiving instruction returned by the user terminal, sends the credit card consumption full-subtracting ticket receiving information carried in the instruction to the credit card consumption full-subtracting ticket processing server, and the credit card consumption full-subtracting ticket processing server uploads the credit card consumption full-subtracting ticket block chain of the user for storage. And the block chain is used for storing the credit card consumption full-coupon information, so that the security of credit card consumption full-coupon processing is ensured.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a blockchain-based coupon processing device for realizing the blockchain-based coupon processing method. The implementation of the solution provided by the device is similar to that described in the above method, so specific limitations in one or more of the blockchain-based coupon processing device embodiments provided below may be found in the above limitations of the blockchain-based coupon processing method, and are not repeated here.
In one embodiment, as shown in FIG. 8, there is provided a blockchain-based coupon processing device, comprising: coupon issuing module 802, sending module 804, coupon retrieving module 806, uploading blockchain module 808, wherein:
a coupon issuing module 802 configured to generate a coupon issuing instruction based on the obtained target feature, where the coupon issuing instruction includes coupon information and a user tag;
a sending module 804, configured to send the coupon information to a to-be-obtained user corresponding to the user tag through a 5G message;
a coupon retrieval module 806, configured to obtain a coupon retrieval instruction triggered by the to-be-retrieved user based on the coupon information, where the coupon retrieval instruction includes coupon retrieval information;
and an upload blockchain module 808, configured to upload the coupon retrieval information to a user coupon blockchain.
In one embodiment, the upload blockchain module 808 further includes:
the service verification unit is used for carrying out service verification on the coupon acquisition information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
And the uploading blockchain unit is used for uploading the coupon retrieval information to a user coupon blockchain if the coupon type check, the coupon issuing time check and the coupon number check pass.
In one embodiment, the uploading blockchain unit is further configured to:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
In one embodiment, the coupon issuing module 802 is further configured to:
determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
In one embodiment, the blockchain-based coupon processing device further includes:
the using instruction ending module is used for receiving a coupon using instruction, wherein the coupon using instruction comprises coupon using information and a user identifier;
and the positioning module is used for positioning the user coupon blockchain corresponding to the user identifier and sending the coupon use information to the user coupon blockchain.
In one embodiment, the positioning module is further configured to:
transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
and receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
The various modules in the blockchain-based coupon processing device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing item recommendation data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a blockchain-based coupon processing method.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag;
sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message;
acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information;
and uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the processor when executing the computer program further performs the steps of:
performing service verification on the coupon retrieval information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
and if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the processor when executing the computer program further performs the steps of:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
In one embodiment, the processor when executing the computer program further performs the steps of:
receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier;
And positioning a user coupon blockchain corresponding to the user identification, and sending the coupon use information to the user coupon blockchain.
In one embodiment, the processor when executing the computer program further performs the steps of:
transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
and receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag;
sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message;
acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information;
And uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing service verification on the coupon retrieval information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
and if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
Generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier;
and positioning a user coupon blockchain corresponding to the user identification, and sending the coupon use information to the user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
and receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag;
sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message;
acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information;
and uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing service verification on the coupon retrieval information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
and if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier;
And positioning a user coupon blockchain corresponding to the user identification, and sending the coupon use information to the user coupon blockchain.
In one embodiment, the computer program when executed by the processor further performs the steps of:
transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
and receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A blockchain-based coupon processing method, the method comprising:
generating a coupon issuing instruction based on the obtained target feature, wherein the coupon issuing instruction comprises coupon information and a user tag;
sending the coupon information to a to-be-led user corresponding to the user tag through a 5G message;
acquiring a coupon acquisition instruction triggered by the to-be-acquired user based on the coupon information, wherein the coupon acquisition instruction comprises the coupon acquisition information;
And uploading the coupon retrieval information to a user coupon blockchain.
2. The method of claim 1, wherein the uploading the coupon retrieval information to a user coupon blockchain comprises:
performing service verification on the coupon retrieval information, wherein the service verification comprises coupon type verification, coupon issuing time verification and coupon number verification;
and if the coupon type check, the coupon issuing time check and the coupon number check pass the check, uploading the coupon retrieval information to a user coupon blockchain.
3. The method of claim 2, wherein the user coupon blockchain includes at least one blockchain node, and wherein uploading the coupon retrieval information to the user coupon blockchain comprises:
broadcasting the coupon retrieval information to each blockchain node, and acquiring a consensus verification result of each blockchain node on the coupon retrieval information;
and if the result of the consensus verification is passed, uploading the coupon retrieval information to the user coupon blockchain.
4. The method of claim 1, wherein the target feature comprises a location feature, and wherein generating the coupon issuing instruction based on the obtained target feature comprises:
Determining a coupon issuing range corresponding to the position feature, and carrying out user portrait on each target user in the coupon issuing range to obtain portrait labels;
generating corresponding behavior labels based on the obtained historical coupon records of the target users;
the portrait tag and the behavior tag are used as the user tag together, and whether the user tag meets a coupon issuing index is judged;
if yes, generating the coupon issuing instruction based on the coupon information and the user tag.
5. The method of claim 1, wherein the method further comprises:
receiving a coupon use instruction, wherein the coupon use instruction comprises coupon use information and a user identifier;
and positioning a user coupon blockchain corresponding to the user identification, and sending the coupon use information to the user coupon blockchain.
6. The method of claim 5, wherein said transmitting said coupon use information to said user coupon blockchain comprises:
transmitting a coupon information update instruction to the user coupon blockchain through a 5G message, wherein the coupon information update instruction is used for indicating the user coupon blockchain to update the coupon information based on the coupon use information;
And receiving an updating result returned by the user coupon block chain based on the coupon information updating instruction, and judging whether secondary updating is needed or not based on the updating result.
7. A blockchain-based coupon processing device, the device comprising:
the coupon issuing module is used for generating a coupon issuing instruction based on the obtained target characteristics, wherein the coupon issuing instruction comprises coupon information and a user tag;
the sending module is used for sending the coupon information to a user to be acquired corresponding to the user tag through a 5G message;
the coupon retrieval module is used for acquiring a coupon retrieval instruction triggered by the to-be-retrieved user based on the coupon information, wherein the coupon retrieval instruction comprises coupon retrieval information;
and the uploading blockchain module is used for uploading the coupon retrieval information to a user coupon blockchain.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310823655.8A 2023-07-06 2023-07-06 Coupon processing method and device based on blockchain and computer equipment Pending CN117078301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310823655.8A CN117078301A (en) 2023-07-06 2023-07-06 Coupon processing method and device based on blockchain and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310823655.8A CN117078301A (en) 2023-07-06 2023-07-06 Coupon processing method and device based on blockchain and computer equipment

Publications (1)

Publication Number Publication Date
CN117078301A true CN117078301A (en) 2023-11-17

Family

ID=88718244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310823655.8A Pending CN117078301A (en) 2023-07-06 2023-07-06 Coupon processing method and device based on blockchain and computer equipment

Country Status (1)

Country Link
CN (1) CN117078301A (en)

Similar Documents

Publication Publication Date Title
US10698795B2 (en) Virtual payments environment
CN111507709B (en) Data tracing system
WO2020119293A1 (en) Content pushing method and apparatus, and electronic device
CN111260399B (en) Advertisement data processing method and device based on block chain network and electronic equipment
CN108537065A (en) Reference information processing method
CN117473130A (en) Service processing method, device, equipment, medium and program product
US20150019293A1 (en) System and method for privacy compliant gis file format delivery system for payment data
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN114565443B (en) Data processing method, data processing device, computer equipment and storage medium
CN117078301A (en) Coupon processing method and device based on blockchain and computer equipment
CN114237798A (en) Data processing method, device, server and storage medium
US20240054484A1 (en) Reconciliation systems and methods for unbounded streams
US20240053999A1 (en) Reconciliation systems and methods for unbounded streams
CN110738470A (en) Electronic bill processing method and device, storage medium and equipment
CN116452214A (en) Block chain-based after-sales information processing method and device and computer equipment
CN117171444A (en) Questionnaire information pushing method, device, computer equipment and storage medium
CN117474458A (en) Virtual resource issuing method, device, system, computer equipment and storage medium
CN118193508A (en) Data checking method, device, computer equipment and storage medium
CN116862518A (en) Method and device for determining resource return value and computer equipment
CN118449915A (en) Financial service recommendation link forwarding data transmission method, device and computer equipment
CN117350689A (en) Message notification method, device, computer equipment and storage medium
CN116797189A (en) Information processing method, apparatus, computer device, and storage medium
CN114240414A (en) Resource transfer method, device, computer equipment and storage medium
CN116881355A (en) Query method and device for resource exchange information and computer equipment
CN118313830A (en) Resource processing method, device, computer equipment 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