[go: up one dir, main page]

CN114202082A - Payment method, device, equipment and medium - Google Patents

Payment method, device, equipment and medium Download PDF

Info

Publication number
CN114202082A
CN114202082A CN202111532785.3A CN202111532785A CN114202082A CN 114202082 A CN114202082 A CN 114202082A CN 202111532785 A CN202111532785 A CN 202111532785A CN 114202082 A CN114202082 A CN 114202082A
Authority
CN
China
Prior art keywords
winning
reservation
target
product
payment account
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
CN202111532785.3A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111532785.3A priority Critical patent/CN114202082A/en
Publication of CN114202082A publication Critical patent/CN114202082A/en
Pending legal-status Critical Current

Links

Images

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
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0621Item configuration or customization

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to the field of data verification technologies, and in particular, to a payment method, apparatus, device, and medium. In the embodiment of the application, if an appointment request carrying a payment account and a target product to be appointed is received, a target appointment number is allocated to the appointment request, a product amount corresponding to the target product which is saved in advance is obtained, and a freezing request carrying the product amount and the payment account is sent to a deposit system, so that the deposit system freezes the deposit amount of the product amount in the payment account. And, when determining the winning reservation number, it is determined based on a pre-configured drawing algorithm, reducing the risk of calculation errors. In addition, after the target reservation number is determined to be the winning reservation number, a deduction request carrying the payment account number is sent to the deposit system, so that the frozen deposit amount is deducted by the deposit system, the transaction success rate is improved, the target product is prevented from being placed on the shelf again, and the load pressure of the server is reduced.

Description

