CN111047312B - Code scanning payment method, mobile terminal and computer readable storage medium - Google Patents

Code scanning payment method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN111047312B
CN111047312B CN201911083464.2A CN201911083464A CN111047312B CN 111047312 B CN111047312 B CN 111047312B CN 201911083464 A CN201911083464 A CN 201911083464A CN 111047312 B CN111047312 B CN 111047312B
Authority
CN
China
Prior art keywords
consumption
amount
payment
historical
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911083464.2A
Other languages
Chinese (zh)
Other versions
CN111047312A (en
Inventor
赖祥林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201911083464.2A priority Critical patent/CN111047312B/en
Publication of CN111047312A publication Critical patent/CN111047312A/en
Application granted granted Critical
Publication of CN111047312B publication Critical patent/CN111047312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices

Abstract

The invention discloses a code scanning payment method, which comprises the following steps: acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request; acquiring account information of a receiving user according to the two-dimensional code; searching a historical consumption record of a payment user according to the account information; if the historical consumption record exists, generating a default consumption amount according to the historical consumption record; if the default consumption amount is equal to the payment amount, completing payment, and recording the consumption amount, the consumption date and the consumption time of the time; if the default consumption amount is not equal to the payment amount, directly inputting the payment amount, completing the payment, and recording the consumption amount, the consumption date and the consumption time of the time; the invention also discloses a mobile terminal and a computer readable storage medium for code scanning payment; according to the invention, through improving the traditional payment method, the default consumption amount is directly generated according to the historical consumption record, so that the time required by payment is reduced, and the payment efficiency is improved.

Description

Code scanning payment method, mobile terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of mobile payment, in particular to a code scanning payment method, a mobile terminal and a computer readable storage medium.
Background
With the continuous development of electronic technology, mobile terminals (such as smartphones, tablet computers, etc.) have more and more powerful functions, and play an indispensable important role in the work and life of people. The mobile payment of the mobile terminal provides great convenience for the user to consume, and the user can finish the payment by only scanning the two-dimension code of the receiving user.
The conventional code scanning payment process includes four steps of scanning a two-dimensional code, inputting an amount, confirming the amount, inputting a password (face recognition) and completing payment. However, when the user purchases the same commodity a plurality of times at the same merchant, the user is required to manually input the amount of consumption in the input box a plurality of times repeatedly, which certainly brings unnecessary trouble to the user, and a great amount of time is wasted.
Therefore, there is a need for a method that can reduce the time required for the user to pay the code-scanning payment to increase the payment efficiency.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a code scanning payment method, a mobile terminal and a computer readable storage medium, so as to achieve the effect of reducing the time required by code scanning payment of a user and improving the payment efficiency.
The aim of the invention is realized by the following technical scheme: a method of code-scanning payment, comprising:
acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
acquiring account information of a receiving user according to the two-dimensional code;
according to the account information, searching a historical consumption record of a payment user aiming at the account information;
if the historical consumption record exists, generating a default consumption amount according to the historical consumption record;
if the default consumption amount is equal to the payment amount, completing payment, and recording the consumption amount, the consumption date and the consumption time of the time;
if the default consumption amount is not equal to the payment amount, directly inputting the payment amount, completing the payment, and recording the consumption amount, the consumption date and the consumption time of the time.
Preferably, after searching the historical consumption record of the payment user for the account information, the method further comprises:
if no history consumption record exists, directly inputting payment amount, completing payment, and recording the current consumption amount, consumption date and consumption time.
Preferably, the historical consumption record includes a current consumption amount, a consumption date, and a consumption time.
Preferably, the method for generating a default consumption amount according to the historical consumption record comprises the following steps:
acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .. said set of historical consumption dates M comprises a subset T of historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .. wherein the set of historical consumption dates is arranged in order of n values from small to large, x } ni Representing the ith consumption time of the first n days;
the consumption time T is respectively combined with the consumption time x in the historical consumption time subset according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni Obtaining a new historical consumption date set X;
if the number of the sub-sets in the set X is more than 3, selecting the consumption amount corresponding to the first three consumption times in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
if the subset quantity=1, 2 or 3 in the set X, selecting the consumption amounts corresponding to all consumption times in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
and if the subset quantity=0 in the set X, selecting the consumption amount with the largest consumption ratio in the historical consumption record as a default consumption amount, wherein the consumption ratio is the ratio of the occurrence number of the same consumption amount to the total consumption number aiming at the account information.
By the technical scheme, the range of the person is limited, the types of merchants in the limited range of the person are limited, and the number of the merchants of the same type is more limited, so that the user can pay by scanning codes at the same merchant at different time points in one day; meanwhile, because the consumption purposes and the demands of people at different time points are not necessarily the same, the consumption amounts at different time points in a day are different in large probability; therefore, the limitation of the absolute value of the difference value can reduce the screening range, and the consumption record corresponding to the obtained set X is the same as the purpose and the requirement of the consumption at this time as much as possible by controlling the size of the range, so that the effect of improving the accuracy of generating the default consumption amount is achieved.
Meanwhile, since the consumption appeal and purpose change with the passage of time even if the user consumes at the same merchant in the same time period, in order to discover such change as early as possible, the number of consumption times selected from the set X needs to be limited; if the amount of the consumption is not limited, but is obtained by selecting the total consumption time, the change is covered, and the generated default consumption amount is inaccurate. Therefore, the consumption time obtained by selection is limited to 3, and the effect of improving the accuracy of generating the default consumption amount is achieved.
Preferably, the method for giving different weight values comprises the following steps:
if the selected consumption amount is 1 item, setting the weight value of the consumption amount corresponding to the selected consumption amount as A;
if the obtained consumption amount is 2 items, sequentially setting the weight values of the 2 items of consumption amount as A and B, wherein A is greater than B;
if the obtained consumption amount is 3 items, the weight values of the 3 items of consumption amount are sequentially set as A, B and C, wherein,
when the 3 consumption amounts are not equal or equal, A > B > C;
when 3 items of consumption Jin Ebu are equal, a < b+c, B < a+c, C < a+b.
More specifically, 3 consumption amounts corresponding to the consumption time are arranged according to the order in the set X:
assuming that the first consumption amount is YY, and the weight value is A;
assuming that the second consumption amount is EE and the weight value is B;
assuming that the third consumption amount is SS, and the weight value is C;
when YY is not equal to EE not equal to SS, according to A > B > C, selecting YY as default consumption amount;
when yy=ee=ss, according to a > B > C, selecting YY, EE, i.e., SS as the default consumption amount;
when yy=ee and EE is not equal to SS, selecting YY, EE, as a default consumption amount according to a+b > C;
when ee=ss and YY is not equal to EE, according to b+c > a, SS, i.e., EE is selected as the default consumption amount;
when yy=ss and yy+.ee, YY, i.e., SS, is selected as the default consumption amount according to a+c > B.
Preferably, the method for selecting the consumption amount with the largest consumption proportion in the historical consumption record as the default amount comprises the following steps:
if the consumption amount with the largest consumption ratio is not unique, selecting the consumption amount corresponding to the consumption time at the forefront among the consumption times as a default consumption amount according to the ordering of the consumption times corresponding to the consumption amounts with the largest consumption ratio in the set Y;
if the consumption amount with the largest consumption proportion is unique, the consumption amount is selected as the default consumption amount.
A mobile terminal comprising a memory, at least one processor, and at least one program stored on the memory and executable by the at least one processor, the at least one program implementing the code scanning method of any of the above when executed by the at least one processor.
A computer-readable storage medium storing at least one program executable by a computer, the at least one program, when executed by the computer, causing the computer to perform the steps of any one of the methods described above.
The beneficial effects of the invention are as follows:
1. the code scanning payment method can directly generate the default consumption amount, so that the default consumption amount can be used as the payment amount for payment during code scanning payment, and the effect of reducing the time required for payment and improving the payment efficiency is achieved.
2. The invention relates to a code scanning payment method, which is characterized in that the consumption time T and the consumption time X in the historical consumption subset are limited ni The absolute value of the difference value of the corresponding consumption record in the obtained set X is the same as the purpose and the requirement of the consumption, so that the effect of improving the accuracy of generating the default consumption amount is achieved.
3. According to the code scanning payment method, the number of consumption time selected from the set X is limited, so that the effect of improving the accuracy of generating the default consumption amount is achieved.
Drawings
FIG. 1 is a flow chart of a method of code scanning payment according to the present invention;
fig. 2 is a schematic block diagram of a mobile terminal according to the present invention.
Detailed Description
The following describes the technical scheme of the present invention in further detail with reference to fig. 1-2, but the scope of the present invention is not limited to the following description.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
The mobile terminal may include components such as an RF (Radio Frequency) unit, a WiFi module, an audio output unit, an a/V (audio/video) input unit, a sensor, a display unit, a user input unit, an interface unit, a memory, a processor, and a power supply. Those skilled in the art will appreciate that the above-described mobile terminal structure is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components, or may combine certain components, or a different arrangement of components.
The memory may be used to store software programs as well as various data. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor is a control center of the mobile terminal, and connects various parts of the whole mobile terminal by various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the mobile terminal. The processor may include at least one processing unit; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The mobile terminal may also include a power source (e.g., a battery) for powering the various components, and preferably the power source may be logically coupled to the processor by a power management system that performs functions such as managing charge, discharge, and power consumption.
Example 1
A mobile terminal for code-scanning payment, comprising:
the acquisition request module is used for acquiring a code scanning payment request and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
the acquisition information module is used for acquiring account information of the receiving user according to the two-dimensional code;
the searching and recording module is used for searching historical consumption records of a payment user aiming at the account information according to the account information;
the first control module is used for recording the current consumption amount, the current consumption date and the current consumption time if no historical consumption record exists;
the second control module is used for generating default expense amount according to the historical expense record if the historical expense record exists;
the amount judgment module is used for judging whether the default consumption amount is equal to the payment amount;
the third control module is used for finishing payment if the default consumption amount is equal to the payment amount and recording the consumption amount, the consumption date and the consumption time of the time;
and the fourth control module is used for directly inputting the payment amount if the default consumption amount is not equal to the payment amount, completing the payment, and recording the consumption amount, the consumption date and the consumption time of the time.
Optionally, the second control module includes:
an obtaining unit, configured to obtain a consumption time T of the current consumption and a historical consumption date set m= { T 0 ,t 1 ,t 2 ...t n .. the set of historical consumption dates M comprises a subset T of historical consumption times n days before the consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
a first processing unit for respectively comparing the consumption time T with the consumption time x in the historical consumption time subset according to the order of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni Obtaining a new historical consumption date set X;
a second processing unit for:
if the number of the sub-sets in the set X is more than 3, selecting the consumption amount corresponding to the first three consumption times in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
if the subset quantity in the set X=1, 2 or 3, selecting the consumption amount corresponding to all consumption time in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
if the subset number=0 in the set X, selecting the consumption amount with the largest consumption ratio in the historical consumption record as the default consumption amount, wherein the consumption ratio is the ratio of the occurrence number of the same consumption amount to the total consumption number aiming at the account information.
Optionally, the second processing unit includes:
the first assignment subunit is used for setting the weight value of the corresponding consumption amount as A if the selected consumption amount is 1 item;
the second assignment subunit is used for setting the weight values of the 2 consumption amounts as A and B in sequence if the selected consumption amount is 2, wherein A is more than B;
and the third assignment subunit is used for setting the weight values of the 3 consumption amounts as A, B and C in sequence if the selected consumption amount is 3.
And the screening subunit is used for selecting the consumption amount with the highest weight value as a default amount.
The first control subunit is used for selecting the consumption amount corresponding to the top consumption time as the default consumption amount according to the ordering of the consumption times corresponding to the consumption amounts with the largest consumption ratio in the set Y if the consumption amount with the largest consumption ratio is not unique;
and the second control subunit is used for selecting the consumption amount as a default consumption amount if the consumption amount with the largest consumption ratio is unique.
Example 2 (no history consumption record, direct input)
Store Date of consumption Consumption time Consumption goldFrontal Yuan
Nail armor 2019.10.01 8:00 5
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, no history consumption record exists, payment amount is manually input through an input box, and payment is completed;
s5, recording the current consumption amount, the current consumption date and the current consumption time.
Example 3 (historical consumption records, 1 consumption record in a preselected time frame, screening for a default amount that is unsatisfactory)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.03 8:10 6
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
Generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, respectively comparing the consumption time T with the consumption time x in the historical consumption time subsets according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni A new set of historical consumption dates X is obtained, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
S43. the number of subsets in the set x=1, selecting the consumption amount corresponding to the consumption time, and setting the weight value as a, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan Weight value
Nail armor 2019.10.01 8:00 5 A
S44, selecting the consumption amount (5 yuan) corresponding to the weight value A as a default consumption amount because the weight value A is the unique weight value;
s5, the default consumption amount is not equal to the payment amount, and the payment amount is manually input through an input box, so that payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
Example 4 (there are historic consumption records, there are 2 consumption records within a preselected time frame, and the default amount obtained by screening meets the requirements)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.03 8:05 6
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
Nail armor 2019.10.02 8:10 6
Generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, respectively comparing the consumption time T with the consumption time x in the historical consumption time subsets according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni A new set of historical consumption dates X is obtained, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.01 8:00 5
S43, selecting the consumption amount corresponding to all consumption time, and sequentially setting the weight values of the consumption amount as A and B, wherein the number of the sub-sets in the set X is=2, and the weight values are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan Weight value
Nail armor 2019.10.02 8:10 6 A
Nail armor 2019.10.01 8:00 5 B
S43, selecting the corresponding consumption amount (6 yuan) as a default consumption amount because A is larger than B;
s5, the default consumption amount is equal to the payment amount, and payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
Example 5 (with historic consumption records, 3 consumption records within preselected time frame, and partially equal consumption amount (A+B > C), the default amount obtained by screening is not satisfactory)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.04 8:20 7
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.03 8:05 6
Generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, consumption is to be performedThe time T is respectively connected with the consumption time x in the historical consumption time subset according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni A new set of historical consumption dates X is obtained, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.03 8:05 6
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.01 8:00 5
S43. the number of subsets in the set x=3, selecting the consumption amount corresponding to all consumption time, and sequentially setting the weight values of the consumption amounts as A, B and C, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan Weight value
Nail armor 2019.10.03 8:05 6 A
Nail armor 2019.10.02 8:10 6 B
Nail armor 2019.10.01 8:00 5 C
S43, selecting the consumption amount (6 yuan) corresponding to the A > B > C and the A+B > C as a default consumption amount;
s5, the default consumption amount is not equal to the payment amount, and the payment amount is manually input through an input box, so that payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
Example 6 (historical consumption records, consumption records within a preselected time frame greater than 3, and screened consumption amount is partially equal (B+C > A), and the screened default amount meets the requirements)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.06 7:55 6
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, respectively comparing the consumption time T with the consumption time x in the historical consumption time subsets according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni A new set of historical consumption dates X is obtained, as shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.05 7:50 7
Nail armor 2019.10.04 8:05 6
Nail armor 2019.10.04 8:10 6
Nail armor 2019.10.04 8:20 7
Nail armor 2019.10.01 8:00 5
S43, selecting the consumption amount corresponding to the first three consumption times in the set X, and sequentially setting the weight values of the consumption amounts as A, B and C, wherein the number of the sub-sets in the set X is more than 3, and the weight values are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan Weight value
Nail armor 2019.10.05 7:50 7 A
Nail armor 2019.10.04 8:05 6 B
Nail armor 2019.10.04 8:10 6 C
S43, selecting the consumption amount (6 yuan) corresponding to the A > B > C and B+C > A as a default consumption amount;
s5, the default consumption amount is equal to the payment amount, and payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
Example 7 (historical consumption records, no consumption records within a preselected time frame, unique consumption ratio, and screening of the default amount meeting the requirements)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.07 9:25 6
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.03 8:15 6
Nail armor 2019.10.04 8:08 7
Nail armor 2019.10.05 7:57 6
Generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, respectively comparing the consumption time T with the consumption time x in the historical consumption time subsets according to the sequence of the historical consumption date set M ni Making a difference to make it at t n The history is obtained by reordering the sequence from the absolute value of the difference value to the larger valueThe consumption date set Y is removed, and all subset consumption time x with the absolute value of the difference value larger than 30min is removed ni Obtaining a new historical consumption date set X;
s43, selecting the consumption amount with the largest consumption ratio in the historical consumption record as a default consumption amount (wherein the consumption ratio of 5 yuan is 20%, the consumption ratio of 6 yuan is 60%, the consumption ratio of 7 yuan is 20%, and the consumption ratio of 6 yuan is selected), wherein the consumption ratio is the ratio of the occurrence times of the same consumption amount to the total consumption times of the user;
s5, the default consumption amount is equal to the payment amount, and payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
Example 8 (historical consumption records, no consumption records within a preselected time frame, non-unique consumption ratio, screening of the default amount meeting the requirements)
Store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.08 10:47 7
A method of code scanning payment comprising the steps of:
s1, acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
s2, acquiring account information of a receiving user according to the two-dimensional code;
s3, searching a historical consumption record of a payment user aiming at the account information according to the account information;
s4, historical consumption records exist, and the historical consumption records are shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.01 8:00 5
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.03 8:15 7
Nail armor 2019.10.04 7:57 6
Nail armor 2019.10.04 8:08 7
Generating a default consumption amount according to the historical consumption record, specifically:
s41, acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .., a set of historical consumption dates M comprises a subset T of the historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., wherein the set of historical consumption dates is arranged in order of n values from small to large, x ni Representing the ith consumption time of the first n days;
s42, respectively comparing the consumption time T with the consumption time x in the historical consumption time subsets according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni Obtaining a new historical consumption date set X;
s43, selecting the consumption amount with the largest consumption ratio in the historical consumption record as a default consumption amount (wherein the consumption ratio of 5 yuan is 20%, the consumption ratio of 6 yuan is 40%, the consumption ratio of 7 yuan is 40%, and the consumption ratio is not unique) and is the ratio of the occurrence times of the same consumption amount to the total consumption times of the collection user;
s44, selecting the consumption amount corresponding to the top consumption time as a default consumption amount (7 yuan) according to the ordering of the consumption times corresponding to the consumption amounts with the largest consumption proportion in the set Y, wherein the set Y is shown in the following table:
store Date of consumption Consumption time Consumption amount Yuan
Nail armor 2019.10.04 8:08 7
Nail armor 2019.10.04 7:57 6
Nail armor 2019.10.03 8:15 7
Nail armor 2019.10.02 8:10 6
Nail armor 2019.10.01 8:00 5
S5, the default consumption amount is equal to the payment amount, and payment is completed;
s6, recording the current consumption amount, the current consumption date and the current consumption time.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (7)

1. A method of code-scanning payment, comprising:
acquiring a code scanning payment request, and scanning a two-dimensional code of a cash register user according to the code scanning payment request;
acquiring account information of a receiving user according to the two-dimensional code;
according to the account information, searching a historical consumption record of a payment user aiming at the account information;
if the historical consumption record exists, generating a default consumption amount according to the historical consumption record;
if the default consumption amount is equal to the payment amount, completing payment, and recording the consumption amount, the consumption date and the consumption time of the time;
if the default consumption amount is not equal to the payment amount, directly inputting the payment amount, completing the payment, and recording the consumption amount, the consumption date and the consumption time of the time;
a method of generating a default consumption amount from a historical consumption record, comprising:
acquiring the consumption time T of the current consumption and a historical consumption date set M= { T 0 ,t 1 ,t 2 ...t n .. said set of historical consumption dates M comprises a subset T of historical consumption times n days before said consumption time T n ={x n1 ,x n2 ...x ni .., whereinThe historical consumption date sets are arranged in the order of n values from small to large, and x is the number of the historical consumption date sets ni Representing the ith consumption time of the first n days;
the consumption time T is respectively combined with the consumption time x in the historical consumption time subset according to the sequence of the historical consumption date set M ni Making a difference to make it at t n Re-ordering the obtained historical consumption date set Y according to the order of the absolute values of the differences from small to large, and removing all subset consumption time x with the absolute values of the differences more than 30min ni Obtaining a new historical consumption date set X;
if the number of the sub-sets in the set X is more than 3, selecting the consumption amount corresponding to the first three consumption times in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
if the subset quantity=1, 2 or 3 in the set X, selecting the consumption amounts corresponding to all consumption times in the set X; giving different weight values, and selecting the consumption amount with the highest weight value as a default consumption amount;
and if the subset quantity=0 in the set X, selecting the consumption amount with the largest consumption ratio in the historical consumption record as a default consumption amount, wherein the consumption ratio is the ratio of the occurrence number of the same consumption amount to the total consumption number aiming at the account information.
2. The method of claim 1, further comprising, after searching for a historical consumption record of the payment user for the account information:
if no history consumption record exists, directly inputting payment amount, completing payment, and recording the current consumption amount, consumption date and consumption time.
3. A method of swipe code payment as claimed in claim 1 wherein the historical consumption record includes the current amount of consumption, date of consumption and time of consumption.
4. A method of swipe code payment as claimed in claim 1 wherein the method of assigning different weight values comprises:
if the obtained consumption amount is 1 item, setting the weight value of the corresponding consumption amount as A;
if the obtained consumption amount is 2 items, sequentially setting the weight values of the 2 items of consumption amount as A and B, wherein A is greater than B;
if the obtained consumption amount is 3 items, the weight values of the 3 items of consumption amounts are sequentially set as A, B and C, wherein,
when the 3 consumption amounts are not equal or equal, A > B > C;
when 3 items of consumption Jin Ebu are equal, a < b+c, B < a+c, C < a+b.
5. The method of claim 1, wherein selecting the consumption amount with the largest consumption ratio in the historical consumption record as the default consumption amount comprises:
if the consumption amount with the largest consumption ratio is not unique, selecting the consumption amount corresponding to the top consumption time as the default consumption amount according to the ordering of the consumption times corresponding to the consumption amounts with the largest consumption ratio in the set Y;
if the consumption amount with the largest consumption proportion is unique, the consumption amount is selected as the default consumption amount.
6. A mobile terminal comprising a memory, at least one processor, and at least one program stored on the memory and executable by the at least one processor, the at least one program, when executed by the at least one processor, implementing the swipe code payment method of any of claims 1-5.
7. A computer-readable storage medium storing at least one program executable by a computer, wherein the at least one program, when executed by the computer, causes the computer to perform the steps in the method of any one of the preceding claims 1 to 5.
CN201911083464.2A 2019-11-07 2019-11-07 Code scanning payment method, mobile terminal and computer readable storage medium Active CN111047312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911083464.2A CN111047312B (en) 2019-11-07 2019-11-07 Code scanning payment method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911083464.2A CN111047312B (en) 2019-11-07 2019-11-07 Code scanning payment method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111047312A CN111047312A (en) 2020-04-21
CN111047312B true CN111047312B (en) 2023-08-18

Family

ID=70232604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911083464.2A Active CN111047312B (en) 2019-11-07 2019-11-07 Code scanning payment method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111047312B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496402A (en) * 2020-04-01 2021-10-12 黑杰克科技有限公司 Method and device for inputting code scanning payment amount, storage medium and terminal equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105913239A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Method for self-adaptively setting default payment mode and device thereof
JP2017027542A (en) * 2015-07-28 2017-02-02 富士通フロンテック株式会社 Automatic transaction machine, automatic transaction method and automatic transaction system
CN106447324A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 Presentation method of payment methods and mobile terminal
CN107346488A (en) * 2017-06-21 2017-11-14 深圳市泰衡诺科技有限公司 The method and apparatus that barcode scanning is paid
CN108460591A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 Payment processing method and device, method of commerce and mobile device
CN109255606A (en) * 2018-08-31 2019-01-22 阿里巴巴集团控股有限公司 Default recommended method, device and the payment terminal of the means of payment
CN109447652A (en) * 2018-10-31 2019-03-08 广东小天才科技有限公司 A kind of quick payment method, device and equipment
CN110033362A (en) * 2018-11-14 2019-07-19 阿里巴巴集团控股有限公司 One kind beating money method, device and equipment
CN110189139A (en) * 2019-06-05 2019-08-30 阿里巴巴集团控股有限公司 Payment data processing method, device, equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017027542A (en) * 2015-07-28 2017-02-02 富士通フロンテック株式会社 Automatic transaction machine, automatic transaction method and automatic transaction system
CN105913239A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Method for self-adaptively setting default payment mode and device thereof
CN106447324A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 Presentation method of payment methods and mobile terminal
CN108460591A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 Payment processing method and device, method of commerce and mobile device
CN107346488A (en) * 2017-06-21 2017-11-14 深圳市泰衡诺科技有限公司 The method and apparatus that barcode scanning is paid
CN109255606A (en) * 2018-08-31 2019-01-22 阿里巴巴集团控股有限公司 Default recommended method, device and the payment terminal of the means of payment
CN109447652A (en) * 2018-10-31 2019-03-08 广东小天才科技有限公司 A kind of quick payment method, device and equipment
CN110033362A (en) * 2018-11-14 2019-07-19 阿里巴巴集团控股有限公司 One kind beating money method, device and equipment
CN110189139A (en) * 2019-06-05 2019-08-30 阿里巴巴集团控股有限公司 Payment data processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN111047312A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
US11640316B2 (en) Compiling and scheduling transactions in neural network processor
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
US10394753B2 (en) Conditional operation in an internal processor of a memory device
EP3486771B1 (en) Prediction of applications to be preloaded based on observed user behaviour and the order of starting the applications
US20220019875A1 (en) Compression of kernel data for neural network operations
US11200490B2 (en) Processing group convolution in neural network processor
CN103207773A (en) System And Method Of Processing Data Using Scalar/vector Instructions
CN111027854A (en) Comprehensive portrait index generation method based on enterprise big data and related equipment
CN111047312B (en) Code scanning payment method, mobile terminal and computer readable storage medium
CN110377342B (en) Video memory processing method and device based on convolutional neural network and storage medium
CN101441550B (en) Character input recognition method of multiple area, system and mobile terminal thereof
CN102508839B (en) Data processing device and data processing method
CN107872573B (en) Alarm clock setting method and terminal
CN106446823A (en) Method and device for identifying age of user and electronic equipment
CN101799796B (en) Touch-screen calculator and method thereof for performing multi-step operation on input data
CN117112941A (en) Dictionary acquisition method, dictionary acquisition device, computer device, storage medium, and program product
CN201383830Y (en) Full-screen phonebook system of cellphone
CN110837288B (en) Application management method and device, mobile terminal and readable storage medium
CN114840525A (en) Work order processing method and device
TWI643146B (en) Method for dynamically updating financial data and processing system using the same, and method for dynamically adjusting power configuration and processing system using the same
CN108491548A (en) Setting-out processing method based on map and device
CN102171641B (en) Information processing method and touch screen terminal
CN116074134B (en) Data acquisition method and acquisition instrument
US20230010197A1 (en) Methods and apparatuses for high performance and accuracy fixed-point batchnorm implementation
US20230229902A1 (en) Key-based comparison in neural engine circuit

Legal Events

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