CN115310979A - Data payment method and device, electronic equipment and storage medium - Google Patents
Data payment method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115310979A CN115310979A CN202210949813.XA CN202210949813A CN115310979A CN 115310979 A CN115310979 A CN 115310979A CN 202210949813 A CN202210949813 A CN 202210949813A CN 115310979 A CN115310979 A CN 115310979A
- Authority
- CN
- China
- Prior art keywords
- payment
- data
- amount
- data according
- type
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 106
- 230000014509 gene expression Effects 0.000 claims abstract description 51
- 230000000052 comparative effect Effects 0.000 claims abstract description 11
- 238000012163 sequencing technique Methods 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 40
- 238000004590 computer program Methods 0.000 claims description 13
- 238000010276 construction Methods 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 230000011218 segmentation Effects 0.000 claims description 3
- 238000012011 method of payment Methods 0.000 abstract 1
- 238000000889 atomisation Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000007726 management method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/405—Establishing or using transaction specific rules
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Economics (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention relates to the field of data processing, and discloses a data payment method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring payment data, identifying a time attribute and a payment attribute of the payment data, and determining a payment type of the payment data according to the time attribute and the payment attribute; determining a payment method of payment data, setting a comparative expression of the payment data according to the payment method, identifying a value function of the comparative expression, and constructing a payment judgment condition of the payment data according to the value function; determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type; extracting the payment period number of the payment rule, identifying the payment amount in the payment period number, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence; and determining the payment result of the payment data according to the amount key value pair. The invention can reduce the limitation of the payment method.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a data payment method, apparatus, electronic device, and computer-readable storage medium.
Background
The payment method is a process that after a user borrows money from a platform, due to the fact that payment time is different from payment times, payment needs to be carried out according to a certain payment rule.
At present, the payment rule of a platform is basically code-written, when a service needs to adjust a payment sequence or a payment fee type sequence, a large number of codes need to be changed, and when the service wants to pay according to different payment conditions and according to a certain specific sequence and a specific fee type, the whole payment code needs to be completely reconstructed. Such as: the safe bank platform is characterized in that a former user only borrows data, then the payment rule is that the earliest principal penalty or penalty book is returned, when the user is 180 days out, all the principal penalties are required to be returned, then interest and penalty are required to be returned, and at the moment, the platform code cannot be used at all, and the code needs to be rewritten. Thus, the payment method has limitations.
Disclosure of Invention
The invention provides a data payment method, a data payment device, electronic equipment and a computer readable storage medium, and mainly aims to reduce the limitation of the payment method.
In order to achieve the above object, the present invention provides a data payment method, including:
the method comprises the steps of obtaining payment data stored in a designated server, identifying time attributes and payment attributes of the payment data, and determining the payment type of the payment data according to the time attributes and the payment attributes;
determining a payment method of the payment data according to the payment type, setting a comparative expression of the payment data according to a preset rule according to the payment method, identifying a value function of the comparative expression, and constructing a payment judgment condition of the payment data according to the value function;
determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type;
extracting the payment period number of the payment rule, identifying the payment amount in the payment period number, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence;
and determining the payment result of the payment data according to the amount key value pair.
Optionally, the identifying a time attribute and a payment attribute of the payment data includes:
performing word block segmentation on the payment data to obtain payment word blocks;
extracting key word blocks in the payment word blocks, and identifying the word block types of the key word blocks;
and identifying the time attribute and the payment attribute of the payment data according to the word block type.
Optionally, the determining the payment type of the payment data according to the time attribute and the payment attribute includes:
checking whether the time attribute accords with a preset time and whether the payment attribute accords with a preset amount;
when the time attribute accords with preset time and the payment attribute accords with a preset amount, determining that the payment type of the payment data is a normal type;
and when the time attribute does not accord with the preset time or the payment attribute does not accord with the preset amount, determining that the payment type of the payment data is an abnormal type.
Optionally, the setting of the comparison expression of the payment data according to the payment method and a preset rule includes:
identifying a method type of the payment method and a numerical size of the payment data;
matching a target expression of the payment data according to a preset rule according to the method type and the numerical value;
and setting a comparison expression of the payment data according to the target expression.
Optionally, the constructing a payment judgment condition of the payment data according to the payment method includes:
identifying a time value and a payment value for the payment method;
setting payment value logic of the payment data according to the time value and the payment value;
and determining a payment judgment condition of the payment data according to the payment value taking logic.
Optionally, the constructing a payment rule of the payment data according to the condition judgment result and the payment type includes:
positioning a term judgment result and an amount judgment result of the payment data according to the condition judgment result and the payment type;
calculating a period difference value between the period judgment result and a preset standard period and a value difference value between the value judgment result and a preset standard value by using the following formulas:
p=|w-n|
q=|u-v|
wherein p represents the phase difference, q represents the amount difference, w represents the phase judgment result, n represents the preset standard phase, u represents the amount judgment result, and v represents the preset standard amount;
and setting a payment rule of the payment data according to the term difference value and the amount difference value.
Optionally, identifying the payment amount in the payment session using the following formula:
W=X*Y+(X-x)*r*t
wherein W represents a payment amount in the payment session, X represents a principal, Y represents the payment session, X represents a principal that has been paid, r represents a daily interest rate, and t represents a number of days within the payment session.
In order to solve the above problem, the present invention further provides a data payment method apparatus, including:
the payment type determining module is used for acquiring payment data stored in a designated server, identifying a time attribute and a payment attribute of the payment data, and determining the payment type of the payment data according to the time attribute and the payment attribute;
the judgment condition construction module is used for determining a payment method of the payment data according to the payment type, setting a comparison expression of the payment data according to the payment method and a preset rule, identifying a value function of the comparison expression, and constructing a payment judgment condition of the payment data according to the value function;
the payment rule building module is used for determining a condition judgment result of the payment data according to the payment judgment condition and building a payment rule of the payment data according to the condition judgment result and the payment type;
a key value pair construction module, configured to extract the payment period of the payment rule, identify the payment amount in the payment period, sort the payment amount to obtain an amount sequence, and construct an amount key value pair of the amount sequence;
and the payment result determining module is used for determining the payment result of the payment data according to the amount key value pair.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to implement the data payment method described above.
In order to solve the above problem, the present invention also provides a computer-readable storage medium having at least one computer program stored therein, the at least one computer program being executed by a processor in an electronic device to implement the data payment method described above.
It can be seen that the embodiment of the present invention first obtains the payment data stored in the designated server to perform an atomization process on the payment data. The payment data refers to the fee to be paid by the user and the installment of payment, further, the embodiment of the present invention identifies the time attribute and the payment attribute of the payment data to be used for performing the atomization processing on the payment data from multiple dimensions, further, the embodiment of the present invention determines the payment type of the payment data according to the time attribute and the payment attribute to be used for judging whether the payment data is overdue type data or normal payment deadline data, further, the embodiment of the present invention determines the payment method of the payment data according to the payment type to be used for subdividing the payment rule of the payment data, further, the embodiment of the present invention sets the comparison expression of the payment data according to the preset rule according to the payment method, the payment data processing method comprises the steps of comparing the payment data by size, identifying a value function of a comparison expression to determine the relation between the payment data and the comparison expression, constructing a payment judgment condition of the payment data according to the value function to further judge each payment method, and promoting atomization of payment data subdivision, determining a condition judgment result of the payment data according to the payment judgment condition to set a corresponding payment specification according to a data judgment result of the payment data, and constructing a payment rule of the payment data according to the condition judgment result and the payment type to borrow according to different conditions, the payment is realized by using the corresponding payment rule, further, the payment period of the payment rule is extracted to be used for determining the payment time of the payment data and ensuring that the user pays within a specified period, further, the payment amount in the payment period is identified to be used for determining the amount of money required to be paid by each period of the user, further, the payment amount is sequenced to obtain an amount sequence to be used for paying the amount according to the time sequence, and the data orderliness is improved. Further, in an embodiment of the present invention, the payment result of the payment data is determined according to the amount key-value pair, and is used for realizing the amount payment according to the ordered key-value pair. Therefore, the data payment method, the data payment device, the electronic equipment and the computer-readable storage medium provided by the embodiment of the invention can reduce the limitation of the payment method.
Drawings
Fig. 1 is a schematic flow chart of a data payment method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a data payment method and apparatus according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing a data payment method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a data payment method. The execution subject of the data payment method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiment of the present invention. In other words, the data payment method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of a data payment method according to an embodiment of the present invention. In the embodiment of the invention, the payment method comprises the following steps S1-S5:
s1, obtaining payment data stored in a designated server, identifying a time attribute and a payment attribute of the payment data, and determining a payment type of the payment data according to the time attribute and the payment attribute.
The embodiment of the invention is used for carrying out atomization processing on the payment data by acquiring the payment data stored in the appointed server. The payment data refers to the fee to be paid by the user and the term of payment. The designated server refers to a data server specially providing network data access.
Further, the embodiment of the invention is used for performing atomization processing on the payment data from multiple dimensions by identifying the time attribute and the payment attribute of the payment data. The time attribute refers to normal payment time, overdue time, number of days to be paid and the like of the payment data. The payment attributes refer to principal, overdue fee, interest and the like of the payment data.
In an embodiment of the present invention, the identifying the time attribute and the payment attribute of the payment data includes: performing word block segmentation on the payment data to obtain payment word blocks; extracting key word blocks in the payment word blocks, and identifying the word block types of the key word blocks; and identifying the time attribute and the payment attribute of the payment data according to the word block type.
Illustratively, a string of payment data "ABCDEF" is segmented into "A, B, C, D, E, F", irrelevant words in the payment word block are removed, useful key words are extracted, whether the type of the words is a time type or an amount type is judged, and finally the time attribute and the payment attribute are determined.
Further, the embodiment of the present invention determines the payment type of the payment data according to the time attribute and the payment attribute, so as to determine whether the payment data is overdue data or normal payment deadline data. The payment type refers to a time type corresponding to the time attribute and a payment type corresponding to the payment attribute, wherein the time type includes whether the time is overdue or not, whether the time is within a specified period or not, and the payment type refers to whether the cost is principal, interest or penalty, and the like.
In an embodiment of the present invention, the determining the payment type of the payment data according to the time attribute and the payment attribute includes: checking whether the time attribute accords with a preset time and whether the payment attribute accords with a preset amount; when the time attribute accords with preset time and the payment attribute accords with a preset amount, determining that the payment type of the payment data is a normal type; and when the time attribute does not accord with the preset time or the payment attribute does not accord with the preset amount, determining that the payment type of the payment data is an abnormal type.
The normal type refers to data of which the payment data is not an overdue type, and the abnormal type is opposite to the normal type.
S2, determining a payment method of the payment data according to the payment type, setting a comparison expression of the payment data according to a preset rule according to the payment method, identifying a value function of the comparison expression, and constructing a payment judgment condition of the payment data according to the value function.
According to the payment type, the payment method of the payment data is determined, so that the payment rule of the payment data is subdivided. The payment method is to pay in a principal plus interest mode within normal set time when the payment type is the normal type, and pay in a principal plus interest plus penalty mode with limited overdue time when the payment type is the abnormal type.
In an embodiment of the present invention, the determining the payment method of the payment data according to the payment type is implemented by determining whether the payment type is the normal type.
Further, the embodiment of the present invention sets the comparison expression of the payment data according to the payment method and a preset rule, so as to compare the size of the payment data. Wherein, the comparison expression refers to a relation operator, including > > = < = = = |)! = = = = (identity) |)! = (constant not equal), etc. The preset rule is a matching rule of payment data with different sizes and corresponding comparison expressions, for example, when the payment method is a principal of 100 yuan, the purchase principal of the product purchased by the user is displayed in the preset rule to include integer forms of 100 yuan, 200 yuan, 300 yuan and the like, and then the principal of 100 yuan is consistent with the content in the preset rule, and then the corresponding comparison expression matched with the payment data is = = = = (= identity).
In an embodiment of the present invention, the setting a comparison expression of the payment data according to the payment method includes: identifying a method type of the payment method and a numerical size of the payment data; matching a target expression of the payment data according to a preset rule according to the method type and the numerical value; and setting a comparison expression of the payment data according to the target expression.
Exemplarily, the method type of the payment method is identified as a principal method, the numeric size of the payment data is 100 yuan, and the matching target expression may be = = = (identity), which indicates whether the user payment amount is equal to 100 yuan.
Further, embodiments of the present invention identify a cost function of the comparison expression for determining a relationship between the payment data and the comparison expression. Wherein the cost function comprises a left value and a right value, namely leftValue and rightValue, representing a left value and a right value in the comparison expression, and a relationship between the left value and the right value represents that the right value is assigned to the left value.
In an embodiment of the present invention, the identifying the cost function of the comparison expression is implemented by identifying a position relationship between the payment data and the comparison expression.
Further, according to the value function, the payment judgment condition of the payment data is constructed to be used for further judging each payment method, and atomization of payment data subdivision is improved. The payment judgment condition refers to a judgment condition for judging time and amount in the payment method, for example, whether the number of overdue days is less than 80 days is judged.
In an embodiment of the present invention, the constructing the payment judgment condition of the payment data according to the cost function includes: identifying a time value and a payment value of the payment data; setting payment value logic of the payment data according to the time value and the payment value; and establishing a payment judgment condition of the payment data by using an expression function according to the payment value logic and the value function.
Wherein, the expression function refers to an expression function. Exemplarily, identifying that the time value and the payment value of the payment method are overdue days and penalty, determining a value logic whether the overdue days are less than 80 days, configuring the payment judgment condition by utilizing leftValue, rightValue and expresson, wherein the leftValue and the rightValue can be set with specific value logic, common comparison is equal, a comparison expression can be directly set in the expresson if the values are greater than or less than or equal to the values, the complex logic needs to use a specific implementation class, and then outputting a corresponding judgment result).
And S3, determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type.
According to the payment judgment condition, the condition judgment result of the payment data is determined, so that the corresponding payment specification is set according to the data judgment result of the payment data.
In an embodiment of the present invention, the determining, according to the payment judgment condition, a condition judgment result of the payment data includes: matching the payment data with the payment judgment condition; when the payment data is successfully matched with the payment judgment condition, determining that the condition judgment result condition of the payment data is in accordance with the condition judgment result condition; and when the matching of the payment data and the payment judgment condition fails, determining that the condition judgment result condition of the payment data does not conform.
Further, in the embodiment of the present invention, a payment rule of the payment data is constructed according to the condition determination result and the payment type, so as to realize payment according to the borrowing under different conditions by using the corresponding payment rule. The payment rule refers to a rule corresponding to the condition judgment result, for example, when the judgment condition is that the number of overdue days is less than 80 days, the payment rule is set to be returned according to the number of overdue days.
In an embodiment of the present invention, the constructing a payment rule of the payment data according to the condition determination result and the payment type includes: positioning the current judgment result and the amount judgment result of the payment data according to the condition judgment result and the payment type; calculating a period difference value between the period judgment result and a preset standard period and an amount difference value between the amount judgment result and a preset standard amount by using the following formulas:
p=|w-n|
q=|u-v|
wherein p represents the phase difference, q represents the amount difference, w represents the phase judgment result, n represents the preset standard phase, u represents the amount judgment result, and v represents the preset standard amount;
and setting a payment rule of the payment data according to the term difference value and the amount difference value.
Illustratively, when the term judgment result is overdue 1 term, and the amount judgment result is a pending amount of 1000 yuan, calculating a term difference value between the term judgment result 1 term and a preset standard term 3 term to be 2 terms, calculating an amount difference value between the amount judgment result and a preset standard amount to be 50 yuan, judging that the difference between 50 yuan and the total loanable amount 1 ten thousand is large, and the difference between the term 2 and the total loanable period 12 term is small, and constructing the payment rule according to the term as the basis of the payment rule to pay according to the term.
S4, extracting the payment period number of the payment rule, identifying the payment amount in the payment period number, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence.
The payment period number of the payment rule is extracted to be used for determining the payment time of the payment data, so that the user can be ensured to pay within the specified period.
In an embodiment of the present invention, the extracting the payment installments of the payment rule is implemented by identifying a type of a product paid by a user in the payment rule.
Illustratively, if the user's payment product type is a weekly loan product, this indicates that the user needs to pay for payment in turn every 7 days.
Further, the embodiment of the invention identifies the payment amount in the payment installments to be used for determining the amount of money to be paid by the user in each installment.
In one embodiment of the invention, the payment amount in the payment period is identified using the following formula:
W=X*Y+(X-x)*r*t
wherein W represents a payment amount in the payment period, X represents a principal, Y represents the payment period, X represents a principal that has been paid, r represents a daily interest rate, and t represents a number of days within the payment period.
Further, the amount sequence is obtained by sequencing the payment amount, so that the payment amount is paid according to the time sequence, and the data orderliness is improved.
In an embodiment of the present invention, the amount ordering is performed on the payment amount to obtain an amount sequence, and the ordering is performed in a time sequence from small to large.
Further, the embodiment of the invention constructs the amount key-value pairs of the amount sequence to be used for expressing irregular calculation data in a standard key-value pair mode.
In an embodiment of the present invention, the constructing a value key-value pair of the value sequence includes: extracting dictionary types in the amount sequence; constructing a value key value of the value sequence according to the dictionary type; and determining the amount key value pair of the amount sequence according to the dictionary type and the amount key value.
Illustratively, if the dictionary types in the amount sequence are extracted as principal, interest and penalty, adding key values to the dictionary types according to a { dictionary } [ key value ] = value format, and adding the key values to the right side of the equal sign, so that after the codes are operated, the key values on the left side are changed accordingly, and thus a constructed key value pair is obtained.
And S5, determining the payment result of the payment data according to the amount key value pair.
According to the amount key value pair, the payment result of the payment data is determined, and the payment result is used for realizing amount payment according to the ordered key value pair.
In an embodiment of the present invention, the determining the payment result of the payment data according to the amount key-value pair is implemented by using an order of the amount key-value pair.
Illustratively, if the order of the amount key-value pairs is a penalty, then the order of the text is used to pay the amount corresponding to each dictionary type.
It can be seen that, in the embodiment of the present invention, the payment data stored in the designated server is obtained first, so as to perform an atomization process on the payment data. The payment data refers to the fee to be paid by the user and the installment of payment, further, the embodiment of the present invention identifies the time attribute and the payment attribute of the payment data to be used for performing the atomization processing on the payment data from multiple dimensions, further, the embodiment of the present invention determines the payment type of the payment data according to the time attribute and the payment attribute to be used for judging whether the payment data is overdue type data or normal payment deadline data, further, the embodiment of the present invention determines the payment method of the payment data according to the payment type to be used for subdividing the payment rule of the payment data, further, the embodiment of the present invention sets the comparison expression of the payment data according to the preset rule according to the payment method, the payment data processing method comprises the steps of comparing the payment data by size, identifying a value function of a comparison expression to determine the relation between the payment data and the comparison expression, constructing a payment judgment condition of the payment data according to the value function to further judge each payment method, and promoting atomization of payment data subdivision, determining a condition judgment result of the payment data according to the payment judgment condition to set a corresponding payment specification according to a data judgment result of the payment data, and constructing a payment rule of the payment data according to the condition judgment result and the payment type to borrow according to different conditions, the payment is realized by using the corresponding payment rule, further, the payment period of the payment rule is extracted to be used for determining the payment time of the payment data and ensuring that the user pays within a specified period, further, the payment amount in the payment period is identified to be used for determining the amount of money required to be paid by each period of the user, further, the payment amount is sequenced to obtain an amount sequence to be used for paying the amount according to the time sequence, and the data orderliness is improved. Further, in an embodiment of the present invention, the payment result of the payment data is determined according to the amount key-value pair, and is used for realizing the amount payment according to the ordered key-value pair. Therefore, the data payment method provided by the embodiment of the invention can reduce the limitation of the payment method.
Fig. 2 is a functional block diagram of the data payment method and apparatus of the present invention.
The data payment method and device 100 of the invention can be installed in an electronic device. According to the implemented functions, the payment method apparatus may include a payment type determining module 101, a judgment condition constructing module 102, a payment rule constructing module 103, a key-value pair constructing module 104, and a payment result determining module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and is stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the payment type determining module 101 is configured to obtain payment data stored in a designated server, identify a time attribute and a payment attribute of the payment data, and determine a payment type of the payment data according to the time attribute and the payment attribute;
the judgment condition construction module 102 is configured to determine a payment method of the payment data according to the payment type, set a comparison expression of the payment data according to a preset rule according to the payment method, identify a cost function of the comparison expression, and construct a payment judgment condition of the payment data according to the cost function;
the payment rule building module 103 is configured to determine a condition judgment result of the payment data according to the payment judgment condition, and build a payment rule of the payment data according to the condition judgment result and the payment type;
the key-value pair construction module 104 is configured to extract the payment period of the payment rule, identify the payment amount in the payment period, sort the payment amount to obtain an amount sequence, and construct an amount key-value pair of the amount sequence;
the payment result determining module 105 is configured to determine a payment result of the payment data according to the amount key value pair.
In detail, when the modules in the data payment method apparatus 100 in the embodiment of the present invention are used, the same technical means as the payment method described in fig. 1 above are used, and the same technical effect can be produced, which is not described herein again.
Fig. 3 is a schematic structural diagram of an electronic device 1 implementing the data payment method according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a payment method program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device 1, connects various components of the electronic device 1 by using various interfaces and lines, and executes various functions of the electronic device 1 and processes data by running or executing programs or modules (for example, executing a payment method program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of payment method programs, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device 1 and other devices, and includes a network interface and an employee interface. Optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device 1 and another electronic device 1. The employee interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visual staff interface.
Fig. 3 shows only the electronic device 1 with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the embodiments described are for illustrative purposes only and that the scope of the claimed invention is not limited to this configuration.
The payment method program stored in the memory 11 of the electronic device 1 is a combination of computer programs that, when run in the processor 10, implement:
the method comprises the steps of obtaining payment data stored in a designated server, identifying a time attribute and a payment attribute of the payment data, and determining the payment type of the payment data according to the time attribute and the payment attribute;
determining a payment method of the payment data according to the payment type, setting a comparative expression of the payment data according to a preset rule according to the payment method, identifying a value function of the comparative expression, and constructing a payment judgment condition of the payment data according to the value function;
determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type;
extracting the payment period of the payment rule, identifying the payment amount in the payment period, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence;
and determining the payment result of the payment data according to the amount key value pair.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
The invention also provides a computer-readable storage medium, in which a computer program is stored, which computer program, when executed by a processor of an electronic device 1, enables:
the method comprises the steps of obtaining payment data stored in a designated server, identifying time attributes and payment attributes of the payment data, and determining the payment type of the payment data according to the time attributes and the payment attributes;
determining a payment method of the payment data according to the payment type, setting a comparative expression of the payment data according to a preset rule according to the payment method, identifying a value function of the comparative expression, and constructing a payment judgment condition of the payment data according to the value function;
determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type;
extracting the payment period number of the payment rule, identifying the payment amount in the payment period number, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence;
and determining a payment result of the payment data according to the amount key value pair.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not to denote any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A method of data payment, the method comprising:
the method comprises the steps of obtaining payment data stored in a designated server, identifying time attributes and payment attributes of the payment data, and determining the payment type of the payment data according to the time attributes and the payment attributes;
determining a payment method of the payment data according to the payment type, setting a comparative expression of the payment data according to a preset rule according to the payment method, identifying a value function of the comparative expression, and constructing a payment judgment condition of the payment data according to the value function;
determining a condition judgment result of the payment data according to the payment judgment condition, and constructing a payment rule of the payment data according to the condition judgment result and the payment type;
extracting the payment period number of the payment rule, identifying the payment amount in the payment period number, sequencing the payment amount to obtain an amount sequence, and constructing an amount key value pair of the amount sequence;
and determining the payment result of the payment data according to the amount key value pair.
2. A data payment method as claimed in claim 1, wherein the identifying a time attribute and a payment attribute of the payment data comprises:
carrying out word block segmentation on the payment data to obtain payment word blocks;
extracting key word blocks in the payment word blocks, and identifying the word block types of the key word blocks;
and identifying the time attribute and the payment attribute of the payment data according to the word block type.
3. A data payment method as claimed in claim 1, wherein said determining a payment type for the payment data from the time attribute and the payment attribute comprises:
checking whether the time attribute accords with a preset time and whether the payment attribute accords with a preset amount;
when the time attribute accords with preset time and the payment attribute accords with a preset amount, determining that the payment type of the payment data is a normal type;
and when the time attribute does not accord with the preset time or the payment attribute does not accord with the preset amount, determining that the payment type of the payment data is an abnormal type.
4. The data payment method of claim 1, wherein the setting of the comparative expression of the payment data according to the payment method according to a preset rule comprises:
identifying a method type of the payment method and a numerical size of the payment data;
matching a target expression of the payment data according to a preset rule according to the method type and the numerical value;
and setting a comparison expression of the payment data according to the target expression.
5. A data payment method according to claim 1, wherein said constructing a payment decision condition for said payment data based on said cost function comprises:
identifying a time value and a payment value of the payment data;
setting payment value logic of the payment data according to the time value and the payment value;
and establishing a payment judgment condition of the payment data by using an expression function according to the payment value logic and the value function.
6. A data payment method according to claim 1, wherein the constructing of the payment rules of the payment data according to the conditional judgment result and the payment type comprises:
positioning the current judgment result and the amount judgment result of the payment data according to the condition judgment result and the payment type;
calculating a period difference value between the period judgment result and a preset standard period and a value difference value between the value judgment result and a preset standard value by using the following formulas:
p=|w-n|
q=|u-v|
wherein p represents the phase difference, q represents the amount difference, w represents the phase judgment result, n represents the preset standard phase, u represents the amount judgment result, and v represents the preset standard amount;
and setting a payment rule of the payment data according to the term difference value and the amount difference value.
7. A data payment method as claimed in any one of claims 1 to 5 wherein the payment amount in the payment session is identified using the formula:
W=X*Y+(X-x)*r*t
wherein W represents a payment amount in the payment period, X represents a principal, Y represents the payment period, X represents a principal that has been paid, r represents a daily interest rate, and t represents a number of days within the payment period.
8. A data payment method apparatus, the apparatus comprising:
the payment type determining module is used for acquiring payment data stored in a designated server, identifying a time attribute and a payment attribute of the payment data, and determining the payment type of the payment data according to the time attribute and the payment attribute;
the judgment condition construction module is used for determining a payment method of the payment data according to the payment type, setting a comparison expression of the payment data according to the payment method and a preset rule, identifying a value function of the comparison expression, and constructing a payment judgment condition of the payment data according to the value function;
the payment rule building module is used for determining a condition judgment result of the payment data according to the payment judgment condition and building a payment rule of the payment data according to the condition judgment result and the payment type;
a key value pair construction module, configured to extract the payment period of the payment rule, identify the payment amount in the payment period, sort the payment amount to obtain an amount sequence, and construct an amount key value pair of the amount sequence;
and the payment result determining module is used for determining the payment result of the payment data according to the amount key value pair.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a data payment method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a data payment method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210949813.XA CN115310979A (en) | 2022-08-09 | 2022-08-09 | Data payment method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210949813.XA CN115310979A (en) | 2022-08-09 | 2022-08-09 | Data payment method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115310979A true CN115310979A (en) | 2022-11-08 |
Family
ID=83860287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210949813.XA Pending CN115310979A (en) | 2022-08-09 | 2022-08-09 | Data payment method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115310979A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117474534A (en) * | 2023-12-26 | 2024-01-30 | 成都天府通数字科技有限公司 | Management system for conditional payment |
-
2022
- 2022-08-09 CN CN202210949813.XA patent/CN115310979A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117474534A (en) * | 2023-12-26 | 2024-01-30 | 成都天府通数字科技有限公司 | Management system for conditional payment |
CN117474534B (en) * | 2023-12-26 | 2024-03-19 | 成都天府通数字科技有限公司 | Management system for conditional payment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112380859A (en) | Public opinion information recommendation method and device, electronic equipment and computer storage medium | |
CN114663198A (en) | Product recommendation method, device and equipment based on user portrait and storage medium | |
CN112380454A (en) | Training course recommendation method, device, equipment and medium | |
CN115081538A (en) | Customer relationship identification method, device, equipment and medium based on machine learning | |
CN111950621A (en) | Target data detection method, device, equipment and medium based on artificial intelligence | |
CN113868528A (en) | Information recommendation method and device, electronic equipment and readable storage medium | |
CN114881616A (en) | Business process execution method and device, electronic equipment and storage medium | |
CN113051480A (en) | Resource pushing method and device, electronic equipment and storage medium | |
CN113807553A (en) | Method, device, equipment and storage medium for analyzing number of reservation services | |
CN113887941A (en) | Business process generation method and device, electronic equipment and medium | |
CN115936886A (en) | Failure detection method, device, equipment and medium for heterogeneous security trading system | |
CN114185776A (en) | Big data point burying method, device, equipment and medium for application program | |
CN114547696A (en) | File desensitization method and device, electronic equipment and storage medium | |
CN115310979A (en) | Data payment method and device, electronic equipment and storage medium | |
CN111950707B (en) | Behavior prediction method, device, equipment and medium based on behavior co-occurrence network | |
CN113627160A (en) | Text error correction method and device, electronic equipment and storage medium | |
CN112633988A (en) | User product recommendation method and device, electronic equipment and readable storage medium | |
CN111429085A (en) | Contract data generation method and device, electronic equipment and storage medium | |
CN116188189A (en) | Data checking method, device, equipment and medium | |
CN114816371B (en) | Message processing method, device, equipment and medium | |
CN114996386A (en) | Business role identification method, device, equipment and storage medium | |
CN114372892A (en) | Payment data monitoring method, device, equipment and medium | |
CN114840388A (en) | Data monitoring method and device, electronic equipment and storage medium | |
CN113344674A (en) | Product recommendation method, device, equipment and storage medium based on user purchasing power | |
CN113298530A (en) | Transaction configuration method, device, equipment and medium based on market data classification |
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 |