Payment method, device, equipment and medium
Technical Field
The present application relates to the field of data verification technologies, and in particular, to a payment method, apparatus, device, and medium.
Background
At present, in the selling process of rare products such as precious metal commemorative coins and the like, a customer makes a reservation purchase, then a technician makes a lottery number, draws a winning customer who can purchase the product from the client who makes the reservation purchase, and publishes the information of the winning customer to application software such as a mobile banking and the like, the customer can inquire whether the customer wins the prize in the application software such as the mobile banking and the like, and if the customer wins the prize, the amount corresponding to the product can be paid, and the product is purchased.
However, in the prior art, the reservation purchase is required to be made first, the customer can pay only after winning a prize, but the same customer can give up the purchase after winning a prize, which results in that the actual sale amount of the product is lower than the estimated sale amount at the end of the sale, and the product needs to be sold on shelf again subsequently, thereby increasing the load pressure of the server. Meanwhile, when the winning clients are selected, the winning clients are calculated manually, and the risk of calculation errors is high.
Disclosure of Invention
The application provides a payment method, a payment device, a payment equipment and a payment medium, which are used for solving the problems that in the prior art, the purchase can be abandoned after winning a prize, the product needs to be put on shelf again, the load pressure of a server is increased, and the risk of calculation errors in the determination process of a winning customer is high.
The embodiment of the application provides a payment method, which comprises the following steps:
if a reservation request carrying a payment account number and a target product to be reserved is received, distributing a target reservation number for the reservation request;
sending a freezing request carrying the product amount and the payment account number to a deposit system according to a pre-stored product amount corresponding to the target product;
and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
Further, after determining that the target subscription number is a winning subscription number, the method further comprises:
acquiring a contact way carried in the reservation request;
and sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
Further, determining the winning reservation number includes:
acquiring middle and small plate fingers and deep evidence forming fingers at the current time, and calculating a base number according to the middle and small plate fingers and the deep evidence forming fingers;
turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations;
calculating the order according to the total number of the reservations and the number of target products saved in advance;
sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number;
and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
Further, said calculating a first sub-winning reservation number according to said number of flipping times and a saved total number of reservations comprises:
determining a remainder of dividing the turnover number by the total reservation number;
and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
Further, before the reservation request carrying the payment account and the target product to be reserved is received, the method further includes:
receiving an input product release notification, wherein the product release notification carries a target product, and an activity starting time and an activity ending time corresponding to the target product;
and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each server which is saved in advance.
Further, if the target subscription number is not a winning subscription number, the method further comprises:
sending a thawing request carrying the payment account and the product amount to the deposit system so that the deposit system thaws the frozen product amount in the payment account;
and receiving a successful unfreezing notice sent by the deposit system.
An embodiment of the present application further provides a payment device, the device includes:
the system comprises a processing module, a reservation module and a reservation module, wherein the processing module is used for distributing a target reservation number to a reservation request if the reservation request carrying a payment account number and a target product to be reserved is received;
the sending module is used for sending a freezing request carrying the product amount and the payment account number to a deposit system according to the pre-stored product amount corresponding to the target product; and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
Further, the processing module is further configured to acquire a contact information carried in the reservation request;
and the sending module is also used for sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
Further, the apparatus further comprises:
the drawing module is used for acquiring the middle and small plate fingers and the deep evidence forming fingers at the current time and calculating a cardinal number according to the middle and small plate fingers and the deep evidence forming fingers; turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations; calculating the order according to the total number of the reservations and the number of target products saved in advance; sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number; and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
Further, the drawing module is specifically configured to determine a remainder of the number of turns divided by the total number of appointments; and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
Further, the apparatus further comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an input product release notification, and the product release notification carries a target product and an activity starting time and an activity ending time corresponding to the target product;
the sending module is further configured to send an activity notification carrying the activity start time, the activity end time, and the information of the target product to each server that is pre-stored.
Further, if the target reservation number is not the winning reservation number, the sending module is further configured to send a thawing request carrying the payment account and the product amount to the deposit system, so that the deposit system thaws the frozen product amount in the payment account;
the receiving module is further configured to receive a notification of successful thawing sent by the deposit system.
An embodiment of the present application further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the payment method as described in any one of the above when executing the computer program stored in the memory.
Embodiments of the present application further provide a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the payment method as described in any one of the above.
An embodiment of the present application further provides a computer program product, where the computer program product includes: computer program code for causing a computer to perform the steps of the payment method as described in any one of the above when said computer program code is run on a computer.
In the embodiment of the application, if an appointment request carrying a payment account and a target product to be appointed is received, a target appointment number is allocated to the appointment request, a product amount corresponding to the target product which is saved in advance is obtained, and a freezing request carrying the product amount and the payment account is sent to a deposit system, so that the deposit system freezes the deposit amount of the product amount in the payment account. Moreover, in the embodiment of the present application, the determination of the winning reservation number is based on the pre-configured drawing algorithm, which reduces the risk of calculation errors. In addition, in the embodiment of the application, after the target reservation number is determined to be the winning reservation number, the deduction request carrying the payment account number is sent to the deposit system, so that the frozen deposit amount is deducted by the deposit system, the transaction success rate is improved, the target product is prevented from being placed on the shelf again, and the load pressure of the server is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic view of a payment process provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a payment process provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a payment apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the application, if an appointment request carrying a payment account and a target product to be appointed is received, a target appointment number is distributed for the appointment request, a freezing request carrying the product amount and the payment account is sent to a deposit system according to a prestored product amount corresponding to the target product, and if the target appointment number is determined to be a winning appointment number at a corresponding lottery drawing time according to a preconfigured drawing algorithm, a deduction request carrying the payment account and the product amount is sent to the deposit system, so that the deposit system deducts the frozen product amount from the payment account.
In order to improve the transaction success rate, avoid putting products on shelves again, reduce the load pressure of a server and reduce the risk of errors of a client for calculating winning a prize, the embodiment of the application provides a payment method, a payment device, payment equipment and a payment medium.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
Example 1:
fig. 1 is a schematic flow chart of a payment method provided in an embodiment of the present application, where the process includes:
s101: and if a reservation request carrying a payment account number and a target product to be reserved is received, allocating a target reservation number to the reservation request.
The payment method provided by the embodiment of the application is applied to the server.
In the embodiment of the present application, when the customer has a need to purchase a target product, for example, the customer has a need to purchase a precious metal commemorative coin, a reservation request may be transmitted to the server through various channels. For example, a customer sends a reservation request to a server through a channel such as a mobile banking, an internet banking APP or a bank counter, where the reservation request carries a payment account of the customer and a target product to be reserved. Specifically, the reservation request may carry identification information of the target product to be reserved, such as a product number of the target product.
In the embodiment of the present application, in the process of purchasing the target product, due to the limitation of the total number of the target product, not all the clients initiating the reservation request received by the server can purchase the target product, but the server is required to extract a part of clients from the clients having sent the reservation request, and the part of clients can purchase the target product, specifically, the reservation request sent by the client can be extracted. In order to facilitate the server to extract a part of reservation requests from the received reservation requests and distinguish which reservation requests are extracted, in the embodiment of the present application, after the server receives the reservation requests, a target reservation number is allocated to the reservation requests, and the target reservation number corresponding to each reservation request is different.
In this embodiment of the application, when the server allocates the target reservation number to the reservation request, the server may obtain, according to the target product carried in the reservation request, a total reserved number of the reservation request carrying the target product, which has been received and stored in the server, and allocate the target reservation number to the reservation request according to the total reserved number, for example, the total reserved number is used as the target reservation number of the reservation request, and the like; the reservation number corresponding to the previous reservation request may also be acquired, a preset numerical value is added on the basis of the reservation number corresponding to the previous request to serve as the target reservation number of the reservation request, and if the reservation request is the first reservation request corresponding to the target product, a preset initial value is determined as the target reservation number of the reservation request, and generally, for convenience of subsequent drawing of winning reservation numbers, the preset numerical value is 1, and the initial value is 1.
S102: and sending a freezing request carrying the product amount and the payment account number to a deposit system according to the pre-stored product amount corresponding to the target product.
In order to improve the transaction success rate, in the embodiment of the application, after receiving the reservation request, the server sends a product amount carrying a target product and a freezing request of a payment account to the deposit system, so that the deposit system freezes the deposit amount in the payment account, wherein the frozen deposit amount is equal to the product amount, the deposit amount is locked, and the frozen deposit amount can be directly deducted in the subsequent actual payment process.
Specifically, in this embodiment of the present application, product money corresponding to each product is pre-stored in the server, and after the server receives the reservation request and allocates the target product number to the reservation request, the server obtains the target product carried in the reservation request, and identifies the product money corresponding to the target product from the product money corresponding to each product that is pre-stored. After the product amount is determined, a freezing request carrying the product amount and the payment account is sent to the deposit system, so that the deposit system freezes the deposit amount of the product amount in the payment account.
S103: and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
In order to improve the accuracy of determination of winning clients, in the embodiment of the present application, the server is configured with a lottery algorithm for determining winning reservation numbers in advance, avoiding the problem of low accuracy caused by manual calculation of winning reservation numbers.
Specifically, in the embodiment of the present application, a lottery algorithm is configured in advance in the server, and a winning reservation number is determined based on the lottery algorithm at a corresponding drawing time. And if the target reservation number is determined to be the winning reservation number, acquiring a payment account number carried in a reservation request corresponding to the target reservation number, and sending a deduction request carrying the payment account number and the product amount corresponding to the target product to a deposit system, so that the deposit system deducts the deposit amount of which the value frozen in the payment account is the product amount.
In the embodiment of the application, if an appointment request carrying a payment account and a target product to be appointed is received, a target appointment number is allocated to the appointment request, a product amount corresponding to the target product which is saved in advance is obtained, and a freezing request carrying the product amount and the payment account is sent to a deposit system, so that the deposit system freezes the deposit amount of the product amount in the payment account. Moreover, in the embodiment of the present application, the determination of the winning reservation number is based on the pre-configured drawing algorithm, which reduces the risk of calculation errors. In addition, in the embodiment of the application, after the target reservation number is determined to be the winning reservation number, the deduction request carrying the payment account number is sent to the deposit system, so that the frozen deposit amount is deducted by the deposit system, the client does not need to pay after winning, the transaction success rate is improved, the target product is prevented from being placed on the shelf again, and the load pressure of the server is reduced.
Example 2:
in order to make the winning client know the winning status of itself in real time, on the basis of the above embodiment, in the embodiment of the present application, after the target reservation number is determined to be the winning reservation number, the method further includes:
acquiring a contact way carried in the reservation request;
and sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
In order to enable the winning clients to know the winning or losing status of the winning or losing clients in real time, in the embodiment of the application, when the clients send the reservation requests to the server, the reservation requests carry the contact way of the clients in addition to the payment account and the target product to be reserved, so that the server can send winning or losing notifications to the clients based on the contact way after determining that the target reservation number corresponding to the reservation request is the winning or losing reservation number.
Specifically, in the embodiment of the present application, after the server determines a winning subscription number based on a pre-configured lottery algorithm and recognizes that a target subscription number is the winning subscription number, the server obtains a contact information carried in a subscription request corresponding to the target subscription number. And sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
For example, in the embodiment of the present application, if the contact is a phone number, a winning notification may be sent to the phone number in a form of a short message; if the contact is a mailbox, a winning notification or the like can be sent to the mailbox in the form of a mail.
Example 3:
in order to determine winning reservation numbers, in the embodiments of the present application, on the basis of the above-described embodiments, determining winning reservation numbers includes:
acquiring middle and small plate fingers and deep evidence forming fingers at the current time, and calculating a base number according to the middle and small plate fingers and the deep evidence forming fingers;
turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations;
calculating the order according to the total number of the reservations and the number of target products saved in advance;
sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number;
and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
In the embodiment of the application, the server is configured with the drawing algorithm in advance, so that at the time of drawing a prize corresponding to the target product, the server can determine the winning reservation number according to the pre-configured drawing algorithm. In the embodiment of the present application, the parameters included in the preconfigured lottery algorithm include: the medium and small board fingers and the deep evidence corresponding to the lottery drawing time, the total reservation number of the target products and the number of the target products.
Specifically, in the embodiment of the present application, when determining a winning reservation number, the server first sends a request for obtaining a middle and small board finger and a deep evidence becoming finger carrying a lottery drawing time to the financial market server, and obtains the middle and small board finger and the deep evidence becoming finger corresponding to the lottery drawing time. The server also obtains the number of target products saved in advance and the total number of received reservation requests carrying the target products, namely the total reservation number.
The server calculates a base number according to the middle and small board fingers and the deep evidence forming fingers and according to the middle and small board fingers and the deep evidence forming fingers, specifically, a product sum can be determined according to the middle and small board fingers, the deep evidence forming fingers, a preset corresponding first coefficient and a preset corresponding second coefficient, and the product sum is determined as the base number. The first coefficient and the second coefficient can be set by a skilled person according to working experience, and are generally values greater than 0, such as 100 for the first coefficient and 1000 for the second coefficient.
In the present embodiment, when the radix is calculated based on the middle-small plate finger and the deep-certified finger, the calculation can be performed by the following formula:
basicNum=szcz*100*zxbz*100*1000
wherein basicNum represents cardinal number, szcz represents deep-certified finger, and zxbz represents medium platelet finger.
In the embodiment of the application, after the base number is calculated, the base number is inverted to obtain the number of the inverted numbers, that is, the numerical value of the highest bit of the base number is used as the unit of the number of the inverted numbers, the numerical value of the second highest bit is used as the ten bits of the number of the inverted numbers, and so on until the numerical value of the unit of the base number is used as the highest bit of the number of the inverted numbers.
In the embodiment of the present application, after obtaining the number of flip numbers, the number of digits with a higher flip number may be all 0, and for accuracy, the digit where the first non-zero number from left to right is located is taken as the highest digit of the flip number. For example, the obtained radix is 85204700, and the number obtained after flipping is 00740258, but since the first digit and the second digit of the number obtained after flipping are both 0, the digit where the first non-zero number from left to right is taken as the highest digit of the number obtained after flipping is 740258.
And the server calculates the first sub-winning reservation number according to the turnover number and the total reserved number corresponding to the stored target product.
The server calculates the order according to the total number of the reservations and the number of the target products saved in advance, the first sub-winning reservation number sequentially increases the order until the total number of the reservations is reached, each second sub-winning reservation number is acquired, and the first sub-winning reservation number and each second sub-winning reservation number are determined as the winning reservation number.
In the embodiment of the present application, when the order is calculated according to the total number of the reservations and the number of the target products saved in advance, the order may be calculated by the following formula:
stepNum=registerNum/lotNum
the method includes the steps of calculating a quotient of a total number of products to be saved, calculating a quotient of the total number of products to be saved and the total number of products to be saved, rounding the quotient to obtain a corresponding integer, determining the integer as an order, determining the order as 1 if the quotient is smaller than 1, and rounding the integer by rounding or taking an integer part of the decimal as a rounded integer. For example, if the value of the quotient of the total number of reservations and the number of target products is determined to be 5.5, the order is determined to be 6; if the quotient of the total number of the reservations and the number of the target products is determined to be 5.3, determining the order to be 5; if the value of the quotient of the total number of reservations and the number of target products is determined to be 0.3, the order is determined to be 1.
For example, in the present embodiment, the first sub-winning reservation number is 6, the order is 6, and the total reservation number is 60, the first sub-winning reservation number 6 is sequentially increased by the order 6 until the total reservation number is reached 60, and each second sub-winning reservation number is acquired. Wherein the resulting second sub-winning reservation numbers are 12, 18, 24, 30, 36, 42, 48, 54 and 60, respectively, i.e., the finally determined winning reservation numbers are 6, 12, 18, 24, 30, 36, 42, 48, 54 and 60.
To determine the first sub-winning reservation number, on the basis of the above-mentioned embodiments, in the embodiments of the present application, the calculating the first sub-winning reservation number according to the number of flipping times and the saved total number of reservations includes:
determining a remainder of the flip divided by the total number of reservations;
and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
In the embodiment of the present application, when the first sub-winning reservation number is calculated based on the number of flipping and the saved total reservation number, the remainder of the number of flipping and the total reservation number is calculated, and the sum of the remainder and the preset number value is determined as the first sub-winning reservation number, which can be calculated by the following formula:
firstNum=fzs%registerNum+1
wherein firstNum denotes a first sub-winning reservation number, fzs denotes the number of flip-flop, registerNum denotes the number of total reservations, and fzs% registerNum denotes the remainder of the number of flip-flop counts and the number of total reservations.
Example 4:
in order to issue a campaign notification of a target product and implement marketing of the target product, on the basis of the foregoing embodiments, in this embodiment of the present application, before receiving a reservation request carrying a payment account and the target product to be reserved, the method further includes:
receiving an input product release notification, wherein the product release notification carries a target product, and an activity starting time and an activity ending time corresponding to the target product;
and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each server which is saved in advance.
In order to realize marketing of a target product, in the embodiment of the application, a manager sends a product release notification carrying the target product, and a start time and an end time of an activity corresponding to the target product to a server. After receiving the product release notification, the server stores the product release notification, releases the target product at the activity start time, and starts to receive a reservation request of the target product. In addition, the server can also be used for downloading the target product at the activity ending time and stopping receiving the reservation request of the target product.
In the embodiment of the application, the product release notification may also carry a lottery drawing time, and if the product release notification does not carry the lottery drawing time, it is considered that the lottery is drawn at the event ending time.
In order to advertise the activity notification of the target product and improve the reservation quantity of the target product, in this embodiment of the Application, after receiving the input product release notification corresponding to the target product, the server sends the activity notification carrying the activity start time, the activity end time, and the information of the target product to the server of each channel, such as a mobile phone bank, an internet banking APP, and the like, which is stored in advance, based on an Application Programming Interface (API) gateway. The server also accesses the API gateway based on the request, and receives an input reservation request carrying a payment account number and a target product to be reserved.
Example 5:
in order to achieve unfreezing of the frozen amount in the payment account of the loser customer, on the basis of the above embodiments, in the embodiment of the present application, if the target reservation number is not the winning reservation number, the method further includes:
sending a thawing request carrying the payment account and the product amount to the deposit system so that the deposit system thaws the frozen product amount in the payment account;
and receiving a successful unfreezing notice sent by the deposit system.
In the embodiment of the application, when the winning reservation number is determined based on the pre-configured drawing algorithm and the target reservation number is determined not to be the winning reservation number, the server acquires the payment account number carried in the reservation request corresponding to the target reservation number, and sends the unfreezing request carrying the payment account number and the product amount to the deposit system, so that the deposit system unfreezes the frozen product amount in the payment account number. And when the thawing of the deposit system is successful, sending a notification of successful thawing to the server.
Fig. 2 is a schematic diagram of a payment process provided in an embodiment of the present application, and as shown in fig. 2, the payment process includes:
s201: and receiving an input product release notification carrying a target product and an activity starting time and an activity ending time corresponding to the target product.
S202: and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each terminal.
S203: and if a reservation request carrying the payment account number and the target product to be reserved is received, allocating a target reservation number to the reservation request.
S204: and sending a freezing request carrying the product amount and the payment account number to a deposit system according to the pre-stored product amount corresponding to the target product.
S205: and determining the winning reservation number at the corresponding drawing time according to a pre-configured drawing algorithm.
S206: and if the target reservation number is the winning reservation number, sending a deduction request carrying the payment account number and the product amount to the deposit system.
Example 6:
fig. 3 is a schematic structural diagram of a payment apparatus according to an embodiment of the present application, where the apparatus includes:
the processing module 301 is configured to, if a reservation request carrying a payment account and a target product to be reserved is received, allocate a target reservation number to the reservation request;
a sending module 302, configured to send a freezing request carrying the product amount and the payment account to a deposit system according to a pre-stored product amount corresponding to the target product; and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
In a possible implementation manner, the processing module 301 is further configured to obtain a contact information carried in the reservation request;
the sending module 302 is further configured to send a winning notification to a winning client corresponding to the target reservation number according to the contact information.
In a possible embodiment, the apparatus further comprises:
the drawing module 303 is configured to obtain a middle and small plate finger and a deep evidence forming finger at the current time, and calculate a cardinal number according to the middle and small plate finger and the deep evidence forming finger; turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations; calculating the order according to the total number of the reservations and the number of target products saved in advance; sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number; and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
In a possible implementation, the drawing module 303 is specifically configured to determine a remainder of the number of turns divided by the total number of reservations; and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
In a possible embodiment, the apparatus further comprises:
a receiving module 304, configured to receive an input product release notification, where the product release notification carries a target product, and an activity start time and an activity end time corresponding to the target product;
the sending module 302 is further configured to send an activity notification carrying the activity start time, the activity end time, and the information of the target product to each server that is saved in advance.
In a possible implementation manner, if the target reservation number is not a winning reservation number, the sending module 302 is further configured to send a thawing request carrying the payment account and the product amount to the deposit system, so that the deposit system thaws the frozen product amount in the payment account;
the receiving module 304 is further configured to receive a notification of successful defrosting sent by the deposit system.
Example 7:
on the basis of the foregoing embodiments, an embodiment of the present application further provides an electronic device, and fig. 4 is a schematic structural diagram of the electronic device provided in the embodiment of the present application, as shown in fig. 4, including: the system comprises a processor 41, a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42 and the memory 43 complete mutual communication through the communication bus 44;
the memory 43 has stored therein a computer program which, when executed by the processor 41, causes the processor 41 to perform the steps of:
if a reservation request carrying a payment account number and a target product to be reserved is received, distributing a target reservation number for the reservation request;
sending a freezing request carrying the product amount and the payment account number to a deposit system according to a pre-stored product amount corresponding to the target product;
and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
In one possible embodiment, after determining that the target subscription number is a winning subscription number, the method further comprises:
acquiring a contact way carried in the reservation request;
and sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
In one possible embodiment, determining the winning reservation number includes:
acquiring middle and small plate fingers and deep evidence forming fingers at the current time, and calculating a base number according to the middle and small plate fingers and the deep evidence forming fingers;
turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations;
calculating the order according to the total number of the reservations and the number of target products saved in advance;
sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number;
and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
In one possible embodiment, said calculating a first sub-winning subscription number based on said number of rollover and a stored total number of reservations comprises:
determining a remainder of dividing the turnover number by the total reservation number;
and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
In a possible implementation manner, before the reservation request carrying the payment account and the target product to be reserved is received, the method further includes:
receiving an input product release notification, wherein the product release notification carries a target product, and an activity starting time and an activity ending time corresponding to the target product;
and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each server which is saved in advance.
In one possible embodiment, if the target subscription number is not a winning subscription number, the method further comprises:
sending a thawing request carrying the payment account and the product amount to the deposit system so that the deposit system thaws the frozen product amount in the payment account;
and receiving a successful unfreezing notice sent by the deposit system.
Because the principle of the electronic device for solving the problem is similar to the payment method, the implementation of the electronic device may refer to the embodiment of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface 42 is used for communication between the above-described electronic apparatus and other apparatuses. The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 8:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the processor is caused to execute the following steps:
if a reservation request carrying a payment account number and a target product to be reserved is received, distributing a target reservation number for the reservation request;
sending a freezing request carrying the product amount and the payment account number to a deposit system according to a pre-stored product amount corresponding to the target product;
and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
In one possible embodiment, after determining that the target subscription number is a winning subscription number, the method further comprises:
acquiring a contact way carried in the reservation request;
and sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
In one possible embodiment, determining the winning reservation number includes:
acquiring middle and small plate fingers and deep evidence forming fingers at the current time, and calculating a base number according to the middle and small plate fingers and the deep evidence forming fingers;
turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations;
calculating the order according to the total number of the reservations and the number of target products saved in advance;
sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number;
and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
In one possible embodiment, said calculating a first sub-winning subscription number based on said number of rollover and a stored total number of reservations comprises:
determining a remainder of dividing the turnover number by the total reservation number;
and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
In a possible implementation manner, before the reservation request carrying the payment account and the target product to be reserved is received, the method further includes:
receiving an input product release notification, wherein the product release notification carries a target product, and an activity starting time and an activity ending time corresponding to the target product;
and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each server which is saved in advance.
In one possible embodiment, if the target subscription number is not a winning subscription number, the method further comprises:
sending a thawing request carrying the payment account and the product amount to the deposit system so that the deposit system thaws the frozen product amount in the payment account;
and receiving a successful unfreezing notice sent by the deposit system.
Since the principle of the computer-readable storage medium to solve the problem is similar to the payment method, the implementation of the computer-readable storage medium can be referred to the embodiment of the method, and repeated details are not repeated.
Example 9:
the embodiment of the present application further provides a computer program product, which when executed by a computer implements the payment method described in any method embodiment applied to an electronic device.
In the above embodiments, the implementation may be realized in whole or in part by software, hardware, firmware, or any combination thereof, and may be realized in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions which, when loaded and executed on a computer, cause a process or function according to an embodiment of the application to be performed, in whole or in part.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A method of payment, the method comprising:
if a reservation request carrying a payment account number and a target product to be reserved is received, distributing a target reservation number for the reservation request;
sending a freezing request carrying the product amount and the payment account number to a deposit system according to a pre-stored product amount corresponding to the target product;
and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
2. The method of claim 1, wherein after determining the target subscription number as a winning subscription number, the method further comprises:
acquiring a contact way carried in the reservation request;
and sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
3. The method of claim 1, wherein determining winning reservation numbers comprises:
acquiring middle and small plate fingers and deep evidence forming fingers at the current time, and calculating a base number according to the middle and small plate fingers and the deep evidence forming fingers;
turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations;
calculating the order according to the total number of the reservations and the number of target products saved in advance;
sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number;
and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
4. The method of claim 3, wherein said calculating a first sub-winning subscription number based on said number of rollover and a stored total number of reservations comprises:
determining a remainder of dividing the turnover number by the total reservation number;
and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
5. The method of claim 1, wherein prior to receiving the reservation request carrying the payment account number and the target product to be reserved, the method further comprises:
receiving an input product release notification, wherein the product release notification carries a target product, and an activity starting time and an activity ending time corresponding to the target product;
and sending an activity notification carrying the information of the activity starting time, the activity ending time and the target product to each server which is saved in advance.
6. The method of claim 1, wherein if the target subscription number is not a winning subscription number, the method further comprises:
sending a thawing request carrying the payment account and the product amount to the deposit system so that the deposit system thaws the frozen product amount in the payment account;
and receiving a successful unfreezing notice sent by the deposit system.
7. A payment device, the device comprising:
the system comprises a processing module, a reservation module and a reservation module, wherein the processing module is used for distributing a target reservation number to a reservation request if the reservation request carrying a payment account number and a target product to be reserved is received;
the sending module is used for sending a freezing request carrying the product amount and the payment account number to a deposit system according to the pre-stored product amount corresponding to the target product; and if the target reservation number is determined to be a winning reservation number at the corresponding lottery drawing time according to a pre-configured drawing algorithm, sending a deduction request carrying the payment account number and the product amount to the deposit system so that the deposit system deducts the frozen product amount in the payment account number.
8. The apparatus according to claim 7, wherein the processing module is further configured to obtain a contact address carried in the reservation request;
and the sending module is also used for sending a winning notice to the winning client corresponding to the target reservation number according to the contact way.
9. The apparatus of claim 7, further comprising:
the drawing module is used for acquiring the middle and small plate fingers and the deep evidence forming fingers at the current time and calculating a cardinal number according to the middle and small plate fingers and the deep evidence forming fingers; turning over the base number to obtain the turning number, and calculating a first sub-winning appointment number according to the turning number and the stored total number of reservations; calculating the order according to the total number of the reservations and the number of target products saved in advance; sequentially increasing the orders of the first sub-winning reservation number until the total number of the reservations is reached, and acquiring each second sub-winning reservation number; and determining the first sub-winning reservation number and each second sub-winning reservation number as the winning reservation number.
10. The apparatus of claim 9, wherein the drawing module is further configured to determine a remainder of the number of flips divided by the total number of reservations; and determining the sum of the remainder and a preset numerical value as the first sub-winning reservation number.
11. The apparatus of claim 7, further comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an input product release notification, and the product release notification carries a target product and an activity starting time and an activity ending time corresponding to the target product;
the sending module is further configured to send an activity notification carrying the activity start time, the activity end time, and the information of the target product to each server that is pre-stored.
12. The apparatus of claim 7, wherein if the target reservation number is not a winning reservation number, the sending module is further configured to send a thawing request carrying the payment account and the product amount to the depository system, so that the depository system thaws the frozen product amount in the payment account;
the receiving module is further configured to receive a notification of successful thawing sent by the deposit system.
13. An electronic device, characterized in that the electronic device comprises a processor for implementing the steps of the payment method according to any one of claims 1-6 when executing a computer program stored in a memory.
14. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the payment method according to any one of claims 1-6.
15. A computer program product, the computer program product comprising: computer program code for causing a computer to carry out the steps of the payment method as claimed in any one of the preceding claims 1-6 when said computer program code is run on a computer.
CN202111532785.3A 2021-12-15 2021-12-15 Payment method, device, equipment and medium Pending CN114202082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111532785.3A CN114202082A (en) 2021-12-15 2021-12-15 Payment method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111532785.3A CN114202082A (en) 2021-12-15 2021-12-15 Payment method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114202082A true CN114202082A (en) 2022-03-18

