A parking fee reduction system based on dynamic code verification
Through blockchain technology and dynamic code verification system, the security and efficiency of the coupon generation and verification process in the existing parking fee coupon system has been solved, and the efficient, safe verification and fee reduction of coupons have been achieved. Protected the interests of merchants.
Patent Information
- Application Number
- CN202410986018.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The existing parking fee discount system lacks safety and efficiency in the coupon generation and verification process, and is easily abused by internal personnel or criminals, resulting in forgery or reuse of coupons and affecting the interests of merchants.
Adopt a dynamic code verification system based on blockchain technology to verify coupon generation and verification requests through smart contracts, combine risk analysis model and dynamic code management to ensure the uniqueness and security of coupons, and in the parking charging system Implement automated coupon write-offs and fee waivers.
Effectively prevent coupons from being forged and reused, improve write-off efficiency, reduce complexity, protect merchant interests, and improve the security and reliability of the entire system.
Smart Images

Figure CN118552244B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and more specifically, to a parking fee reduction system based on dynamic code verification. Background Art
[0002] With the acceleration of urbanization, the number of large commercial complexes in cities has increased year by year. In order to attract more customers in the fiercely competitive market and enhance their shopping experience, many merchants and commercial complexes have begun to provide parking discount services. For example, merchants can attract more customers by exchanging points or receipts for parking fee discounts. However, for the redemption of coupons, the traditional method mainly relies on manual redemption or a simple electronic redemption system. Manual redemption requires manual operation by staff, which is inefficient and prone to errors, especially during peak consumer periods, which can easily lead to congestion at parking entrances and exits. Although simple electronic redemption systems have improved efficiency, these systems are usually operated independently and lack unified management and integration, resulting in consumers having to conduct multiple verifications between different merchants, resulting in a poor experience.
[0003] At present, there is a lack of efficient and safe parking fee discount and exemption systems. Although there are some relevant technical documents, for example, the patent with publication number CN112418946A discloses a coupon system for parking lots. The invention reduces the occurrence of coupon reuse by using a cloud server to manage coupons. However, research and practical application of the above method and prior art have found that the above method and prior art have at least the following defects:
[0004] (1) The issuance and generation of coupons for each merchant is too centralized, which makes it impossible to prevent internal personnel from forging coupons in violation of regulations, or to prevent criminals from exploiting system loopholes to illegally generate or forge a large number of coupons;
[0005] (2) The verification process is relatively cumbersome and lacks effective supervision measures, making it impossible to safely control the coupon verification process, making it difficult to avoid the reuse of verified coupons, and thus unable to protect the interests of the coupon providers. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a parking fee discount reduction system based on dynamic code verification.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A parking fee discount exemption system based on dynamic code verification, the system includes a second blockchain subsystem for intelligently verifying coupons and a parking end POS subsystem, wherein:
[0009] The parking end POS subsystem includes a barcode recognition module, which is used to parse the dynamic code displayed on the merchant APP to obtain relevant information and the current unique identifier of the redemption coupon, and form a coupon verification request based on the relevant information and the current unique identifier;
[0010] The second blockchain subsystem includes a coupon verification module, which is used to receive a coupon verification request, and verify the coupon verification request using a second smart contract containing preset coupon verification conditions to obtain a second verification result; the second verification result includes one of a verification failure or a preferential fee reduction;
[0011] The parking POS subsystem also includes a preferential reduction module, which is used to retrieve the user's first parking fee when the second verification result is a preferential reduction fee, and perform parking fee reduction settlement based on the first parking fee and the preferential reduction fee to obtain a second parking fee.
[0012] Furthermore, the parking fee discount and exemption system also includes a merchant-side POS subsystem and a first blockchain subsystem for automatically generating coupons, and the first blockchain subsystem, the second blockchain subsystem, the merchant-side POS subsystem and the parking-side POS subsystem are connected to each other via wireless communication; wherein the merchant-side POS subsystem is used to generate a user's coupon generation request.
[0013] Furthermore, the first blockchain subsystem includes a coupon generation request verification module, the coupon generation request verification module is used to receive a coupon generation request, and verify the coupon generation request using a first smart contract containing a preset coupon generation condition to obtain a first verification result;
[0014] The coupon generation request includes the requesting user ID, the merchant ID to which the requesting user ID belongs, the current request redemption data and the historical request redemption data; the current request redemption data at least includes the balance of redemption points, the requested points amount of the current redemption request, the request time of the current redemption request and the requested amount of the current redemption request; the historical request redemption data includes the number of historical redemption requests, the requested points amount of each historical redemption request, the request time of each historical redemption request and the requested amount of each historical redemption request.
[0015] Furthermore, the coupon generation condition includes a predefined special conventional trigger condition and a risk judgment condition; the risk judgment condition is a preset request risk coefficient threshold;
[0016] The verifying the coupon generation request by using the first smart contract including the preset coupon generation condition includes:
[0017] a1: Get the merchant ID, and call the predefined special general trigger condition associated with the merchant ID according to the merchant ID;
[0018] a2: Determine whether the current requested redemption data meets the predefined special general trigger condition. If so, jump to step a3; if not, jump to step a5;
[0019] a3: extract the current request exchange data and the historical request exchange data, and input the current request exchange data and the historical request exchange data into a pre-configured risk analysis model to obtain the behavior risk coefficient of the requesting user ID to perform the current request exchange behavior;
[0020] a4: According to the risk judgment condition, the behavior risk coefficient is compared with the preset request risk coefficient threshold. If the behavior risk coefficient is greater than or equal to the preset request risk coefficient threshold, jump to step a6; if the behavior risk coefficient is less than the preset request risk coefficient threshold, jump to step a5;
[0021] a5: Output the verification success of the coupon generation request, and take the verification success as the first verification result;
[0022] a6: Output the coupon generation request verification failure, and take the verification failure as the first verification result.
[0023] Furthermore, the training logic of the preconfigured risk analysis model is as follows:
[0024] Retrieving historical request behavior analysis training data, and dividing the historical request behavior analysis training data into a behavior risk training set and a behavior risk test set; the historical request behavior analysis training data includes behavior feature data of multiple request user IDs and their corresponding behavior risk coefficients;
[0025] Wherein, the behavior characteristic data includes current request exchange data and historical request exchange data;
[0026] Constructing a regression network, taking the behavioral feature data in the behavioral risk training set as input data of the regression network, and taking the behavioral risk coefficient in the behavioral risk training set as output data of the regression network, training the regression network, and obtaining an initial regression network;
[0027] The behavioral risk test set is used to verify the model of the initial regression network, and the initial regression network with a preset test error is output as the preconfigured risk detection model.
[0028] Furthermore, the generation logic of the behavior risk coefficient in the historical request behavior analysis training data is as follows:
[0029] Get current request exchange data and historical request exchange data;
[0030] A mathematical calculation model of the behavior risk coefficient is constructed based on historical request redemption data; the expression of the mathematical calculation model is as follows:
[0031] ;
[0032] Where: is the behavioral risk factor; is the requested points amount for the i-th redemption request; is the time decay coefficient, which indicates the influence weight of the exchange frequency; is the request time of the i-th redemption request; and is a constant; is the standard deviation of the normal distribution; is the requested amount of the i-th exchange request; is the average value of the exchange amount; is a logarithmic function, N is the total number of redemption requests;
[0033] The current requested exchange data is input into a mathematical calculation model for calculation to obtain a behavior risk coefficient of the requested user ID executing the current requested exchange behavior.
[0034] Furthermore, the first blockchain subsystem further includes a coupon generation module, a dynamic code management module and a first block storage module, wherein the coupon generation module is used to retrieve an electronic coupon of the same amount as a redemption coupon for the corresponding requesting user ID according to the requested amount in the corresponding coupon generation request when the first verification result is successful verification;
[0035] The dynamic code management module is used to retrieve the relevant information of the redemption coupon according to the predefined extraction rules, assign the current unique identifier to the redemption coupon, generate a dynamic code according to the relevant information and the current unique identifier, and send the dynamic code to the merchant APP to which the corresponding requesting user ID belongs for display; the relevant information of the redemption coupon includes at least the requesting user ID, the merchant ID to which the requesting user ID belongs, the requested amount and the request time;
[0036] The first block storage module is used to store the generated redemption coupon, related information of the generated redemption coupon, and the current unique identifier of the generated redemption coupon.
[0037] Furthermore, the coupon redemption condition is a predefined general conventional trigger condition; the general conventional trigger condition includes a defined usage time difference of the coupon, a defined merchant ID and a defined IP location.
[0038] Furthermore, the method of verifying the coupon redemption request by using the second smart contract containing the preset coupon redemption conditions includes:
[0039] b1: Extract relevant information and the current unique identifier in the coupon redemption request, and extract predefined general trigger conditions;
[0040] b2: Determine whether the relevant information meets the predefined general trigger condition. If so, jump to step b3; if not, jump to step b5;
[0041] b3: Place the current unique identifier into the preset identifier database for traversal. If the traversal result returns an empty set, jump to step b4; if the traversal result returns any historical unique identifier, jump to step b5;
[0042] b4: Output verification success, and output the amount of the redeemed coupon, marked as a discount fee, and use the discount fee as the second verification result;
[0043] b5: Output the verification failure and use the verification failure as the second verification result.
[0044] Furthermore, the second blockchain subsystem further includes a second block storage module and a data update module, wherein the second block storage module is used to store an identification database, wherein the identification database pre-stores a plurality of historical unique identifications;
[0045] The data updating module is used to obtain and mark the current unique identifier that has been successfully written off as a historical unique identifier, and update it into the identifier database.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] The present application discloses a parking fee discount exemption system based on dynamic code verification, comprising: parsing a dynamic code displayed on a merchant APP to obtain relevant information and a current unique identifier for redeeming a coupon, and forming a coupon verification request according to the relevant information and the current unique identifier; receiving the coupon verification request, and verifying the coupon verification request using a second smart contract containing preset coupon verification conditions; when the second verification result is a discount fee, retrieving the user's first parking fee, and performing parking fee reduction settlement according to the first parking fee and the discount fee to obtain a second parking fee; based on the above process, the present invention can effectively avoid the illegal operation of counterfeiting coupons by internal personnel, or help prevent criminals from taking advantage of system loopholes to illegally generate or forge a large number of coupons; in addition, by transplanting the coupon verification process from a traditional central service end or a third party to a blockchain end, and combining the dynamic code to perform security control of the coupon verification process, the present invention is conducive to avoiding the reuse of the cancelled coupons, and thus is conducive to avoiding the loss of interests of the coupon provider; in addition, through decentralized coupon generation and verification, and by integrating multi-party information, the present invention reduces the complexity of coupon verification and improves the efficiency of coupon verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of the structure of a parking fee reduction system based on dynamic code verification provided by the present invention;
[0049] Figure 2 A structural schematic diagram of a schematic diagram of a second blockchain subsystem provided by the present invention;
[0050] Figure 3 A schematic diagram of the structure of a schematic diagram of a parking terminal POS subsystem provided by the present invention;
[0051] Figure 4 This is a structural schematic diagram of a schematic diagram of the first blockchain subsystem provided by the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Example 1
[0054] See also Figure 1-4As shown, this embodiment discloses a parking fee discount exemption system based on dynamic code verification, and the parking fee discount exemption system includes a second blockchain subsystem 110 for intelligently verifying coupons and a parking end POS subsystem 120, wherein:
[0055] The parking end POS subsystem 120 includes a barcode recognition module 121, which is used to parse the dynamic code displayed on the merchant APP to obtain relevant information and the current unique identifier of the redemption coupon, and form a coupon verification request based on the relevant information and the current unique identifier;
[0056] The second blockchain subsystem 110 includes a coupon verification module 111, which is used to receive a coupon verification request, and verify the coupon verification request using a second smart contract containing a preset coupon verification condition to obtain a second verification result; the second verification result includes one of a verification failure or a preferential fee reduction;
[0057] The parking end POS subsystem 120 further includes a preferential reduction module 122, which is used to retrieve the user's first parking fee when the second verification result is a preferential reduction fee, and perform parking fee reduction settlement according to the first parking fee and the preferential reduction fee to obtain a second parking fee;
[0058] In a specific embodiment, the parking fee discount reduction system further includes a merchant-side POS subsystem 130 and a first blockchain subsystem 140 for automatically generating coupons, wherein the first blockchain subsystem 140, the second blockchain subsystem 110, the merchant-side POS subsystem 130 and the parking-side POS subsystem 120 are wirelessly connected to each other;
[0059] Wherein, the merchant-side POS subsystem 130 is used to generate a coupon generation request of a user;
[0060] It should be noted that: in the first blockchain subsystem 140, there are several merchant nodes that have joined, each merchant node is connected to the merchant-side POS system through a data interface, and the merchant-side POS system sends a coupon generation request in real time to the first smart contract in the first blockchain subsystem 140;
[0061] The first blockchain subsystem 140 includes a coupon generation request verification module 141, which is used to receive a coupon generation request and verify the coupon generation request using a first smart contract containing a preset coupon generation condition to obtain a first verification result;
[0062] Specifically, the coupon generation request includes a requesting user ID, a merchant ID to which the requesting user ID belongs, current request redemption data, and historical request redemption data; the current request redemption data includes at least the balance of redemption points, the requested points amount of the current redemption request, the request time of the current redemption request, and the requested amount of the current redemption request; the historical request redemption data includes the number of historical redemption requests, the requested points amount of each historical redemption request, the request time of each historical redemption request, and the requested amount of each historical redemption request;
[0063] Specifically, the coupon generation condition includes a predefined special conventional trigger condition and a risk judgment condition; the risk judgment condition is a preset request risk coefficient threshold;
[0064] The method of verifying the coupon generation request by using the first smart contract including the preset coupon generation condition includes:
[0065] a1: Get the merchant ID, and call the predefined special general trigger condition associated with the merchant ID according to the merchant ID;
[0066] It should be noted that: a number of preset relationships between merchant IDs and predefined special general trigger conditions are pre-stored in the system database. In each preset relationship, there is a merchant ID and a predefined special general trigger condition associated with the merchant ID. The predefined special general trigger condition is defined, provided and uploaded by the corresponding merchant, and the technical staff manually associates and binds the predefined special general trigger condition with the corresponding merchant ID according to the merchant ID of the corresponding merchant.
[0067] It should also be noted that the predefined special general triggering conditions are specifically determined according to the member points redemption rules defined by the corresponding merchant, including but not limited to the minimum redemption points balance, the minimum redemption points amount, the member level allowed for redemption and the redemption ratio (i.e., the conversion ratio of points to money), etc.;
[0068] a2: Determine whether the current requested redemption data meets the predefined special general trigger condition. If so, jump to step a3; if not, jump to step a5;
[0069] It should be noted that: judging whether the current request redemption data meets the predefined special general trigger condition is achieved by comparing the current request redemption data with the predefined special general trigger condition. If any data in the current request redemption data does not meet the special general trigger condition, it will be judged as unsatisfied. Only when all of them are met, it will be deemed to be satisfied. For example, assuming that the current request redemption data includes the balance of redemption points, the requested points amount of the current redemption request, the request time of the current redemption request and the requested amount of the current redemption request, and the balance of redemption points is 500, the requested points amount of the current redemption request is 300, the request time of the current redemption request is 9:10, and the requested amount of the current redemption request is 300. ; Assuming that the balance of redemption points is 500, the requested points amount of the current redemption request is 300, and the request time of the current redemption request is 9:10, all of which meet the rules set by the special general trigger condition, but the redemption ratio limited by the special general trigger condition is 3 to 1, that is, the requested points amount of 300 can only be exchanged for the requested amount of 100. Therefore, the requested amount of the current redemption request does not meet the special general trigger condition, and it is determined that the current request redemption data does not meet the predefined special general trigger condition; assuming that the subsequent user modifies the requested amount of the current redemption request to 100, then all the data of the current redemption request meet the special general trigger condition, and it is determined that the current request redemption data meets the predefined special general trigger condition;
[0070] a3: extract the current request exchange data and the historical request exchange data, and input the current request exchange data and the historical request exchange data into a pre-configured risk analysis model to obtain the behavior risk coefficient of the requesting user ID to perform the current request exchange behavior;
[0071] The training logic of the preconfigured risk analysis model is as follows:
[0072] Retrieving historical request behavior analysis training data, and dividing the historical request behavior analysis training data into a behavior risk training set and a behavior risk test set; the historical request behavior analysis training data includes behavior feature data of multiple request user IDs and their corresponding behavior risk coefficients;
[0073] Wherein, the behavior characteristic data includes current request exchange data and historical request exchange data;
[0074] Specifically, the generation logic of the behavior risk coefficient in the historical request behavior analysis training data is as follows:
[0075] Get current request exchange data and historical request exchange data;
[0076] A mathematical calculation model of the behavior risk coefficient is constructed based on historical request redemption data; the expression of the mathematical calculation model is as follows:
[0077] ;
[0078] Where: is the behavioral risk factor; is the requested points amount for the i-th redemption request; is the time decay coefficient, which indicates the influence weight of the exchange frequency; is the request time of the i-th redemption request; and is a constant; is the standard deviation of the normal distribution; is the requested amount of the i-th exchange request; is the average value of the exchange amount; is a logarithmic function, N is the total number of redemption requests (N=h+r, h is the number of historical redemption requests, r is the number of current redemption requests, r=1);
[0079] Input the current requested exchange data into the mathematical calculation model for calculation to obtain the behavior risk coefficient of the requested user ID executing the current requested exchange behavior;
[0080] Constructing a regression network, taking the behavioral feature data in the behavioral risk training set as input data of the regression network, and taking the behavioral risk coefficient in the behavioral risk training set as output data of the regression network, training the regression network, and obtaining an initial regression network;
[0081] The initial regression network is model-verified using the behavioral risk test set, and the initial regression network with a test error less than or equal to the preset test error is output as the preconfigured risk detection model;
[0082] It should be noted that: the regression network is one of the regression algorithm models such as decision tree, support vector machine, random forest, polynomial regression, linear regression or neural network;
[0083] a4: According to the risk judgment condition, the behavior risk coefficient is compared with the preset request risk coefficient threshold. If the behavior risk coefficient is greater than or equal to the preset request risk coefficient threshold, jump to step a6; if the behavior risk coefficient is less than the preset request risk coefficient threshold, jump to step a5;
[0084] a5: Output the verification success of the coupon generation request, and take the verification success as the first verification result;
[0085] a6: Output the coupon generation request verification failure, and take the verification failure as the first verification result;
[0086] The first blockchain subsystem 140 further includes a coupon generation module 142, a dynamic code management module 143 and a first block storage module 144. The coupon generation module 142 is used to retrieve an electronic coupon of the same amount as a redemption coupon for the corresponding requesting user ID according to the requested amount in the corresponding coupon generation request when the first verification result is successful verification;
[0087] It should be noted that: a large number of electronic coupons of different denominations are pre-stored in the system database. When the first verification result is successful verification, the electronic coupons of the same denomination in the system database are extracted as the redemption coupons for the corresponding requesting user ID according to the requested amount in the corresponding coupon generation request; for example, assuming that the requested amount in the corresponding coupon generation request is 100, the electronic coupons of denomination 100 in the system database are extracted as the redemption coupons;
[0088] The dynamic code management module 143 is used to retrieve the relevant information of the redemption coupon according to the predefined extraction rules, assign the current unique identifier to the redemption coupon, generate a dynamic code according to the relevant information and the current unique identifier, and send the dynamic code to the merchant APP to which the corresponding requesting user ID belongs for display; the relevant information of the redemption coupon includes at least the requesting user ID, the merchant ID to which the requesting user ID belongs, the requested amount and the request time;
[0089] It should be noted that the predefined extraction rule refers to the extraction information defined in advance. For example, when the predefined extraction rule stipulates that the ID, the requested amount and the requested time need to be extracted, the requesting user ID, the merchant ID to which the requesting user ID belongs, the requested amount and the requested time and other information are extracted;
[0090] It should also be noted that: the current unique identifier is generated by a hash function, a UUID method or a timestamp + random number method, and is in the form of a string; by using a hash function, certain inputs (such as user ID, timestamp, etc.) can be converted into a unique hash value; and UUID is a 32-character string, which can be used to ensure global uniqueness; and combining the current timestamp and the random number to generate the current unique identifier can ensure that the identifier generated in a short time is also unique; in addition, the dynamic code is specifically one of a QR code or a barcode, and the dynamic code is generated using an encryption algorithm, such as a time-based one-time password algorithm (TOTP) or an event-based one-time password algorithm (HOTP), etc.;
[0091] The first block storage module 144 is used to store the generated redemption coupon, the related information of the generated redemption coupon and the current unique identifier of the generated redemption coupon;
[0092] It should be noted that: the dynamic code displayed on the merchant APP is parsed, that is, the barcode recognition module 121 of the parking end POS subsystem 120 recognizes the dynamic code displayed on the merchant APP, and extracts the relevant information and the current unique identifier contained in the dynamic code; therefore, the coupon redemption request at least includes the relevant information and the current unique identifier; in addition, the dynamic code displayed on the merchant APP is displayed through the smart mobile terminal (such as a mobile phone) carried by the user, and when the dynamic code display exceeds the valid time, the merchant APP on the smart mobile terminal will send a dynamic code regeneration request to the dynamic code management module 143. When the dynamic code management module 143 receives the dynamic code regeneration request, it will generate a new dynamic code based on the relevant information and the current unique identifier, and each updated dynamic code is only usable once;
[0093] The coupon redemption condition is a predefined general conventional trigger condition; the general conventional trigger condition includes but is not limited to the limited usage time difference of the coupon (i.e. the difference between the current time and the request time), the limited merchant ID and the limited IP location, etc.;
[0094] Specifically, the method of verifying the coupon redemption request by using the second smart contract containing the preset coupon redemption conditions includes:
[0095] b1: Extract relevant information and the current unique identifier in the coupon redemption request, and extract predefined general trigger conditions;
[0096] b2: Determine whether the relevant information meets the predefined general trigger condition. If so, jump to step b3; if not, jump to step b5;
[0097] It should be understood that: judging whether the relevant information meets the predefined general conventional triggering condition is achieved by comparing the relevant information with the predefined general conventional triggering condition. If any data in the relevant information does not meet the general conventional triggering condition, it will be judged as not meeting the condition. Only when all of them are met, it will be deemed to be met. For example, the relevant information includes the specified usage time difference and the specified merchant ID of the coupon, and the merchant ID included in the relevant information does not exist in the merchant ID list defined by the general conventional triggering condition, then the relevant information is judged to not meet the predefined general conventional triggering condition. In another case, if the merchant ID included in the relevant information does exist in the merchant ID list defined by the general conventional triggering condition, and the specified usage time difference belongs to the time difference interval defined by the general conventional triggering condition, then the relevant information is judged to meet the predefined general conventional triggering condition.
[0098] b3: Place the current unique identifier into the preset identifier database for traversal. If the traversal result returns an empty set, jump to step b4; if the traversal result returns any historical unique identifier, jump to step b5;
[0099] b4: Output verification success, and output the amount of the redeemed coupon, marked as a discount fee, and use the discount fee as the second verification result;
[0100] b5: Output the verification failure and use the verification failure as the second verification result;
[0101] The second blockchain subsystem 110 further includes a second block storage module 112 and a data update module 113, wherein the second block storage module 112 is used to store an identification database, wherein the identification database pre-stores a plurality of historical unique identifications, i.e., used unique identifications;
[0102] The data updating module 113 is used to obtain and mark the current unique identifier that has been successfully written off as a historical unique identifier, and update it into the identifier database;
[0103] It should be understood that when executing parking fee reduction and exemption settlement, the parking time of the corresponding vehicle is first obtained through the parking lot management system, and the charging standards specified in the parking lot management system are retrieved. The first parking fee is calculated based on the charging standards and parking time, and then the preferential reduced fee is obtained. The second parking fee is obtained by calculating the difference between the first parking fee and the preferential reduced fee. Finally, the second parking fee is sent to the corresponding vehicle owner for payment, completing the parking fee preferential reduction for the corresponding owner.
[0104] It can be understood that: by transplanting the coupon generation process from the traditional central server to the blockchain, the present invention can effectively avoid the illegal operation of internal personnel to forge coupons, or help prevent criminals from taking advantage of system loopholes to illegally generate or forge a large number of coupons; in addition, by transplanting the coupon verification process from the traditional central server or third party to the blockchain, and combining dynamic codes to perform security control of the coupon verification process, the present invention helps to avoid the reuse of verified coupons, thereby helping to avoid the loss of interests of the coupon provider; in addition, through decentralized coupon generation and verification, and by integrating information from multiple parties, the present invention reduces the complexity of coupon verification and improves the efficiency of coupon verification.
[0105] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.
[0106] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired network or a wireless network. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media sets. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD) or a semiconductor medium. The semiconductor medium may be a solid-state hard disk.
[0107] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0109] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0112] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0113] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A parking fee reduction system based on dynamic code verification, characterized in that: The system includes a second blockchain subsystem for intelligently redeeming coupons and a parking end POS subsystem, wherein: The parking end POS subsystem includes a barcode recognition module, which is used to parse the dynamic code displayed on the merchant APP to obtain relevant information and the current unique identifier of the redemption coupon, and form a coupon verification request based on the relevant information and the current unique identifier; The second blockchain subsystem includes a coupon verification module, which is used to receive a coupon verification request, and verify the coupon verification request using a second smart contract containing preset coupon verification conditions to obtain a second verification result; the second verification result includes one of a verification failure or a preferential fee reduction; The parking end POS subsystem further includes a preferential reduction module, which is used to retrieve the user's first parking fee when the second verification result is a preferential reduction fee, and perform parking fee reduction settlement according to the first parking fee and the preferential reduction fee to obtain a second parking fee; The parking fee discount and exemption system further includes a merchant-side POS subsystem and a first blockchain subsystem for automatically generating coupons, wherein the first blockchain subsystem, the second blockchain subsystem, the merchant-side POS subsystem and the parking-side POS subsystem are wirelessly connected to each other; wherein the merchant-side POS subsystem is used to generate a user's coupon generation request; The first blockchain subsystem includes a coupon generation request verification module, which is used to receive a coupon generation request and verify the coupon generation request using a first smart contract containing a preset coupon generation condition to obtain a first verification result; The coupon generation request includes a requesting user ID, a merchant ID to which the requesting user ID belongs, current request redemption data, and historical request redemption data; the current request redemption data includes at least the balance of redemption points, the requested points amount of the current redemption request, the request time of the current redemption request, and the requested amount of the current redemption request; the historical request redemption data includes the number of historical redemption requests, the requested points amount of each historical redemption request, the request time of each historical redemption request, and the requested amount of each historical redemption request; The coupon generation conditions include predefined special conventional trigger conditions and risk judgment conditions; the risk judgment condition is a preset request risk coefficient threshold; The verifying the coupon generation request by using the first smart contract including the preset coupon generation condition includes: a1: Get the merchant ID, and call the predefined special general trigger condition associated with the merchant ID according to the merchant ID; a2: Determine whether the current requested redemption data meets the predefined special general trigger condition. If so, jump to step a3; if not, jump to step a6; a3: extract the current request exchange data and the historical request exchange data, and input the current request exchange data and the historical request exchange data into a pre-configured risk analysis model to obtain the behavior risk coefficient of the requesting user ID to perform the current request exchange behavior; a4: According to the risk judgment condition, the behavior risk coefficient is compared with the preset request risk coefficient threshold. If the behavior risk coefficient is greater than or equal to the preset request risk coefficient threshold, jump to step a6; if the behavior risk coefficient is less than the preset request risk coefficient threshold, jump to step a5; a5: Output the verification success of the coupon generation request, and take the verification success as the first verification result; a6: Output the coupon generation request verification failure, and take the verification failure as the first verification result; The training logic of the preconfigured risk analysis model is as follows: Retrieving historical request behavior analysis training data, and dividing the historical request behavior analysis training data into a behavior risk training set and a behavior risk test set; the historical request behavior analysis training data includes behavior feature data of multiple request user IDs and their corresponding behavior risk coefficients; Wherein, the behavior characteristic data includes current request exchange data and historical request exchange data; The logic for generating the behavior risk coefficient in the historical request behavior analysis training data is as follows: Get current request exchange data and historical request exchange data; A mathematical calculation model of the behavior risk coefficient is constructed based on historical request redemption data; the expression of the mathematical calculation model is as follows: ; Where: is the behavioral risk factor; is the requested points amount for the i-th redemption request; is the time decay coefficient, which indicates the influence weight of the exchange frequency; is the request time of the i-th redemption request; and is a constant; is the standard deviation of the normal distribution; is the requested amount of the i-th exchange request; is the average value of the exchange amount; is a logarithmic function, N is the total number of redemption requests; Input the current requested exchange data into the mathematical calculation model for calculation to obtain the behavior risk coefficient of the requesting user ID to perform the current requested exchange behavior; Constructing a regression network, taking the behavioral feature data in the behavioral risk training set as input data of the regression network, and taking the behavioral risk coefficient in the behavioral risk training set as output data of the regression network, training the regression network, and obtaining an initial regression network; The behavioral risk test set is used to verify the model of the initial regression network, and the initial regression network with a preset test error is output as the preconfigured risk detection model.
2. The parking fee reduction system based on dynamic code verification according to claim 1 is characterized in that: The first blockchain subsystem further includes a coupon generation module, a dynamic code management module and a first block storage module, wherein the coupon generation module is used to retrieve an electronic coupon of the same amount as a redemption coupon for the corresponding requesting user ID according to the requested amount in the corresponding coupon generation request when the first verification result is successful verification; The dynamic code management module is used to retrieve the relevant information of the redemption coupon according to the predefined extraction rules, assign the current unique identifier to the redemption coupon, generate a dynamic code according to the relevant information and the current unique identifier, and send the dynamic code to the merchant APP to which the corresponding requesting user ID belongs for display; the relevant information of the redemption coupon includes at least the requesting user ID, the merchant ID to which the requesting user ID belongs, the requested amount and the request time; The first block storage module is used to store the generated redemption coupon, related information of the generated redemption coupon, and the current unique identifier of the generated redemption coupon.
3. The parking fee reduction system based on dynamic code verification according to claim 2 is characterized in that: The coupon redemption condition is a predefined general conventional trigger condition; the general conventional trigger condition includes a defined usage time difference of the coupon, a defined merchant ID and a defined IP location.
4. The parking fee reduction system based on dynamic code verification according to claim 3 is characterized in that: The method of verifying the coupon redemption request by using the second smart contract containing the preset coupon redemption conditions includes: b1: Extract relevant information and the current unique identifier in the coupon redemption request, and extract predefined general trigger conditions; b2: Determine whether the relevant information meets the predefined general trigger condition. If so, jump to step b3; if not, jump to step b5; b3: Place the current unique identifier into the preset identifier database for traversal. If the traversal result returns an empty set, jump to step b4; if the traversal result returns any historical unique identifier, jump to step b5; b4: Output verification success, and output the amount of the redeemed coupon, marked as a discount fee, and use the discount fee as the second verification result; b5: Output the verification failure and use the verification failure as the second verification result.
5. The parking fee reduction system based on dynamic code verification according to claim 4 is characterized in that: The second blockchain subsystem further includes a second block storage module and a data update module, wherein the second block storage module is used to store an identification database, wherein the identification database pre-stores a plurality of historical unique identifications; The data updating module is used to obtain and mark the current unique identifier that has been successfully written off as a historical unique identifier, and update it into the identifier database.
