[go: up one dir, main page]

CN114429319B - Random verification code processing method, device, computer equipment and storage medium - Google Patents

Random verification code processing method, device, computer equipment and storage medium

Info

Publication number
CN114429319B
CN114429319B CN202011181507.3A CN202011181507A CN114429319B CN 114429319 B CN114429319 B CN 114429319B CN 202011181507 A CN202011181507 A CN 202011181507A CN 114429319 B CN114429319 B CN 114429319B
Authority
CN
China
Prior art keywords
verification code
random verification
bit
length
serial number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011181507.3A
Other languages
Chinese (zh)
Other versions
CN114429319A (en
Inventor
覃正勇
吴铣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
Original Assignee
SF Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN202011181507.3A priority Critical patent/CN114429319B/en
Publication of CN114429319A publication Critical patent/CN114429319A/en
Application granted granted Critical
Publication of CN114429319B publication Critical patent/CN114429319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management

Landscapes

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

Abstract

The application relates to a random verification code processing method, a random verification code processing device, computer equipment and a storage medium. The method comprises the steps of obtaining a requirement value of a service scene on a random verification code, determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a serial number bit in the random verification code according to the requirement value, generating the random verification code associated with the service order when a generation request of the service order is received, wherein the random verification code comprises the time stamp bit, the data center serial number bit, the machine serial number bit and the serial number. By adopting the method, the service order processing efficiency can be improved.

Description

Random verification code processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of logistics data information technology, and in particular, to a method and apparatus for processing a random verification code, a computer device, and a storage medium.
Background
With rapid development of computer and internet technologies, identification information of conventional systems needs to be identified by logging in. In the non-physical express scene in the logistics field, when identifying the logistics express order, additional order related information is required to be acquired to perform order service operation, in the scene of uncertain operators, the identification is performed through the associated order random code, and the operation service becomes a feasible scheme, the random code is associated with the order, so that one random code corresponds to unique order information, and the identification is performed by inputting the random code during the service operation, so that the order service operation is completed.
However, when the conventional binary random code is used for identifying the service order, the problem of input errors of the conventional binary random code is easy to occur, and the service order processing efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a random verification code processing method, apparatus, computer device, and storage medium that can improve the processing efficiency of a random verification code.
A method of random verification code processing, the method comprising:
Acquiring a demand value of a business scene on a random verification code;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
when a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, the data center serial number bit, a machine serial number bit and a serial number.
In one embodiment, the determining the length of the timestamp bit, the length of the serial number bit of the data center, the length of the serial number bit of the machine and the length of the serial number bit in the random verification code according to the requirement value includes:
Determining the input initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in the random verification code according to the demand value;
and each initial incoming value occupies a position according to a preset combination mode, and the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code are determined.
In one embodiment, the generating, when receiving the request for generating the service order, a random verification code associated with the service order includes:
When a generation request of a service order is received, generating a decimal digital random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number;
and converting the decimal number random verification code into a 62-system character string composed of 10-bit Arabic numbers, 26-bit lowercase letters and 26-bit uppercase letters, and obtaining the random verification code.
In one embodiment, the method further comprises:
Detecting the similarity between characters in the random verification code;
And deleting the two characters from the random code character string when the two character strings with the similarity being the preset value exist, so as to obtain the random verification code for deleting the similar characters.
In one embodiment, the detecting the similarity between characters in the random code string includes:
analyzing the random verification code to obtain all characters in the random verification code;
and carrying out similarity detection on each character according to the detection strategy data to obtain the similarity between the characters in the random verification code.
In one embodiment, the method further comprises:
Acquiring order information of the service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, and displaying a random verification code of the service order at the order receiving and dispatching terminal;
And receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
In one embodiment, the receiving the verification request sent by the order receiving terminal, verifying the random verification code according to the verification request, includes:
acquiring the character length of the random verification code;
When the character length is within a preset length range, detecting whether the random verification code exists in a database;
And when the random verification code exists in the database, sending a processing instruction of the service order to the order receiving and dispatching terminal, wherein the processing instruction is used for indicating the order receiving and dispatching terminal to process the service order.
A random passcode processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring a demand value of the business scene on the random verification code;
the determining module is used for determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
And the generation module is used for generating a random verification code associated with the service order when receiving a generation request of the service order, wherein the random verification code comprises a time stamp bit, the data center sequence number bit, a machine sequence number bit and a sequence number.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Acquiring a demand value of a business scene on a random verification code;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
when a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, the data center serial number bit, a machine serial number bit and a serial number.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring a demand value of a business scene on a random verification code;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
when a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, the data center serial number bit, a machine serial number bit and a serial number.
The random verification code processing method, the device, the computer equipment and the storage medium are used for obtaining the requirement value of the service scene on the random verification code, determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the requirement value, generating the random verification code associated with the service order when a generation request of the service order is received, wherein the random verification code comprises the time stamp bit, the data center serial number bit, the machine serial number bit and the sequence number, namely, determining the length of the random verification code according to the requirement of the actual service scene, avoiding overlong generated random verification code, associating the generated random verification code with the service order, ensuring the uniqueness of the service order associated with the random verification code, and improving the service order processing efficiency.
Drawings
FIG. 1 is an application environment diagram of a random verification code processing method in one embodiment;
FIG. 2 is a flow chart of a method for processing random verification codes in one embodiment;
FIG. 3 is a schematic diagram of the principle and structure of a snowflake algorithm in one embodiment;
FIG. 4 is a binary structure diagram of a random verification code in one embodiment;
FIG. 5 is a flowchart illustrating a random verification code processing step in one embodiment;
FIG. 6 is a flowchart of a method for processing a random verification code according to another embodiment;
FIG. 7 is a block diagram of a random verification code processing apparatus in one embodiment;
FIG. 8 is a block diagram of a random verification code processing apparatus in another embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The random verification code processing method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The method comprises the steps of obtaining a required value of a service scene on a random verification code through a network by a terminal 102, determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a serial number bit in the random verification code according to the required value, generating the random verification code associated with the service order when a generation request of the service order is received, wherein the random verification code comprises the time stamp bit, the data center serial number bit, the machine serial number bit and the serial number. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, among others. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for processing a random verification code is provided, and the method is applied to the terminal in fig. 1, and the terminal is a service system terminal, and includes the following steps:
Step 202, obtaining a demand value of a business scene on a random verification code.
The service volume in different service scenes is different, and the demand value for the random verification code is also different.
Step 204, determining the length of the time stamp bit, the length of the data center serial number bit, the length of the machine serial number bit and the length of the serial number bit in the random verification code according to the required value.
The random verification codes are certificates used for verifying whether the service orders are valid or not, the random verification codes have uniqueness, and the random verification codes and the service orders have a one-to-one correspondence. The random verification code is a unique character string of the combined system of the numbers and the letters, which is generated based on a snowflake algorithm (snowflake) by using a binary space occupation mode, namely the character string of the combined system of the numbers and the letters is obtained through binary displacement calculation. As shown in FIG. 3, the snowflake algorithm principle is a schematic structural diagram, wherein the snowflake algorithm principle comprises 1bit symbol bit, 41bit timestamp, 10bit working machine id and 12bit serial number, wherein 1bit symbol bit, 1 represents negative number, 0 represents positive number, the generated id is generally an integer, so the highest bit is fixed to be 0, the 41bit timestamp is used for recording the timestamp in millisecond level, the numerical range which can be represented is 0 to 2-41-1, the conversion is year, 10bit working machine id is used for recording the working machine id, the working machine id can be deployed at each node, 5 bits are machine id and 5 bits are machine id, the 12bit serial number is used for recording different ids generated by the same machine in the same millisecond, and the snowflake algorithm principle is the existing algorithm and is not repeated herein.
Fig. 4 shows a binary structure diagram of a random verification code generated based on a snowflake algorithm in an embodiment, where the binary structure diagram includes a timestamp, a data center number, a machine node number and a sequence number, the corresponding binary space manner is a combined space, the combination manner is "the timestamp binary space+the data center binary space+the machine node binary space+the sequence number binary space", the timestamp is used for recording time, the timestamp is in millisecond level, the timestamp is the difference between the current timestamp and the fixed timestamp, the data center bit is used for storing the number of a machine room of an application server, the conventional data center stores servers in different area positions, the number of the machine room for the data center can be but not limited to 1, the machine node point is used for recording the number of the deployed application server, the application server can be but not limited to 1, the sequence number is used for recording the number which can be generated by the same machine in the same millisecond, and the number can be but not limited to 1, for example, 1,2, 3 and the like. The service scenario's requirement value for the random verification code can determine the requirements of the machine room and the deployment application server, and determine the maximum numerical value of the data center bit, the node number of the maximum machine bit, the maximum sequence number and the fixed initial timestamp according to the requirements.
The method comprises the steps of obtaining service volume of a service scene by a service system terminal, determining a required value of a corresponding random verification code according to the service volume, determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a serial number bit in the random verification code according to the required value, determining the length of the random verification code according to the required value, avoiding the random verification code from being lost due to overlong random verification code, and ensuring the integrity of data.
Step 206, when receiving the request for generating the service order, generating a random verification code associated with the service order.
The generated random verification code comprises a time stamp bit, a data center serial number bit, a machine serial number bit and a sequence number.
Specifically, when the service order terminal receives a generation request of a service order, based on snowflake algorithm principle and the determined length of a time stamp bit, the length of a data center sequence number bit, the length of a machine sequence number bit and the length of a sequence number bit in the random verification code, the random verification code associated with the service order is generated according to the input values of the data center bit and the machine sequence number bit and the current time according to the sequence of the time stamp, the data center, the machine node and the sequence number, and the association relation between the random verification code and the associated service order is stored in a database in a form of a table.
The random verification code processing method includes the steps of obtaining a requirement value of a service scene on a random verification code, determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the requirement value, generating the random verification code associated with the service order when a generation request of the service order is received, determining the length of the random verification code according to the requirement of an actual service scene, avoiding overlong generated random verification code, associating the generated random verification code with the service order, ensuring the uniqueness of the service order associated with the random verification code, and improving the service order processing efficiency.
In one embodiment, as shown in fig. 5, a random verification code processing step is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
Step 502, obtaining a requirement value of a business scene on a random verification code.
And step 504, determining the length of the time stamp bit, the length of the serial number bit of the data center, the length of the serial number bit of the machine and the length of the serial number bit of the random verification code according to the requirement value.
The method comprises the steps of determining the initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in a random verification code according to service scene characteristics, and determining the length of the time stamp bit, the length of the data center sequence number bit, the length of the machine sequence number bit and the length of the sequence number bit in the random verification code according to all initial values.
Step 506, when a request for generating a service order is received, generating a random verification code associated with the service order.
Specifically, when a request for generating a service order is received, a binary random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number is generated, the binary random verification code is converted into a decimal number random verification code through displacement calculation, the decimal number random verification code is converted into a 62-digit character string of a 10-digit Arabic number, a 26-digit lower case letter and a 26-digit upper case letter combination, the random verification code is obtained, and the character length of the random verification code is reduced.
Step 508, obtaining the order information of the service order, sending the service order to the order receiving and dispatching terminal corresponding to the address information in the order information, and displaying the random verification code of the service order at the order receiving and dispatching terminal.
Optionally, in one embodiment, the random verification code is parsed to obtain all the characters in the random verification code, similarity detection is performed on each character according to the detection policy data to obtain the similarity between the characters in the random verification code, and when two character strings with the similarity being a preset value exist, the two characters are deleted from the character strings of the random verification code to obtain the random verification code with the similar characters deleted. The detection strategy data are predefined similar characters, such as 'i' and '1', '0' and 'O', and the similar characters in the random verification code are detected, so that the generated random verification code does not have similar characters, the random verification code is prevented from being input in error, the processing time of the random verification code is long, and the processing efficiency of the service order is reduced.
Step 510, receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
The method comprises the steps of obtaining character length of a random verification code when a verification request sent by an order receiving and dispatching terminal is received, detecting the character length of the random verification code, detecting whether the random verification code exists in a database according to the verification request when the character length is within a preset length range, sending a processing instruction of a service order to the order receiving and dispatching terminal when the random verification code exists in the database, and instructing the order receiving and dispatching terminal to process the service order by the processing instruction, wherein the preset length range can be, but is not limited to, 7-9 bits of characters. If the service order is a mail order, the staff member inputs the random verification code of the mail order from the interface of the order receiving and dispatching terminal, and when the random verification code of the mail order exists in the database, the staff member of the order receiving and dispatching terminal receives the mail order.
In the step of processing the random verification code, the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code are determined according to the requirement value of a service scene on the random verification code, when a generation request of a service order is received, the random verification code carrying the number and letter combination of the time stamp bit, the data center serial number bit, the machine serial number bit and the sequence number is generated, order information of the service order is obtained, the service order is sent to an order receiving terminal corresponding to address information in the order information, the random verification code of the service order is displayed at the order receiving terminal, the verification request sent by the order receiving terminal is received, the random verification code is detected according to the character length of the random verification code and whether the random verification code exists in a detection database, and when the random verification code exists in the character length of the random verification code and the data, the order sending data of the service order is sent to the order receiving terminal, so that the order receiving terminal carries out service processing on the service order. The method comprises the steps of determining the length of a random verification code according to service scene characteristics, reducing the character occupation, generating a random verification code of an alphanumeric character string, reducing the character length of the random verification code, verifying a service order based on the random verification code, and not requiring verification of the verification authority of an order receiving and dispatching terminal, thereby simplifying the verification processing operation of the random verification code of the service order and improving the efficiency and accuracy of service order processing.
In another embodiment, as shown in fig. 6, a method for processing a random verification code is provided, and the step is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step 602, obtaining a requirement value of a business scene on a random verification code.
Step 604, determining the incoming initial values of the timestamp bit, the data center sequence number bit, the machine sequence number bit and the sequence number bit in the random verification code according to the required value.
In step 606, each initial incoming value is occupied by a predetermined combination to determine the length of the timestamp bit, the length of the data center sequence number bit, the length of the machine sequence number bit, and the length of the sequence number bit in the random verification code.
The preset combination mode is 'time stamp binary occupation + data center binary occupation + machine node binary occupation + sequence number binary occupation'.
Step 608, when a request for generating a service order is received, a decimal digital random verification code carrying a timestamp bit, a data center sequence number bit, a machine sequence number bit, and a sequence number is generated.
Step 610, converting the decimal number random verification code into a 62-system character string composed of 10 digits of Arabic numbers, 26 lower case letters and 26 upper case letters, and obtaining the random verification code.
The method comprises the steps of determining the input initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in a random verification code according to the requirement value of a service scene on the random verification code, determining the length of the time stamp bit, the length of the data center sequence number bit, the length of the machine sequence number bit and the length of the sequence number bit in the random verification code through all initial input values, performing binary occupation according to the determined length of the time stamp bit, the length of the data center sequence number bit, the length of the machine sequence number bit and the length of the sequence number bit, inputting the machine room number of the data center bit and the number of a server of the machine sequence number bit, determining a current time stamp when a generation request of a service order is received, sequentially assembling according to the sequence of the time stamp, the data center, the machine node and the sequence number to generate a binary random verification code, calculating through binary displacement to obtain a character string of a digit and letter combination system, for example, calculating the binary random verification code through displacement to obtain a 62 character string of a 10-digit Arabic number, a 26-digit capital letter and a 26-digit capital letter combination, and obtaining the random verification code.
Optionally, in one embodiment, detecting the similarity between the characters in the random verification code, and deleting the two characters from the random code character string when the two character strings with the similarity being the preset value exist, so as to obtain the random verification code with the similar characters deleted. The method comprises the steps of analyzing the random verification code to obtain all characters in the random verification code, and detecting the similarity of the characters according to detection strategy data to obtain the similarity of the characters in the random verification code.
Step 612, order information of the service order is obtained, the service order is sent to an order receiving and dispatching terminal corresponding to the address information in the order information, and a random verification code of the service order is displayed at the order receiving and dispatching terminal.
The order information comprises information such as article attributes, transportation modes, logistics network points, addressee contact modes, dispatch addresses and the like.
The order distribution management unit in the service system terminal distributes the service order according to the address information, sends the service order to an order receiving and dispatching terminal corresponding to the address information in the order information, and displays a random verification code of the service order at the order receiving and dispatching terminal.
Step 614, receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
Specifically, a random verification code of a service order is displayed at an order receiving and dispatching terminal, the displayed random verification code is input from an order receiving and dispatching terminal interface, a verification request is sent to a service system terminal by triggering a verification button on the order receiving and dispatching terminal interface, and the authenticity of the corresponding service order is verified at the service system terminal. When the random verification code is true, the service order is determined to be valid.
Optionally, in one embodiment, the method includes obtaining a character length of the random verification code, detecting whether the random verification code exists in the database when the character length is within a preset length range, sending a processing instruction of the service order to the order receiving and dispatching terminal when the random verification code exists in the database, and the processing instruction is used for instructing the order receiving and dispatching terminal to process the service order.
Specifically, when the character length is within the preset length range, namely the random verification code is effective, and when the random verification code exists in the database of the service system terminal, namely the service order related to the random verification code exists, the order data of the service order is sent to the order receiving and dispatching terminal, and the receiving and dispatching personnel conduct service processing on the service order through the order receiving and dispatching terminal. The associated service orders can be verified and processed according to the random verification codes, verification authorities of order receiving and dispatching terminals are not required to be acquired, and processing efficiency of the service orders is improved.
Application scenario of the random verification code processing method in the following embodiment.
The method comprises the steps of generating a random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number when a service order system terminal receives a generation request of a service order, storing the random verification code and an association relation between the random verification code and an associated service order in a database in a form of a table, acquiring order information of the service order by the service system terminal, analyzing the order information, acquiring address information in the order information, distributing the service order according to the address information by an order distribution management unit in the service system terminal, transmitting the service order to an order receiving terminal corresponding to the address information in the order information, displaying the random verification code of the service order at the order receiving terminal, displaying the random verification code of the service order from an order receiving terminal interface, transmitting the verification request to the service system terminal by triggering a verification button on the order receiving terminal interface, acquiring the character length of the random verification code, detecting whether the random verification code exists in the database or not according to the address information, and simplifying the operation of the service order receiving terminal when the random verification code exists in the preset length range, and simplifying the operation of the service order receiving terminal.
According to the method, the length of a time stamp bit, the length of a data center sequence number bit, the length of a machine sequence number bit and the length of a sequence number bit in the random verification code are determined according to the requirement value of a service scene on the random verification code, when a generation request of a service order is received, a decimal digital random verification code carrying the time stamp bit, the data center sequence number bit, the machine sequence number bit and the sequence number is generated, wherein the length of the random verification code is determined according to the characteristics of the service scene, the decimal digital random verification code is converted into a 62-bit character string composed of 10-bit Arabic numbers, 26-bit lower case letters and 26-bit upper case letters, the random verification code is obtained, the random verification code is analyzed, all characters in the random verification code are obtained, similarity among the characters in the random verification code is obtained through similarity detection according to detection strategy data, and when two character strings with the similarity being preset values exist, the two characters are deleted from the random code character strings, and the random verification code with the similarity characters is obtained.
The method comprises the steps of obtaining order information of a service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, displaying a random verification code of the service order at the order receiving and dispatching terminal, receiving a verification request sent by the order receiving and dispatching terminal, verifying the random verification code according to the verification request, and sending order data of the service order to the order receiving and dispatching terminal when the random verification code exists in a database, so that the order receiving and dispatching terminal carries out service processing on the service order. The method comprises the steps of determining the length of a random verification code according to service scene characteristics, reducing character occupation, converting the generated decimal random verification code into a 62-system character string random verification code of a digital letter combination, reducing the character length of the random verification code, verifying a service order through the 62-system random verification code, and not needing to verify the verification authority of an order receiving and dispatching terminal, so that the verification processing operation of the service order random verification code is simplified, and the efficiency and the accuracy of service order processing are improved.
It should be understood that, although the steps in the flowcharts of fig. 2, 5-6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 2, 5-6 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 7, there is provided a random verification code processing apparatus, including an acquisition module 702, a determination module 704, and a generation module 706, wherein:
the obtaining module 702 is configured to obtain a requirement value of the service scenario for the random verification code.
And the determining module 704 is configured to determine a length of a timestamp bit, a length of a serial number bit of the data center, a length of a serial number bit of the machine, and a length of a serial number bit in the random verification code according to the requirement value.
The generating module 706 is configured to generate, when a request for generating a service order is received, a random verification code associated with the service order, where the random verification code includes a timestamp bit, a data center sequence number bit, a machine sequence number bit, and a sequence number.
The random verification code processing device comprises a random verification code processing device, a data center sequence number processing device and a service order processing device, wherein the random verification code processing device is used for obtaining a requirement value of a service scene on the random verification code, determining the length of a time stamp bit, the length of a data center sequence number bit, the length of a machine sequence number bit and the length of a sequence number bit in the random verification code according to the requirement value, generating the random verification code associated with the service order when a generation request of the service order is received, determining the length of the random verification code according to the requirement of an actual service scene, avoiding the generated random verification code from being overlong, associating the generated random verification code with the service order, ensuring the uniqueness of the service order associated with the random verification code, and improving the service order processing efficiency.
In another embodiment, as shown in fig. 8, a random verification code processing apparatus is provided, which includes, in addition to an acquisition module 702, a determination module 704, and a generation module 706, a occupation module 708, a conversion module 710, a detection module 712, a deletion module 714, an analysis module 716, a display module 718, and a verification module 720, where:
The determining module 704 is further configured to determine, based on the required value, incoming initial values of the timestamp bits, the data center sequence number bits, the machine sequence number bits, and the sequence number bits in the random verification code.
The occupying module 708 is configured to determine a length of a timestamp bit, a length of a serial number bit of the data center, a length of a serial number bit of the machine, and a length of a serial number bit of the random verification code by occupying each initial incoming value according to a preset combination manner.
The generating module 706 is further configured to generate, when a request for generating a service order is received, a decimal digital random verification code carrying a timestamp bit, a data center sequence number bit, a machine sequence number bit, and a sequence number.
The conversion module 710 is configured to convert the decimal number random verification code into a 62-system character string of 10-bit arabic number, 26-bit lowercase letter, and 26-bit uppercase letter combinations, so as to obtain a random verification code.
And the detection module 712 is configured to detect similarity between characters in the random verification code.
And the deleting module 714 is configured to delete two characters from the random code character string when there are two character strings with a similarity of a preset value, so as to obtain a random verification code for deleting similar characters.
And the parsing module 716 is configured to parse the random verification code to obtain all characters in the random verification code.
The detection module 712 is further configured to perform similarity detection on each character according to the detection policy data, so as to obtain similarity between characters in the random verification code.
The sending module 718 is configured to obtain order information of a service order, send the service order to an order receiving and dispatching terminal corresponding to address information in the order information, and display a random verification code of the service order at the order receiving and dispatching terminal.
And the verification module 720 is used for receiving a verification request sent by the order receiving and dispatching terminal and verifying the random verification code according to the verification request.
The obtaining module 702 is further configured to obtain a character length of the random verification code.
The detection module 716 is further configured to detect whether a random verification code exists in the database when the character length is within a preset length range.
The sending module 718 is further configured to send a processing instruction of the service order to the order receiving and dispatching terminal when the random verification code exists in the database, where the processing instruction is used to instruct the order receiving and dispatching terminal to process the service order.
In one embodiment, a service scene determines a demand value of a random verification code, an incoming initial value of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in the random verification code, determines the length of the random verification code through binary occupation, generates a decimal number random verification code carrying the time stamp bit, the data center sequence number bit, the machine sequence number bit and the sequence number when a generation request of a service order is received, wherein the length of the random verification code is determined according to service scene characteristics, converts the decimal number random verification code into a 62-bit character string consisting of 10-bit Arabic numbers, 26-bit capital letters and 26-bit capital letters to obtain the random verification code, analyzes the random verification code to obtain all characters in the random verification code, detects similarity of the characters according to detection strategy data to obtain the similarity between the characters in the random verification code, and deletes the two characters from the random code string when the similarity is two character strings with preset values to obtain the random verification code with the similar characters.
The method comprises the steps of obtaining order information of a service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, displaying a random verification code of the service order at the order receiving and dispatching terminal, receiving a verification request sent by the order receiving and dispatching terminal, verifying the random verification code according to the verification request, and sending order data of the service order to the order receiving and dispatching terminal when the random verification code exists in a database, so that the order receiving and dispatching terminal carries out service processing on the service order. The method comprises the steps of determining the length of a random verification code according to service scene characteristics, reducing character occupation, converting the generated decimal random verification code into a 62-system character string random verification code of a digital letter combination, reducing the character length of the random verification code, verifying a service order through the 62-system random verification code, and not needing to verify the verification authority of an order receiving and dispatching terminal, so that the verification processing operation of the service order random verification code is simplified, and the efficiency and the accuracy of service order processing are improved.
For specific limitations of the random verification code processing apparatus, reference may be made to the above limitation of the random verification code processing method, and no further description is given here. The above-described respective modules in the random verification code processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a random authentication code processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Acquiring a demand value of a business scene on a random verification code;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
when a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, the data center serial number bit, a machine serial number bit and a serial number.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining the input initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in the random verification code according to the demand value;
and each initial incoming value occupies a position according to a preset combination mode, and the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code are determined.
In one embodiment, the processor when executing the computer program further performs the steps of:
When a generation request of a service order is received, generating a decimal digital random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number;
and converting the decimal number random verification code into a 62-system character string composed of 10-bit Arabic numbers, 26-bit lowercase letters and 26-bit uppercase letters, and obtaining the random verification code.
In one embodiment, the processor when executing the computer program further performs the steps of:
Detecting the similarity between characters in the random verification code;
And deleting the two characters from the random code character string when the two character strings with the similarity being the preset value exist, so as to obtain the random verification code for deleting the similar characters.
In one embodiment, the processor when executing the computer program further performs the steps of:
analyzing the random verification code to obtain all characters in the random verification code;
and carrying out similarity detection on each character according to the detection strategy data to obtain the similarity between the characters in the random verification code.
In one embodiment, the processor when executing the computer program further performs the steps of:
Acquiring order information of the service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, and displaying a random verification code of the service order at the order receiving and dispatching terminal;
And receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring the character length of the random verification code;
When the character length is within a preset length range, detecting whether the random verification code exists in a database;
And when the random verification code exists in the database, sending a processing instruction of the service order to the order receiving and dispatching terminal, wherein the processing instruction is used for indicating the order receiving and dispatching terminal to process the service order.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring a demand value of a business scene on a random verification code;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
when a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, the data center serial number bit, a machine serial number bit and a serial number.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining the input initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in the random verification code according to the demand value;
and each initial incoming value occupies a position according to a preset combination mode, and the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code are determined.
In one embodiment, the computer program when executed by the processor further performs the steps of:
When a generation request of a service order is received, generating a decimal digital random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number;
and converting the decimal number random verification code into a 62-system character string composed of 10-bit Arabic numbers, 26-bit lowercase letters and 26-bit uppercase letters, and obtaining the random verification code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Detecting the similarity between characters in the random verification code;
And deleting the two characters from the random code character string when the two character strings with the similarity being the preset value exist, so as to obtain the random verification code for deleting the similar characters.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the random verification code to obtain all characters in the random verification code;
and carrying out similarity detection on each character according to the detection strategy data to obtain the similarity between the characters in the random verification code.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring order information of the service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, and displaying a random verification code of the service order at the order receiving and dispatching terminal;
And receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the character length of the random verification code;
When the character length is within a preset length range, detecting whether the random verification code exists in a database;
And when the random verification code exists in the database, sending a processing instruction of the service order to the order receiving and dispatching terminal, wherein the processing instruction is used for indicating the order receiving and dispatching terminal to process the service order.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for processing a random verification code, the method comprising:
Acquiring a demand value of a service scene on a random verification code, wherein the demand value corresponds to the service volume of the service scene, and the demand value is used for determining the demands of a machine room and a deployed application server;
Determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
When a generation request of a service order is received, generating a random verification code associated with the service order, wherein the random verification code comprises a time stamp bit, a data center serial number bit, a machine serial number bit and a serial number bit, the data center serial number bit is used for recording the serial number of a machine room storing an application server, the machine serial number bit is used for recording the serial number of a deployed application server, and the serial number bit is used for recording the digital serial number generated by the same machine in the same millisecond.
2. The method of claim 1, wherein determining the length of the timestamp bits, the length of the data center sequence number bits, the length of the machine sequence number bits, and the length of the sequence number bits in the random verification code based on the demand value comprises:
Determining the input initial values of a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number bit in the random verification code according to the demand value;
and each incoming initial value is occupied in a preset combination mode, and the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code are determined.
3. The method of claim 1, wherein the generating a random verification code associated with the service order when a request to generate the service order is received comprises:
When a generation request of a service order is received, generating a decimal digital random verification code carrying a time stamp bit, a data center sequence number bit, a machine sequence number bit and a sequence number;
and converting the decimal number random verification code into a 62-system character string composed of 10-bit Arabic numbers, 26-bit lowercase letters and 26-bit uppercase letters, and obtaining the random verification code.
4. A method according to claim 3, characterized in that the method further comprises:
Detecting the similarity between characters in the random verification code;
And deleting the two characters from the random verification code when the two characters with the similarity being the preset value exist, so as to obtain the random verification code with the similar characters deleted.
5. The method of claim 4, wherein the detecting the similarity between characters in the random verification code comprises:
analyzing the random verification code to obtain all characters in the random verification code;
and carrying out similarity detection on each character according to the detection strategy data to obtain the similarity between the characters in the random verification code.
6. The method according to claim 1, wherein the method further comprises:
Acquiring order information of the service order, sending the service order to an order receiving and dispatching terminal corresponding to address information in the order information, and displaying a random verification code of the service order at the order receiving and dispatching terminal;
And receiving a verification request sent by the order receiving and dispatching terminal, and verifying the random verification code according to the verification request.
7. The method of claim 6, wherein receiving the verification request sent by the order receiving terminal, verifying the random verification code according to the verification request, comprises:
acquiring the character length of the random verification code;
When the character length is within a preset length range, detecting whether the random verification code exists in a database;
And when the random verification code exists in the database, sending a processing instruction of the service order to the order receiving and dispatching terminal, wherein the processing instruction is used for indicating the order receiving and dispatching terminal to process the service order.
8. A random passcode processing apparatus, the apparatus comprising:
The system comprises an acquisition module, a random verification code acquisition module and a random verification code generation module, wherein the acquisition module is used for acquiring a demand value of a service scene on a random verification code, the demand value corresponds to the service volume of the service scene, and the demand value is used for determining the demands of a machine room and a deployed application server;
the determining module is used for determining the length of a time stamp bit, the length of a data center serial number bit, the length of a machine serial number bit and the length of a sequence number bit in the random verification code according to the demand value;
The generation module is used for generating a random verification code associated with the service order when receiving a generation request of the service order, wherein the random verification code comprises a time stamp bit, a data center serial number bit, a machine serial number bit and a sequence number bit, the data center serial number bit is used for recording the serial number of a machine room storing an application server, the machine serial number bit is used for recording the serial number of a deployed application server, and the sequence number bit is used for recording the digital serial number generated by the same machine in the same millisecond.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202011181507.3A 2020-10-29 2020-10-29 Random verification code processing method, device, computer equipment and storage medium Active CN114429319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011181507.3A CN114429319B (en) 2020-10-29 2020-10-29 Random verification code processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011181507.3A CN114429319B (en) 2020-10-29 2020-10-29 Random verification code processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114429319A CN114429319A (en) 2022-05-03
CN114429319B true CN114429319B (en) 2025-08-08

Family

ID=81308890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011181507.3A Active CN114429319B (en) 2020-10-29 2020-10-29 Random verification code processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114429319B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895953A (en) * 2022-05-07 2022-08-12 中国银行股份有限公司 A serial number allocation method, device, equipment and storage medium
CN116563976A (en) * 2023-03-31 2023-08-08 青岛海尔科技有限公司 Method, device, storage medium and electronic device for determining verification result

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341527A (en) * 2017-06-19 2017-11-10 上海德启信息科技有限公司 A kind of logistics increases order management method and system newly
CN107395659A (en) * 2017-03-28 2017-11-24 阿里巴巴集团控股有限公司 Method and device for business acceptance and consensus
CN110634052A (en) * 2019-09-20 2019-12-31 中国银行股份有限公司 Method and device for generating order number by distributed architecture

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106710081A (en) * 2015-07-29 2017-05-24 深圳市丰巢科技有限公司 Express item delivery method, intelligent express cabinet and server
CN109525658A (en) * 2018-11-09 2019-03-26 广州虎牙科技有限公司 A kind of production method, server, equipment, storage medium and operation system
CN111784425B (en) * 2019-04-03 2023-10-17 北京车和家信息技术有限公司 Order number generation method, exception handling method and device
CN111222944B (en) * 2019-12-31 2024-04-12 深圳市创梦天地科技有限公司 Order processing method, system and device
CN111311213B (en) * 2020-02-26 2024-03-26 上海东普信息科技有限公司 Online payment method and device for express batch mailing and electronic equipment
CN111538594B (en) * 2020-04-21 2023-04-18 招商局金融科技有限公司 Order ID generation method, device, equipment and medium based on distributed system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395659A (en) * 2017-03-28 2017-11-24 阿里巴巴集团控股有限公司 Method and device for business acceptance and consensus
CN107341527A (en) * 2017-06-19 2017-11-10 上海德启信息科技有限公司 A kind of logistics increases order management method and system newly
CN110634052A (en) * 2019-09-20 2019-12-31 中国银行股份有限公司 Method and device for generating order number by distributed architecture

Also Published As

Publication number Publication date
CN114429319A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN108665403B (en) Digital watermark embedding method, digital watermark extracting method, digital watermark embedding device, digital watermark extracting device and digital watermark system
CN108388598B (en) Electronic device, data storage method, and storage medium
US20200364429A1 (en) Two-dimensional code generation and identification
EP3419251B1 (en) User position verification method, controlled device access method, controlled device and user terminal
US10970404B2 (en) Method, apparatus, and computer-readable medium for automated construction of data masks
US11847244B1 (en) Private information detector for data loss prevention
CN110457203A (en) Crawler business testing method, device, computer equipment and storage medium
CN114429319B (en) Random verification code processing method, device, computer equipment and storage medium
CN112579931B (en) Network access analysis method, device, computer equipment and storage medium
CN104243399A (en) User identifying method, client, server and system for realizing the method
CN114218554B (en) Equipment fingerprint generation method, device, equipment and readable storage medium
CN113609352B (en) Character string retrieval method, device, computer equipment and storage medium
CN119621549A (en) System abnormality positioning notification method, device, computer equipment, and storage medium
CN113178842B (en) Relay protection fixed value monitoring method, device, relay protection equipment and storage medium
US9450953B2 (en) Blacklisting of frequently used gesture passwords
CN113139636B (en) A method for generating information code, related device, equipment and storage medium
CN112800240A (en) Word stock updating method, identity recognition method and device and electronic equipment
CN113627938B (en) Data deleting method, device and equipment of block chain and storage medium
CN119089466A (en) Identification generation method, device, computer equipment, storage medium, and program product
CN114614972B (en) Data alignment methods, systems, electronic devices and storage media
JP2006072783A (en) Data entry system and data entry method
CN113836428A (en) Business pushing method and device, computer equipment and storage medium
CN113987580A (en) Block chain data access method, device, equipment and medium based on user attributes
CN113342283A (en) User position information storage method and device, electronic equipment and readable storage medium
CN113343226A (en) Sensitive data tracking monitoring method, device, equipment and medium based on grouping

Legal Events

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