Family

ID=80653901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111532785.3A Pending CN114202082A (en) 2021-12-15 2021-12-15 Payment method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114202082A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615274A (en) * 2008-06-25 2009-12-30 阿里巴巴集团控股有限公司 Utilize the method and system of communication terminal to pay
US20110040647A1 (en) * 2009-07-30 2011-02-17 Gabriel Johann Petrovici Fraud prevention trading and payment system for business and consumer
CN109284992A (en) * 2018-08-20 2019-01-29 中国平安人寿保险股份有限公司 On-line payment method, electronic equipment and computer storage medium based on big data
CN112085240A (en) * 2020-09-28 2020-12-15 中国建设银行股份有限公司 Method and system for processing transaction data of first-order commodities

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615274A (en) * 2008-06-25 2009-12-30 阿里巴巴集团控股有限公司 Utilize the method and system of communication terminal to pay
US20110040647A1 (en) * 2009-07-30 2011-02-17 Gabriel Johann Petrovici Fraud prevention trading and payment system for business and consumer
CN109284992A (en) * 2018-08-20 2019-01-29 中国平安人寿保险股份有限公司 On-line payment method, electronic equipment and computer storage medium based on big data
CN112085240A (en) * 2020-09-28 2020-12-15 中国建设银行股份有限公司 Method and system for processing transaction data of first-order commodities

