A method, system and storage medium for online account splitting management of offline merchant cash registers
By assigning a unique identification number to offline merchants and attaching a time stamp when uploading cash register details, combined with data encryption processing, the problem of data tampering in online accounting management is solved, achieving higher security and accuracy.
Patent Information
- Application Number
- CN202410950636.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing online accounting management technology does not protect the security of offline merchants' income records, which leads to errors that occur during accounting, and cannot ensure that the uploaded data is not tampered with.
By assigning a unique identification number to each offline merchant and attaching a time stamp when uploading the cash register details, combined with data encryption processing, the security and accuracy of data transmission are ensured.
It improves the security and effectiveness of online accounting management, prevents data from being tampered with during transmission, and ensures data accuracy and rationality during accounting.
Smart Images

Figure CN118941386B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online account splitting management, and in particular to an offline merchant cashier online account splitting management method, system and storage medium. Background Art
[0002] Online account management technology refers to the technology that realizes the account operation and management of transactions or income through computer networks and related systems. It is mainly used to automatically calculate, record and allocate relevant funds in the process of transactions or income distribution involving multiple parties, and ensure accuracy, timeliness and security.
[0003] Existing online account splitting management technologies usually mark offline merchants in a certain way to distinguish different offline merchants, which are used to record the income of offline merchants. However, the security protection of the income records uploaded by offline merchants is insufficient. If the income records are tampered with by others, the account splitting results will be incorrect. In addition, when performing security protection, the existing online account splitting management technology usually verifies the uploader's upload qualifications rather than protecting the uploaded data itself. For example, in the Chinese patent application publication number CN104217362A, a clearing system based on Internet communication and a method for offline transactions and online instant account splitting are disclosed. This solution ensures the security of the account splitting data by verifying whether the qualifications of the transaction subject are legal. This method can only ensure that the uploader has the upload qualifications, but cannot ensure that the data uploaded by the uploader is not tampered with, which makes it easy for errors to occur during account splitting. The existing online account splitting management technology also has the problem of insufficient security protection for uploaded income records, which makes it easy for errors to occur during account splitting. Summary of the Invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, by building an online account splitting management platform, assigning a unique identification number to each offline merchant, and setting account splitting rules based on the merchant side, system side and service side. Every time the offline merchant collects cash, the income obtained is split in real time to the merchant side, system side and service side according to the account splitting rules. When the offline merchant uploads the cashier details, it is accompanied by a unique identification number and a timestamp to obtain the details to be uploaded, and then the data to be uploaded is encrypted to obtain the encrypted details. After receiving the encrypted details, the online account splitting management platform decrypts the encrypted details to obtain the uploaded details, and counts the collected details of the offline merchant based on the uploaded details. The collected details and the uploaded details are checked by the online account splitting management platform to solve the problem that the existing online account splitting management technology still has insufficient security protection for the uploaded income records, which leads to easy errors in account splitting.
[0005] To achieve the above objectives, in a first aspect, the present application provides an offline merchant cashier online account splitting management method, comprising the following steps:
[0006] Build an online account splitting management platform to assign a unique identification number to each offline merchant. At the same time, set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income received is split in real time to the merchant side, system side, and server side according to the account splitting rules.
[0007] When offline merchants upload cashier details, they attach a unique identification number and add a timestamp to obtain the details to be uploaded;
[0008] Perform data encryption on the uploaded details to obtain encrypted details;
[0009] After receiving the encrypted details, the online account management platform decrypts the encrypted details to obtain the uploaded details, and then compiles statistics on the collected details of offline merchants based on the uploaded details;
[0010] Data verification is performed on the included and uploaded details through the online account management platform.
[0011] Furthermore, building an online account management platform includes the following sub-steps:
[0012] Build an online account management platform;
[0013] Assign a unique identification number to each offline merchant, where the unique identification number is a string of characters consisting of a random letter and a random number in the first digit;
[0014] A unique identification number corresponds to only one offline merchant;
[0015] When offline merchants receive a sum of income, they name it as income to be distributed;
[0016] Searching for pending account splitting rules using the unique identification number of the offline merchant corresponding to the pending account splitting income, wherein the pending account splitting rules are stored in a preset merchant account splitting rule database;
[0017] The pending account splitting rules include the merchant ratio, system ratio, and service ratio. The pending account splitting income is multiplied by the merchant ratio, system ratio, and service ratio respectively to obtain the merchant share, system share, and service share.
[0018] The income to be distributed is divided into merchant distribution, system distribution and service distribution and remitted to the merchant, system and service accounts respectively.
[0019] Furthermore, when an offline merchant uploads payment details, a unique identification number is attached and a timestamp is added. Obtaining the details to be uploaded includes the following sub-steps:
[0020] Offline merchants upload data to the online account management platform in the format of "unique identification number. cashier details";
[0021] When uploading, a timestamp is automatically added after the cashier details based on the current time, in the format of "unique identification number. cashier details. timestamp";
[0022] The "unique identification number. Cashier details. Timestamp" is the details to be uploaded.
[0023] Furthermore, data encryption processing is performed on the uploaded details to obtain the encrypted details, which includes the following sub-steps:
[0024] Convert the details to be uploaded into binary code based on ASCII code, name it the first code, and count the number of digits 0 and 1 in the first code, name them the first initial number and the second initial number, respectively;
[0025] calculate as well as The calculation results are marked as the third initial number and the fourth initial number, where N1 is the first initial number, N2 is the second initial number, and n is a positive integer;
[0026] Comparing the third initial number with the first numerical threshold, if the third initial number is less than the first numerical threshold, outputting a third data compliance signal; if the third initial number is greater than or equal to the first numerical threshold, outputting a third data non-compliance signal;
[0027] Comparing the fourth initial number with the first numerical threshold, if the fourth initial number is less than the first numerical threshold, outputting a fourth data compliance signal; if the fourth initial number is greater than or equal to the first numerical threshold, outputting a fourth data non-compliance signal;
[0028] If the third data compliance signal is output, the third initial number is marked as the first encrypted number; if the third data non-compliant signal is output, n is incremented by one and the third initial number is recalculated; if the fourth data compliance signal is output, the fourth initial number is marked as the second encrypted number; if the fourth data non-compliant signal is output, n is incremented by one and the fourth initial number is recalculated;
[0029] The uploaded details, the first encrypted number, and the second encrypted number are further processed.
[0030] Furthermore, further processing of the uploaded details, the first encrypted number, and the second encrypted number includes the following sub-steps:
[0031] Convert the details to be uploaded into hexadecimal code based on Unicode code and name it as the second code;
[0032] Convert the first encrypted number from decimal code to hexadecimal code to obtain a third encrypted number; convert the second encrypted number from decimal code to hexadecimal code to obtain a fourth encrypted number;
[0033] Treat the first encrypted number and the second encrypted number as hexadecimal codes, and calculate the average of the first encrypted number, the second encrypted number, the third encrypted number, and the fourth encrypted number, which is named the fifth encrypted number;
[0034] The second code is encrypted based on the first encrypted number, the second encrypted number, the third encrypted number, the fourth encrypted number, and the fifth encrypted number.
[0035] Furthermore, encrypting the second code includes the following sub-steps:
[0036] Remove the "\u" in the second code and name the remaining second code the third code;
[0037] Determine whether the fifth encrypted number is an odd number or an even number, and if the fifth encrypted number is an odd number, output an odd encrypted signal; if the fifth encrypted number is an even number, output an even encrypted signal;
[0038] If an odd-numbered encrypted signal is output, the first encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the second encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract; if an even-numbered encrypted signal is output, the second encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the first encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract;
[0039] The characters in the third code are grouped according to bytes, that is, four characters are grouped together, and the groups are numbered. m Represents, where m is a positive integer and m is the sequence number of T;
[0040] T m Add to the encrypted addend and subtract from the encrypted subtrahend to get P m , P m With T m Correspondingly, add one to m and calculate P again m , until the maximum value of m is reached, the analysis of P m Then stop the analysis;
[0041] According to the order of m from small to large, m Combine and in each P m Add "\u" before the string and name the resulting string as the fourth code;
[0042] Add "_encrypted addend" before the fourth code and "_encrypted subtract" at the end of the fourth code to get the fifth code;
[0043] Convert the fifth code into Chinese according to Unicode to obtain the encrypted details.
[0044] Furthermore, after receiving the encrypted details, the online account management platform decrypts the encrypted details to obtain the uploaded details. The statistics of the collected details of the offline merchants are collected based on the uploaded details, including the following sub-steps:
[0045] Send the encrypted details to the online account management platform. After receiving the encrypted details, the online account management platform decrypts the encrypted details through a decryption program to obtain the uploaded details.
[0046] The format of the uploaded details is "unique identification number. cashier details. timestamp". Get the timestamp, get the current time, calculate the difference between the timestamp and the current time, and mark it as the upload duration;
[0047] Compare the upload duration with the first duration threshold. If the upload duration is less than or equal to the first duration threshold, output a timestamp normal signal; if the upload duration is greater than the first duration threshold, output a timestamp abnormal signal.
[0048] If the output timestamp is abnormal, an upload failure signal is returned to the offline merchant; if the output timestamp is normal, a unique identification number is obtained and marked as an identification number to be saved;
[0049] By searching the identification number database, the cashier details are stored in the recorded details of the offline merchant corresponding to the identification number to be saved.
[0050] Furthermore, data verification of the collected details and uploaded details through the online account management platform includes the following sub-steps:
[0051] Count the total revenue of the offline merchants in the included details and mark it as included revenue; count the total revenue of all uploaded details of the offline merchants and mark it as uploaded revenue;
[0052] If the collected income is equal to the uploaded income, a normal account flow signal is output; otherwise, an abnormal account flow signal is output;
[0053] After all offline merchants have output normal account flow signals, the frozen account funds will be unfrozen.
[0054] In a second aspect, the present application provides an offline merchant cash register online account splitting management system, comprising an online account splitting management module, a merchant upload module, an upload encryption module, a detail collection module, and an online account splitting module; the online account splitting management module, the merchant upload module, the upload encryption module, and the online account splitting module are respectively connected to the detail collection module data;
[0055] The online account splitting management module is used to build an online account splitting management platform, assign a unique identification number to each offline merchant, and set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income obtained is split in real time to the merchant side, system side, and server side according to the account splitting rules;
[0056] The merchant upload module is used for offline merchants to upload cashier details with a unique identification number and a timestamp to obtain the details to be uploaded;
[0057] The upload encryption module is used to perform data encryption processing on the uploaded details to obtain encrypted details;
[0058] The details collection module is used to decrypt the encrypted details after the online account management platform receives them, obtain the uploaded details, and collect statistics on the collected details of offline merchants based on the uploaded details;
[0059] The online account splitting module is used to perform data verification on the collected details and uploaded details through the online account splitting management platform.
[0060] In a third aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are performed.
[0061] The beneficial effects of the present invention are as follows: by building an online account splitting management platform, the present invention assigns a unique identification number to each offline merchant. When the offline merchant uploads the cash register details, the unique identification number is attached, and a timestamp is added at the same time. The advantage is that the unique identification number can be used to verify the upload qualification of the offline merchant and distinguish different offline merchants, while the timestamp can ensure that the cash register details of the offline merchant will not be stolen by others for the second time, thereby improving the effectiveness and security of online account splitting management;
[0062] The present invention encrypts the uploaded details and sends the encrypted details to the online account management platform. The online account management platform then decrypts the uploaded details and records different offline merchants based on the parameters in the uploaded details. The advantage is that the uploaded cash register details, unique identification numbers, timestamps and other information are protected by data encryption, preventing data from being tampered with during transmission, thereby improving the security and rationality of online account management.
[0063] The present invention performs data verification on the collected details and the uploaded details through the online account splitting management platform, and the account splitting can only be performed when the verification is passed. The advantage is that since the cash register details are stored in the computer hard disk, the hard disk may be damaged during use, or tampered with after a malicious attack, resulting in abnormalities in some cash register details. Data verification can ensure that the cash register details at the time of account splitting are all normal data, thereby improving the effectiveness and security of online account splitting management. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a principle block diagram of the system of the present invention;
[0065] Figure 2 Flowchart of the analysis steps of the first encrypted number and the second encrypted number of the present invention;
[0066] Figure 3 is a flow chart of the steps of the method of the present invention;
[0067] Figure 4 A connection block diagram of the electronic device of the present invention;
[0068] In the figure: 60, electronic device; 601, processor; 602, memory. DETAILED DESCRIPTION
[0069] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0070] Example 1, please refer to Figure 1 As shown, in the first aspect, the present application provides an offline merchant cash register online account splitting management system, including an online account splitting management module, a merchant upload module, an upload encryption module, a detail collection module and an online account splitting module; the online account splitting management module, the merchant upload module, the upload encryption module and the online account splitting module are respectively connected to the detail collection module data;
[0071] The online account splitting management module is used to build an online account splitting management platform, assign a unique identification number to each offline merchant, and set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income received is split in real time to the merchant side, system side, and server side according to the account splitting rules;
[0072] The online account management module is configured with online account management strategies, which include:
[0073] Build an online account management platform;
[0074] Assign a unique identification number to each offline merchant. The unique identification number is a string of random letters and random numbers in the first digit;
[0075] A unique identification number corresponds to only one offline merchant;
[0076] In practical applications, the first digit has no practical meaning and can be any value. In this embodiment, the first digit is set to 2, that is, the unique identification number consists of 2 letters and 2 digits. The unique identification numbers of some offline merchants are shown in Table 1 below:
[0077] Table 1 Unique identification numbers of some offline merchants
[0078] Offline merchants Unique identification number Merchant A AA01 Merchant B AA02 Merchant C AA03
[0079] When offline merchants receive a sum of income, they name it as income to be distributed;
[0080] Searching for pending account splitting rules using the unique identification number of the offline merchant corresponding to the pending account splitting income, wherein the pending account splitting rules are stored in a preset merchant account splitting rule database;
[0081] The pending account splitting rules include the merchant ratio, system ratio, and service ratio. The pending account splitting income is multiplied by the merchant ratio, system ratio, and service ratio respectively to obtain the merchant share, system share, and service share.
[0082] The revenue to be distributed is divided into merchant share, system share and service share and remitted to the merchant side, system side and service side accounts respectively;
[0083] In actual applications, some data of the merchant account splitting rule database is shown in Table 2 below:
[0084] Table 2 Partial data of merchant account splitting rule database
[0085] Offline merchants Merchant ratio System ratio Service ratio Unique identification number Merchant A 0.8 0.1 0.1 AA01 Merchant B 0.8 0.1 0.1 AA02 Merchant C 0.7 0.1 0.2 AA03
[0086] The service side is the sales staff's commission. Since each offline merchant gives a different ratio, different offline merchants need to be distinguished. Merchant A received a payment of 50 yuan and marked 50 yuan as income to be distributed. The unique identification number corresponding to merchant A is AA01. The corresponding distribution rules for AA01 are merchant ratio 0.8, system ratio 0.1, and service ratio 0.1. Therefore, 50×0.8 is used to obtain a merchant distribution of 40 yuan, 50×0.1 is used to obtain a system distribution of 5 yuan, and 50×0.1 is used to obtain a service distribution of 5 yuan. The 50 yuan income is divided into 40 yuan, 5 yuan, and 5 yuan, and remitted to the merchant, system, and server accounts respectively.
[0087] The merchant upload module is used for offline merchants to upload cashier details with a unique identification number and a timestamp to obtain the details to be uploaded;
[0088] The merchant upload module is configured with merchant upload strategies, which include:
[0089] Offline merchants upload data to the online account management platform in the format of "unique identification number. cashier details";
[0090] When uploading, a timestamp is automatically added after the cashier details based on the current time, in the format of "unique identification number. cashier details. timestamp";
[0091] "Unique identification number. Cashier details. Timestamp" refers to the details to be uploaded;
[0092] In actual application, Merchant A uploaded "AA01.'Today's revenue: 1260.8'". Single quotation marks were added to the cashier details to distinguish the decimal point in the cashier details from the dot separator "." in the details to be uploaded. Based on the current time "2024-04-2414:15:11", the timestamp was added to obtain the details to be uploaded as "AA01.'Today's revenue: 1260.8'.1713939311".
[0093] The upload encryption module is used to encrypt the uploaded details to obtain encrypted details; the upload encryption module includes a primary encoding unit, a secondary encoding unit, and a final encryption unit;
[0094] See also Figure 2 As shown, the primary coding unit is configured with a primary coding strategy, which includes:
[0095] Convert the details to be uploaded into binary code based on ASCII code, name it the first code, and count the number of digits 0 and 1 in the first code, name them the first initial number and the second initial number, respectively;
[0096] In actual application, ASCII encoding cannot directly convert Chinese characters into binary encoding. Therefore, it is necessary to convert the details to be uploaded into UTF-8 encoding first, and obtain the UTF-8 encoding as "AA01.'Today's income�.8'.1713939311", and then convert it into the binary encoding of ASCII encoding, and obtain the first encoding as "01000001
[0097]
[0098] The spaces in the first pass are to distinguish the binary codes corresponding to each element and have no practical meaning. The first and second initial numbers are 334 and 234 respectively.
[0099] calculate as well as The calculation results are marked as the third initial number and the fourth initial number, where N1 is the first initial number, N2 is the second initial number, and n is a positive integer;
[0100] Comparing the third initial number with the first numerical threshold, if the third initial number is less than the first numerical threshold, outputting a third data compliance signal; if the third initial number is greater than or equal to the first numerical threshold, outputting a third data non-compliance signal;
[0101] Comparing the fourth initial number with the first numerical threshold, if the fourth initial number is less than the first numerical threshold, outputting a fourth data compliance signal; if the fourth initial number is greater than or equal to the first numerical threshold, outputting a fourth data non-compliance signal;
[0102] If the third data compliance signal is output, the third initial number is marked as the first encrypted number; if the third data non-compliant signal is output, n is incremented by one and the third initial number is recalculated; if the fourth data compliance signal is output, the fourth initial number is marked as the second encrypted number; if the fourth data non-compliant signal is output, n is incremented by one and the fourth initial number is recalculated;
[0103] Further processing is performed on the uploaded details, the first encrypted number, and the second encrypted number;
[0104] In practical applications, n is initially 1, that is, the calculation as well as The third initial number is 167, and the fourth initial number is 117, and the calculation results must retain integers; the setting of the first numerical threshold is to make the third initial number and the fourth initial number both two-digit numbers, so the first numerical threshold is set to 100. Through comparison, the third initial number and the fourth initial number are both greater than the first numerical threshold, so the third data non-compliant signal and the fourth data non-compliant signal are output, n+1, at this time n is 2, N1 / 4 and N2 / 4 are calculated, and the third initial number is 84, and the fourth initial number is 58. The calculation results all retain integers. Through comparison, the third initial number and the fourth initial number are both less than the first numerical threshold, so the third data compliance signal and the fourth data compliance signal are output, and 84 is marked as the first encrypted number, and 58 is marked as the second encrypted number;
[0105] The secondary encoding unit is configured with a secondary encoding strategy, which includes:
[0106] Convert the details to be uploaded into hexadecimal code based on Unicode code and name it as the second code;
[0107] Convert the first encrypted number from decimal code to hexadecimal code to obtain a third encrypted number; convert the second encrypted number from decimal code to hexadecimal code to obtain a fourth encrypted number;
[0108] Treat the first encrypted number and the second encrypted number as hexadecimal codes, and calculate the average of the first encrypted number, the second encrypted number, the third encrypted number, and the fourth encrypted number, which is named the fifth encrypted number;
[0109] encrypting the second code based on the first encrypted number, the second encrypted number, the third encrypted number, the fourth encrypted number, and the fifth encrypted number;
[0110] In actual application, the details to be uploaded are converted into hexadecimal encoding based on Unicode encoding, and the second encoding is "\u0041\u0041\u0030\u0031\u002e\u2018\u4eca\u65e5\u6536\u5165\uff1a\u0031\u0032\u0036\u0030\u002e\u0038\u 2019\u002e\u0031\u0037\u0031\u0033\u0039\u0033\u0039\u0033\u0031\u0031", the first encrypted number is 84, the second encrypted number is 58, converted to hexadecimal, the third encrypted number is 54, the fourth encrypted number is 3A, and the fifth encrypted number is 5A after calculating (84+58+54+3A) / 4;
[0111] The final encryption unit is configured with a final encryption policy, which includes:
[0112] Remove the "\u" in the second code and name the remaining second code the third code;
[0113] Determine whether the fifth encrypted number is an odd number or an even number, and if the fifth encrypted number is an odd number, output an odd encrypted signal; if the fifth encrypted number is an even number, output an even encrypted signal;
[0114] If an odd-numbered encrypted signal is output, the first encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the second encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract; if an even-numbered encrypted signal is output, the second encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the first encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract;
[0115] In actual application, the "\u" in the second code is removed, and the third code is "0041004100300031002e20184eca65e565365165ff1a0031003200360030002e00382019002e0031003700310033003900330039003300310031". The fifth encrypted number is 5A, which corresponds to the decimal number 90. 90 is an even number, so an even encrypted signal is output. The encrypted addend is 5458, and the encrypted subtractant is 3A84.
[0116] The characters in the third code are grouped according to bytes, that is, four characters are grouped together, and the groups are numbered. m Represents, where m is a positive integer and m is the sequence number of T;
[0117] In practical applications, T1 to T 29 They are 0041, 0041, 0030, 0031, 002e, 2018, 4eca, 65e5, 6536, 5165, ff1a, 0031, 0032, 0036, 0030, 002e, 0038, 2019, 002e, 0031, 0037, 0031, 0033, 0039, 0033, 0039, 0033, 0031 and 0031, 1≤m≤29;
[0118] T m Add to the encrypted addend and subtract from the encrypted subtrahend to get P m , P m With T m Correspondingly, add one to m and calculate P again m , until the maximum value of m is reached, the analysis of P m Then stop the analysis;
[0119] According to the order of m from small to large, m Combine and in each P m Add "\u" before the string and name the resulting string as the fourth code;
[0120] Add "_encrypted addend" before the fourth code and "_encrypted subtract" at the end of the fourth code to get the fifth code;
[0121] Convert the fifth code into Chinese according to Unicode to obtain the encrypted details;
[0122] In actual application, for T1, T1 is 0041, add 0041 and 5458, then subtract 3A84, and get P1 is 1A15, then add m+1 and calculate again until P is calculated.29 Stop later, and combine P in ascending order of m m and add "\u" before each P m to get the fourth code as "\u1A15\u1A15\u1A04\u1A05\u1A02\u39EC\u689E\u7FB9\u7F0A\u6B39\u118EE\u1A05\u1A06\u1A0A\u1A04\u1A02\u1A0C\u39ED\u1A02\u1A05\u1A0B\u1A05\u1A07\u1A0D\u1A07\u1A0D\u1A07\u1A05\u1A05". Since 118EE exceeds the limit of four digits, it needs to subtract 10000 to get 18EE. If it is negative during decryption, add 10000. Add "\u encrypted addend" before the fourth code and "\u encrypted subtractor" at the end of the fourth code to get the fifth code as "\u5458\u1A15\u1A15\u1A04\u1A05\u1A02\u39EC\u689E\u7FB9\u7F0A\u6B39\u18EE\u1A05\u1A06\u1A0A\u1A04\u1A02\u1A0C\u39ED\u1A02\u1A05\u1A0B\u1A05\u1A07\u1A0D\u1A07\u1A0D\u1A07\u1A05\u1A05\u3A84". Convert it to Chinese according to Unicode to get the encrypted details as "member 梞羹缊欹 ".
[0123] The detailed record module is used to decrypt the encrypted details after the online profit sharing management platform receives the encrypted details to obtain the uploaded details, and count the recorded details of offline merchants according to the uploaded details;
[0124] The detailed record module is configured with a detailed record strategy, and the detailed record strategy includes:
[0125] Send the encrypted details to the online profit sharing management platform. After the online profit sharing management platform receives the encrypted details, decrypt the encrypted details through the decryption program to obtain the uploaded details;
[0126] The format of the uploaded details is "unique identification number. Cashier details. Timestamp". Obtain the timestamp, obtain the current time, calculate the difference between the timestamp and the current time, and mark it as the upload duration;
[0127] In actual applications, data decryption is the inverse operation of data encryption, so it is not specifically demonstrated in this embodiment. The uploaded details obtained through decryption are "AA01.'Today's income: 1260.8'.1713939311", and the timestamp obtained is 1713939311, which corresponds to the time of 2024-04-24 14:15:11. The current time is 2024-04-24 14:15:20, and the upload duration is calculated to be 9 seconds.
[0128] Compare the upload duration with the first duration threshold. If the upload duration is less than or equal to the first duration threshold, output a timestamp normal signal; if the upload duration is greater than the first duration threshold, output a timestamp abnormal signal.
[0129] If the output timestamp is abnormal, an upload failure signal is returned to the offline merchant; if the output timestamp is normal, a unique identification number is obtained and marked as an identification number to be saved;
[0130] By searching the identification number database, the cashier details are stored in the recorded details of the offline merchant corresponding to the identification number to be saved;
[0131] In actual applications, the first duration threshold is to ensure that the uploaded cash register details are the latest data uploaded by the offline merchant themselves, rather than data stolen by others. Therefore, the first duration threshold is set to verify the timestamp, and the process of uploading the details is usually 5s to 15s based on the speed of the network, so the first duration threshold is set to 15s; through comparison, it is found that the upload duration is less than the first duration threshold, and the timestamp normal signal is output, and the identification number to be saved is "AA01". Through searching, it is found that the offline merchant corresponding to "AA01" is "Merchant A", so the cash register details "Today's income: 1260.8" are saved to the included details of Merchant A. The included details are the cash register details of offline merchants saved on the online account management platform.
[0132] The online account sub-module is used to verify the data of the collected and uploaded details through the online account sub-management platform;
[0133] The online account splitting module is configured with online account splitting strategies, which include:
[0134] Count the total revenue of the offline merchants in the included details and mark it as included revenue; count the total revenue of all uploaded details of the offline merchants and mark it as uploaded revenue;
[0135] If the collected income is equal to the uploaded income, a normal account flow signal is output; otherwise, an abnormal account flow signal is output;
[0136] After all offline merchants have output normal account flow signals, the frozen account funds will be unfrozen;
[0137] In actual applications, in order to prevent the stored cash register details from being damaged or tampered with, they need to be checked. The statistical collected income and uploaded income are usually distinguished on a monthly basis; the collected income is statistically obtained to be 237849.5, and the uploaded income is 237849.5. Through comparison, it is found that the collected income is equal to the uploaded income, and the normal account flow signal is output to unfreeze the frozen account funds.
[0138] Example 2, please refer to Figure 3 As shown, in the second aspect, the present application provides an offline merchant cashier online account splitting management method, comprising the following steps:
[0139] Step S1: Build an online account splitting management platform, assign a unique identification number to each offline merchant, and set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income obtained is split in real time to the merchant side, system side, and server side according to the account splitting rules. Step S1 includes the following sub-steps:
[0140] Step S101: Building an online account management platform;
[0141] Step S102: assign a unique identification number to each offline merchant. The unique identification number is a string of characters consisting of a random letter and a random number in the first digit.
[0142] Step S103: One unique identification number corresponds to only one offline merchant;
[0143] Step S104: When an offline merchant receives a sum of income, the income is named as income to be distributed;
[0144] Step S105: searching for the pending account splitting rules using the unique identification number of the offline merchant corresponding to the pending account splitting income, wherein the pending account splitting rules are stored in a preset merchant account splitting rules database;
[0145] Step S106: The pending account splitting rules include a merchant ratio, a system ratio, and a service ratio. The pending account splitting income is multiplied by the merchant ratio, the system ratio, and the service ratio, respectively, to obtain the merchant split, the system split, and the service split.
[0146] Step S107: The revenue to be distributed is divided into merchant distribution, system distribution, and service distribution, and remitted to the merchant, system, and service accounts respectively;
[0147] In step S2, the offline merchant uploads the payment details with a unique identification number and a timestamp to obtain the details to be uploaded. Step S2 includes the following sub-steps:
[0148] Step S201: Offline merchants upload data to the online account management platform in the format of "unique identification number. cashier details";
[0149] Step S202: When uploading, a timestamp is automatically added after the cashier details based on the current time, in the format of "unique identification number. cashier details. timestamp";
[0150] Step S203, "unique identification number. cashier details. timestamp" is the details to be uploaded;
[0151] Step S3: encrypt the uploaded details to obtain encrypted details. Step S3 includes the following sub-steps:
[0152] Step S301: Convert the details to be uploaded into a binary code based on the ASCII code, named as the first code, and count the number of digits 0 and 1 in the first code, named as the first initial number and the second initial number, respectively;
[0153] Step S302, calculate as well as The calculation results are marked as the third initial number and the fourth initial number, where N1 is the first initial number, N2 is the second initial number, and n is a positive integer;
[0154] Step S303, comparing the third initial number with the first numerical threshold, and outputting a third data compliance signal if the third initial number is less than the first numerical threshold; and outputting a third data non-compliance signal if the third initial number is greater than or equal to the first numerical threshold;
[0155] Step S304, comparing the fourth initial number with the first numerical threshold, and outputting a fourth data compliance signal if the fourth initial number is less than the first numerical threshold; and outputting a fourth data non-compliance signal if the fourth initial number is greater than or equal to the first numerical threshold;
[0156] Step S305: If a third data compliance signal is output, the third initial number is marked as the first encrypted number; if a third data non-compliance signal is output, n is incremented by one and the third initial number is recalculated; if a fourth data compliance signal is output, the fourth initial number is marked as the second encrypted number; if a fourth data non-compliance signal is output, n is incremented by one and the fourth initial number is recalculated;
[0157] Step S306: further process the uploaded details, the first encrypted number, and the second encrypted number;
[0158] Step S306 includes the following sub-steps:
[0159] Step S306.1, converting the details to be uploaded into a hexadecimal code based on Unicode, named as the second code;
[0160] Step S306.2: Convert the first encrypted number from decimal to hexadecimal to obtain a third encrypted number; convert the second encrypted number from decimal to hexadecimal to obtain a fourth encrypted number;
[0161] Step S306.3, treating the first encrypted number and the second encrypted number as hexadecimal codes, and calculating the average of the first encrypted number, the second encrypted number, the third encrypted number, and the fourth encrypted number, which is named the fifth encrypted number;
[0162] Step S306.4, encrypting the second code based on the first encrypted number, the second encrypted number, the third encrypted number, the fourth encrypted number, and the fifth encrypted number;
[0163] Step S306.4 includes the following sub-steps:
[0164] Step S306.4.a, remove the "\u" in the second code and name the remaining second code the third code;
[0165] Step S306.4.b, determining whether the fifth encrypted number is an odd number or an even number, if the fifth encrypted number is an odd number, outputting an odd encrypted signal; if the fifth encrypted number is an even number, outputting an even encrypted signal;
[0166] Step S306.4.c: If the output is an odd-numbered encrypted signal, the first encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the second encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtrahend. If the output is an even-numbered encrypted signal, the second encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the first encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtrahend.
[0167] Step S306.4.d, group the characters in the third code by bytes, that is, group four characters into a group, number the groups, and use the symbol T m Represents, where m is a positive integer and m is the sequence number of T;
[0168] Step S306.4.e, T m Add to the encrypted addend and subtract from the encrypted subtrahend to get P m , P m With T m Correspondingly, add one to m and calculate P again m , until the maximum value of m is reached, the analysis of P m Then stop the analysis;
[0169] Step S306.4.f, sort P in ascending order of m. m Combine and in each P mAdd "\u" before the string and name the resulting string as the fourth code;
[0170] Step S306.4.g: Add "_u encrypted addend" before the fourth code and "_u encrypted subtrahend" at the end of the fourth code to obtain the fifth code;
[0171] Step S306.4.h, convert the fifth code into Chinese according to Unicode to obtain the encrypted details;
[0172] In step S4, after receiving the encrypted details, the online account management platform decrypts the encrypted details to obtain the uploaded details, and then collects statistics on the collected details of the offline merchants based on the uploaded details. Step S4 includes the following sub-steps:
[0173] Step S401: Send the encrypted details to the online account management platform. After receiving the encrypted details, the online account management platform decrypts the encrypted details through a decryption program to obtain the uploaded details.
[0174] Step S402: The format of the uploaded details is "unique identification number. cashier details. timestamp". The timestamp and current time are obtained. The difference between the timestamp and the current time is calculated and marked as the upload duration.
[0175] Step S403: Compare the upload duration with a first duration threshold. If the upload duration is less than or equal to the first duration threshold, output a timestamp normal signal; if the upload duration is greater than the first duration threshold, output a timestamp abnormal signal.
[0176] Step S404: If the output timestamp is abnormal, an upload failure signal is returned to the offline merchant; if the output timestamp is normal, a unique identification number is obtained and marked as an identification number to be saved;
[0177] Step S405: by searching the identification number database, the cashier details are stored in the recorded details of the offline merchant corresponding to the identification number to be saved;
[0178] Step S5: Verify the data of the collected details and uploaded details through the online account management platform. Step S5 includes the following sub-steps:
[0179] Step S501: Count the total revenue of the offline merchant's included details and mark it as included revenue; Count the total revenue of all uploaded details of the offline merchant and mark it as uploaded revenue;
[0180] Step S502: If the recorded income is equal to the uploaded income, a signal indicating that the account flow is normal is output; otherwise, a signal indicating that the account flow is abnormal is output;
[0181] Step S503: After all offline merchants output a signal indicating that their account transactions are normal, the frozen account funds are unfrozen.
[0182] See also Figure 4 As shown, embodiment 3, in the third aspect, the present application provides an electronic device 60, including a processor 601 and a memory 602, the memory 602 storing computer-readable instructions, and when the computer-readable instructions are executed by the processor 601, the steps in the above method are executed. Through the above technical solution, the processor 601 and the memory 602 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not shown), and the memory 602 stores a computer program executable by the processor 601. When the electronic device 60 is running, the processor 601 executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: build an online account management platform and assign a unique identification number to each offline merchant; when the offline merchant uploads the cashier details, it is accompanied by a unique identification number and a timestamp to obtain the details to be uploaded; the details to be uploaded are encrypted to obtain the encrypted details; the encrypted details are decrypted to obtain the uploaded details; and the collected details and the uploaded details are checked by the online account management platform.
[0183] Embodiment 4, fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: building an online account management platform to assign a unique identification number to each offline merchant; when the offline merchant uploads the cash register details, a unique identification number is attached, and a timestamp is added to obtain the details to be uploaded; data encryption processing is performed on the details to be uploaded to obtain encrypted details; data decryption of the encrypted details is performed to obtain the uploaded details; data verification of the included details and the uploaded details is performed through the online account management platform.
[0184] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0185] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. The storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0186] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
Claims
1. A method for online account management of offline merchant cash registers, characterized in that: The steps include: Build an online account splitting management platform to assign a unique identification number to each offline merchant. At the same time, set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income received is split in real time to the merchant side, system side, and server side according to the account splitting rules. When offline merchants upload cashier details, they attach a unique identification number and add a timestamp to obtain the details to be uploaded; Perform data encryption on the uploaded details to obtain encrypted details; After receiving the encrypted details, the online account management platform decrypts the encrypted details to obtain the uploaded details, and then compiles statistics on the collected details of offline merchants based on the uploaded details; Verify the data of the collected and uploaded details through the online account management platform; Encrypting the uploaded details to obtain the encrypted details includes the following sub-steps: Convert the details to be uploaded into binary code based on ASCII code, name it the first code, and count the number of digits 0 and 1 in the first code, name them the first initial number and the second initial number, respectively; calculate as well as , mark the calculation results as the third initial number and the fourth initial number respectively, where N1 is the first initial number, N2 is the second initial number, and n is a positive integer; Comparing the third initial number with the first numerical threshold, if the third initial number is less than the first numerical threshold, outputting a third data compliance signal; if the third initial number is greater than or equal to the first numerical threshold, outputting a third data non-compliance signal; Comparing the fourth initial number with the first numerical threshold, if the fourth initial number is less than the first numerical threshold, outputting a fourth data compliance signal; if the fourth initial number is greater than or equal to the first numerical threshold, outputting a fourth data non-compliance signal; If the third data compliance signal is output, the third initial number is marked as the first encrypted number; if the third data non-compliant signal is output, n is incremented by one and the third initial number is recalculated; if the fourth data compliance signal is output, the fourth initial number is marked as the second encrypted number; if the fourth data non-compliant signal is output, n is incremented by one and the fourth initial number is recalculated; Further processing is performed on the uploaded details, the first encrypted number, and the second encrypted number; Further processing of the uploaded details, the first encrypted number, and the second encrypted number includes the following sub-steps: Convert the details to be uploaded into hexadecimal code based on Unicode code and name it as the second code; Convert the first encrypted number from decimal code to hexadecimal code to obtain a third encrypted number; convert the second encrypted number from decimal code to hexadecimal code to obtain a fourth encrypted number; Treat the first encrypted number and the second encrypted number as hexadecimal codes, and calculate the average of the first encrypted number, the second encrypted number, the third encrypted number, and the fourth encrypted number, which is named the fifth encrypted number; The second code is encrypted based on the first encrypted number, the second encrypted number, the third encrypted number, the fourth encrypted number, and the fifth encrypted number.
2. The offline merchant cashier online account management method according to claim 1, characterized in that: Building an online account management platform includes the following sub-steps: Build an online account management platform; Assign a unique identification number to each offline merchant, where the unique identification number is a string of characters consisting of a random letter and a random number in the first digit; A unique identification number corresponds to only one offline merchant; When offline merchants receive a sum of income, they name it as income to be distributed; Searching for pending account splitting rules using the unique identification number of the offline merchant corresponding to the pending account splitting income, wherein the pending account splitting rules are stored in a preset merchant account splitting rule database; The pending account splitting rules include the merchant ratio, system ratio, and service ratio. The pending account splitting income is multiplied by the merchant ratio, system ratio, and service ratio respectively to obtain the merchant share, system share, and service share. The income to be distributed is divided into merchant distribution, system distribution and service distribution and remitted to the merchant, system and service accounts respectively.
3. The offline merchant cashier online account management method according to claim 2, characterized in that: When offline merchants upload payment details, they attach a unique identification number and add a timestamp. Obtaining the details to be uploaded includes the following sub-steps: Offline merchants upload data to the online account management platform in the format of "unique identification number. cashier details"; When uploading, a timestamp is automatically added after the cashier details based on the current time, in the format of "unique identification number. cashier details. timestamp"; The "unique identification number. Cashier details. Timestamp" is the details to be uploaded.
4. The method for online account management of offline merchant cash registers according to claim 3, characterized in that: Encrypting the second code includes the following sub-steps: Remove "\u" from the second code and name the remaining second code the third code; Determine whether the fifth encrypted number is an odd number or an even number, and if the fifth encrypted number is an odd number, output an odd encrypted signal; if the fifth encrypted number is an even number, output an even encrypted signal; If an odd-numbered encrypted signal is output, the first encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the second encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract; if an even-numbered encrypted signal is output, the second encrypted number is concatenated after the third encrypted number to obtain an encrypted addend, and the first encrypted number is concatenated after the fourth encrypted number to obtain an encrypted subtract; The characters in the third code are grouped according to bytes, that is, four characters are grouped together, and the groups are numbered. m Represents, where m is a positive integer and m is the sequence number of T; T m Add to the encrypted addend and subtract from the encrypted subtrahend to get P m , P m With T m Correspondingly, add one to m and calculate P again m , until the maximum value of m is reached, the analysis of P m Then stop the analysis; According to the order of m from small to large, m Combine and in each P m Add "\u" before the string and name the resulting string as the fourth code; Add "_encrypted addend" before the fourth code and "_encrypted subtract" at the end of the fourth code to get the fifth code; Convert the fifth code into Chinese according to Unicode to obtain the encrypted details.
5. The offline merchant cashier online account management method according to claim 4, characterized in that: After receiving the encrypted details, the online account management platform decrypts the encrypted details to obtain the uploaded details. The statistics of the collected details of the offline merchants are compiled based on the uploaded details, including the following sub-steps: Send the encrypted details to the online account management platform. After receiving the encrypted details, the online account management platform decrypts the encrypted details through a decryption program to obtain the uploaded details. The format of the uploaded details is "unique identification number. cashier details. timestamp". Get the timestamp, get the current time, calculate the difference between the timestamp and the current time, and mark it as the upload duration; Compare the upload duration with the first duration threshold, and if the upload duration is less than or equal to the first duration threshold, output a timestamp normal signal; If the upload duration is greater than the first duration threshold, a timestamp exception signal is output; If the output timestamp is abnormal, an upload failure signal will be returned to the offline merchant; If the output timestamp is a normal signal, a unique identification number is obtained and marked as an identification number to be saved; By searching the identification number database, the cashier details are stored in the recorded details of the offline merchant corresponding to the identification number to be saved.
6. The offline merchant cashier online account management method according to claim 5, characterized in that: Verifying the data of the collected and uploaded details through the online account management platform includes the following sub-steps: Count the total revenue of the offline merchants in the included details and mark it as included revenue; count the total revenue of all uploaded details of the offline merchants and mark it as uploaded revenue; If the collected income is equal to the uploaded income, the account flow is normal. Otherwise, an abnormal account flow signal is output; After all offline merchants have output normal account flow signals, the frozen account funds will be unfrozen.
7. An offline merchant cashier online account splitting management system, applicable to an offline merchant cashier online account splitting management method according to any one of claims 1 to 6, characterized in that: It includes an online account management module, a merchant upload module, an upload encryption module, a detail collection module and an online account management module; the online account management module, the merchant upload module, the upload encryption module and the online account management module are respectively connected to the detail collection module data; The online account splitting management module is used to build an online account splitting management platform, assign a unique identification number to each offline merchant, and set account splitting rules based on the merchant side, system side, and server side. Every time an offline merchant collects cash, the income obtained is split in real time to the merchant side, system side, and server side according to the account splitting rules; The merchant upload module is used for offline merchants to upload cashier details with a unique identification number and a timestamp to obtain the details to be uploaded; The upload encryption module is used to perform data encryption processing on the uploaded details to obtain encrypted details; The details collection module is used to decrypt the encrypted details after the online account management platform receives them, obtain the uploaded details, and collect statistics on the collected details of offline merchants based on the uploaded details; The online account splitting module is used to perform data verification on the collected details and uploaded details through the online account splitting management platform.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are executed.
Citation Information
Patent Citations
System and method for realizing mobile payment
CN101853453A
Sorting system based on Internet communication and offline transaction and online instant accounting method
CN104217362A
An account attack security defense method and device
CN109948333A
Pet operation account division method and platform based on block chain
CN115456559A