Similar Documents

Publication Publication Date Title
CN107093141B (en) Product object processing method and device
CN109583998B (en) Credit value-based platform contract execution method and device
US20190114707A1 (en) Distribution of Blockchain Tokens
CN105225109A (en) A method and device for order processing
EP3093816A1 (en) Service platform provided with shopping mall system for providing service product according to sales record and product promotion system for providing promotional giveaway product according to product promotion, and service providing method
CN108428151A (en) Order splicing method and device
CN109034823A (en) risk identification method, device and server
US20240193662A1 (en) Object exchange assistant system
US20150088629A1 (en) System and methods for generating and providing offers to a user
CN112700237A (en) Payment management method and device, electronic equipment and storage medium
CN114202082A (en) Payment method, device, equipment and medium
CN113268347A (en) Virtual resource allocation method, device, storage medium and electronic device
CN117853111A (en) Quick payment method, device, equipment and computer readable storage medium
JP2018156206A (en) Voting device, voting method and voting program
CN111192113A (en) Order processing method, apparatus, equipment and storage medium
CN108156206A (en) A kind of data transfering method, server, client and system
CN112017037A (en) Method and system for pre-purchasing large-amount bank deposit
CN107688996A (en) A kind of method, apparatus and equipment for encouraging user
CN110570298A (en) Block chain-based digital currency periodic storage method and device
CN111126981A (en) A reward distribution method, device, electronic device and storage medium
KR20170091722A (en) Method and system for accrual and spending of small change transactions
CN115049085B (en) Bank branch appointment service reminder method and device
CN115547445B (en) Prescription task distribution method, device, equipment and storage medium
KR102376640B1 (en) System for expediting selling goods by using margin distribution according to success of event
CN108198003A (en) A kind of data processing method, device, equipment and system

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